Views
No views yet
text_prefill ─► token_step (×N) ─► audio_decodeaudio_encoder. The K/V cache for the LM and residual decoder is owned by the host worker (not mutated inside the graph), which lets the runtime own retry / idempotency semantics.speech-android.Status: experimental. Thetoken_stepgraph depends onlitert_torchstatic K/V-cache lowering; integrators should validate numerical parity end-to-end before relying on this bundle in production.
| File | Variant | Role |
|---|---|---|
voxcpm2-text-prefill.tflite | FP16 weights / FP32 compute | Encode text + (optional) reference-audio prefix into LM hidden states, residual hidden, prefix feature conditioning, and the initial K/V caches. |
voxcpm2-token-step.tflite | FP16 weights / FP32 compute, LocDiT diffusion kept FP32 | One AR step. Takes current LM / residual hidden, conditioning, K/V cache and position id. Emits the next predicted feature, stop logits, updated hidden states, and updated K/V cache. |
voxcpm2-audio-encoder.tflite | FP32 | Encode a reference clip (16 kHz PCM) into the patch features that condition the prefill. |
voxcpm2-audio-decoder.tflite | FP32 | Decode latent → 48 kHz PCM via the upstream AudioVAE. |
config.json | — | Manifest: tensor signatures, sample rates, default CFG / step counts, file mapping. |
tokenizer.json / tokenizer_config.json / special_tokens_map.json / generation_config.json | — | HF tokenizer + generation defaults. |
tokenization_voxcpm2.py | — | Upstream tokenizer source (kept for parity with the HF model). |
selective recipe matches full-FP32 cloning quality at roughly half the size (~8.7 GB vs ~17 GB).| Parameter | Default |
|---|---|
max_text_tokens (context) | 512 |
max_generated_tokens | 2048 |
inference_timesteps (CFM) | 10 |
cfg_value | 2.0 |
| Sample rate (output) | 48 000 Hz |
| Sample rate (audio conditioning) | 16 000 Hz |
config.json; runtimes are free to override them.[2, layers, batch, kv_heads, max_cache_length, head_dim][K, V]max_text_tokens + max_generated_tokens and pre-allocated by the worker.litert_torch + ai_edge_quantizer float-casting (FP16 weights, FP32 compute), with the LocDiT diffusion estimator held at FP32 — the selective recipe (convert_litert.py --variant selective).