Coder Social home page Coder Social logo

keith-hon / bitsandbytes-windows Goto Github PK

View Code? Open in Web Editor NEW

This project forked from timdettmers/bitsandbytes

74.0 74.0 10.0 2.16 MB

8-bit CUDA functions for PyTorch in Windows 10

License: MIT License

Shell 1.78% C++ 11.00% Python 52.94% C 3.78% Cuda 29.09% Makefile 1.41%

bitsandbytes-windows's People

Contributors

blackhc avatar borzik avatar chessgecko avatar cyberes avatar dbaranchuk avatar justheuristic avatar kashif avatar keith-hon avatar lostmsu avatar mbrukman avatar mryab avatar sirrob1997 avatar stas00 avatar timdettmers avatar titus-von-koeller avatar tomaarsen avatar ubik2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bitsandbytes-windows's Issues

Upgrade of version up to 0.41.1 from bitsandbytes library

As per trainer.py recommendation I've got the following message/error:
You are using 8-bit optimizers with a version of bitsandbytes < 0.41.1. It is recommended to update your version as a major bug has been fixed in 8-bit optimizers.

AttributeError: module 'bitsandbytes.optim' has no attribute 'PagedAdam'

Trying to use ludwig .. for that did
pip install git+https://github.com/Keith-Hon/bitsandbytes-windows

but getting error for following code

from ludwig.api import LudwigModel
import pandas as pd

df = pd.read_csv('./data/rotten_tomatoes.csv')
model = LudwigModel(config='rotten_tomatoes.yaml')
results = model.train(dataset=df)
print(results)

AttributeError: module 'bitsandbytes.optim' has no attribute 'PagedAdam'

windows10 anaconda error

i run the command in my conda env:

conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 -c pytorch -c nvidia

and it automatically installed pytorch-cuda 11.3 for me. then i upgraded pytorch-cuda manually:

conda install pytorch-cuda=11.6 -c pytorch -c nvidia

and then

pip install git+https://github.com/Keith-Hon/bitsandbytes-windows.git

but when i run python -m bitsandbytes, i got the following error messages:

> python -m bitsandbytes

===================================BUG REPORT===================================
Welcome to bitsandbytes. For bug reports, please submit your error trace to: https://github.com/TimDettmers/bitsandbytes/issues
================================================================================
binary_path: D:\Softwares\anaconda3\envs\conda_torch_test\lib\site-packages\bitsandbytes\cuda_setup\libbitsandbytes_cuda116.dll
CUDA SETUP: Loading binary D:\Softwares\anaconda3\envs\conda_torch_test\lib\site-packages\bitsandbytes\cuda_setup\libbitsandbytes_cuda116.dll...
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++ DEBUG INFORMATION +++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

++++++++++ POTENTIALLY LIBRARY-PATH-LIKE ENV VARS ++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

WARNING: Please be sure to sanitize sensible info from any such env vars!

++++++++++++++++++++++++++ OTHER +++++++++++++++++++++++++++
COMPILED_WITH_CUDA = True
OS Error Detected!!!
Traceback (most recent call last):
  File "D:\Softwares\anaconda3\envs\conda_torch_test\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "D:\Softwares\anaconda3\envs\conda_torch_test\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "D:\Softwares\anaconda3\envs\conda_torch_test\lib\site-packages\bitsandbytes\__main__.py", line 47, in <module>
    print(f"COMPUTE_CAPABILITIES_PER_GPU = {get_compute_capabilities(cuda)}")
  File "D:\Softwares\anaconda3\envs\conda_torch_test\lib\site-packages\bitsandbytes\cuda_setup\main.py", line 339, in get_compute_capabilities
    check_cuda_result(cuda, cuda.cuDeviceGetCount(ct.byref(nGpus)))
AttributeError: 'NoneType' object has no attribute 'cuDeviceGetCount'

and the code causing error is:

def get_cuda_lib_handle():
    # 1. find libcuda.so library (GPU driver) (/usr/lib)
    try:
        cuda = ct.CDLL("libcuda.so")
    except OSError:
        CUDASetup.get_instance().add_log_entry('CUDA SETUP: WARNING! libcuda.so not found! Do you have a CUDA driver installed? If you are on a cluster, make sure you are on a CUDA machine!')
        return None
    check_cuda_result(cuda, cuda.cuInit(0))

    return cuda

that means i got an OSError and return None.

what should i do?

Inclusion of __version__ attribute

Issue: Need of __version__attribute as other libraries checks version number.
E.g. 4 bit quantization requires bitsandbytes>=0.39.0 - please upgrade your bitsandbytes version.
This request is similar to the issue opened by the author 3 weeks ago.
Got it while reproducing example of Llama 2 fine-tuning.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.