CoolFace
Modelpublic

aufklarer/CSM-1B-MLX-8bit

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes24downloads
Model Card

CSM-1B-MLX-8bit

Sesame CSM-1B (Conversational Speech Model) converted to MLX (int8) for on-device speech generation on Apple Silicon. CSM is a Moshi-family codec model: a Llama-1B backbone predicts the zeroth Mimi codebook, a Llama-100M decoder predicts the rest. It clones a voice from a short reference clip.

PropertyValue
Parameters1.5B class (backbone 1B + decoder + heads)
Quantizationint8
Size~1.7 GB
CodecMimi, 32 codebooks @ 12.5 Hz, 24 kHz
LanguagesEnglish

Files

FileDescription
model.safetensorsbackbone + decoder + heads + embeddings (int8)
config.jsonarchitecture + per-module quantization map
mimi.safetensorsKyutai Mimi codec (32 codebooks)
tokenizer.jsonLlama BPE tokenizer

Performance (M-series, mlx-swift)

MetricValue
RTF (int8)~0.5–0.9 (faster than real time)
First-audio latency (streaming)~120 ms

Quantization lowers memory bandwidth, so int8/int5 are both smaller and faster than fp16 on Apple GPUs.

Usage (Swift)

swift
import CSM

let pipeline = try await CSMPipeline(directory: modelDir)
let audio = pipeline.synthesize(
    text: "Hello from on-device speech.",
    refAudio: referenceSamples,           // 24 kHz mono
    refText: "transcript of the reference",
    temperature: 0.9, topK: 50)

Known limitations

  • —English-focused; weak on other languages.
  • —End-of-audio occasionally clips the final word — pad the text with a short trailing phrase, or trim to the last voiced frame.
  • —Zero-shot cloning transfers voice identity but flattens prosody vs. a purpose-tuned reference.

Source

Converted from `sesame/csm-1b` (Apache-2.0).

Links