Automatic Speech Recognition
Transformers
Safetensors
voxtral_realtime
fp8
quantized
vllm
mistral
compressed-tensors
llm-compressor
Instructions to use ghecko78/Voxtral-Mini-4B-Realtime-2602-FP8-Dynamic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ghecko78/Voxtral-Mini-4B-Realtime-2602-FP8-Dynamic with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="ghecko78/Voxtral-Mini-4B-Realtime-2602-FP8-Dynamic")# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("ghecko78/Voxtral-Mini-4B-Realtime-2602-FP8-Dynamic") model = AutoModelForMultimodalLM.from_pretrained("ghecko78/Voxtral-Mini-4B-Realtime-2602-FP8-Dynamic", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 4,903 Bytes
5a16d84 9f127b4 5a16d84 f0d6678 5a16d84 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 | ---
license: apache-2.0
base_model: mistralai/Voxtral-Mini-4B-Realtime-2602
tags:
- fp8
- quantized
- vllm
- voxtral_realtime
- automatic-speech-recognition
- mistral
- compressed-tensors
- llm-compressor
library_name: transformers
pipeline_tag: automatic-speech-recognition
language:
- en
- fr
- de
- es
- it
- pt
- nl
- pl
- sv
- da
- fi
- nb
- hi
---
# ghecko78/Voxtral-Mini-4B-Realtime-2602-FP8-Dynamic
> **FP8-quantized** version of [`mistralai/Voxtral-Mini-4B-Realtime-2602`](https://huggingface.co/mistralai/Voxtral-Mini-4B-Realtime-2602) for faster inference and reduced memory usage.
## Overview
| Property | Value |
|---|---|
| **Base Model** | [`mistralai/Voxtral-Mini-4B-Realtime-2602`](https://huggingface.co/mistralai/Voxtral-Mini-4B-Realtime-2602) |
| **Quantization** | FP8 Dynamic (`FP8_DYNAMIC`) |
| **Weight Quantization** | Symmetric, static, per-channel → FP8 (E4M3) |
| **Activation Quantization** | Symmetric, dynamic, per-token → FP8 (E4M3) |
| **Format** | `compressed-tensors` (vLLM-native) |
| **Quantized Size** | ~5.43 GB |
| **Tool** | [`llm-compressor`](https://github.com/vllm-project/llm-compressor) |
| **Date** | 2026-04-16 |
## What is this?
This is an FP8-quantized version of Mistral AI's **Voxtral Mini 4B Realtime** — a multilingual, streaming speech-to-text model. The quantization reduces:
- **Memory footprint** by ~50% (from ~8 GB to ~4 GB)
- **Inference latency** through hardware-accelerated FP8 tensor operations
- **Time to first token** with smaller weight transfers
All while maintaining near-identical transcription quality to the original BF16 model.
## Supported Languages
English, French, German, Spanish, Italian, Portuguese, Dutch, Polish, Swedish, Danish, Finnish, Norwegian (Bokmål), Hindi
## Quantization Details
The quantization was performed using [`llm-compressor`](https://github.com/vllm-project/llm-compressor) with the `FP8_DYNAMIC` scheme:
- **Weights**: Quantized with symmetric, static, per-channel scaling to FP8 (E4M3)
- **Activations**: Quantized with symmetric, dynamic, per-token scaling to FP8 (E4M3)
- **Ignored layers**: `lm_head` (kept in original precision to preserve output quality)
- **No calibration data required** — the dynamic activation scheme computes scales at inference time
## How to Use
### With vLLM (Recommended)
This model is designed for deployment with [vLLM](https://github.com/vllm-project/vllm), which natively supports the `compressed-tensors` format.
#### Serve
```bash
vllm serve ghecko78/Voxtral-Mini-4B-Realtime-2602-FP8-Dynamic \
--compilation_config '{"cudagraph_mode": "PIECEWISE"}'
```
#### Docker
```bash
docker run --runtime nvidia --gpus all \
--ipc=host \
-p 8000:8000 \
-v ~/.cache/huggingface:/root/.cache/huggingface \
-e HF_TOKEN=your_token_here \
vllm/vllm-openai:latest \
--model ghecko78/Voxtral-Mini-4B-Realtime-2602-FP8-Dynamic
```
### Realtime Streaming API
The model supports vLLM's Realtime WebSocket API for live audio streaming:
```python
import asyncio
import websockets
import json
import base64
import soundfile as sf
async def stream_audio(audio_path):
uri = "ws://localhost:8000/v1/realtime"
async with websockets.connect(uri) as ws:
# Read and encode audio
audio, sr = sf.read(audio_path)
audio_b64 = base64.b64encode(audio.tobytes()).decode()
# Send audio
await ws.send(json.dumps({
"type": "input_audio_buffer.append",
"audio": audio_b64,
}))
# Receive transcription
async for message in ws:
data = json.loads(message)
if data.get("type") == "response.audio_transcript.delta":
print(data["delta"], end="", flush=True)
asyncio.run(stream_audio("your_audio.wav"))
```
## Hardware Requirements
| Precision | Min VRAM | Recommended GPU |
|---|---|---|
| **FP8 (this model)** | ~4 GB | NVIDIA H100, L40S, Blackwell (GB10+), Ada Lovelace |
| BF16 (original) | ~8 GB | Any CUDA GPU with ≥16 GB |
> **Note**: FP8 hardware acceleration requires NVIDIA GPUs with Compute Capability ≥ 8.9 (Ada Lovelace, Hopper, Blackwell).
## Evaluation
FP8 dynamic quantization typically preserves >99% of the original model's accuracy. For Voxtral Mini 4B Realtime's benchmark results on the original BF16 model, see the [base model card](https://huggingface.co/mistralai/Voxtral-Mini-4B-Realtime-2602).
## License
This model inherits the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0) from the base model.
## Acknowledgments
- [Mistral AI](https://mistral.ai/) for the original Voxtral Mini 4B Realtime model
- [vLLM](https://github.com/vllm-project/vllm) team for `llm-compressor` and FP8 inference support
- [RedHatAI](https://huggingface.co/RedHatAI) for pioneering the FP8 quantization approach for Voxtral models
|