Views
No views yet
mlx-motif (it registers the model class into mlx-lm's loader); it will not load with stock mlx_lm.load.1git clone https://github.com/junhoyeo/mlx-motif && cd mlx-motif
2uv pip install -e .
3
4mlx-motif generate --model <this-repo> --prompt "Hello, world."
5mlx-motif serve --model <this-repo> --port 8080 # OpenAI-compatible1from mlx_lm import generate
2from mlx_motif import load
3
4model, tokenizer = load("<this-repo>")
5print(generate(model, tokenizer, prompt="…", max_tokens=128))mlx-motif convert --hf-path Motif-Technologies/Motif-2-12.7B-Reasoning --out … --quantize --bits 4 (group_size 64, uniform preset)e6c401a (converted with this repo's convert.py; validated at this commit)scripts/perplexity.py --chunk 512).bench_decode_e2e.py, median of 5 runs, max_tokens=64, default configuration):| Prompt length | tok/s |
|---|---|
| 5 | 40.9 |
| 164 | 40.0 |
| 800 | 38.2 |
| 3204 | 30.7 |
<think> reasoning block; mlx-motif serve --think-mode visible|hidden|captured controls how the trace is surfaced.