## TL;DR

If you do have a GPU but still hit the error, install the matching CUDA torch build instead (one user confirmed torch 2.6.0+cu118 with torchvision 0.21.0+cu118 and torchaudio 2.6.0+cu118 fixed it).

## Steps

1. Issue resemble-ai/chatterbox#96 (closed, 9 comments): I encountered a RuntimeError when attempting to run ChatterboxTTS on a CPU-only system. The issue stems from attempting to deserialize a checkpoint intended for CUDA on a system where torch.cuda.is_available() is False. Additionally, a UserWarning is issued regarding the deprecation of pkg_resources, which will be removed as early as November 2025. `` [HOME]/... UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html.

2. If ChatterboxTTS fails on a CPU-only machine with a CUDA deserialization RuntimeError, patch torch.load to default map_location to 'cpu' before calling from_pretrained, then restore it. If you do have a GPU but still hit the error, install the matching CUDA torch build instead (one user confirmed torch 2.6.0+cu118 with torchvision 0.21.0+cu118 and torchaudio 2.6.0+cu118 fixed it).

## When to use

You are seeing this: The issue stems from attempting to deserialize a checkpoint intended for CUDA on a system where torch.cuda.is_available() is False. Use this skill when you run into "RuntimeError: Deserialization Fails on CPU-Only Systems Due to CUDA Mapping in torch.load".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

Versions mentioned in the source: torch 2.6.0+cu118, torchvision 0.21.0+cu118. If you are on something much newer or older, the details may have shifted.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

## Sources

- https://setuptools.pypa.io/en/latest/pkg_resources.html
