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

CUDA load error on Windows 10 #31

Closed
morgankohler opened this issue Mar 11, 2023 · 2 comments
Closed

CUDA load error on Windows 10 #31

morgankohler opened this issue Mar 11, 2023 · 2 comments

Comments

@morgankohler
Copy link

Hey, this is great work. I have been trying to set this up from repo for windows and the biggest problem so far is this error in the cuda load step (ChatRWKV/rwkv_pip_package/src/rwkv/model.py:29):

"CalledProcessError: Command '['where', 'cl']' returned non-zero exit status 1."

I'm not too familiar with low-level cuda programs so having a tough time debugging. Maybe you have some idea? Thanks!

@BlinkDL
Copy link
Owner

BlinkDL commented Mar 11, 2023

Thank you :) Firstly set os.environ["RWKV_CUDA_ON"] = '0' and find your fastest strategy (no need to compile CUDA and simply works - but preprocessing of context will be 10x slower).

In order to use os.environ["RWKV_CUDA_ON"] = '1' in windows:

  1. Install VS 2022 and Visual Studio Build Tools 2022.
  2. Reinstall CUDA 11.7 (install CUDA VS extensions).
  3. Run python chat.py in "x64 Native Tools Command Prompt for VS 2022" and it should be able to compile the CUDA kernel.

@linonetwo
Copy link

Hi, currently https://developer.nvidia.com/cuda-toolkit only have CUDA 12 download.

Can CUDA 12 work for ChatRWKV?

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

3 participants