Chatterbox: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False (model wants a graphics card that PyTorch can’t see)
Chatterbox TTS crashes while loading the model because the model files were saved for an NVIDIA graphics card, but PyTorch can’t find a usable CUDA graphics card.
The message
RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=torch.device('cpu') to map your storages to the CPU.
Affects: Chatterbox, Python
Why is this happening?
The Chatterbox models were saved on a CUDA graphics card. Without map_location, torch.load tries to load them back there. That fails if you only have a CPU version of PyTorch installed (easy to happen when pip pulls in PyTorch itself), if you don’t have an NVIDIA card (AMD, Mac, pure CPU), or if the multilingual model ignores your device="cpu" setting in older versions.
How to fix it
- Check in the same environment:
python -c "import torch; print(torch.cuda.is_available())". If it saysFalseeven though you have an NVIDIA card, a CPU version of PyTorch is installed. - If you have an NVIDIA card: reinstall the CUDA version of torch and torchaudio after
chatterbox-tts, otherwise the Chatterbox installation will overwrite them again. - Without an NVIDIA card: load the model explicitly with
ChatterboxTTS.from_pretrained(device="cpu"). - If you use the multilingual model, update Chatterbox. The issue where
device="cpu"was ignored there is fixed according to Issue #351 with a correction from March 2026 (PR #410). - As a workaround, you can patch
torch.loadbefore loading so thatmap_locationdefaults to the CPU — that’s also how Chatterbox’s official example fileexample_for_mac.pydoes it.
Better not: Do not install a randomly chosen PyTorch version on top of the existing one — Chatterbox expects specific torch versions, and mixing them creates new errors.
Set up from scratch again
If it still doesn’t work after that, a fresh setup step by step often helps:
- Clone Your Own Voice (Text to Speech)
Use Chatterbox Multilingual to clone your own voice locally and have German texts read aloud — including legal basics, recording tips, and … - VRAM explained: why it decides everything
How much VRAM does local AI need? Rule of thumb, quantization (Q4, Q8, fp8), context, image and video models, offloading, and which card si…
Terms for this
Similar errors
- CUDAExecutionProvider is not in available provider names (onnxruntime runs only on the CPU)
- RuntimeError: CUDA error: an illegal memory access was encountered – the graphics card accessed invalid memory
- RuntimeError: No CUDA GPUs are available (PyTorch does not see a usable NVIDIA graphics card)
- hipErrorNoBinaryForGpu: Unable to find code object for all current devices! (ROCm has no matching code for your AMD card)
- nvidia-smi: command not found in WSL (CUDA not available in WSL — the only correct driver is the Windows driver)
Sources
- https://github.com/resemble-ai/chatterbox/issues/96
- https://github.com/resemble-ai/chatterbox/issues/351
- https://github.com/resemble-ai/chatterbox/blob/master/example_for_mac.py
Checked on Oct 28, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.