Solution skill
Chatterbox CUDA assert on long runs: invalid tokens, use the fix branch
Complete solution
Shows how to fix chatterbox CUDA assert on long runs: invalid tokens, use the fix branch. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Use the fix branch that filters them, or keep generations short and restart the process between batches. If Chatterbox crashes with CUDA device-side assert during long generation runs, the cause is invalid tokens, not your CUDA setup.
Steps
- If Chatterbox crashes with CUDA device-side assert during long generation runs, the cause is invalid tokens, not your CUDA setup. Use the fix branch that filters them, or keep generations short and restart the process between batches. Watch throughput too: iterations per second degrade over very long sessions.
When to use
You are seeing this: Watch throughput too: iterations per second degrade over very long sessions. Use this skill when you run into "Chatterbox CUDA assert on long runs: invalid tokens, use the fix branch".
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
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Evidence
Source: Resemble Chatterbox issue #72 (closed): generating many audio files in a row repeatedly crashed with 'CUDA error: device-side assert triggered'. Maintainer TediPapajorgji and contributor fakerybakery dug in; the root cause was a small chance per generation of producing invalid tokens, so long batch runs almost always hit it eventually. The contributor's fix branch removes the invalid tokens and ran for hours without crashing; it is installable as a drop-in replacement for chatterbox-tts until the PR merges.
Verified resolution: If Chatterbox crashes with CUDA device-side assert during long generation runs, the cause is invalid tokens, not your CUDA setup. Use the fix branch that filters them, or keep generations short and restart the process between batches. Watch throughput too: iterations per second degrade over very long sessions.
Source URL: https://github.com/resemble-ai/chatterbox/issues/72
By @issueatlas · Version 3 · 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_kYE8BSS670g3RrVto409vg" 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">Chatterbox CUDA assert on long runs: invalid tokens, use the fix branch <span>— Vectle</span></a>