Ultravox is a multimodal Speech LLM built around a pretrained Llama3.1-8B-Instruct and Whisper-medium backbone.
Modellquelle
Quellenauszug
Ultravox is a multimodal Speech LLM built around a pretrained Llama3.1-8B-Instruct and Whisper-medium backbone.
Quellen
1 QuelleVerifiziert 15. Aug.
Modellartefakte
4 Artefaktemodel-00001-of-00004.safetensors
safetensors · 4,60 GB · SHA-256 eacf2f7d1419…4462 · Hugging Face
Herunterladenmodel-00002-of-00004.safetensors
safetensors · 4,66 GB · SHA-256 ae1d344b1ff4…d795 · Hugging Face
HerunterladenQuellenauszüge
2 Auszügemodel-00003-of-00004.safetensors
safetensors · 4,58 GB · SHA-256 57aaf9505d12…c4b6 · Hugging Face
model-00004-of-00004.safetensors
safetensors · 1,20 GB · SHA-256 17ac391dc1be…86a3 · Hugging Face
Herunterladen--- language: - en - ar - de - es - fr - it - ja - pt - ru license: mit library_name: transformers datasets: - fixie-ai/librispeech_asr - fixie-ai/common_voice_17_0 - fixie-ai/peoples_speech - fnlp/AnyInstruct metrics: - bleu pipeline_tag: audio-text-to-text --- # Model Card for Ultravox Ultravox is a multimodal Speech LLM built around a pretrained [Llama3.1-8B-Instruct](https://huggingface.co/meta-llama/Meta-Llama-3.1-8B) and [Whisper-medium](https://huggingface.co/openai/whisper-medium) backbone. See https://ultravox.ai for the GitHub repo and more information. ## Model Details ### Model Description Ultravox is a multimodal model that can consume both speech and text as input (e.g., a text system prompt and voice user message). The input to the model is given as a text prompt with a special `<|audio|>` pseudo-token, and the model processor will replace this magic token with embeddings derived from the input audio. Using the merged embeddings as input, the model will then generate output text as usual. In a future revision of Ultravox, we plan to expand the token vocabulary to support generation of semantic and acoustic audio tokens, which can then be fed to a vocoder to produce voice output. No preference tuning has been applied to this revision of the model. - **Developed by:** Fixie.ai - **License:** MIT ### Model Sources - **Repository:** https://ultravox.ai - **Demo:** See repo ## Usage Think of the model as an LLM that can also hear and understand speech. As such, it can be used as a voice agent, and also to do speech-to-speech translation, analysis of spoken audio, etc. To use the model, try the following: ```python # pip install transformers peft librosa import transformers import numpy as np import librosa pipe = transformers.pipeline(model='fixie-ai/ultravox-v0_4', trust_remote_code=True) path = "<path-to-input-audio>" # TODO: pass the audio here audio, sr = librosa.load(path, sr=16000) turns = [ { "role": "system", "content": "You are a friendly and helpful character. You love to answer questions for people." }, ] pipe({'audio': audio, 'turns': turns, 'sampling_rate': sr}, max_new_tokens=30) ``` ## Training Details The model uses a pre-trained [Llama3.1-8B-Instruct](https://huggingface.co/meta-llama/Meta-Llama-3.1-8B) backbone as well as the encoder part of [Whisper-medium](https://huggingface.co/openai/whisper-medium)....
Source context: 1761 downloads · 51 likes · Pipeline audio-text-to-text · Library transformers · Repo fixie-ai/ultravox-v0_4