At a glance
| Browser ONNX repo |
onnx-community/ultravox-v0_5-llama-3_2-1b-ONNX
(rev 1ccaedd) · base fixie-ai/ultravox-v0_5-llama-3_2-1b
|
|---|---|
| Task · class | audio-text-to-text · UltravoxProcessor + UltravoxModel (Transformers.js 4.3.2, pinned only in worker.js) |
| Architecture | Whisper-large-v3-turbo encoder (32 layers, 1,280-d, 128 mel bins) → stack-8 SwiGLU projector → Llama-3.2-1B-Instruct (16 layers, 2,048-d, 32/8 GQA heads, 128,256 vocab) |
| Audio → tokens | 16 kHz mono → [1, 128, T] log-mel (hop 160) → round(samples / 320) encoder frames → 1 + ceil(frames / 8) <|audio|> embeddings (11 s JFK clip → [1, 70, 2048]) |
| Weights downloaded |
embed_tokens_quantized (q8) 262.7 MB + audio_encoder_q4f16 396.1 MB +
decoder_model_merged_q4f16 712.3 MB + tokenizer/configs 11.6 MB =
1,382.7 MB; adapters without shader-f16 fall back to q8/q4/q4 = 1,534.8 MB
|
| Execution split | { audio_encoder: "wasm", embed_tokens: "webgpu", decoder_model_merged: "webgpu" } with an explicit dtype per module — embed/encoder/decoder dtype map q8/q4f16/q4f16 |
| License | MIT (ONNX export) · Llama 3.2 community license applies to the base LLM weights upstream |
Run it — ask questions about a clip, no transcript needed
Waveform
128-bin log-mel spectrogram (what the encoder sees)
Initialise Ultravox above to reason over speech locally.
Streamed answer
See inside — the audio the LLM actually "hears"
Each bar is one projected <|audio|> embedding (L2 norm of a 2,048-d row of
audio_features). Healthy runs show almost every frame non-zero; a red bar means a zeroed frame —
the exact failure the WASM audio-encoder split prevents.
Latency breakdown
Exact chat template fed to the processor
Why it matters
- No ASR hop: tone, hesitation and emphasis survive because the LLM never sees a lossy transcript.
- Private voice notes: triage, summarise and extract action items from recordings that never leave the device.
- Cheap follow-ups: encode a clip once (~2–5 s on WASM), then ask more questions at ~200 ms TTFT from cached
audio_features. - One model, many prompts: Q&A, summaries, transcription and structured JSON from the same 1.38 GB download.
Use-case ladder
How the API works
The worker loads UltravoxProcessor + UltravoxModel with a per-module device and
dtype map, wraps the audio_encoder session to cache features per clip, then calls
model.generate() with a TextStreamer.