CoolFace
Modelpublic

0xhb/maya1-mlx-4bit

sourceHugging Faceupdated 6mo agoView on Hugging Face
0likes15downloads
Model Card

maya1-mlx-4bit

MLX 4-bit quantized conversion of maya-research/maya1 for text-to-speech on Apple Silicon. Converted using mlx-lm.

Fastest variant. Runs above real-time on M4 Max with some quality degradation. See also: bf16 (highest quality) and 8-bit (recommended balance).

Benchmarks (M4 Max, 36GB)

VariantSizeTokens/sReal-time factor
bf166.2 GB~51 tok/s0.50x
8-bit3.3 GB~91 tok/s0.82x
4-bit1.8 GB~108 tok/s1.58x

Quick Start

Requires macOS with Apple Silicon and uv.

bash
# From a text file
uv run tts.py input.txt -o output.wav

# From stdin
echo "Hello world" | uv run tts.py - -o hello.wav

# With a custom voice description
uv run tts.py input.txt -o output.wav -d "Deep male voice, British accent, slow pacing."

CLI Options

OptionDefaultDescription
input(required)Input text file path, or - for stdin
-o, --outputoutput.wavOutput WAV file path
-d, --descriptionCalm/clear female voiceVoice description prompt
-m, --model.Path to MLX model directory
--max-chars200Max characters per chunk
--max-tokens2048Max tokens per chunk
--temperature0.4Sampling temperature
--top-p0.9Top-p sampling
--repetition-penalty1.1Repetition penalty

Requirements

  • macOS with Apple Silicon (M1 or later)
  • uv (dependencies are declared inline via PEP 723)