Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPU is not available #3972

Open
LittleStarrider opened this issue Mar 20, 2024 · 0 comments
Open

GPU is not available #3972

LittleStarrider opened this issue Mar 20, 2024 · 0 comments

Comments

@LittleStarrider
Copy link

LittleStarrider commented Mar 20, 2024

Hello everyone.

First of all, I'm very new to training and fine-tuning LLMs, so my problem could be very straight forward (or not). Also forgive me in andvance for not knowing stuff.

System:
Windows 11
Python 3.10
Ludwig 0.10

I created a virtual environment locally and then pip installed ludwig. My propertys.yaml file also seems to cause no issue, as the model loads just fine.

I tried to model.generate() on a locally downloaded model from HF, just to see if it generates some kind of output. But I only get this error:

PyTorch version 2.2.1 available.
C:\Users\Name\OneDrive\Dokumente\Python\Tetera\Tetera\.venv\lib\site-packages\bitsandbytes\cextension.py:34: UserWarning: The installed version of bitsandbytes was compiled without GPU support. 8-bit optimizers, 8-bit multiplication, and GPU quantization are unavailable.
  warn("The installed version of bitsandbytes was compiled without GPU support. "

'NoneType' object has no attribute 'cadam32bit_grad_fp32'
Setting generation max_new_tokens to 16384 to correspond with the max sequence length assigned to the output feature or the global max sequence length. This will ensure that the correct number of tokens are generated at inference time. To override this behavior, set `generation.max_new_tokens` to a different value in your Ludwig config.

Traceback (most recent call last):
  File "C:\Users\fabio\OneDrive\Dokumente\Python\Tetera\Tetera\app.py", line 7, in <module>
    print(model.generate("Hello World"))
  File "C:\Users\fabio\OneDrive\Dokumente\Python\Tetera\Tetera\.venv\lib\site-packages\ludwig\api.py", line 990, in generate
    raise ValueError("GPU is not available.")
ValueError: GPU is not available.

Do I have a problem with bitsandbytes? Or is it torch?
torch.cuda.is_available() also returns false.

Or do I have to create an Anaconda3 environment? I tested it there and installed pytorch via conda install and then torch.cuda.is_available() returns true. But Ludwig seems to not work in this environment.(?)

I am thankfull for any help. My goal is to get this thing at least running.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant