keith-hon / bitsandbytes-windows Goto Github PK
View Code? Open in Web Editor NEWThis project forked from timdettmers/bitsandbytes
8-bit CUDA functions for PyTorch in Windows 10
License: MIT License
This project forked from timdettmers/bitsandbytes
8-bit CUDA functions for PyTorch in Windows 10
License: MIT License
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.
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'
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?
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.
I tried to build a conda package of this, feel free to use it.
https://anaconda.org/sdy623/bitsandbytes-windows
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.