π¦π§ LLaMA-Omni 2: LLM-based Real-time Spoken Chatbot with Autoregressive Streaming Speech Synthesis
2
3 commits
4 linked in READMEs
updated May 19, 2025
Authors: Qingkai Fang, Yan Zhou, Shoutao Guo, Shaolei Zhang, Yang Feng*
LLaMA-Omni 2 is a series of speech-language models built on the Qwen2.5-0.5B/1.5B/3B/7B/14B/32B-Instruct models. Similar to LLaMA-Omni, it can generate both text and speech responses simultaneously, enabling high-quality and low-latency speech interaction. With the newly introduced streaming autoregressive speech decoder, LLaMA-Omni 2 achieves higher speech quality compared to LLaMA-Omni.

git clone https://github.com/ictnlp/LLaMA-Omni2
cd LLaMA-Omni2
conda create -n llama-omni2 python=3.10
conda activate llama-omni2
pip install -e .
Whisper-large-v3 model.import whisper
model = whisper.load_model("large-v3", download_root="models/speech_encoder/")
CosyVoice 2.huggingface-cli download --resume-download ICTNLP/cosy2_decoder --local-dir models/cosy2_decoder
[!Tip] If youβre experiencing unstable connections to Hugging Face from within China, you can try setting the following in your command line:
export HF_ENDPOINT=https://hf-mirror.com
LLaMA-Omni2-0.5B/1.5B/3B/7B/14B support English only, while LLaMA-Omni2-0.5B/1.5B/3B/7B/14B/32B-Bilingual support both English and Chinese.model_name=LLaMA-Omni2-7B-Bilingual
huggingface-cli download --resume-download ICTNLP/$model_name --local-dir models/$model_name
| LLaMA-Omni2 | LLaMA-Omni2-Bilingual |
|---|---|
| π€Β LLaMA-Omni2-0.5B | π€ LLaMA-Omni2-0.5B-Bilingual |
| π€Β LLaMA-Omni2-1.5B | π€ LLaMA-Omni2-1.5B-Bilingual |
| π€Β LLaMA-Omni2-3B | π€ LLaMA-Omni2-3B-Bilingual |
| π€Β LLaMA-Omni2-7B | π€ LLaMA-Omni2-7B-Bilingual |
| π€Β LLaMA-Omni2-14B | π€ LLaMA-Omni2-14B-Bilingual |
| - | π€ LLaMA-Omni2-32B-Bilingual |
Launch a controller.
python -m llama_omni2.serve.controller --host 0.0.0.0 --port 10000
Launch a gradio web server.
python -m llama_omni2.serve.gradio_web_server --controller http://localhost:10000 --port 8000 --vocoder-dir models/cosy2_decoder
Launch a model worker.
python -m llama_omni2.serve.model_worker --host 0.0.0.0 --controller http://localhost:10000 --port 40000 --worker http://localhost:40000 --model-path models/$model_name --model-name $model_name
Visit http://localhost:8000/ and interact with LLaMA-Omni2!
output_dir=examples/$model_name
mkdir -p $output_dir
python llama_omni2/inference/run_llama_omni2.py \
--model_path models/$model_name \
--question_file examples/questions.json \
--answer_file $output_dir/answers.jsonl \
--temperature 0 \
--s2s
python llama_omni2/inference/run_cosy2_decoder.py \
--input-path $output_dir/answers.jsonl \
--output-dir $output_dir/wav \
--lang en
Our code is released under the Apache-2.0 License. Our model is intended for academic research purposes only and may NOT be used for commercial purposes.
You are free to use, modify, and distribute this model in academic settings, provided that the following conditions are met:
For any commercial use inquiries or to obtain a commercial license, please contact fengyang@ict.ac.cn.
If you have any questions, please feel free to submit an issue or contact fangqingkai21b@ict.ac.cn.
If our work is useful for you, please cite as:
@inproceedings{
fang2025llamaomni2,
title={{LL}a{MA}-{O}mni 2: LLM-based Real-time Spoken Chatbot with Autoregressive Streaming Speech Synthesis},
author={Fang, Qingkai and Zhou, Yan and Guo, Shoutao and Zhang, Shaolei and Feng, Yang},
booktitle = {Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics},
year={2025}
}
@inproceedings{
fang2025llamaomni,
title={{LL}a{MA}-{O}mni: Seamless Speech Interaction with Large Language Models},
author={Qingkai Fang and Shoutao Guo and Yan Zhou and Zhengrui Ma and Shaolei Zhang and Yang Feng},
booktitle={The Thirteenth International Conference on Learning Representations},
year={2025},
url={https://openreview.net/forum?id=PYmrUQmMEw}
}
3 commits
π¦π§ LLaMA-Omni 2: LLM-based Real-time Spoken Chatbot with Autoregressive Streaming Speech Synthesis
2
3 commits
4 linked in READMEs
updated May 19, 2025
Authors: Qingkai Fang, Yan Zhou, Shoutao Guo, Shaolei Zhang, Yang Feng*
LLaMA-Omni 2 is a series of speech-language models built on the Qwen2.5-0.5B/1.5B/3B/7B/14B/32B-Instruct models. Similar to LLaMA-Omni, it can generate both text and speech responses simultaneously, enabling high-quality and low-latency speech interaction. With the newly introduced streaming autoregressive speech decoder, LLaMA-Omni 2 achieves higher speech quality compared to LLaMA-Omni.

git clone https://github.com/ictnlp/LLaMA-Omni2
cd LLaMA-Omni2
conda create -n llama-omni2 python=3.10
conda activate llama-omni2
pip install -e .
Whisper-large-v3 model.import whisper
model = whisper.load_model("large-v3", download_root="models/speech_encoder/")
CosyVoice 2.huggingface-cli download --resume-download ICTNLP/cosy2_decoder --local-dir models/cosy2_decoder
[!Tip] If youβre experiencing unstable connections to Hugging Face from within China, you can try setting the following in your command line:
export HF_ENDPOINT=https://hf-mirror.com
LLaMA-Omni2-0.5B/1.5B/3B/7B/14B support English only, while LLaMA-Omni2-0.5B/1.5B/3B/7B/14B/32B-Bilingual support both English and Chinese.model_name=LLaMA-Omni2-7B-Bilingual
huggingface-cli download --resume-download ICTNLP/$model_name --local-dir models/$model_name
| LLaMA-Omni2 | LLaMA-Omni2-Bilingual |
|---|---|
| π€Β LLaMA-Omni2-0.5B | π€ LLaMA-Omni2-0.5B-Bilingual |
| π€Β LLaMA-Omni2-1.5B | π€ LLaMA-Omni2-1.5B-Bilingual |
| π€Β LLaMA-Omni2-3B | π€ LLaMA-Omni2-3B-Bilingual |
| π€Β LLaMA-Omni2-7B | π€ LLaMA-Omni2-7B-Bilingual |
| π€Β LLaMA-Omni2-14B | π€ LLaMA-Omni2-14B-Bilingual |
| - | π€ LLaMA-Omni2-32B-Bilingual |
Launch a controller.
python -m llama_omni2.serve.controller --host 0.0.0.0 --port 10000
Launch a gradio web server.
python -m llama_omni2.serve.gradio_web_server --controller http://localhost:10000 --port 8000 --vocoder-dir models/cosy2_decoder
Launch a model worker.
python -m llama_omni2.serve.model_worker --host 0.0.0.0 --controller http://localhost:10000 --port 40000 --worker http://localhost:40000 --model-path models/$model_name --model-name $model_name
Visit http://localhost:8000/ and interact with LLaMA-Omni2!
output_dir=examples/$model_name
mkdir -p $output_dir
python llama_omni2/inference/run_llama_omni2.py \
--model_path models/$model_name \
--question_file examples/questions.json \
--answer_file $output_dir/answers.jsonl \
--temperature 0 \
--s2s
python llama_omni2/inference/run_cosy2_decoder.py \
--input-path $output_dir/answers.jsonl \
--output-dir $output_dir/wav \
--lang en
Our code is released under the Apache-2.0 License. Our model is intended for academic research purposes only and may NOT be used for commercial purposes.
You are free to use, modify, and distribute this model in academic settings, provided that the following conditions are met:
For any commercial use inquiries or to obtain a commercial license, please contact fengyang@ict.ac.cn.
If you have any questions, please feel free to submit an issue or contact fangqingkai21b@ict.ac.cn.
If our work is useful for you, please cite as:
@inproceedings{
fang2025llamaomni2,
title={{LL}a{MA}-{O}mni 2: LLM-based Real-time Spoken Chatbot with Autoregressive Streaming Speech Synthesis},
author={Fang, Qingkai and Zhou, Yan and Guo, Shoutao and Zhang, Shaolei and Feng, Yang},
booktitle = {Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics},
year={2025}
}
@inproceedings{
fang2025llamaomni,
title={{LL}a{MA}-{O}mni: Seamless Speech Interaction with Large Language Models},
author={Qingkai Fang and Shoutao Guo and Yan Zhou and Zhengrui Ma and Shaolei Zhang and Yang Feng},
booktitle={The Thirteenth International Conference on Learning Representations},
year={2025},
url={https://openreview.net/forum?id=PYmrUQmMEw}
}
3 commits