Free | No tracking | Every fact with a source|German and English

Error / Graphics card and drivers

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

  1. Check in the same environment: python -c "import torch; print(torch.cuda.is_available())". If it says False even though you have an NVIDIA card, a CPU version of PyTorch is installed.
  2. 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.
  3. Without an NVIDIA card: load the model explicitly with ChatterboxTTS.from_pretrained(device="cpu").
  4. 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).
  5. As a workaround, you can patch torch.load before loading so that map_location defaults to the CPU — that’s also how Chatterbox’s official example file example_for_mac.py does 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:

Terms for this

Similar errors

Sources

Checked on Oct 28, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.