1
0
Fork 0
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

Closed
opened 2026-11-01 04:16:32 +07:00 by bsakaguchi · 12 comments
Owner

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.

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.
Author
Owner

@p-e-w commented on GitHub (Nov 20, 2025):

Did you install the correct PyTorch version for your CUDA version?

<!-- gh-comment-id:3557101651 --> @p-e-w commented on GitHub (Nov 20, 2025): Did you install the correct PyTorch version for your CUDA version?
Author
Owner

@Teashrock commented on GitHub (Nov 20, 2025):

@p-e-w
I certainly did pip install torch, but that's it.

<!-- gh-comment-id:3557176446 --> @Teashrock commented on GitHub (Nov 20, 2025): @p-e-w I certainly did `pip install torch`, but that's it.
Author
Owner

@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.


<!-- gh-comment-id:3560149407 --> @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. ***********************
Author
Owner

@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.

<!-- gh-comment-id:3560978853 --> @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.
Author
Owner

@p-e-w commented on GitHub (Nov 21, 2025):

pip install torch

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.

<!-- gh-comment-id:3561066266 --> @p-e-w commented on GitHub (Nov 21, 2025): ``` pip install torch ``` 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.
Author
Owner

@rigin commented on GitHub (Nov 21, 2025):

pip install torch

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.

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.

<!-- gh-comment-id:3561988997 --> @rigin commented on GitHub (Nov 21, 2025): > ``` > pip install torch > ``` > > 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. 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.
Author
Owner

@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.

<!-- gh-comment-id:3562803160 --> @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.
Author
Owner

@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.

<!-- gh-comment-id:3564757458 --> @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.
Author
Owner

@p-e-w commented on GitHub (Nov 22, 2025):

So is there a problem or not?

<!-- gh-comment-id:3565110737 --> @p-e-w commented on GitHub (Nov 22, 2025): So is there a problem or not?
Author
Owner

@Teashrock commented on GitHub (Nov 22, 2025):

@p-e-w I'll try again and check.

<!-- gh-comment-id:3566982765 --> @Teashrock commented on GitHub (Nov 22, 2025): @p-e-w I'll try again and check.
Author
Owner

@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.

<!-- gh-comment-id:3566990806 --> @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.
Author
Owner

@p-e-w commented on GitHub (Dec 1, 2025):

Closing as answered.

<!-- gh-comment-id:3594598215 --> @p-e-w commented on GitHub (Dec 1, 2025): Closing as answered.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
p-e-w/heretic#14
No description provided.