All models

Llasa-3B

A Llama-based language model that turns text into speech by predicting codec speech tokens.

Audio and speech · 1,548 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (6 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Family
Llasa
Parameters
3.4B
Operations
1,548
Framework
PyTorch
Recurrent
No
Published
2025
Cited by
207 (as of 29 November 2026)
Authors
Zhen Ye, Xinfa Zhu, Chi-Min Chan and others
License
CC-BY-NC-4.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m1601
Graph hash
71556b03bdba48410a8ea39942b20baf7caf4d9903124861947bc224c9c39432
Skeleton hash
98b370d87a1e51dce711bc94ce96ecee79687bad0ceccb3a999ed4701f733f0a
Architecture hash
c91fa036de46196cd44fcaa99d94380e1df7f6c1c14fe6430a3753d3682d48ba
Diagram SHA-256
e6fd474b8d1fb286a47915cff3afe6672cf4522774f9e91d1644828ff38c3822
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

Llasa-3B uses meta-llama/Llama-3.2-3B-Instruct as its base model.

About this model's family

Llasa is a text-to-speech system that extends the text-based LLaMA language model with speech tokens from the XCodec2 codebook, which contains 65,536 tokens. The paper observes that TTS systems built on LLMs were often multi-stage, with separate models such as a diffusion model after the LLM. Llasa instead uses a single-layer vector quantizer codec and a single Transformer, so that it lines up with standard LLMs such as Llama.

The Transformer is initialized from an existing LLM and keeps that model's tokenizer for the text part. Speech goes through a separate speech tokenizer, which encodes waveforms into speech tokens and can decode them back to audio. That codec replaces residual vector quantization with a single vector quantizer, so the tokens form one left-to-right sequence. XCodec2 produces 50 tokens per second. The model learns to predict each speech token from the text tokens and the speech tokens generated before it.

Llasa was trained on 250,000 hours of Chinese-English speech data. The paper builds three sizes, on Llama 3.2 with 1B and 3B parameters and on Llama 3.1 with 8B parameters. It reports that scaling train-time compute consistently improves the naturalness of the synthesized speech. At inference time it uses speech understanding models as verifiers during the search. Speech can be generated from input text alone or with a given speech prompt.

Key idea. Llasa aligns speech synthesis with standard LLMs by pairing a single-layer vector quantizer codec with a single Transformer initialized from Llama.

  • llasa
  • llasa-3b
  • llasa-1b
  • llasa-8b
  • text-to-speech
  • tts
  • speech synthesis
  • speech tokens
  • speech language model
  • speech prompt

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{ye2025llasascalingtraintimeinferencetime,
      title={Llasa: Scaling Train-Time and Inference-Time Compute for Llama-based Speech Synthesis}, 
      author={Zhen Ye and Xinfa Zhu and Chi-Min Chan and Xinsheng Wang and Xu Tan and Jiahe Lei and Yi Peng and Haohe Liu and Yizhu Jin and Zheqi Dai and Hongzhan Lin and Jianyi Chen and Xingjian Du and Liumeng Xue and Yunlin Chen and Zhifei Li and Lei Xie and Qiuqiang Kong and Yike Guo and Wei Xue},
      year={2025},
      eprint={2502.04128},
      archivePrefix={arXiv},
      primaryClass={eess.AS},
      url={https://arxiv.org/abs/2502.04128}, 
}