Text-to-Speech
MLX
Safetensors
Chinese
English
firered_audio
apple-silicon
audio
speech-recognition
voice-cloning
speech-editing
voice-design
multimodal
Instructions to use vanch007/FireRedAudio-MLX-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use vanch007/FireRedAudio-MLX-8bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download vanch007/FireRedAudio-MLX-8bit --local-dir FireRedAudio-MLX-8bit
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
|
Download README.md from vanch007/FireRedAudio-MLX-8bit: direct link, hf CLI and curl.
- Browser
- Download file 2.69 kB
-
https://huggingface.co/vanch007/FireRedAudio-MLX-8bit/resolve/main/README.md
- Command line
-
hf download hf://vanch007/FireRedAudio-MLX-8bit/README.md
-
curl -L -o README.md https://huggingface.co/vanch007/FireRedAudio-MLX-8bit/resolve/main/README.md
2.69 kB
metadata
language:
- zh
- en
license: apache-2.0
tags:
- mlx
- apple-silicon
- audio
- speech-recognition
- text-to-speech
- voice-cloning
- speech-editing
- voice-design
- multimodal
pipeline_tag: text-to-speech
FireRedAudio-MLX-8bit
Apple Silicon MLX 8-bit quantized checkpoint for FireRedAudio (9B multimodal audio language model).
- 🐙 GitHub Repository & WebUI Studio: vanch007/mlx-FireRedAudio
- ⚡ Hardware Acceleration: Metal GPU native unified memory, fused SDPA attention, and Gated Delta Metal kernel.
- 🚀 Real-Time Factor (RTF):
- ASR (Speech Recognition): RTF 0.1396 (~7.2x real-time speedup)
- TTS (Voice Cloning): RTF 0.7529 (Real-time speech generation on Apple M3 Max)
- 💾 Memory Footprint: Only 13.54 GB active Metal memory (runs smoothly on 16GB / 24GB+ Mac devices).
Model Architecture & Quantization Details
- Backbone LLM: 9B Qwen3.5 language model with selective 8-bit affine quantization (group_size=64).
- Continuous Audio Autoencoder / Vocoder: RedAE VAE and Native ISTFT vocoder preserved in full FP32/BF16 precision for lossless audio phase fidelity.
- Audio Understanding Encoder: Whisper / Conv1D acoustic encoder preserved in high precision.
- Audio Generation Head: 11-layer Flow Matching DiT.
Quick Start
1. Installation
git clone https://github.com/vanch007/mlx-FireRedAudio.git
cd mlx-FireRedAudio
uv venv .venv
source .venv/bin/activate
uv pip install -e .
2. Download Model
hf download vanch007/FireRedAudio-MLX-8bit --local-dir models/FireRedAudio-8bit
3. Run Inference (CLI & Python)
from fireredaudio_mlx import FireRedAudioInference
engine = FireRedAudioInference(model_path="models/FireRedAudio-8bit")
# ASR Speech Transcription (RTF ~ 0.14)
res = engine.understand("assets/examples/asr_zh_fleurs.wav", task="asr")
print("Transcript:", res.answer)
# Zero-shot TTS Voice Cloning (RTF ~ 0.75)
audio_res = engine.tts(
prompt_text="收到你的来信,我很高兴。",
prompt_audio="assets/examples/tts_zh_prompt.wav",
target_text="你好,欢迎体验 FireRedAudio 8-bit MLX 实时语音生成!",
)
4. Launch WebUI Studio
python run_webui.py --model models/FireRedAudio-8bit
Open your browser at http://127.0.0.1:7860.
Citation & References
- FireRedAudio Official: FireRedTeam/FireRedAudio
- Apple MLX: MLX Framework
- MLX Port & WebUI Studio: vanch007/mlx-FireRedAudio