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

Please make sure to include "CUDA is Required" in the readme. #53

Closed
ymsboob opened this issue Jan 17, 2024 · 6 comments · Fixed by #54
Closed

Please make sure to include "CUDA is Required" in the readme. #53

ymsboob opened this issue Jan 17, 2024 · 6 comments · Fixed by #54
Labels
documentation Improvements or additions to documentation

Comments

@ymsboob
Copy link

ymsboob commented Jan 17, 2024

Is your feature request related to a problem? Please describe.
I put a few hours into installation without knowing CUDA was required, my system doesn't have a GPU, just a 12th gen i7 so I thought I could handle it, after a few hours of struggle, I got this message and it genuinely upset me: CUDA error 100 at /home/runner/work/ctransformers/ctransformers/models/ggml/ggml-cuda.cu:5067: no CUDA-capable device is detected

Describe the solution you'd like
Please specify CUDA being required in the readme with big letters.

@yukiarimo
Copy link
Owner

I understand your situation. I apologize for any inconvenience caused by the installation process. If you don't have a GPU, you can use the CPU version of the transformers. However, I use MacOS, so I cannot test whether it works on other devices besides MPS!

@yukiarimo yukiarimo added the documentation Improvements or additions to documentation label Jan 17, 2024
@yukiarimo
Copy link
Owner

CUDA error 100 at /home/runner/work/ctransformers/ctransformers/models/ggml/ggml-cuda.cu:5067: no CUDA-capable device is detected

By the way, on which step did you get this message?

@ymsboob
Copy link
Author

ymsboob commented Jan 17, 2024

CUDA error 100 at /home/runner/work/ctransformers/ctransformers/models/ggml/ggml-cuda.cu:5067: no CUDA-capable device is detected

By the way, on which step did you get this message?

After installing everything and running the python index.py so technically the first step in the index.sh

I haven't found any way of using transformers without CUDA, can you elaborate further?

@0xGingi
Copy link
Collaborator

0xGingi commented Jan 17, 2024

@ymsboob

in your config.json, change device to CPU and set gpu layers to 0

@yukiarimo
Copy link
Owner

Wait a minute, we’re already working on the solution. If you don’t mind, can you please DM me on Discord (search for yukiarimo#4577)?

@0xGingi
Copy link
Collaborator

0xGingi commented Jan 17, 2024

I made a pull request that will use CPU by default

@yukiarimo yukiarimo linked a pull request Jan 17, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants