mirror of
https://github.com/p-e-w/heretic.git
synced 2026-12-03 18:42:57 +07:00
[GH-ISSUE #30] No GPU or other accelerator detected. Operations will be slow. #14
Labels
No labels
bug
enhancement
enhancement
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
p-e-w/heretic#14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Teashrock on GitHub (Nov 20, 2025).
Original GitHub issue: https://github.com/p-e-w/heretic/issues/30
This message is what I get before it tries to download a model, except I have an NVIDIA GeForce RTX 2050 with all drivers installed.
@p-e-w commented on GitHub (Nov 20, 2025):
Did you install the correct PyTorch version for your CUDA version?
@Teashrock commented on GitHub (Nov 20, 2025):
@p-e-w
I certainly did
pip install torch, but that's it.@rigin commented on GitHub (Nov 20, 2025):
I have a similar problem.
I installed heretic in an anaconda container
conda create -n heretic python=3.12
......
pip install heretic-llm
After that, I set the variables.
conda env config vars set HF_USERNAME=******
conda env config vars set HF_TOKEN=*****
conda env config vars set CUDA_VISIBLE_DEVICES=0,2,1
conda env config vars set CUDA_DEVICE_ORDER=FASTEST_FIRST
heretic Qwen/Qwen3-4B-Instruct-2507
█░█░█▀▀░█▀▄░█▀▀░▀█▀░█░█▀▀ v1.0.1
█▀█░█▀▀░█▀▄░█▀▀░░█░░█░█░░
▀░▀░▀▀▀░▀░▀░▀▀▀░░▀░░▀░▀▀▀ https://github.com/p-e-w/heretic
No GPU or other accelerator detected. Operations will be slow.
@Vinay-Umrethe commented on GitHub (Nov 21, 2025):
The issue you're encountering with PyTorch GPU usage is typically due to an incompatibility between your current stack. For older GPUs, it is likely that your graphics driver and your CUDA Toolkit version are not fully up to date.
Check if you are using a CPU only pytorch if versions are correct.
@p-e-w commented on GitHub (Nov 21, 2025):
installs PyTorch for CUDA 12.8. Your GPU is quite old, so it may require another version. See https://pytorch.org/get-started/locally/ for how to install PyTorch for different CUDA versions.
@rigin commented on GitHub (Nov 21, 2025):
nvidia-smi -L
GPU 0: NVIDIA GeForce RTX 5060 Ti (UUID: GPU-6aad86bf-f5b4-28e7-6c10-879107f0b624)
GPU 1: NVIDIA GeForce RTX 3050 (UUID: GPU-75e8ac30-515b-177c-e07a-16430d2e3b28)
GPU 2: NVIDIA GeForce RTX 4060 Ti (UUID: GPU-7adf6c64-1983-fb74-dba6-e01f23f1932f)
The installation was in a new Anaconda container with python=3.12.
@p-e-w commented on GitHub (Nov 21, 2025):
Please do this in a clean venv: https://stackoverflow.com/questions/48152674/how-do-i-check-if-pytorch-is-using-the-gpu
This issue is only a bug in Heretic if the above works but Heretic doesn't detect the GPU. There a a million reasons why PyTorch might not find the GPU, but this issue tracker is not about PyTorch.
@rigin commented on GitHub (Nov 21, 2025):
Yes, I did
conda create -n heretic python=3.13
conda activate heretic
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu130
pip3 install heretic-llm
conda env config vars set HF_USERNAME=****
conda env config vars set HF_TOKEN=*****
conda env config vars set CUDA_VISIBLE_DEVICES=0,2,1
conda env config vars set CUDA_DEVICE_ORDER=FASTEST_FIRST
conda deactivate
conda activate heretic
After that, the GPU connected.
@p-e-w commented on GitHub (Nov 22, 2025):
So is there a problem or not?
@Teashrock commented on GitHub (Nov 22, 2025):
@p-e-w I'll try again and check.
@rigin commented on GitHub (Nov 22, 2025):
I have solved this problem. Thank you. I've described my setup in detail here. It might be useful to someone.
@p-e-w commented on GitHub (Dec 1, 2025):
Closing as answered.