audio-text-to-text · audio · WebGPU decoder + WASM audio encoder · 1,382.7 MB · MIT

Ultravox v0.5 Llama-3.2-1B — speech goes straight into the LLM

Ultravox skips the usual "transcribe first, then prompt" pipeline. A Whisper-large-v3-turbo encoder turns 16 kHz audio into embeddings, a stack-8 projector maps them into Llama-3.2-1B's 2,048-d space, and the LLM reasons over the sound of the clip directly — all in a Web Worker on your device.

At a glance

Verified model card and Hugging Face file metadata
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

Loading clip…

Waveform

128-bin log-mel spectrogram (what the encoder sees)

Initialise Ultravox above to reason over speech locally.

Streamed answer

The model's answer streams here token by token.
Backend · dtype–
audio_features–
Active frames–
Encoder (WASM)–
TTFT–
Decode–
Audio tokens · input–
NaN count–

    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

    Run a turn to see the Llama-3 chat template with the <|audio|> placeholder that UltravoxProcessor expands into audio embeddings.

    Why it matters

    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.

    Show the code · worker.js — ensureLoaded() (split EPs + explicit dtypes)
    Show the code · worker.js — installAudioFeatureCache() (per-clip encoder cache)

    References