ludwig-ai / ludwig

Low-code framework for building custom LLMs, neural networks, and other AI models

Home Page:http://ludwig.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GPU is not available

LittleStarrider opened this issue · comments

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.