-
-
Notifications
You must be signed in to change notification settings - Fork 699
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
IndexError: list index out of range on ubuntu 20.04 when run python v2/chat.py #147
Comments
try nvidia-smi |
(gh_ChatRWKV) amd00@MZ32-00:~/llm_dev/ChatRWKV$ nvidia-smi +-----------------------------------------------------------------------------+ |
(gh_ChatRWKV_py11) amd00@MZ32-00:~/llm_dev/ChatRWKV$ python v2/chat.py
ChatRWKV v2 https://github.com/BlinkDL/ChatRWKV
Chinese - cuda fp16 - /home/amd00/llm_dev/ChatRWKV/v2/prompt/default/Chinese-2.py
No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda'
Using /home/amd00/.cache/torch_extensions/py311_cpu as PyTorch extensions root...
Creating extension directory /home/amd00/.cache/torch_extensions/py311_cpu/wkv_cuda...
Detected CUDA files, patching ldflags
Emitting ninja build file /home/amd00/.cache/torch_extensions/py311_cpu/wkv_cuda/build.ninja...
Traceback (most recent call last):
File "/home/amd00/llm_dev/ChatRWKV/v2/chat.py", line 107, in
from rwkv.model import RWKV
File "/home/amd00/llm_dev/ChatRWKV/v2/../rwkv_pip_package/src/rwkv/model.py", line 29, in
load(
File "/home/amd00/anaconda3/envs/gh_ChatRWKV_py11/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 1284, in load
return _jit_compile(
^^^^^^^^^^^^^
File "/home/amd00/anaconda3/envs/gh_ChatRWKV_py11/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 1509, in _jit_compile
_write_ninja_file_and_build_library(
File "/home/amd00/anaconda3/envs/gh_ChatRWKV_py11/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 1611, in _write_ninja_file_and_build_library
_write_ninja_file_to_build_library(
File "/home/amd00/anaconda3/envs/gh_ChatRWKV_py11/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 2007, in _write_ninja_file_to_build_library
cuda_flags = common_cflags + COMMON_NVCC_FLAGS + _get_cuda_arch_flags()
^^^^^^^^^^^^^^^^^^^^^^
File "/home/amd00/anaconda3/envs/gh_ChatRWKV_py11/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 1773, in _get_cuda_arch_flags
arch_list[-1] += '+PTX'
~~~~~~~~~^^^^
IndexError: list index out of range
The text was updated successfully, but these errors were encountered: