-
|
I am having errors like this: lib/python3.14/site-packages/torch/cuda/__init__.py", line 417, in _lazy_init
raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabledwhen running: CUDA_VISIBLE_DEVICES="" python tools/train.py -f ../yolox_custom.py -b I want to train model with only cpu, is there a way I can do so? |
Beta Was this translation helpful? Give feedback.
Answered by
laggui
Feb 2, 2026
Replies: 1 comment 2 replies
-
|
This is not related to burn at all 😅 But it looks like your pytorch installation was not compiled with CUDA. If you want to use CUDA, make sure you download the correct wheel (see https://pytorch.org/get-started/locally/). If you don't want to use CUDA, make sure you're not using any cuda features in your training script. Though training on the CPU will be really slow I think. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
antimora
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is not related to burn at all 😅
But it looks like your pytorch installation was not compiled with CUDA. If you want to use CUDA, make sure you download the correct wheel (see https://pytorch.org/get-started/locally/).
If you don't want to use CUDA, make sure you're not using any cuda features in your training script.
Though training on the CPU will be really slow I think.