Metadata-Version: 2.4
Name: mlx-one
Version: 0.1.5
Summary: A unified MLX stack for multimodal AI on Apple Silicon.
Author: Susant Achary
License-Expression: Apache-2.0
Project-URL: Homepage, https://github.com/SSusantAchary/mlx-one
Project-URL: Documentation, https://github.com/SSusantAchary/mlx-one#documentation
Project-URL: Model support, https://github.com/SSusantAchary/mlx-one#supported-modalities-and-models
Project-URL: Release notes, https://github.com/SSusantAchary/mlx-one/releases
Project-URL: Repository, https://github.com/SSusantAchary/mlx-one
Project-URL: Issues, https://github.com/SSusantAchary/mlx-one/issues
Keywords: mlx,apple-silicon,llm,vlm,audio,speech,ocr,embeddings,segmentation,classification,training,conversion,evaluation
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: MacOS X
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: MacOS
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: mlx==0.32.2
Requires-Dist: mlx-metal==0.32.2; platform_system == "Darwin" and platform_machine == "arm64"
Requires-Dist: numpy<3,>=1.26
Requires-Dist: click>=8.0
Requires-Dist: certifi>=2026.10.19
Requires-Dist: tokenizers<1,>=0.20
Requires-Dist: jinja2<4,>=3.1
Requires-Dist: tqdm>=4.70.0
Requires-Dist: safetensors>=0.8.0
Requires-Dist: pyyaml>=6.0.3
Requires-Dist: regex>=2026.9.3
Requires-Dist: huggingface-hub<2,>=1.5
Provides-Extra: tracking
Requires-Dist: mlflow; extra == "tracking"
Provides-Extra: wandb
Requires-Dist: wandb; extra == "wandb"
Provides-Extra: viz
Requires-Dist: matplotlib; extra == "viz"
Provides-Extra: legacy-mlx-lm
Requires-Dist: mlx-lm<1,>=0.31; extra == "legacy-mlx-lm"
Provides-Extra: server
Requires-Dist: fastapi<1,>=0.115; extra == "server"
Requires-Dist: httpx<1,>=0.27; extra == "server"
Requires-Dist: pydantic<3,>=2.13.5; extra == "server"
Requires-Dist: python-multipart<1,>=0.0.9; extra == "server"
Requires-Dist: uvicorn<1,>=0.30; extra == "server"
Provides-Extra: vision
Requires-Dist: pillow<13,>=10; extra == "vision"
Provides-Extra: ocr
Requires-Dist: pillow<13,>=10; extra == "ocr"
Requires-Dist: pypdfium2<6,>=4.30; extra == "ocr"
Requires-Dist: tiktoken<1,>=0.9; extra == "ocr"
Provides-Extra: ocr-bench
Requires-Dist: rapidfuzz<4,>=3; extra == "ocr-bench"
Requires-Dist: pyarrow<24,>=20; extra == "ocr-bench"
Provides-Extra: audio
Provides-Extra: kokoro
Requires-Dist: phonemizer-fork==3.3.2; extra == "kokoro"
Requires-Dist: espeakng-loader==0.2.4; extra == "kokoro"
Provides-Extra: qwen-align-ja
Requires-Dist: nagisa==0.2.11; extra == "qwen-align-ja"
Provides-Extra: qwen-align-ko
Requires-Dist: soynlp==0.0.493; extra == "qwen-align-ko"
Provides-Extra: dev
Requires-Dist: setuptools>=77.0.3; extra == "dev"
Requires-Dist: tomli>=2.0.1; python_version < "3.11" and extra == "dev"
Requires-Dist: fastapi<1,>=0.115; extra == "dev"
Requires-Dist: httpx<1,>=0.27; extra == "dev"
Requires-Dist: pydantic<3,>=2.13.5; extra == "dev"
Requires-Dist: uvicorn<1,>=0.30; extra == "dev"
Requires-Dist: python-multipart<1,>=0.0.9; extra == "dev"
Requires-Dist: pillow<13,>=10; extra == "dev"
Requires-Dist: pytest; extra == "dev"
Requires-Dist: pytest-cov; extra == "dev"
Requires-Dist: ruff; extra == "dev"
Dynamic: license-file

<p align="center">
  <img src="https://raw.githubusercontent.com/SSusantAchary/mlx-one/main/docs/assets/mlx-one-readme-banner.png" alt="mlx-one black and orange logo" width="876">
</p>

<h1 align="center">mlx-one</h1>

<p align="center"><strong>One stack. Native MLX. Built for Apple Silicon.</strong></p>

<p align="center">
  A unified, native MLX stack for language, vision-language, embeddings,
  audio-language, speech, segmentation and classification models on Apple Silicon.
</p>

<p align="center">
  <a href="https://www.python.org/"><img src="https://img.shields.io/badge/Python-3.10%2B-3776AB?logo=python&logoColor=white" alt="Python 3.10+"></a>
  <a href="https://github.com/SSusantAchary/mlx-one/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg" alt="Apache 2.0 License"></a>
  <img src="https://img.shields.io/badge/platform-Apple%20Silicon-black?logo=apple" alt="Apple Silicon">
  <a href="https://pypi.org/project/mlx-one/"><img src="https://img.shields.io/pypi/v/mlx-one" alt="PyPI version"></a>
</p>

[**Install**](#install-and-run) | [**Quick Start**](#quick-start) | [**Web UI**](#web-ui) | [**Performance**](#model-performance) · [VLM](#vision-language-model-performance) · [Audio](#audio-model-performance) · [OCR](#ocr-model-performance) | [**Models**](#supported-modalities-and-models) | [**Architecture**](#architecture) | [**APIs**](#python-cli-and-http-apis) | [**Documentation**](#documentation)

MLX-One is a native inference library built on Apple's MLX framework for Apple
Silicon. It brings text generation, vision-language inference, audio, OCR,
embeddings and segmentation into one extensible stack, with shared model
loading, execution and developer tooling.

## Install and run

MLX-One runs natively on Apple Silicon. Use macOS 15+ with Python 3.10+ and
MLX 0.32.2. This README covers **MLX-One 0.1.5**.

```bash
python -m pip install --upgrade "mlx-one[server]"
mlx-one --version
```

Generate text with a pinned checkpoint:

```python
from mlx_one import Engine

with Engine(model="openai-community/gpt2") as engine:
    print(engine.generate("The future of local AI is", max_tokens=64).text)
```

Create an image with MLX-One 0.1.5 and the `vision` extra. If 0.1.5 is
still awaiting publication, install the release wheel locally or use a source
checkout.

```bash
python -m pip install "mlx-one[server,vision]==0.1.5"
mlx-one image generate mflux-community/flux2-klein-4b-mflux-q4 \
  --prompt "A red fox in a snowy forest at dawn" \
  --width 512 --height 512 --steps 4 --seed 17 \
  --output ./fox.png
```

Start the HTTP server and open `http://127.0.0.1:8888` for the bundled Web UI:

```bash
mlx-one serve LiquidAI/LFM2-350M --inference-mode reference_dense \
  --host 127.0.0.1 --port 8888 --alias lfm2-local
```

See [Quick Start](#quick-start) for the full setup and task examples.

## Web UI

<p align="center">
  <a href="https://raw.githubusercontent.com/SSusantAchary/mlx-one/main/docs/assets/mlx-one-image-generation.png">
    <img src="https://raw.githubusercontent.com/SSusantAchary/mlx-one/main/docs/assets/mlx-one-image-generation.png" alt="MLX-One Create Image mode showing a laptop with a miniature mountain village on its screen" width="1100">
  </a>
</p>

The built-in Web UI includes chat and on-device image generation. This image
was generated with FLUX.2 Klein 4B Q4 on an Apple M4.

The native image engine also accepts the published MOSS-Image-SFT Q4 bundle
under `mflux-community/moss-image-sft-mflux-q4`. The MOSS path has passed
synthetic Metal tests. Full-checkpoint image quality and performance are pending.

## Why MLX-One?

- **Native model implementations:** model math, safe checkpoint loading,
  tokenization and generation live inside MLX-One.
- **One developer interface:** use Python, the CLI or HTTP for implemented tasks,
  with shared request lifecycle and evidence records.
- **Built for Apple Silicon:** MLX, Metal and unified memory underpin execution;
  memory planning helps choose bounded workloads for a device.
- **Extensible architectures:** configuration-driven registration and reusable
  components support language, vision, audio and retrieval families.
- **Custom Metal kernels:** accelerate selected model operations on Apple
  Silicon, including attention, quantized projections and MoE routing.
- **Optional acceleration:** MLXBoost provides an opt-in host-overhead optimization
  for eligible profiles, with explicit fallback and experimental status.

Hugging Face supplies configuration, tokenizer/processor assets and safe
`safetensors` checkpoints. Native inference runs through MLX-One and Apple MLX.

## Architecture

<p align="center">
  <a href="https://raw.githubusercontent.com/SSusantAchary/mlx-one/main/docs/assets/mlx-one-architecture-apple-silicon.png">
    <img src="https://raw.githubusercontent.com/SSusantAchary/mlx-one/main/docs/assets/mlx-one-architecture-apple-silicon.png" alt="MLX-One interfaces, eight modalities, and the native runtime on Apple Silicon Macs" width="1100">
  </a>
</p>

Click the diagram for full resolution. Apple Silicon Macs host inference.
Android, iPhone, and iPad companion apps are planned clients of the Mac server.
The 8–32 GB range describes device targets, with the 32 GB M4 Air as the
measured baseline.

Native text requests can start in the Web UI, another HTTP client, the Python
Engine, or the CLI.

```text
Web UI / HTTP + SSE / Python Engine / CLI
                 ↓
Prepared prompt + identity + resolved execution plan
                 ↓
Reference execution or InferenceActor + BatchScheduler
                 ↓
Native model adapter → dense / paged / hybrid runner
                 ↓
CacheManager → ownership, prefix index, page arena, hybrid state
                 ↓
MLX + Metal + unified memory
```

The actor owns request state, sampling and cancellation. Cache reservations and
memory-pressure telemetry govern admission; matching evidence gates optimized
backend selection. Native model equations stay within family packages.

<a id="model-support-and-release"></a>

## Native Model Coverage

**Eight modalities in the current source tree, including image generation.**
The historical release cohort covers 45 native architecture types and 50 verified
checkpoint profiles. The [checkpoint list](#supported-modalities-and-models)
links to model weights and shows the supported workflows.

[Checkpoint validation results](https://github.com/SSusantAchary/mlx-one/blob/main/docs/qualification/batch-1-sub-6b/results.json).

### Verified Checkpoint Workflows

The ten additional checkpoint profiles are listed below.

| Checkpoint | Task | Verified behavior |
| --- | --- | --- |
| `google-t5/t5-small` | Text-to-text generation | Native encoder-decoder, teacher-forced logits and bounded greedy translation |
| `google/vit-base-patch16-224` | Image classification | Fixed 224×224 RGB input, trained labels, matching class logits and top-five results |
| `hexgrad/Kokoro-82M` | Speech synthesis | Native 24 kHz English speech with `af_heart`; reviewed audio and native ASR round trip |
| `BAAI/bge-small-en-v1.5` | Dense retrieval | 384-D CLS embeddings with L2 normalization |
| `BAAI/bge-m3` | Multi-representation retrieval | Dense vectors, learned sparse weights, ColBERT token vectors and hybrid scoring |
| `sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2` | Multilingual embeddings | 384-D masked mean vectors, preserving the publisher's unnormalized output; 128-token sentence limit |
| `nomic-ai/nomic-embed-text-v1.5` | Dense retrieval | Role prefixes, normalized 768-D default and explicit Matryoshka dimensions 64/128/256/512/768 |
| `intfloat/multilingual-e5-small` | Multilingual retrieval | 384-D masked mean plus L2 normalization, with `query:` / `passage:` prefixes |
| `cross-encoder/ms-marco-MiniLM-L6-v2` | Paired reranking | Trained BERT pooler and scalar head, raw relevance logits and separate sigmoid scores |
| `BAAI/bge-reranker-v2-m3` | Paired reranking | Native XLM-R classification head with source-logit and ranking checks |

These workflows have pinned real-checkpoint and interface evidence. ViT's
stricter hidden-state diagnostic remains failed; its supported scope is
supervised classification. Kokoro supports the verified English voice, up to
510 phonemes and 30 seconds per utterance. Full limits, conversion requirements
and retained diagnostics are in the linked validation results.

### Release Record

**0.1.2 was published on PyPI on 11 November 2026**, including the ten
additional workflows and all 45 architecture types in their documented scope.
Both uploaded artifacts match the validated wheel and source archive; see the
[release record](https://github.com/SSusantAchary/mlx-one/blob/main/docs/releases/0.1.2.json). The previous **0.1.1** release covers the original
40-type cohort. See the [0.1.1 release record](https://github.com/SSusantAchary/mlx-one/blob/main/docs/releases/0.1.1.json).

## Key Capabilities

| Capability | What is implemented |
| --- | --- |
| Text generation | Cached causal decoding, seeded sampling, stop sequences, streaming, chat templates and T5 encoder-decoder generation |
| Multimodal inference | Native image/text, speech, OCR and segmentation workflows within family-specific limits |
| [Image generation](#web-ui) | Native text-to-image generation through the CLI and Web UI, with live progress and PNG download in the UI |
| Retrieval | Dense embeddings, role-aware queries, Matryoshka dimensions, learned sparse vectors, ColBERT and BERT/XLM-R/Qwen3 reranking |
| Speech synthesis | Native Kokoro acoustic and vocoder execution, optional English G2P and 24 kHz WAV output |
| Image classification | Supervised ViT class predictions and zero-shot CLIP workflows |
| Developer access | Context-managed Python engine, task CLI, local Web UI and HTTP/SSE serving |
| Inspection and planning | Safe artifact inspection, hardware profiles and workload memory estimates |
| Training and evaluation | Experimental LoRA/QLoRA SFT, dataset validation, adapter export and evidence tooling |

Task availability varies by checkpoint and interface.

## Version 0.1.4

**Published on PyPI on 15 November 2026.** This
release refreshes the chat workspace, adds serving progress/timing logs, fixes
GPT-OSS reasoning-only streams and recommends an 8192-token output budget with
low reasoning effort when context allows. Explicit user limits are preserved.
Native sampling and eligible GPT-OSS execution have bounded optimizations;
sustained long-response speed remains variable. Full 128K HTTP/tool workflows
are not qualified by these short-context measurements.

**0.1.5** adds the native Web UI Create
Image flow, cached-token reporting, the Qwen2.5 continuous-batching matrix and
the verified SSD prefix restart. Paged KV performance, Q4/Q8 Gate D,
Qwen3.5 MTP and MOSS-Image-SFT Q4 full-checkpoint
validation remain under known limitations.

[GitHub releases](https://github.com/SSusantAchary/mlx-one/releases).

Install the published release:

```bash
python -m pip install --upgrade "mlx-one[server]==0.1.4"
mlx-one --version
```

## Quick Start

### Installation

Use Python 3.10+ on an Apple Silicon Mac running macOS 15+ for model execution.

Install or upgrade from PyPI.

```bash
python -m pip install --upgrade mlx-one
```

For the HTTP server, vision and OCR dependencies:

```bash
python -m pip install --upgrade "mlx-one[server,vision,ocr,kokoro]"
mlx-one --version
```

For development, run this from a source checkout.

```bash
python -m pip install -e '.[server,vision,kokoro]'
```

### Load a text checkpoint and generate

The engine loads the model on entry and releases its resources on exit:

```python
from mlx_one import Engine

with Engine(model="openai-community/gpt2") as engine:
    result = engine.generate("The future of local AI is", max_tokens=64)
    print(result.text)
```

A local snapshot path also works. Use `revision` to pin an immutable checkpoint
and `offline=True` when all required assets are already cached.

### Run the CLI

```bash
mlx-one doctor
mlx-one generate openai-community/gpt2 "The future of local AI is" \
  --max-tokens 64 --temperature 0.8 --top-p 0.95 --seed 0
```

Add `--stream` for incremental text or `--offline` for cached/local assets.

### Run Task-Specific Models

```bash
mlx-one embed BAAI/bge-small-en-v1.5 'Paris is the capital of France.' --json-output

mlx-one rerank cross-encoder/ms-marco-MiniLM-L6-v2 'capital of France' \
  'Paris is the capital of France.' 'Bananas are yellow.' --json-output

mlx-one seq2seq google-t5/t5-small \
  'translate English to German: The house is wonderful.' --max-new-tokens 24

mlx-one classify-image google/vit-base-patch16-224 ./image.jpg --top-k 5 --json-output

mlx-one tts ./kokoro-native 'Hello, world.' --output ./speech.wav
```

Kokoro and BGE-M3 use safely converted local bundles.
The [retrieval and reranking example](https://github.com/SSusantAchary/mlx-one/blob/main/examples/batch1_retrieval.py) combines a
dense encoder with a paired scorer using MLX-One APIs. Use the recorded immutable
revisions when reproducing the validation results.

### Start the HTTP server

```bash
python -m pip install "mlx-one[server]"
mlx-one serve LiquidAI/LFM2-350M --inference-mode reference_dense \
  --host 127.0.0.1 --port 8888 --alias lfm2-local
```

Open `http://127.0.0.1:8888` for the bundled chat UI. The same process exposes
OpenAI-compatible endpoints at `/v1`.

<!-- model-performance-summary:start -->
## Model Performance

Selected native text-generation results on **Apple M4 / 32 GB**.

| Model | Precision | Hardware | TTFT (ms) | Prefill tok/s | Decode tok/s |
| --- | --- | --- | ---: | ---: | ---: |
| openai-community/gpt2 | FP32 | Apple M4 / 32 GB | 19.04 | 6722.29 | 118.04 |
| Qwen/Qwen2.5-0.5B-Instruct | Affine Q8 (group 64) | Apple M4 / 32 GB | 63.94 | 2001.96 | 83.48 |
| Qwen/Qwen3-0.6B | Affine Q8 (group 64) | Apple M4 / 32 GB | 100.39 | 1275.02 | 65.47 |
| LiquidAI/LFM2-350M | Affine Q4 (group 64) | Apple M4 / 32 GB | 40.24 | 3180.66 | 185.81 |
| HuggingFaceTB/SmolLM2-1.7B-Instruct | Affine Q4 (group 64) | Apple M4 / 32 GB | 333.28 | 384.06 | 55.69 |
| meta-llama/Llama-3.2-1B-Instruct | Affine Q4 (group 64) | Apple M4 / 32 GB | 341.58 | 374.73 | 65.36 |
| Qwen/Qwen2.5-1.5B-Instruct | Affine Q4 (group 64) | Apple M4 / 32 GB | 311.26 | 411.23 | 53.52 |
| google/gemma-3-1b-it | BF16 | Apple M4 / 32 GB | 189.47 | 675.56 | 32.17 |
| microsoft/Phi-3-mini-4k-instruct | Affine Q4 (group 64) | Apple M4 / 32 GB | 801.79 | 159.64 | 29.92 |

![MLX-One text-model decode speed by nominal parameter size on Apple M4](https://raw.githubusercontent.com/SSusantAchary/mlx-one/main/docs/benchmarks/figures/text-model-decode-bars.png)

The chart labels the historical cohort and separate standardized GPT-2 result. Standardized 128/128 runs, HTTP serving, VLM, audio, and OCR use separate protocols.
<!-- model-performance-summary:end -->

### GPT-OSS native HTTP serving

Native HTTP tool-call performance on Apple M4 / 32 GB.

| Model name | Parameters | Configured context (tokens) | Quantization/precision | Prefill tokens/sec | Decode tokens/sec | Native first-token time (ms) | Peak MLX memory (GiB) |
|---|---|---:|---|---:|---:|---:|---:|
| [mlx-community/gpt-oss-20b-MXFP4-Q4](https://github.com/SSusantAchary/mlx-one/blob/main/docs/validation/gpt-oss-kilo-2026-10-23.json) | 20B / 3.6B active | 131,072 | Mixed MXFP4 / affine Q4–Q8 | **75.95** | **18.96** | 2355.38 | 10.608 |

Native first-token time includes hidden analysis; the median first actionable tool delta arrived at **7.127 seconds**, after argument validation. The configured 131,072-token context was not tested at its full length. Standardized direct-model 128/128 coverage remains unchanged.

The historical serving report does not record an immutable local checkpoint revision or MLX version; it cannot qualify the current pinned GPT-OSS targets.


<!-- MLX-ONE-VLM-BENCHMARK-START -->
## Vision-Language Model Performance

Native vision-language results on Apple M4.

The image and prompt are pinned in the [workload manifest](https://github.com/SSusantAchary/mlx-one/blob/main/benchmarks/vlm/hf-images.json).

Q4/Q8 denote the published checkpoint format; vision or projector modules may retain floating-point weights.

![MLX-One VLM decode speed by nominal model size, with time to first token](https://raw.githubusercontent.com/SSusantAchary/mlx-one/main/docs/benchmarks/figures/vlm-model-performance.png)

[VLM size-versus-speed scatter plot](https://raw.githubusercontent.com/SSusantAchary/mlx-one/main/docs/benchmarks/figures/vlm-model-size-vs-decode.svg) · [VLM chart SVG](https://raw.githubusercontent.com/SSusantAchary/mlx-one/main/docs/benchmarks/figures/vlm-model-performance.svg)

| Model | Precision | Images | Vision processing (ms) | Prefill TPS | Decode TPS | TTFT (ms) | Peak MLX memory (GiB) | Scores |
|---|---|---:|---:|---:|---:|---:|---:|---|
| [Qwen2-VL 2B](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/vlm/results/V01-VLM-HF-S1.json) | Q4 | 1 | 6.05 | **279.68** | **67.28** | 1290.28 | 1.755 | [Scores](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/vlm/results/V01-VLM-HF-S1.json) |
| [Qwen2.5-VL 3B](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/vlm/results/V02-VLM-HF-S1.json) | Q4 | 1 | 6.05 | **215.86** | **41.19** | 1670.08 | 3.164 | [Scores](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/vlm/results/V02-VLM-HF-S1.json) |
| [Qwen3.5 0.8B](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/vlm/results/V03-VLM-HF-S1.json) | Q4 | 1 | 4.81 | **717.75** | **68.78** | 401.16 | 1.129 | [Scores](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/vlm/results/V03-VLM-HF-S1.json) |
| [LFM2-VL 450M](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/vlm/results/V04-VLM-HF-S1.json) | Q8 | 1 | 7.16 | **1739.05** | **154.33** | 169.97 | 1.163 | [Scores](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/vlm/results/V04-VLM-HF-S1.json) |
| [LFM2.5-VL 3B](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/vlm/results/V05-VLM-HF-S1.json) | Q4 | 1 | 7.37 | **300.73** | **52.01** | 942.38 | 2.801 | [Scores](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/vlm/results/V05-VLM-HF-S1.json) |


High-resolution (1024 × 1024), four-image and OCR workloads remain separate. The HF image protocol is not pooled with the earlier synthetic-image protocol. See the [pinned checkpoint inventory](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/vlm/benchmark_plan.json). Text-model measurements use different protocols.
<!-- MLX-ONE-VLM-BENCHMARK-END -->


<!-- MLX-ONE-AUDIO-BENCHMARK-START -->
## Audio Model Performance

Historical native audio performance. Values below are validated measurements; “—” means unavailable. Recognition uses one pinned English LibriSpeech utterance (9.9 seconds, padded to 10); its WER is a single-clip check, not corpus accuracy. See the linked raw evidence.

### Speech Recognition Performance

![MLX-One speech recognition throughput by nominal model size, with single-clip WER and peak memory](https://raw.githubusercontent.com/SSusantAchary/mlx-one/main/docs/benchmarks/figures/audio-asr-performance.png)

[ASR size-versus-throughput scatter plot](https://raw.githubusercontent.com/SSusantAchary/mlx-one/main/docs/benchmarks/figures/audio-model-size-vs-asr.svg) · [ASR chart SVG](https://raw.githubusercontent.com/SSusantAchary/mlx-one/main/docs/benchmarks/figures/audio-asr-performance.svg)

| Model | Precision | Audio (s) | Latency (ms) | RTF ↓ | Audio sec/sec ↑ | WER (%) | Peak MLX (GiB) | Scores |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| [Whisper Tiny](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/audio/results/hf-2026-10-24/A01-ASR-S1.json) | FP32 | 10.000 | 2144.869 | 0.214 | **4.662** | 4.167 | 0.485 | [Scores](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/audio/results/hf-2026-10-24/A01-ASR-S1.json) |
| [Whisper Large v3 Turbo](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/audio/results/hf-2026-10-24/A02-ASR-S1.json) | FP16 | 10.000 | 7666.962 | 0.767 | **1.304** | 4.167 | 2.694 | [Scores](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/audio/results/hf-2026-10-24/A02-ASR-S1.json) |
| [Distil-Whisper Large v3](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/audio/results/hf-2026-10-24/A03-ASR-S1.json) | FP16 | 10.000 | 5433.400 | 0.543 | **1.840** | 0.000 | 2.596 | [Scores](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/audio/results/hf-2026-10-24/A03-ASR-S1.json) |
| [Moonshine Tiny](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/audio/results/hf-2026-10-24/A04-ASR-S1.json) | FP32 | 10.000 | 117.038 | 0.012 | **85.443** | 4.167 | 0.191 | [Scores](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/audio/results/hf-2026-10-24/A04-ASR-S1.json) |
| [Moonshine Base](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/audio/results/hf-2026-10-24/A05-ASR-S1.json) | FP32 | 10.000 | 153.511 | 0.015 | **65.142** | 12.500 | 0.423 | [Scores](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/audio/results/hf-2026-10-24/A05-ASR-S1.json) |
| [Qwen3-ASR 0.6B](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/audio/results/hf-2026-10-24/A06-ASR-S1.json) | Q8 / BF16 | 10.000 | 528.726 | 0.053 | **18.913** | 0.000 | 1.281 | [Scores](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/audio/results/hf-2026-10-24/A06-ASR-S1.json) |
| [Qwen3-ASR 1.7B](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/audio/results/hf-2026-10-24/A07-ASR-S1.json) | Q8 / BF16 | 10.000 | 1017.307 | 0.102 | **9.830** | 0.000 | 2.656 | [Scores](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/audio/results/hf-2026-10-24/A07-ASR-S1.json) |
| [Parakeet TDT v2](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/audio/results/hf-2026-10-24/A08-ASR-S1.json) | FP32 | 10.000 | 169.265 | 0.017 | **59.079** | 0.000 | 2.383 | [Scores](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/audio/results/hf-2026-10-24/A08-ASR-S1.json) |
| [Parakeet TDT v3](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/audio/results/hf-2026-10-24/A09-ASR-S1.json) | FP32 | 10.000 | 174.019 | 0.017 | **57.465** | 0.000 | 2.417 | [Scores](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/audio/results/hf-2026-10-24/A09-ASR-S1.json) |
| [LFM2.5 Audio 1.5B](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/audio/results/hf-2026-10-24/A10-ASR-S1.json) | Q4 / BF16 | 10.000 | 547.659 | 0.055 | **18.260** | 4.167 | 1.472 | [Scores](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/audio/results/hf-2026-10-24/A10-ASR-S1.json) |

### Forced Alignment Performance

| Model | Precision | Audio (s) | Latency (ms) | Mean boundary error (ms) | Peak MLX (GiB) | Scores |
| --- | --- | --- | --- | --- | --- | --- |
| [Qwen3-ForcedAligner 0.6B](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/audio/results/hf-2026-10-24/A11-ALIGN-S1.json) | Q8 / BF16 | 10.000 | 189.892 | — | 1.546 | [Scores](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/audio/results/hf-2026-10-24/A11-ALIGN-S1.json) |

### Speech Generation Performance

![MLX-One speech generation throughput, with separate TTS and speech-to-speech workloads and the failed longer case](https://raw.githubusercontent.com/SSusantAchary/mlx-one/main/docs/benchmarks/figures/audio-speech-generation.png)

[Speech generation chart SVG](https://raw.githubusercontent.com/SSusantAchary/mlx-one/main/docs/benchmarks/figures/audio-speech-generation.svg). Speech quality and alignment accuracy retain their documented limits.

| Model | Precision | Task | First audio (ms) | Output (s) | RTF ↓ | Audio sec/sec ↑ | Peak MLX (GiB) | Scores |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| [LFM2.5 Audio 1.5B](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/audio/results/hf-2026-10-24/A12-TTS-S1.json) | Q4 / BF16 | synthesize | 328.986 | 12.320 | 0.312 | **3.207** | 1.850 | [Scores](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/audio/results/hf-2026-10-24/A12-TTS-S1.json) |
| [LFM2.5 Audio 1.5B](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/audio/results/hf-2026-10-24/A13-STS-S1.json) | Q4 / BF16 | speech-to-speech | — | — | — | — | — | [Failed; WIP](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/audio/results/hf-2026-10-24/A13-STS-S1.json) |

### Speech-to-speech: separate short-question workload

The short-question test used a 2.04-second clip.

| Model | First audio (ms) | Output (s) | RTF ↓ | Audio sec/sec ↑ | Peak MLX (GiB) |
| --- | ---: | ---: | ---: | ---: | ---: |
| [LFM2.5 Audio 1.5B Q4](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/audio/results/hf-2026-10-24/A13-STS-HF-Q1-direct-model-prepared-pcm.json) | 426.127 | 15.360 | 0.349 | **2.867** | 2.016 |

Experimental speech-to-speech results.

Independent alignment boundary accuracy was not measured in this historical cohort; newer TIMIT timing checks used a separate workload. Q4 LFM speech-to-speech exceeded its output bound on this fixture; its sampled diagnostic also had unstable waveform amplitude. No speed is published for that failed task. TTS timings do not establish perceptual quality. Qwen ASR streaming reprocesses a bounded accumulated utterance; it is not a causal streaming encoder.

<!-- MLX-ONE-AUDIO-BENCHMARK-END -->


<!-- MLX-ONE-OCR-BENCHMARK-START -->
## OCR Model Performance

Native page OCR on 100 images from the [OmniAI OCR Benchmark dataset](https://huggingface.co/datasets/getomni-ai/ocr-benchmark).

![OCR throughput on 100 document images](https://raw.githubusercontent.com/SSusantAchary/mlx-one/main/docs/benchmarks/figures/ocr-omni100-performance.png)

| Model | Precision | Completed | Median latency (s) | Pages/s | Markdown-ref. CER ↓ | Peak MLX (GiB) | Truncated |
|---|---|---:|---:|---:|---:|---:|---:|
| [TrOCR Base Printed](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/ocr/omni100-20261025/O01.json) | FP32 | [Line crops required](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/ocr/omni100-20261025/O01.json) | — | — | — | — | — |
| [TrOCR Base Handwritten](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/ocr/omni100-20261025/O02.json) | FP32 | [Line crops required](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/ocr/omni100-20261025/O02.json) | — | — | — | — | — |
| [GOT-OCR 2.0](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/ocr/omni100-20261025/O03.json) | Affine Q4 | [97/100](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/ocr/omni100-20261025/O03.json) | 12.42 | **0.114** | 74.5% | 1.673 | 56 |
| [Florence-2 Base FT](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/ocr/omni100-20261025/O04.json) | FP16 | [97/100](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/ocr/omni100-20261025/O04.json) | 6.60 | **0.197** | 78.3% | 1.201 | 61 |
| [PaddleOCR-VL 1.5](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/ocr/omni100-20261025/O05.json) | Affine Q4 | [97/100](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/ocr/omni100-20261025/O05.json) | 13.87 | **0.087** | 59.8% | 1.560 | 53 |
| [LightOnOCR 2 1B](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/ocr/omni100-20261025/O06.json) | BF16 | [97/100](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/ocr/omni100-20261025/O06.json) | 31.53 | **0.032** | 67.7% | 8.661 | 64 |
| [DeepSeek-OCR](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/ocr/omni100-20261025/O07.json) | Affine Q4 | [97/100](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/ocr/omni100-20261025/O07.json) | 13.59 | **0.076** | 51.2% | 3.810 | 41 |

Formatting and reading order affect page CER. Failed requests count as empty predictions.

TrOCR requires annotated line crops, absent from this page dataset. PaddleOCR-VL uses direct page transcription; its separate layout pipeline is not included. No layout accuracy or JSON extraction score is claimed by this page test.


### Handwriting: 10 line images

This test used ten lines from the [handwritten_text_ocr dataset](https://huggingface.co/datasets/toghrultahirov/handwritten_text_ocr).

![OCR throughput on 10 handwritten lines](https://raw.githubusercontent.com/SSusantAchary/mlx-one/main/docs/benchmarks/figures/ocr-hand10-performance.png)

| Model | Precision | Completed | Median latency (s) | Images/s | CER ↓ | WER ↓ | Peak MLX (GiB) | Truncated |
|---|---|---:|---:|---:|---:|---:|---:|---:|
| [TrOCR Base Printed (printed baseline)](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/ocr/hand10-20261025/O01.json) | FP32 | [10/10](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/ocr/hand10-20261025/O01.json) | 0.27 | **3.608** | 80.6% | 100.0% | 1.488 | 0 |
| [TrOCR Base Handwritten](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/ocr/hand10-20261025/O02.json) | FP32 | [10/10](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/ocr/hand10-20261025/O02.json) | 0.21 | **4.670** | 4.4% | 10.6% | 1.488 | 0 |
| [GOT-OCR 2.0](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/ocr/hand10-20261025/O03.json) | Affine Q4 | [10/10](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/ocr/hand10-20261025/O03.json) | 0.67 | **1.491** | 40.6% | 94.7% | 1.673 | 0 |
| [Florence-2 Base FT](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/ocr/hand10-20261025/O04.json) | FP16 | [10/10](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/ocr/hand10-20261025/O04.json) | 0.30 | **3.051** | 97.9% | 143.6% | 1.201 | 1 |
| [PaddleOCR-VL 1.5](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/ocr/hand10-20261025/O05.json) | Affine Q4 | [10/10](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/ocr/hand10-20261025/O05.json) | 1.13 | **0.790** | 13.8% | 43.6% | 1.540 | 0 |
| [LightOnOCR 2 1B](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/ocr/hand10-20261025/O06.json) | BF16 | [10/10](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/ocr/hand10-20261025/O06.json) | 0.98 | **1.102** | 6.9% | 33.0% | 2.766 | 0 |
| [DeepSeek-OCR](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/ocr/hand10-20261025/O07.json) | Affine Q4 | [10/10](https://github.com/SSusantAchary/mlx-one/blob/main/docs/benchmarks/ocr/hand10-20261025/O07.json) | 6.68 | **0.150** | 24.7% | 48.9% | 3.810 | 0 |

TrOCR Printed is an out-of-domain baseline. Page models process the same cropped lines in their OCR mode; this small sample is not a general handwriting qualification. Handwriting timings are separate from the 100-page workload.

<!-- MLX-ONE-OCR-BENCHMARK-END -->


## Additional Modality Performance

Native classification and extraction latency on Apple M4.

| Task | Workload | Median (ms) | p95 (ms) |
| --- | --- | ---: | ---: |
| DistilBERT SST-2 | One text | 14.95 | 17.58 |
| BERT NER | One text, SIMPLE aggregation | 18.90 | 26.14 |
| CLIP ViT-B/32 | One image, two labels | 80.19 | 89.68 |
| Silero VAD | One second of decoded mono 16 kHz audio | 16.35 | 22.97 |

### Retrieval and Segmentation

| Modality | Available performance evidence | Remaining measurement gap |
| --- | --- | --- |
| Embeddings and reranking | Measured FP32 dense retrieval and paired reranking pipelines on M4 | Timings depend on input lengths and batching |
| SAM3 segmentation and tracking | Approximately 8.41 GB peak MLX allocation in controlled 32-frame single-object comparisons on M4 / 32 GB | Isolated latency and throughput were outside the fixture scope |


## Supported Modalities and Models

The current source tree covers eight modalities. The table links to the pinned
Hugging Face checkpoints used by the documented workflows. Check the
catalog for required conversion, precision, and task-specific limits.

| Modality | Supported workflow | Checkpoint sources |
| --- | --- | --- |
| Text generation | Completion, chat, and text-to-text generation. | [gpt2](https://huggingface.co/openai-community/gpt2/tree/607a30d783dfa663caf39e06633721c8d4cfcd7e), [Qwen2.5-0.5B-Instruct](https://huggingface.co/Qwen/Qwen2.5-0.5B-Instruct/tree/7ae557604adf67be50417f59c2c2f167def9a775), [Qwen3-0.6B](https://huggingface.co/Qwen/Qwen3-0.6B/tree/c1899de289a04d12100db370d81485cdf75e47ca), [LFM2-350M](https://huggingface.co/LiquidAI/LFM2-350M/tree/0b6ea934a94b880d1048cbcba45a0d81ca721eb0), [SmolLM2-1.7B-Instruct](https://huggingface.co/HuggingFaceTB/SmolLM2-1.7B-Instruct/tree/31b70e2e869a7173562077fd711b654946d38674), [gemma-3-1b-it](https://huggingface.co/google/gemma-3-1b-it/tree/dcc83ea841ab6100d6b47a070329e1ba4cf78752), [Phi-3-mini-4k-instruct](https://huggingface.co/microsoft/Phi-3-mini-4k-instruct/tree/f39ac1d28e925b323eae81227eaba4464caced4e), [LFM2.5-24B-A2B-MLX-4bit](https://huggingface.co/LiquidAI/LFM2.5-24B-A2B-MLX-4bit/tree/667408d494bde191c2cb9dd4f4549827816b9275), [gpt-oss-20b-MXFP4-Q4](https://huggingface.co/mlx-community/gpt-oss-20b-MXFP4-Q4/tree/f356f2747216d7e98fee755df25987459fc19089), [OpenELM-270M](https://huggingface.co/apple/OpenELM-270M/tree/e2b9003235d55a404567faf06e74883081c65e65), [Qwen1.5-MoE-A2.7B-4bit](https://huggingface.co/mlx-community/Qwen1.5-MoE-A2.7B-4bit/tree/11aaad5b454a361ae33f19fb47b72bc74b3c3b55), [t5-small](https://huggingface.co/google-t5/t5-small/tree/df1b051c49625cf57a3d0d8d3863ed4d13564fe4) |
| Vision-language | Single-image and text inference. | [Qwen2-VL-2B-Instruct-4bit](https://huggingface.co/mlx-community/Qwen2-VL-2B-Instruct-4bit/tree/01af461cdb9574acc09084a0ef94e216e142b085), [Qwen2.5-VL-3B-Instruct-4bit](https://huggingface.co/mlx-community/Qwen2.5-VL-3B-Instruct-4bit/tree/46d4cf06a06ffc1a766c214174f9cbed2f45bcab), [Qwen3.5-0.8B-4bit](https://huggingface.co/mlx-community/Qwen3.5-0.8B-4bit/tree/da28692b5f139cb0ec58a356b437486b7dac7462), [LFM2-VL-450M-8bit](https://huggingface.co/mlx-community/LFM2-VL-450M-8bit/tree/2422c0686f1f1c6267640bc1f069ff4e8b06b8d0) |
| Audio & speech | Transcription, alignment, voice activity detection, and speech generation. | [whisper-tiny](https://huggingface.co/openai/whisper-tiny/tree/169d4a4341b33bc18d8881c4b69c2e104e1cc0af), [moonshine-tiny](https://huggingface.co/UsefulSensors/moonshine-tiny/tree/390624ed33d594443aa4aa221f5b9f283b545b5a), [Qwen3-ASR-0.6B-8bit](https://huggingface.co/mlx-community/Qwen3-ASR-0.6B-8bit/tree/89e96d92ba34aca20b3e29fb10cc284097d1219f), [parakeet-tdt-0.6b-v3](https://huggingface.co/mlx-community/parakeet-tdt-0.6b-v3/tree/ed2b7e8c15f9aaa0b5772e2efb986255eaef7e15), [Qwen3-ForcedAligner-0.6B-8bit](https://huggingface.co/mlx-community/Qwen3-ForcedAligner-0.6B-8bit/tree/0e1a68e91d815300c7c9754b2a7639378b23db15), [LFM2.5-Audio-1.5B-8bit](https://huggingface.co/mlx-community/LFM2.5-Audio-1.5B-8bit/tree/a569a7805a8e3eae954c244e54ba811d479a12c2), [Silero VAD (upstream)](https://github.com/snakers4/silero-vad/tree/60b7ffa243625ebdc1070275a29f18c87843786a), [Kokoro-82M](https://huggingface.co/hexgrad/Kokoro-82M/tree/f3ff3571791e39611d31c381e3a41a3af07b4987) |
| Embeddings & reranking | Dense embeddings, sparse retrieval, ColBERT, and paired reranking. | [all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/tree/1110a243fdf4706b3f48f1d95db1a4f5529b4d41), [all-mpnet-base-v2](https://huggingface.co/sentence-transformers/all-mpnet-base-v2/tree/e8c3b32edf5434bc2275fc9bab85f82640a19130), [Qwen3-Embedding-0.6B](https://huggingface.co/Qwen/Qwen3-Embedding-0.6B/tree/97b0c614be4d77ee51c0cef4e5f07c00f9eb65b3), [Qwen3-Reranker-0.6B](https://huggingface.co/Qwen/Qwen3-Reranker-0.6B/tree/e61197ed45024b0ed8a2d74b80b4d909f1255473), [LFM2-ColBERT-350M](https://huggingface.co/LiquidAI/LFM2-ColBERT-350M/tree/9d727d7964d3e4fd093a0f01c7287ae814264e31), [ms-marco-MiniLM-L6-v2](https://huggingface.co/cross-encoder/ms-marco-MiniLM-L6-v2/tree/233902d25c440f23af6f7d6e94d2946bac0bee0a), [bge-small-en-v1.5](https://huggingface.co/BAAI/bge-small-en-v1.5/tree/5c38ec7c405ec4b44b94cc5a9bb96e735b38267a), [bge-m3](https://huggingface.co/BAAI/bge-m3/tree/5617a9f61b028005a4858fdac845db406aefb181), [paraphrase-multilingual-MiniLM-L12-v2](https://huggingface.co/sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2/tree/e8f8c211226b894fcb81acc59f3b34ba3efd5f42), [bge-reranker-v2-m3](https://huggingface.co/BAAI/bge-reranker-v2-m3/tree/953dc6f6f85a1b2dbfca4c34a2796e7dde08d41e), [nomic-embed-text-v1.5](https://huggingface.co/nomic-ai/nomic-embed-text-v1.5/tree/e9b6763023c676ca8431644204f50c2b100d9aab), [multilingual-e5-small](https://huggingface.co/intfloat/multilingual-e5-small/tree/614241f622f53c4eeff9890bdc4f31cfecc418b3) |
| OCR & documents | Line recognition and page transcription. | [trocr-base-printed](https://huggingface.co/microsoft/trocr-base-printed/tree/93450be3f1ed40a930690d951ef3932687cc1892), [GOT-OCR2_0-4bit](https://huggingface.co/mlx-community/GOT-OCR2_0-4bit/tree/0e28c87720de5d8af67389a0444cf8397524cb61), [Florence-2-base-ft](https://huggingface.co/microsoft/Florence-2-base-ft/tree/f6c1a25888ffc1d945ee8a1a77ac833c7303d46e), [PaddleOCR-VL-1.5-4bit](https://huggingface.co/mlx-community/PaddleOCR-VL-1.5-4bit/tree/3404726b40ac30b6e4e3d37c504e3f96c9c6c984), [LightOnOCR-2-1B](https://huggingface.co/lightonai/LightOnOCR-2-1B/tree/be7c41313c30e940fe5571de59e5fabc779e00c8), [DeepSeek-OCR-4bit](https://huggingface.co/mlx-community/DeepSeek-OCR-4bit/tree/4958b6b0d46d7dc3cf27556989dab659996ea426) |
| Image & video segmentation | SAM3 image prompts, video segmentation, and tracking. | [sam3](https://huggingface.co/facebook/sam3/tree/3c879f39826c281e95690f02c7821c4de09afae7) |
| Classification & extraction | Sentiment, named entities, and image classification. | [distilbert-base-uncased-finetuned-sst-2-english](https://huggingface.co/distilbert/distilbert-base-uncased-finetuned-sst-2-english/tree/714eb0fa89d2f80546fda750413ed43d93601a13), [bert-base-NER](https://huggingface.co/dslim/bert-base-NER/tree/d1a3e8f13f8c3566299d95fcfc9a8d2382a9affc), [clip-vit-base-patch32](https://huggingface.co/openai/clip-vit-base-patch32/tree/3d74acf9a28c67741b2f4f2ea7635f0aaf6f0268), [vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224/tree/3f49326eb077187dfe1c2a2bb15fbd74e6ab91e3) |
| Image generation | Text-to-image through the native engine and Web UI. Checkpoint-level qualification varies. | [FLUX.2 Klein 4B Q4](https://huggingface.co/mflux-community/flux2-klein-4b-mflux-q4/tree/794cd159538149ad9830848508c31f0ea7088e58), [Z-Image Turbo Q4](https://huggingface.co/mflux-community/z-image-turbo-mflux-q4/tree/f427e257d8e6ffa03edd4d9ac554a05809da456c), [MOSS-Image-SFT Q4](https://huggingface.co/mflux-community/moss-image-sft-mflux-q4/tree/bc3b8a2c0bfa5919d9ba18101633dca007a9a6b6) |

Additional native text paths include [Llama 3.2 1B Instruct Q4](https://huggingface.co/mlx-community/Llama-3.2-1B-Instruct-4bit/tree/08231374eeacb049a0eade7922910865b8fce912) and [Inkling 2 Mini Bare Speed](https://huggingface.co/Youssofal/Inkling-2-Mini-MTPLX-Bare-Speed).
Inkling support here covers text generation.

The historical release cohort covers 45 architecture types and 50 verified
checkpoint profiles across seven modalities. SAM3 uses the same checkpoint
across four execution types. Image generation is tracked separately in the
current source tree.
[Release catalog](https://github.com/SSusantAchary/mlx-one/blob/d0c2c4481c49b042b677957329346fe5139e8010/src/mlx_one/data/model_support_release_20261108.json) · [Additional qualification results](https://github.com/SSusantAchary/mlx-one/blob/d0c2c4481c49b042b677957329346fe5139e8010/docs/qualification/batch-1-sub-6b/results.json)


## Native Inference Engine and MLXBoost

`mlx_one.Engine` manages a native text model's lifecycle, synchronous generation,
streaming, asynchronous submission, cooperative cancellation and cleanup. The
existing `generate()` and `stream_generate()` functions remain available.

Dense reference execution is the default, with one active sequence. Block,
paged, dense-batch and hybrid-batch paths have explicit capability and evidence
requirements; source implementation does not establish production qualification.

MLXBoost ships inside `mlx-one` and requires explicit `mlxboost_b1` opt-in;
feature flags default off. `fast_decode` reduces eligible host overhead. The
GPT-OSS MXFP4/Q4 recipe uses pinned expert dispatch, compiled activation and
bounded prefill, selected with `MLXBoostConfig(gptoss_mlx_lm=True)` or
`--mlxboost-gptoss-mlx-lm`. Unsupported configurations retain explicit fallback
or strict errors. Optimizations remain profile-specific and experimental.

The 0.1.4 maintenance changes add native sampling improvements and conservative
full-history decode attention. Sustained long responses still slow down.

### MLX-Boost Performance Scorecard — experimental

Recorded achievements include the accepted Phase 0 native bridge and offline
tooling, implemented Q4/Q8 GEMV kernels, and a correctness-tested MoE combine
prototype. These implementation milestones do not establish model acceleration.

Selected operator measurements on Apple M4 / 32 GiB.

| Implementation | Verified measurement | Status |
| --- | --- | --- |
| Phase 0 AXPBY and F01–F04 infrastructure | 123 acceptance tests; 180 numerical cases with zero error. FP16 `[4096]`: stock/native **262.0000/226.3125 µs** and **258.8125/224.1035 µs** in two runs | Foundation accepted; demo remains experimental |
| G03 affine Q4 GEMV | FP16/group 64, K×N=2048×2048: stock **61.845 µs**, native **134.120 µs** (**0.4611×**) | **UNQUALIFIED** |
| G03 affine Q8 GEMV | FP16/group 64, K×N=896×896: stock **22.047 µs**, native **29.389 µs** (**0.7502×**) | **UNQUALIFIED** |
| Fused MoE combine prototype | 17 focused tests pass; FP16 `[1,4,2048]`: stock **0.536458 ms**, native **0.540542 ms**; no speed win | Operator rejected; model blocked |

These operator measurements leave model acceleration unqualified. The optimizations remain opt-in.
See the [machine-readable MLXBoost scorecard](https://github.com/SSusantAchary/mlx-one/blob/main/docs/experimental/mlxboost-performance-scorecard.json).

## Python, CLI and HTTP APIs

Stream text through the Python engine:

```python
from mlx_one import Engine

with Engine(model="LiquidAI/LFM2-350M") as engine:
    for chunk in engine.stream("Name two advantages of MLX.", max_tokens=64):
        print(chunk.text, end="", flush=True)
```

Inspect a model without loading weights, or transcribe a local recording:

```bash
mlx-one inspect Qwen/Qwen2.5-1.5B
mlx-one transcribe openai/whisper-tiny recording.wav --language en
```

Audio files require FFmpeg. Send a chat request to the server started above:

```bash
curl http://127.0.0.1:8888/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -d '{"model":"lfm2-local","messages":[{"role":"user","content":"Explain MLX briefly."}],"max_tokens":64}'
```

Task-specific HTTP routes use the same server authentication and model lifecycle:

| Task | Endpoint |
| --- | --- |
| Dense embeddings | `/v1/embeddings` |
| Paired reranking | `/v1/rerank` |
| T5 text-to-text generation | `/v1/tasks/text-to-text-generation` |
| Supervised ViT classification | `/v1/tasks/image-classification` |
| Kokoro speech generation | `/v1/tasks/speech-generation` |

Serve a complete local task bundle with `mlx-one serve ./bundle --alias local`.

## Documentation

- [Quick Start](#quick-start) for setup, examples, and server commands.
- [Supported Modalities and Models](#supported-modalities-and-models) for checkpoint scope.
- [Python, CLI and HTTP APIs](#python-cli-and-http-apis) for request examples.
- [GitHub releases](https://github.com/SSusantAchary/mlx-one/releases) for release history.

## Contributing

To add a model, open a pull request against `main`. We aim to respond within 24 hours.

Contributions are welcome. Open an issue or pull request against `main`. Keep
changes focused, include tests for behavior changes, and run the documentation
and lint checks before opening a PR:

```bash
python scripts/release/check_documentation.py
python scripts/release/check_lint.py
python -m pytest --no-cov
```

CI is required on pull requests to `main`. Native-hardware and publication jobs
are maintainer-triggered.

## Security

Do not open a public issue for a security problem. Use GitHub's private
vulnerability reporting at
https://github.com/SSusantAchary/mlx-one/security/advisories/new. Include the
affected version, a minimal reproduction, and logs with secrets removed. See
[SECURITY.md](https://github.com/SSusantAchary/mlx-one/blob/main/SECURITY.md) for the full policy.

## Citation

If you use MLX-One in your work, please cite it as:

```bibtex
@software{mlx_one2026,
author = {Achary, S. Susant},
title  = {mlx-one: Unified Native MLX Stack for Apple Silicon},
year   = {2026},
url    = {https://github.com/SSusantAchary/mlx-one},
note   = {Version 0.1.5. Native GPU-accelerated machine learning workflows on Apple Silicon}
}
```

See [CITATION.bib](https://github.com/SSusantAchary/mlx-one/blob/main/CITATION.bib) for the repository citation file.

## License

MLX-One is released under the [Apache License 2.0](https://github.com/SSusantAchary/mlx-one/blob/main/LICENSE).
Model checkpoints retain their separate terms.
