-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
bug: can enable GPU acceleration with cuda not installed - model fails to start #3762
Comments
@Van-QA @imtuyethan I think that is something we implemented regarding error handling in the past? Which leads the user to the CUDA additional installation page. |
@johnhaire89 FYI, Jan is in the process of overhauling how we deal with llama.cpp binaries and GPU dependencies.
@Van-QA I will keep this bug open. Once we clean up PM systems, let's link the 2 epics that would solve this bug. My style is to only close bugs once the corresponding feature is shipped.
|
Handling this bug as part of janhq/cortex.cpp#1165 |
Hi @dan-homebrew @imtuyethan. This is a known issue, there is a fix in 0.5.4: #3552.
We have this step to let user install additional dependencies right in the app (without redirecting users out of the app). In the next update of integrating |
The fix is included in Jan's path to cortex.cpp: #3690 |
Deprecated issue, users are prompted to install CUDA toolkit in 0.5.7 when it's not available. |
Current behavior
I was playing with Jan for the first time and realised that GPU acceleration wasn't enabled.
I toggled the "GPU Acceleration" switch to enable it for my NVIDIA RTA A2000 with no error.
When I next typed into the chat window, Jan wasn't able to start the model.
Problem was that I didn't have CUDA toolkit installed.
Per SO answer at https://stackoverflow.com/a/55717476,
nvidia-smi
shows the supported CUDA version, butnvcc --version
should be used to check the installed version.I installed CUDA Toolkit and it's back to working like magic.
This is probably more a feature request then a bug, but that toggle should probably show an error if I try to enable GPU acceleration for a nvidia card when CUDA toolkit isn't installed.
Minimum reproduction step
Start with a Windows PC with a NVidia gpu and CUDA Toolkit not installed (per
nvcc --version
)Expected behavior
When I try to enable GPU Acceleration for a Nvidia GPU in an environment where CUDA Toolkit isn't installed, I should get a helpful error.
Maybe a warning can be displayed next to GPU in the dropdown?
Screenshots / Logs
Jan version
0.5.2
In which operating systems have you tested?
Environment details
Windows 11
NVIDIA RTX A2000 8GB Laptop GPU8192MB VRAM
CUDA toolkit not installed
The text was updated successfully, but these errors were encountered: