No module named 'torch.utils._device'
No module named 'torch.utils._device'
Can you share the complete error stacktrace?
Are you using torch==2.0?
yes i am using torch 2.0
Can you share the complete error stacktrace?
Are you using
torch==2.0?
yes i am using torch 2.0
Can you share the complete error stacktrace?
Are you using
torch==2.0?
Traceback (most recent call last):
File "D:\Python\Llama\llama\generate.py", line 10, in
from lit_llama.utils import EmptyInitOnDevice
File "D:\Python\Llama\llama\lit_llama\utils.py", line 8, in
Can you share the output of
pip list | grep torch
and
python -c 'import torch; print(torch.__version__)'?
You might have non-release version that doesn't include that file. Reinstalling torch by following the instructions at www.pytorch.org/get-started/locally should help
Traceback (most recent call last):
File "sketch3.py", line 1, in