How to run on CPU?
#2
by
MariaM07
- opened
Hi!
I'm on Windows, when I tried to run it on GPU I got the error: "CUDA out of memory" (GPU memory = 18 GB).
I tried running on CPU doing:
device = "cpu"
input_ids = input_ids.to(device)
model = model.to(device)
Then I get the error: Exception has occurred: NotImplementedError
Cannot copy out of meta tensor; no data!
File "C:\generate_alpaca7B_cpu.py", line 54, in
model = model.to(device)
NotImplementedError: Cannot copy out of meta tensor; no data!
Any solution, please?
Are you using WSL2 on Windows?
I'm not using it, I'll try it, thanks!
Ok, I understand, Windows is not so great to experiment with bitsandbytes
and GPU in general (outside gaming). But you should be able to run it on CPU without bitsandbytes
if at least you have enough RAM.