Template Readme (#1)
Browse files- Template Readme (e9f9439a09dab79e0b220f3a5c0a446c3d9c987a)
- Update README.md (c81e1296e54b7646f62e611ca8eed20c04f132b8)
- Update README.md (01bb64a823e9358bfa9b56c7fd12c33ad0b39277)
- Update README.md (7e5494c22c1099c54fd49908ecd1c9867d520d44)
- Update README.md (44bc30e7c6b52a105bb5d4ea4ae9f5bbb827910c)
- Update README.md (35ac9a507ed0f72ee4caf77c5e48ce0d59404a18)
Co-authored-by: pandora <[email protected]>
README.md
CHANGED
|
@@ -1,11 +1,139 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
| 4 |
|
| 5 |
-
|
| 6 |
|
| 7 |
-
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
```
|
| 11 |
VLLM_USE_PRECOMPILED=1 pip install --editable .\[audio\]
|
|
|
|
| 1 |
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
- fr
|
| 5 |
+
- de
|
| 6 |
+
- es
|
| 7 |
+
- it
|
| 8 |
+
- pt
|
| 9 |
+
- nl
|
| 10 |
+
- hi
|
| 11 |
license: apache-2.0
|
| 12 |
+
library_name: vllm
|
| 13 |
+
inference: false
|
| 14 |
+
base_model:
|
| 15 |
+
- mistralai/Mistral-Small-24B-Base-2501
|
| 16 |
+
extra_gated_description: >-
|
| 17 |
+
If you want to learn more about how we process your personal data, please read
|
| 18 |
+
our <a href="https://mistral.ai/terms/">Privacy Policy</a>.
|
| 19 |
+
pipeline_tag: audio-text-to-text
|
| 20 |
---
|
| 21 |
|
| 22 |
+
# Voxtral Small 24B-2507
|
| 23 |
|
| 24 |
+
Voxtral Small is an enhancement of [Mistral Small 3](https://huggingface.co/mistralai/Mistral-Small-24B-Base-2501), incorporating state-of-the-art audio input capabilities while retaining best-in-class text performance. It excels at speech transcription and understanding.
|
| 25 |
|
| 26 |
+
Learn more about Voxtral in our blog post [here](https://mistral.ai/news/voxtral-2507).
|
| 27 |
+
|
| 28 |
+
Both Voxtral models go beyond transcription with capabilities that include:
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
## Key Features
|
| 32 |
+
|
| 33 |
+
Voxtral builds upon Mistral Small 3 with powerful audio understanding capabilities.
|
| 34 |
+
- **Long-form context**: with a 32k token context length, Voxtral handles audios up to 30 minutes for transcription, or 40 minutes for understanding
|
| 35 |
+
- **Built-in Q&A and summarization**: Supports asking questions directly about the audio content or generating structured summaries, without the need to chain separate ASR and language models
|
| 36 |
+
- **Natively multilingual**: Automatic language detection and state-of-the-art performance in the world’s most widely used languages (English, Spanish, French, Portuguese, Hindi, German, Dutch, Italian, to name a few), helping teams serve global audiences with a single system
|
| 37 |
+
- **Function-calling straight from voice**: Enables direct triggering of backend functions, workflows, or API calls based on spoken user intents, turning voice interactions into actionable system commands without intermediate parsing steps.
|
| 38 |
+
- **Highly capable at text**: Retains the text understanding capabilities of its language model backbone, Mistral Small 3
|
| 39 |
+
|
| 40 |
+
## Benchmark Results
|
| 41 |
+
|
| 42 |
+
### Audio
|
| 43 |
+
|
| 44 |
+

|
| 45 |
+
|
| 46 |
+

|
| 47 |
+
|
| 48 |
+

|
| 49 |
+
|
| 50 |
+

|
| 51 |
+
|
| 52 |
+
### Text
|
| 53 |
+
|
| 54 |
+
## Usage
|
| 55 |
+
|
| 56 |
+
The model can be used with the following frameworks;
|
| 57 |
+
- [`vllm (recommended)`](https://github.com/vllm-project/vllm): See [here](#vllm-recommended)
|
| 58 |
+
|
| 59 |
+
**Note 1**: We recommend using a relatively low temperature, such as `temperature=0.15`.
|
| 60 |
+
|
| 61 |
+
**Note 2**: Make sure to add a system prompt to the model to best tailor it to your needs.
|
| 62 |
+
|
| 63 |
+
### vLLM (recommended)
|
| 64 |
+
|
| 65 |
+
We recommend using this model with [vLLM](https://github.com/vllm-project/vllm).
|
| 66 |
+
|
| 67 |
+
#### Installation
|
| 68 |
+
|
| 69 |
+
Make sure to install [`vLLM >= 0.#.#`](https://github.com/vllm-project/vllm/releases/tag/v0.#.#):
|
| 70 |
+
|
| 71 |
+
```
|
| 72 |
+
pip install vllm --upgrade
|
| 73 |
+
```
|
| 74 |
+
|
| 75 |
+
Doing so should automatically install [`mistral_common >= 1.#.#`](https://github.com/mistralai/mistral-common/releases/tag/v1.#.#).
|
| 76 |
+
|
| 77 |
+
To check:
|
| 78 |
+
```
|
| 79 |
+
python -c "import mistral_common; print(mistral_common.__version__)"
|
| 80 |
+
```
|
| 81 |
+
|
| 82 |
+
You can also make use of a ready-to-go [docker image](https://github.com/vllm-project/vllm/blob/main/Dockerfile) or on the [docker hub](https://hub.docker.com/layers/vllm/vllm-openai/latest/images/sha256-de9032a92ffea7b5c007dad80b38fd44aac11eddc31c435f8e52f3b7404bbf39).
|
| 83 |
+
|
| 84 |
+
#### Serve
|
| 85 |
+
|
| 86 |
+
We recommend that you use Voxtral-Small-24B-2507 in a server/client setting.
|
| 87 |
+
|
| 88 |
+
1. Spin up a server:
|
| 89 |
+
|
| 90 |
+
```
|
| 91 |
+
vllm serve mistralai/Voxtral-Small-24B-2507 --tokenizer_mode mistral --config_format mistral --load_format mistral --tool-call-parser mistral --enable-auto-tool-choice --tensor-parallel-size 2
|
| 92 |
+
```
|
| 93 |
+
|
| 94 |
+
**Note:** Running Voxtral-Small-24B-2507 on GPU requires ~55 GB of GPU RAM in bf16 or fp16.
|
| 95 |
+
|
| 96 |
+
|
| 97 |
+
2. To ping the client you can use a simple Python snippet. See the following examples.
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
### Audio Instruct
|
| 101 |
+
|
| 102 |
+
Leverage the audio capabilities of Voxtral-Small-24B-2507 to chat.
|
| 103 |
+
|
| 104 |
+
<details>
|
| 105 |
+
<summary>Python snippet</summary>
|
| 106 |
+
|
| 107 |
+
```py
|
| 108 |
+
TODO
|
| 109 |
+
```
|
| 110 |
+
</details>
|
| 111 |
+
|
| 112 |
+
#### Transcription
|
| 113 |
+
|
| 114 |
+
Voxtral-Small-24B-2507 has powerfull transcription capabilities!
|
| 115 |
+
|
| 116 |
+
<details>
|
| 117 |
+
<summary>Python snippet</summary>
|
| 118 |
+
|
| 119 |
+
```python
|
| 120 |
+
TODO
|
| 121 |
+
```
|
| 122 |
+
</details>
|
| 123 |
+
|
| 124 |
+
#### Function calling
|
| 125 |
+
|
| 126 |
+
Voxtral-Small-24B-2507 is excellent at function / tool calling tasks via vLLM. *E.g.:*
|
| 127 |
+
|
| 128 |
+
<details>
|
| 129 |
+
<summary>Python snippet</summary>
|
| 130 |
+
|
| 131 |
+
```py
|
| 132 |
+
```
|
| 133 |
+
|
| 134 |
+
</details>
|
| 135 |
+
|
| 136 |
+
# ORIGINAL
|
| 137 |
|
| 138 |
```
|
| 139 |
VLLM_USE_PRECOMPILED=1 pip install --editable .\[audio\]
|