LiquidAI-LFM3-Audio-2B-MLX-4bit-uzu
Converted and optimized weights of LiquidAI/LFM3-Audio-2B (4-bit MLX base) for the uzu Apple Silicon Metal inference engine.
Supports end-to-end Text Chat, ASR (Speech-to-Text), TTS (Text-to-Speech), and Audio Chat with Metal acceleration across the backbone decoder, MaskGIT depth decoder, and LiquidCodec 24 kHz waveform vocoder.
Bundle Contents
| File / Directory | Size | Description |
|---|---|---|
model.safetensors | 1.2 GB | Backbone language model weights (4-bit + lossless U8 repacked 6-bit tensors) |
audio.safetensors | 482 MB | Audio encoder, conv downsampler, projector, codebook embedding, and MaskGIT depth decoder weights |
audio_tokenizer/ | 140 MB | LiquidCodec neural audio decoder weights and config (24 kHz waveform synthesis) |
config.json | 71 KB | uzu backbone decoder configuration |
audio_config.json | 36 KB | Audio encoder, depth decoder, MaskGIT schedule, and sampling configuration |
tokenizer.json | 17 MB | Hugging Face tokenizer |
encoding.json | 35 B | Chat template encoding configuration |
Optimizations
- Lossless
U8Repacking: 18 6-bit quantized tensors from the MLX checkpoint are losslessly unpacked and repacked intoU8(reducingmodel.safetensorsfrom1.6 GBto1.2 GBvs BF16 fallback). - Metal Depth Decoder & Vocoder: MaskGIT depth decoding and
LiquidCodecwaveform synthesis run on Metal GPU.
Usage with uzu
1. CLI (cli audio)
# ASR (Speech-to-Text)
cargo run -p cli -- audio \
--model ~/MLXModels/derived/LiquidAI-LFM3-Audio-2B-MLX-4bit-uzu \
--input input.wav
# TTS (Text-to-Speech, 24 kHz WAV)
cargo run -p cli -- audio \
--model ~/MLXModels/derived/LiquidAI-LFM3-Audio-2B-MLX-4bit-uzu \
--system "Perform TTS in American English using a female voice." \
--text "Hello! Welcome to Liquid Audio on Metal." \
--output out.wav
2. HTTP Server & Web UI (cli server)
cargo run -p cli -- server \
--model ~/MLXModels/derived/LiquidAI-LFM3-Audio-2B-MLX-4bit-uzu \
--port 8000
- Web UI:
http://127.0.0.1:8000/(Chat & Voice, ASR, TTS, and API Inspector) - TTS:
POST /v1/audio/speech - ASR:
POST /v1/audio/transcriptions(multipart/form-datafileor JSONaudio_base64/audio_path) - Chat:
POST /v1/chat/completions(supportsinput_audioandmodalities: ["text", "audio"])