All models

Llasa

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

Audio and speech · 900 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 (25 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
1.4B
Operations
900
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
m17962
Graph hash
95d7ff26145d1d69540c6ea0a8b7a0cc8e666ff2857d1b79d040ecba3ef2826c
Skeleton hash
a7fa8d8b8898743315c4b98d21699c3faff97965c2acd12e5613a91c610b0571
Architecture hash
bc90310776e3c0e841b7f51f038ab2056bfbbd924896890fab2c7d6e4d1b0df5
Diagram SHA-256
f76de56f27852da59cc48261dd7257a2db7871a0f2d994a9ea5ff52159faade9
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

This model has the Llasa-1B layout, whose base model is meta-llama/Llama-3.2-1B-Instruct.

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}, 
}