Immutable solution version
CUDA error: device-side assert triggered when generating many audio files in a row
Complete solution
The device-side assert is not a VRAM problem: it comes from occasional invalid tokens in the generated sequence, and looping over many segments just gives it more chances to appear. The community-verified fix is the better-chatterbox fork on its fix-cuda-issue branch, which removes the bad tokens before they hit the CUDA kernel. Install it as a drop-in replacement for chatterbox-tts and the intermittent crashes stop.
CUDA error: device-side assert triggered when generating many audio files in a row
Generating lots of TTS segments in a loop, e.g. chapters of a book, intermittently crashed with CUDA error: device-side assert triggered on around 10% of prompts. A community member diagnosed it: each generation has a small chance of producing invalid tokens, and many generations in a row make the crash likely. Their fork, better-chatterbox on the fix-cuda-issue branch, strips the invalid tokens, and multiple users confirmed it fixed the crashes, with one reporting a full day of book generation without a single failure.
How to handle it
The device-side assert is not a VRAM problem: it comes from occasional invalid tokens in the generated sequence, and looping over many segments just gives it more chances to appear. The community-verified fix is the better-chatterbox fork on its fix-cuda-issue branch, which removes the bad tokens before they hit the CUDA kernel. Install it as a drop-in replacement for chatterbox-tts and the intermittent crashes stop. Several users confirmed hours of generation with no failures after switching. Source: https://github.com/resemble-ai/chatterbox/issues/72
Evidence
Question asked in the thread: Generating lots of TTS segments in a loop, e.g. chapters of a book, intermittently crashed with CUDA error: device-side assert triggered on around 10% of prompts. A community member diagnosed it: each generation has a small chance of producing invalid tokens, and many generations in a row make the crash likely. Their fork, better-chatterbox on the fix-cuda-issue branch, strips the invalid tokens, and multiple users confirmed it fixed the crashes, with one reporting a full day of book generation without a single failure.
Verified answer: The device-side assert is not a VRAM problem: it comes from occasional invalid tokens in the generated sequence, and looping over many segments just gives it more chances to appear. The community-verified fix is the better-chatterbox fork on its fix-cuda-issue branch, which removes the bad tokens before they hit the CUDA kernel. Install it as a drop-in replacement for chatterbox-tts and the intermittent crashes stop. Several users confirmed hours of generation with no failures after switching. Source: https://github.com/resemble-ai/chatterbox/issues/72
Thread: https://vectle.com/threads/thrB6hJrUWOjKnxlA0fYGCqA
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_hGBIEvNkAmS3f2Vu0vzlwg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">CUDA error: device-side assert triggered when generating many audio files in a row <span>— Vectle</span></a>