Downloads · 30 days
8
3% of all-time downloads
meetween/Llama-speechlmm-1.0-s
Llama-speechlmm-1.0-s is a feature extraction model from meetween. Use it when you need embeddings to search or compare text. It is set up for transformers.
The SpeechLMM 1.0 collection of multimodal and multilingual large language models is a collection of instruction-tuned generative models in 4 different sizes: S (2B), M (4B), L (9B) and XL (71B), supporting text, audi…
Downloads · 30 days
8
3% of all-time downloads
All-time downloads
249
Public
Parameters
1.5B
3.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors3.1 GB · 99%
How the weights are stored.
BF161.5B · 100%
From the Hugging Face model README
The SpeechLMM 1.0 collection of multimodal and multilingual large language models is a collection of instruction-tuned generative models in 4 different sizes: S (2B), M (4B), L (9B) and XL (71B), supporting text, audio and video as input and only text as output. The SpeechLMM 1.0 models are optimized for various X-to-text generation tasks, namely:
Model Developer: Meetween consortium
Supported Languages: English, French, Italian, German, and Spanish are officially supported (for a subset of the supported tasks). The Llama 3.X backbone and the SeamlessM4T v2 audio encoder have been trained on a broader collection of languages than these 5 supported languages, so the model might exhibit good performance on other languages too.
Model Release Date: Feb 28, 2025
License: see LICENSE
SpeechLMM 1.0 an auto-regressive multimodal language model based on a Llama 3.X backbone (X varies with the model size), a speech-specific stack consisting of a pre-trained audio encoder (SeamlessM4T v2) and an audio adapter, and a video-specific stack consisting of a pre-trained video encoder (Auto-AVSR) and a video adapter.
<!-- TODO: add the image of the model architecture here -->| Model | Params | Input modalities | Output modalities | Context Length |
|---|---|---|---|---|
| SpeechLMM 1.0 S | 2B (2.17B) | Multilingual text and audio, English video | Multilingual Text | 128k |
| SpeechLMM 1.0 M | 4B (4.15B) | Multilingual text and audio, English video | Multilingual Text | 128k |
| SpeechLMM 1.0 L | 9B (8.98B) | Multilingual text and audio, English video | Multilingual Text | 128k |
| SpeechLMM 1.0 XL (beta) | 71B (71.5B) | Multilingual text and audio, English video | Multilingual Text | 128k |
For all the 4 sizes of SpeechLMM 1.0, the audio encoder is SeamlessM4T v2 Large (facebook/seamless-m4t-v2-large) and the video encoder is Auto-AVSR (vsr_trlrs3vox2_base).
For all the 4 sizes of SpeechLMM 1.0, the audio and video adapters are:
| Modality | Architecture | Number of layers | Compression factor |
|---|---|---|---|
| Audio | MLP | 4 | 1 |
| Video | Window-level Q-former <br> (4 queries) | 4 | 4 |
| Model | Backbone |
|---|---|
| SpeechLMM 1.0 S | Llama 3.2 1B Instruct |
| SpeechLMM 1.0 M | Llama 3.2 3B Instruct |
| SpeechLMM 1.0 L | Llama 3.1 8B Instruct |
| SpeechLMM 1.0 XL (beta) | Llama 3.3 70B Instruct |
For a comprehensive training journal including detailed metrics, hyperparameters, and training curves for all SpeechLMM 1.0 variants, see our W&B Training Report.
Currently, this model can only be used via our speechlmm codebase. Refer to the instructions there for more details.
Important: before you can use this model, you must download the SeamlessM4T v2 speech encoder and the Auto-AVSR video encoder by following the instructions provided in the README of the above repo. Please note that by doing so, you agree with their respective license terms.
| TASK | Task name | Dataset | Language | License |
|---|---|---|---|---|
| ASR | Automatic Speech Recognition | LibriHeavy | en | CC-BY-4.0 |
| LibriTTS | en | CC BY 4.0 | ||
| AMI | en | CC-BY-4.0 | ||
| ICSI | en | CC-BY-4.0 | ||
| LIPREAD | Visual Speech Recognition | LRS2-BBC | en | Custom |
| SSUM | Speech Summarization | AMI | en | CC-BY-4.0 |
| ICSI | en | CC-BY-4.0 | ||
| SQA | Spoken Question Answering | Spoken SQUAD | en | CC-BY-SA-4.0 |
| SLU | Spoken Language Understanding | SLURP | en | CC BY 4.0 (text) <br> CC BY-NC 4.0 (audio) |
| TASK | Task name | Dataset | Language | License |
|---|---|---|---|---|
| ASR | Automatic Speech Recognition | CoVoST2 | en, fr, it, de, es | CC0 |
| CommonVoice | en, fr, it, de, es | Apache-2.0 | ||
| ST | Speech-to-text Translation | CoVoST2 | en → de, {fr, it, de, es} → en | CC0 |
| EuroParl-ST | {en, fr, it, de, es} → {en, fr, it, de, es} | CC-BY-NC-4.0 | ||
| MT | Machine Translation | EuroParl-ST | {en, fr, it, de, es} → {en, fr, it, de, es} | CC-BY-NC-4.0 |
| TextInstruct | Text Instruction Following | Everything_Instruct_Multilingual | en, fr, it, de, es, ru, zh, ko, ur, la, ar,<br>hi, ja, nl, pt | Apache-2.0 |
| SLU | Spoken Language Understanding | Speech-Massive | fr, de | CC-BY-NC-SA-4.0 |
The following results specifically refer to the S model.
| Dataset | Language | WER ⬇ |
|---|---|---|
| MUSTC | en | 19.2 |
| MTEDX | it | 29.43 |
| MTEDX | fr | 28.97 |
| ACL6060 | en | 19.4 |
| MTEDX | es | 29.71 |
| Dataset | Language | Accuracy ⬆ |
|---|---|---|
| Spoken SQuAD | en | 65.93 |
NOTE: Accuracy is measured with an LLM as a judge (Llama3-70b-8192, via the Groq API) using the following prompts:
System prompt
You are a helpful assistant that evaluates answers to questions given a certain context. You will be given inputs of the form:<br> Context: <CONTEXT><br> Question: <QUESTION><br> Answer: <ANSWER><br> Your task is to determine if the given answer is correct or not, assuming the correct answer is contained in the context. Your response should be formatted as a JSON string having the following structure: {"correct_answer": <true/false>, "rationale": <RATIONALE>} where 'rationale' must be a string explaining why the answer is correct or incorrect. If you need to include double quote characters (") in the 'rationale' string, you must escape them with a backslash (\). For example, if you want to include the string "Hello, World!", you should write it as \"Hello, World!\".
User prompt
Context: <CONTEXT><br> Question: <QUESTION><br> Answer: <ANSWER>
| Dataset | Source Language | Target Language | Bleu ⬆ | CHRF ⬆ |
|---|---|---|---|---|
| FLORES | en | de | 21.11 | 51.77 |
| FLORES | en | es | 18.61 | 48.02 |
| FLORES | en | it | 16.63 | 47.24 |
| ACL6060 | en | fr | 34.86 | 60.48 |
| FLORES | en | fr | 24 | 55.36 |
| Dataset | Language | R-1_F1 | R-2_F1 | R-L_F1 |
|---|---|---|---|---|
| ICSI | en | 22.9 | 2.7 | 20.4 |
| Dataset | Source Language | Target Language | Bleu ⬆ | CHRF ⬆ |
|---|---|---|---|---|
| ACL6060 | en | fr | 28.65 | 56.2 |
| ACL6060 | en | de | 19.12 | 49.06 |
| MUSTC | en | de | 16.98 | 45.48 |
| MUSTC | en | it | 14.68 | 43.03 |
| MUSTC | en | fr | 19.09 | 48.09 |
| MUSTC | en | es | 20.42 | 49.07 |