## 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

1. 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.
