Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

mlx-one

mlx-one

Train locally. Prove it on Apple Silicon. Scale when needed.

A unified, native MLX stack for language, vision-language, embeddings, audio-language, speech, and segmentation models on Apple Silicon.

CI Python 3.10+ Apache 2.0 License Apple Silicon Alpha status

Quickstart | Performance | Installation | Architecture | Repository summary | Model guides | Documentation | Examples

Why mlx-one?

MLX is an excellent foundation for machine learning on Apple Silicon, but model workflows are often split across separate packages and incompatible task APIs. mlx-one is building those pieces as one coherent stack:

The project owns its supported model math directly. Hugging Face supplies configuration, tokenizer/processor assets and safe safetensors checkpoints.

mlx-one API, inference and training runtimes, native execution layer, and Apple MLX architecture

Click the diagram to view it at full resolution. It shows current and planned architecture: MTP, CPT and RL labels do not establish implemented or qualified workflows. Checkpoint, task, precision and device validation are tracked separately.

Model Performance

Actual direct-model inference measurements; experimental, batch size 1. Python Engine, CLI and HTTP serving throughput are separate measurement types and are not represented by these numbers. Parameters are nominal model sizes.

Configured context windows come from the pinned checkpoint configs; they are separate from benchmark input lengths and do not establish full-window validation. See the config sources.

MLX-One text-model decode speed by nominal parameter size on Apple M4

Model size vs decode speed scatter plot · Bar chart SVG · Chart data and reproduction. Protocols are shown separately; checkpoints without comparable measurements remain unmeasured.

Historical 128-input / 16-output protocol. These archived runs are not the new standardized 128-input / 128-output results. Source and primary precision measurements are listed separately; “source” means the stored weights.

historical-128-16 — Apple M4, 32 GB; macOS-15.7.9-arm64-arm-64bit; Python 3.12.11; MLX 0.32.2 / Metal 0.32.2. Backend: native MLX diagnostic dense; full sequence logits; production_fp16 KV. Actual input: 128 tokens; actual output: 16 tokens per repetition. 1 shape warmup; 3 measured repetitions; per-column median. FP16 KV; fresh state, no prefix reuse. TTFT includes prefill and greedy selection of the first token. Peak MLX resets before each request after load/conversion/warmup; it includes resident model allocations.

Model name Parameters Configured context (tokens) Quantization/precision Prefill tokens/sec Decode tokens/sec Time to first token (ms) Peak MLX memory (GiB)
openai-community/gpt2 124M 1,024 FP32 6722.29 118.04 19.04 0.594
Qwen/Qwen2.5-0.5B-Instruct 0.5B 32,768 Affine Q8 (group 64) 2001.96 83.48 63.94 0.632
Qwen/Qwen2.5-0.5B-Instruct 0.5B 32,768 BF16 (source) 1801.11 50.49 71.07 1.068
Qwen/Qwen3-0.6B 0.6B 40,960 Affine Q8 (group 64) 1275.02 65.47 100.39 0.816
Qwen/Qwen3-0.6B 0.6B 40,960 BF16 (source) 892.22 33.95 143.46 1.312
LiquidAI/LFM2-350M 350M 128,000 Affine Q4 (group 64) 3180.66 185.81 40.24 0.313
LiquidAI/LFM2-350M 350M 128,000 BF16 (source) 3169.32 91.87 40.39 0.783
HuggingFaceTB/SmolLM2-1.7B-Instruct 1.7B 8,192 Affine Q4 (group 64) 384.06 55.69 333.28 1.202
HuggingFaceTB/SmolLM2-1.7B-Instruct 1.7B 8,192 BF16 (source) 309.63 19.21 413.39 3.390
meta-llama/Llama-3.2-1B-Instruct 1B 131,072 Affine Q4 (group 64) 374.73 65.36 341.58 0.886
meta-llama/Llama-3.2-1B-Instruct 1B 131,072 BF16 (source) 572.81 29.75 223.46 2.455
Qwen/Qwen2.5-1.5B-Instruct 1.5B 32,768 Affine Q4 (group 64) 411.23 53.52 311.26 1.034
Qwen/Qwen2.5-1.5B-Instruct 1.5B 32,768 BF16 (source) 375.86 21.46 340.55 3.044
google/gemma-3-1b-it 1B 32,768 BF16 675.56 32.17 189.47 2.028
microsoft/Phi-3-mini-4k-instruct 3.8B 4,096 Affine Q4 (group 64) 159.64 29.92 801.79 2.357
microsoft/Phi-3-mini-4k-instruct 3.8B 4,096 BF16 (source) 126.13 10.87 1014.81 7.256

standard-128-128 — Apple M4, 32 GB; macOS-15.8.1-arm64-arm-64bit; Python 3.12.11; MLX 0.32.2 / Metal 0.32.2. Backend: native MLX direct dense; last_only logits; production_fp16 KV. Actual input: 128 tokens; actual output: 128 tokens per repetition. 1 shape warmup; 3 measured repetitions; per-column median. FP16 KV; fresh state, no prefix reuse. TTFT includes prefill and greedy selection of the first token. Peak MLX resets before each request after load/conversion/warmup; it includes resident model allocations.

Model name Parameters Configured context (tokens) Quantization/precision Prefill tokens/sec Decode tokens/sec Time to first token (ms) Peak MLX memory (GiB)
openai-community/gpt2 124M 1,024 FP32 4057.67 96.48 31.55 0.570

Standardized 128/128 coverage: 1 / 13 primary configurations. Remaining runs are pending; see the coverage report.

Missing primary-precision performance: Qwen/Qwen3.5-0.8B, LiquidAI/LFM2.5-24B-A2B-MLX-4bit, mlx-community/gpt-oss-20b-MXFP4-Q4, manjunathshiva/gpt-oss-20b-tq3. No speed or memory figures are inferred for these checkpoints.

See the methodology and manual commands, checkpoint/precision inventory, and coverage report. Full samples, output token IDs, immutable revisions, source hashes and hardware evidence live in docs/benchmarks.

GPT-OSS native HTTP serving

Measured on Apple M4 with 32 GB unified memory, Python 3.12, using the native MLX-One server on 2026-10-23. One warmup followed by five sequential tool-call requests; 175 prompt tokens and 91 generated tokens per request. Throughput and TTFT are per-column medians; memory is the observed peak. This serving workload uses a separate protocol from the direct-model tables above.

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 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. See the full measurements and methodology. Standardized direct-model 128/128 coverage remains unchanged.

Vision-Language Model Performance

Actual direct-model native MLX/Metal inference on pinned checkpoint revisions. These are image-inference measurements; Python Engine, CLI and HTTP serving overhead are separate. Functional and quality limits are recorded with the evidence.

VLM-HF-S1 v1: one 512 × 512 padded image from Hugging Face documentation-images, with dataset revision and image hashes pinned in the workload manifest. Batch 1, fixed prompt, greedy generation up to 128 emitted tokens; one warmup and five repetitions, per-column median. EOS is respected and actual output counts determine speed. Each checkpoint retains its own resize/tiling. TTFT includes image decoding/preprocessing; prefill combines vision encoding, projection and language prefill. “Vision processing” means image decoding/preprocessing only.

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

VLM size-versus-speed scatter plot · VLM chart SVG · Chart data and reproduction

Measured hardware: Apple M4, 32 GiB; macOS-15.8.1-arm64-arm-64bit; MLX 0.32.2; Python 3.12.11. Separate execution cohort.

Model Precision Images Vision processing (ms) Prefill TPS Decode TPS TTFT (ms) Peak MLX memory (GiB) Scores
Qwen2-VL 2B Q4 1 6.05 279.68 67.28 1290.28 1.755 Scores
Qwen2.5-VL 3B Q4 1 6.05 215.86 41.19 1670.08 3.164 Scores
Qwen3.5 0.8B Q4 1 4.81 717.75 68.78 401.16 1.129 Scores
LFM2-VL 450M Q8 1 7.16 1739.05 154.33 169.97 1.163 Scores
LFM2.5-VL 3B Q4 1 7.37 300.73 52.01 942.38 2.801 Scores

Actual fused input / emitted output tokens per repetition: Qwen2-VL 2B: 359 / 112; Qwen2.5-VL 3B: 359 / 79; Qwen3.5 0.8B: 284 / 106; LFM2-VL 450M: 282 / 128; LFM2.5-VL 3B: 281 / 101.

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 methodology and coverage, pinned checkpoint inventory, and manual download/inference/benchmark runbook. Text-model measurements above use different protocols. See the checkpoint smoke and cleanup report.

Audio Model Performance

Native audio support is experimental. 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.

Protocol: batch 1, one warmup, five repetitions, median; actual audio durations. ASR uses a fixed 10-second clip (ASR-S1); TTS uses fixed 30-word text (TTS-S1). RTF is processing seconds divided by input audio seconds for ASR, or generated audio seconds for synthesis. Lower RTF is faster. Hardware and MLX version are listed for each measured cohort. Direct-model, Python Engine and full file-pipeline runs remain separate.

Speech Recognition Performance

MLX-One speech recognition throughput by nominal model size, with single-clip WER and peak memory

ASR size-versus-throughput scatter plot · ASR chart SVG

Model Precision Audio (s) Latency (ms) RTF ↓ Audio sec/sec ↑ WER (%) Peak MLX (GiB) Scores
Whisper Tiny FP32 10.000 2144.869 0.214 4.662 4.167 0.485 Scores
Whisper Large v3 Turbo FP16 10.000 7666.962 0.767 1.304 4.167 2.694 Scores
Distil-Whisper Large v3 FP16 10.000 5433.400 0.543 1.840 0.000 2.596 Scores
Moonshine Tiny FP32 10.000 117.038 0.012 85.443 4.167 0.191 Scores
Moonshine Base FP32 10.000 153.511 0.015 65.142 12.500 0.423 Scores
Qwen3-ASR 0.6B Q8 / BF16 10.000 528.726 0.053 18.913 0.000 1.281 Scores
Qwen3-ASR 1.7B Q8 / BF16 10.000 1017.307 0.102 9.830 0.000 2.656 Scores
Parakeet TDT v2 FP32 10.000 169.265 0.017 59.079 0.000 2.383 Scores
Parakeet TDT v3 FP32 10.000 174.019 0.017 57.465 0.000 2.417 Scores
LFM2.5 Audio 1.5B Q4 / BF16 10.000 547.659 0.055 18.260 4.167 1.472 Scores

Measured on Apple M4, 32 GiB; MLX 0.32.2; native MLX/Metal; direct-model-prepared-pcm; ASR-S1.

Forced Alignment Performance

Model Precision Audio (s) Latency (ms) Mean boundary error (ms) Peak MLX (GiB) Scores
Qwen3-ForcedAligner 0.6B Q8 / BF16 10.000 189.892 — 1.546 Scores

Measured on Apple M4, 32 GiB; MLX 0.32.2; native MLX/Metal; direct-model-prepared-pcm; ALIGN-S1.

Speech Generation Performance

MLX-One speech generation throughput, with separate TTS and speech-to-speech workloads and the failed longer case

Speech generation chart SVG · Chart data and reproduction. 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 Q4 / BF16 synthesize 328.986 12.320 0.312 3.207 1.850 Scores
LFM2.5 Audio 1.5B Q4 / BF16 speech-to-speech — — — — — Failed; WIP

Measured on Apple M4, 32 GiB; MLX 0.32.2; native MLX/Metal; direct-model-prepared-pcm; TTS-S1.

Speech-to-speech: separate short-question workload

STS-HF-Q1: a different 2.04-second spoken question from the same pinned dataset, without padding; greedy generation, one warmup, five repetitions, median. This completed case does not replace the failed 10-second STS-S1 run.

Model First audio (ms) Output (s) RTF ↓ Audio sec/sec ↑ Peak MLX (GiB)
LFM2.5 Audio 1.5B Q4 426.127 15.360 0.349 2.867 2.016

Apple M4, 32 GiB; MLX 0.32.2; native MLX/Metal; direct-model-prepared-pcm. Experimental; speech quality requires listening review.

Qwen alignment remains WIP because historical timestamp discrepancies are unresolved; boundary errors need independently annotated reference timings. 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.

Methodology and coverage · Manual download, Python/CLI/HTTP and benchmark commands

OCR Model Performance

Experimental native OCR on 100 randomly selected document images from OmniAI OCR Benchmark. All page models use the same pinned sample (seed 20261025).

Apple M4, 32 GiB unified memory · MLX 0.32.2 · direct-model inference · native MLX/Metal · batch 1. One 16-token warmup, then one timed request per image; image-dependent input lengths and a 1,023-token output cap, greedy decoding. Actual token counts are retained in JSON. Latency is the median of completed requests; pages/s is completed pages divided by total inference time, including failed requests. Peak memory is the maximum observed MLX allocation, including weights.

OCR throughput on 100 document images

Model Precision Completed Median latency (s) Pages/s Markdown-ref. CER ↓ Peak MLX (GiB) Truncated
TrOCR Base Printed FP32 Line crops required — — — — —
TrOCR Base Handwritten FP32 Line crops required — — — — —
GOT-OCR 2.0 Affine Q4 97/100 12.42 0.114 74.5% 1.673 56
Florence-2 Base FT FP16 97/100 6.60 0.197 78.3% 1.201 61
PaddleOCR-VL 1.5 Affine Q4 97/100 13.87 0.087 59.8% 1.560 53
LightOnOCR 2 1B BF16 97/100 31.53 0.032 67.7% 8.661 64
DeepSeek-OCR Affine Q4 97/100 13.59 0.076 51.2% 3.810 41

CER uses NFKC and whitespace normalization against Markdown references; formatting and reading order affect this score, which can exceed 100%. Failed requests count as empty predictions. This is an MLX-One corpus test, separate from OmniAI’s official leaderboard and the synthetic OCR-S* protocol.

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.

Methodology, per-image predictions and cleanup evidence · OCR limitations and manual commands

Handwriting: 10 line images

The same seeded sample of 10 test-split images from handwritten_text_ocr. One 16-token warmup; one request per image; image-dependent input lengths; 128-token output cap. Micro CER/WER use the supplied plain-text references after NFKC and whitespace normalization; failed requests count as empty outputs.

Apple M4, 32 GiB · MLX 0.32.2 · native MLX/Metal · direct-model inference · batch 1.

OCR throughput on 10 handwritten lines

Model Precision Completed Median latency (s) Images/s CER ↓ WER ↓ Peak MLX (GiB) Truncated
TrOCR Base Printed (printed baseline) FP32 10/10 0.27 3.608 80.6% 100.0% 1.488 0
TrOCR Base Handwritten FP32 10/10 0.21 4.670 4.4% 10.6% 1.488 0
GOT-OCR 2.0 Affine Q4 10/10 0.67 1.491 40.6% 94.7% 1.673 0
Florence-2 Base FT FP16 10/10 0.30 3.051 97.9% 143.6% 1.201 1
PaddleOCR-VL 1.5 Affine Q4 10/10 1.13 0.790 13.8% 43.6% 1.540 0
LightOnOCR 2 1B BF16 10/10 0.98 1.102 6.9% 33.0% 2.766 0
DeepSeek-OCR Affine Q4 10/10 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. Protocol, predictions, truncations and coverage.

Architecture

The native text inference path is:

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

The actor owns request state, sampling, cancellation and execution barriers. Token budgets and chunked prefill coordinate active requests. Cache reservations and live memory-pressure telemetry govern admission; matching evidence governs qualified backend selection before cache storage is constructed. Native model implementations remain within mlx-one.

Native inference engine

mlx-one now exposes a lifecycle-managed Python engine while retaining the existing generate() and stream_generate() functions:

from mlx_one import Engine

with Engine(model="LiquidAI/LFM2-350M") as engine:
    result = engine.generate("Explain unified memory briefly.", max_tokens=128)
    print(result.text)

    for chunk in engine.stream("Name two advantages of MLX."):
        print(chunk.text, end="", flush=True)

The runtime includes typed sequence/runner contracts, isolated request RNG, bounded output queues, transactional caches, byte-bounded prefix sharing and explicit execution modes. HTTP prefix namespaces derive from authenticated principals; anonymous requests remain private. Python callers can supply an explicit cache namespace.

Mode Execution and availability
reference_dense Existing single-request dense execution; cooperative server slots use separate B=1 forwards.
experimental_block Materialized block-cache path for supported unquantized Qwen2/Qwen2.5; experimental.
experimental_dense_batch Actor-driven dense batching for supported native adapters; experimental and not production-qualified.
paged Direct page-backed attention using the segmented arena and existing Metal kernels; supported contracts only, qualification pending.
experimental_hybrid_batch Native LFM2 attention and request-local convolution state; qualification pending.
auto Opt-in selection from matching performance-qualified evidence; otherwise reference dense with a reported reason.

Omitting the mode preserves existing behavior. The default active-sequence limit remains one; larger batches require explicit configuration. Unsupported explicit optimized modes raise capability errors. Native affine INT8 loading and floating FP16 conversion preserve packed weight payloads; optimized P1 profiles use FP16 KV. Quantized paged KV and 128K-class admission remain evidence-gated.

See the repository summary for current validation, layout and benchmark status, and the native inference-engine roadmap for broader plans.

Cache runtime qualification

Cache and optimized execution paths remain experimental; dense B1 is the bounded reference scope. Historical P1 results do not certify other checkpoints, longer contexts or optimized backends. Model admission now follows the functional support policy.

For the recorded workloads, numerical investigations, limitations and development commands, see the P1 execution report, P1 qualification matrix and M4 cache report.

What is implemented

  • Native MLX architectures across language, vision-language, embeddings, audio-language, ASR, and segmentation.
  • Shared attention, GQA, RoPE, normalization, feed-forward, MoE, vision, hybrid convolution, masking, and KV-cache primitives.
  • Lazy metadata-driven model registration without initializing Metal during lightweight package imports.
  • Strict configuration validation and deterministic weight contracts that reject unknown or shape-incompatible tensors.
  • Safe local and pinned Hugging Face artifact inspection.
  • Native Whisper loading, audio preprocessing, tokenization, decoding, language detection, segment timestamps, word timestamps, and WER/CER evaluation.
  • Distil-Whisper large-v3 through the native Whisper loader, with pinned M4 English short-form transcript/segment gates and safe precision-variant selection. See audio qualification.
  • Native original Moonshine Tiny/Base waveform encoders and cached greedy transcription, with pinned M4 English short-form gates.
  • Native Qwen3-ASR 0.6B/1.7B, separate known-text ForcedAligner, and bounded accumulated-utterance streaming through Python/CLI. Qwen checkpoint qualification is incomplete; 0.6B has scoped English/French offline passing evidence.
  • Native offline Parakeet TDT v2/v3, strict float32 loading and isolated v2 NeMo conversion. Both English transcript gates and v3 French/German gates pass; original v2 NeMo parity, timestamps and broader qualification remain WIP.
  • Unified native text loading, tokenizer/chat templates, affine 4-bit/8-bit checkpoints, cached greedy and seeded sampling, stop sequences, token streaming, and serving for GPT-2, Qwen2/Qwen3, LFM2, OpenELM, and text-only Qwen3.5 families.
  • Native Qwen3 embedding and reranking with byte-level BPE, safe loading, padding-aware batching, Matryoshka dimensions, normalization, cosine similarity, yes/no pair scoring, and stable ranking.
  • Native Meta SAM3 float32 loading, text/box concept segmentation, interactive point/box/mask prediction, experimental automatic masks, and stateful offline and streaming video tracking through Python and CLI. Qualification is partial; see the SAM3 model guide and M4/32 GB results.
  • Dataset validation, memory planning, LoRA/QLoRA SFT workflows, adapter export, evaluation, comparison, benchmarking, and evidence records.
  • Backend-free tests plus opt-in Metal and real-checkpoint integration gates.
  • A context-managed mlx_one.Engine with streaming, asynchronous submission, cooperative cancellation, runtime capability inspection, and explicit cleanup.

Installation

mlx-one requires Python 3.10 or newer and an Apple Silicon Mac with macOS 15 or later for model execution. The current MLX/Metal pair is pinned to 0.32.2; Python 3.12.11 is the tested development environment.

git clone https://github.com/SSusantAchary/mlx-one.git
cd mlx-one
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -e .

Install development tools with:

python -m pip install -e ".[dev]"

To reproduce the recorded Apple M4 / Python 3.12.11 candidate dependencies, use python -m pip install -c requirements/alpha-tested-constraints.txt -e ".[dev]" inside a Python 3.12.11 environment. These constraints are an environment snapshot, not a lockfile for every supported Python version. On Python 3.10, 3.11 or 3.13, install without that constraints file and validate the resolved environment. See dependency policy and tested minimums.

Qwen known-text alignment has separate optional language dependencies:

python -m pip install -e ".[qwen-align-ja]"  # Japanese: nagisa==0.2.11
python -m pip install -e ".[qwen-align-ko]"  # Korean: soynlp==0.0.493

Korean alignment also needs the checksummed korean_dict_jieba.dict in the local checkpoint directory. The extra installs only the tokenizer. See the alignment asset instructions.

The native engine and server do not require mlx-lm. Install mlx-one[legacy-mlx-lm] only for legacy compatibility workflows that explicitly request that bridge.

For SAM3 image processing, install the existing vision extra:

python -m pip install -e ".[vision]"

Meta's SAM3 checkpoint requires authorized gated access and acceptance of its separate checkpoint license. Authenticate with hf auth login, or use an authorized complete local snapshot with --offline. SAM3 runs in float32; quantized checkpoints and SAM3.1 are unsupported.

FFmpeg is required when the Whisper/Moonshine/Qwen/Parakeet API receives an audio file; encoded SAM3 videos require both FFmpeg and ffprobe. Decoded mono 16-kHz waveforms, SAM3 frame directories, and Python RGB frame iterators need no video/audio decoder.

Quick start

Native server and Web UI

Load one supported text model and start the bundled local UI:

python -m pip install -e ".[server]"
mlx-one serve Qwen/Qwen3-0.6B --inference-mode reference_dense

mlx-one native chat Web UI

Click the thumbnail to open the full-size UI screenshot.

To expose a shorter model name and protect /v1/* with a Bearer key:

mlx-one serve LiquidAI/LFM2-350M \
  --host 127.0.0.1 \
  --port 8181 \
  --alias lfm2-local \
  --api-key local-secret

To enable the UI microphone and audio-file transcription, load a private native Whisper sidecar:

mlx-one serve CHAT_MODEL \
  --transcription-model WHISPER_MODEL \
  --host 127.0.0.1 \
  --port 8181

The Whisper model is loaded only when this flag is supplied. Recordings stay local, are transcribed through MLX, and the editable transcript is inserted into the composer without being sent automatically. FFmpeg is required for browser audio decoding.

Enter local-secret in the UI's API key field and select Connect. Terminal clients must send the same key and use the alias as the request model:

curl http://127.0.0.1:8181/v1/models \
  -H 'Authorization: Bearer local-secret'

curl -N http://127.0.0.1:8181/v1/chat/completions \
  -H 'Authorization: Bearer local-secret' \
  -H 'Content-Type: application/json' \
  -d '{"model":"lfm2-local","messages":[{"role":"user","content":"Explain MLX in one sentence."}],"stream":true}'

Authentication is disabled when neither --api-key nor MLX_ONE_API_KEY is configured. A 401 Unauthorized response from /v1/* means the Bearer key is missing or invalid; /health and the static UI remain public.

The native server also supports model aliases, optional Bearer authentication, effective context limits, request deadlines, cooperative parallel slots, prompt/context caching, context shifting, reasoning output, quantized KV caches, and Qwen3.5 MTP speculative decoding. Run mlx-one serve --help for the complete flag list.

Cache Runtime V1 keeps dense KV as the default and exposes the Qwen2/Qwen2.5 block backend as an opt-in experimental path:

mlx-one serve MODEL --cache-backend block --kv-block-size 32 \
  --kv-cache-budget-mib 8192 --prefix-cache-mib 512

The block backend currently requires unquantized f16 Qwen2/Qwen2.5 text generation with batch size one. Unsupported combinations fail explicitly. Runtime cache ownership, memory, reservation, block, and prefix statistics are included in GET /v1/runtime.

With the default port, open http://127.0.0.1:8888 (or http://127.0.0.1:8181 for the explicit-port examples above). The same process exposes an OpenAI-compatible API at /v1, including streaming chat completions. Model execution remains inside mlx-one's native model, tokenizer, sampling, generation, and MLX runtime. See the Web UI and server guide for API and development details.

Inspect, plan, and run tasks

Check the machine and inspect a model without loading its weights:

mlx-one doctor

mlx-one inspect Qwen/Qwen2.5-1.5B

Build a workload-aware memory plan:

mlx-one plan inference \
  --model Qwen/Qwen2.5-1.5B \
  --hardware m4-air-32gb \
  --precision bf16 \
  --context-length 2048

Generate text through the native GPT-2 stack:

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

Use --stream for incremental text, --json-output for a structured result, or --offline with an existing local/cache copy. Model downloads occur only when a user explicitly supplies an online repository without --offline.

Transcribe audio through the native Whisper stack:

mlx-one transcribe openai/whisper-tiny recording.m4a \
  --language en \
  --word-timestamps \
  --json-output

Omit --language for automatic detection. Add --task translate for speech-to-English translation or --offline to require local/cached assets.

Create document or instructed query embeddings:

mlx-one embed Qwen/Qwen3-Embedding-0.6B "A document to index" \
  --dimensions 512 \
  --json-output

mlx-one embed Qwen/Qwen3-Embedding-0.6B "local Apple Silicon training" \
  --input-type query

Rerank candidate documents while preserving their original indexes:

mlx-one rerank Qwen/Qwen3-Reranker-0.6B \
  "Which Macs support MLX?" \
  "MLX is designed for Apple silicon." \
  "CUDA targets NVIDIA GPUs." \
  --top-k 1 \
  --json-output

For reproducible evaluation and qualification, add --revision with an exact model commit. Raw commit hashes are kept in integration tests and evidence records rather than introductory examples.

Model-Specific Documentation

Each registered model type has a guide beside its implementation, with checkpoint assets, model architecture diagrams, paper references, input formats, examples, settings, troubleshooting, and validation links. The organization follows mlx-vlm's model guides; the workflows below describe mlx-one's current implementation.

An available loader or integration gate is not a passing qualification result. Examples marked as candidates require verification for the exact checkpoint and workload. See capability levels and the qualification candidate catalog.

Text generation guides

Family Available workflow Qualification summary Guide
GPT-2 Completion, sampling, streaming 124M bounded functional smoke; larger checkpoints remain candidates Docs
Llama / MiniCPM5 / SmolLM2 Completion, template chat, quantized loading MiniCPM5 pinned gate; SmolLM2 M4 LoRA/reload evidence, quality gate failed Docs
Qwen2 / Qwen2.5 / Qwen2.5-Coder Completion, template chat, streaming Coder M4 LoRA/reload evidence, quality gate failed; cache qualification partial Docs
Qwen3 dense Completion, template chat, streaming 0.6B bounded functional smoke; other checkpoints remain candidates Docs
Qwen2-MoE Experimental native text loading/generation Architecture/synthetic; checkpoint unqualified Docs
OpenELM Completion with compatible tokenizer assets Candidate; verify exact release Docs
LFM2 / LFM2.5 Hybrid text generation and chat Per checkpoint; M4 block-rejection safety result Docs
LFM2-MoE Experimental hybrid text loading/generation Architecture/synthetic tests; LFM2.5-24B-A2B full-checkpoint smoke pending Docs
Gemma3 text Completion/chat, bounded sliding state 1B bounded functional smoke; numerical/answer-quality limitations disclosed Docs
Phi3 Completion/chat, bounded sliding state Mini-4K bounded functional smoke; wider context/precision not qualified Status
GPT-OSS Experimental native MXFP4 and TQ3 inference Architecture/kernel tests; both 20B full-checkpoint runs pending Docs

Vision-language guides

Family Available workflow Qualification summary Guide
Qwen2-VL Native Python, image CLI, HTTP chat and SSE Pinned Q4 checkpoint smoke passed on M4; experimental; static images only Docs
Qwen2.5-VL Native Python, image CLI, HTTP chat and SSE Pinned Q4 checkpoint smoke passed on M4; experimental; static images only Docs
Qwen3.5 Native text and static-image generation, CLI, HTTP/SSE Targeted 0.8B MLX Q4 image checkpoint smoke passed; alternative revisions unqualified Docs
LFM2-VL / LFM2.5-VL Native SigLIP2 NaFlex + hybrid decoder, Python/CLI/HTTP/SSE Pinned Q8 450M and Q4 3B checkpoint smokes passed on M4; experimental Docs

Retrieval guides

Family Available workflow Qualification summary Guide
BERT / all-MiniLM-L6-v2 Single-vector embeddings and similarity Candidate; synthetic validation Docs
MPNet / all-mpnet-base-v2 Single-vector embeddings and similarity Candidate; synthetic validation Docs
Qwen3 Embedding Instructed queries, dimensions, normalized vectors 0.6B candidate; synthetic validation Docs
Qwen3 Reranker Pair scores, probabilities, stable ranking 0.6B candidate; synthetic validation Docs
LFM2 ColBERT Lower-level token embeddings and masked MaxSim Candidate; generic single-vector embed incompatible Docs

Audio guides

Family Available workflow Qualification summary Guide
Whisper / Distil-Whisper Transcription, language detection, timestamps, WER/CER Tiny/turbo smoke gates; Distil-large-v3 M4 English short-form gates pass; broader qualification pending Docs
Moonshine Tiny / Base Native offline English transcription, Python/CLI Both pinned checkpoints pass M4 English short-form gates; streaming/long-form unqualified Docs
Qwen3-ASR 0.6B / 1.7B Native transcription and bounded accumulated-utterance streaming, Python/CLI 0.6B English/French offline gates pass; WIP: 1.7B English WER/CER match reference but only 15/16 exact anchors pass; streaming parity and remaining language gates unresolved Docs
Qwen3-ForcedAligner 0.6B Native known-text alignment, Python/CLI; not ASR Float32 components pass; WIP: English timestamp differences reach 800 ms against an 80-ms limit; remaining qualification unresolved Docs
Parakeet TDT v2 / v3 Native offline transcription, Python/CLI; isolated v2 archive conversion Float32 components, both English 100-clip/16-anchor gates and v3 French/German 25-clip gates pass; WIP original v2 NeMo, timestamp and broader qualification Docs
LFM2.5 Audio Native ASR, TTS, speech-to-speech, Python/CLI/HTTP and ordered PCM streaming Source/tiny native tests; Q4 checkpoint and speech quality validation pending Docs

Audio implementation progress — WIP

The native audio runbook documents the current source implementation, exact manual checkpoints and remaining limitations. Standardized measurements remain pending; historical investigations below are retained evidence.

As of 2026-10-04, unresolved qualification gates remain WIP and no longer block implementation of later families. This changes development sequencing, not acceptance thresholds: WIP does not mean qualified, and unavailable tasks are not advertised as working loaders.

Stage Checkpoints Implementation / qualification status
3 Qwen3-ASR 0.6B / 1.7B; ForcedAligner 0.6B Implemented; WIP exact anchors, alignment timestamps, streaming parity and missing language/corpus gates
4 Parakeet TDT v2 / v3; Nemotron 3.5 ASR Parakeet offline implemented; WIP full qualification. Nemotron contract frozen; native cached streaming not implemented
5 Voxtral Mini 3B; Voxtral Realtime 4B Checkpoint/tensor/processor contracts frozen; WIP / not implemented native offline/streaming transcription and qualification
6 Original VibeVoice 1.5B multi-speaker TTS Checkpoint contract, original source and supplemental tokenizer pinned; WIP / not implemented native synthesis, reference parity and fixture permission evidence

See the audio report for the numerical investigations, checkpoint limitations and remaining validation work.

Segmentation guides

Family Available workflow Qualification summary Guide
Meta SAM3 (sam3, sam3_tracker, sam3_tracker_video, sam3_video) Concept/interactive images, experimental automatic masks, composite offline/streaming tracking M4/32 GB single-object 32-frame fixture passes CPU-reference gates; full qualification pending; standalone temporal tracker architecture-only Docs

The SAM3 qualification report records exact checkpoint/reference revisions, memory measurements, preserved failures, and remaining gates. These fixture passes do not qualify all segmentation workflows.

Supported Models

For checkpoint assets, input formats, and usage limitations, see the model-specific guides. The tables below summarize implemented components; architecture coverage does not guarantee an end-to-end task.

Language models

Registry type Family Native components Architecture Qualification
gpt2 GPT-2 124M, 355M, 774M, 1.5B Learned positions, fused QKV, byte BPE, safe loading, cache, generation and streaming ✅ 124M bounded functional smoke; larger checkpoints remain candidates
llama Llama, MiniCPM5 1B/2B GQA, explicit head dimensions, RoPE, 4-bit MLX loading, multi-EOS generation ✅ MiniCPM5 pinned integration gate
qwen2 Qwen2, Qwen2.5, Qwen2.5-Coder Dense Transformer, GQA, RoPE, cache ✅ Per checkpoint
qwen3 Qwen3 dense Bias-free attention, Q/K norm, explicit head dimensions ✅ 0.6B bounded functional smoke; other checkpoints remain candidates
qwen2_moe Qwen2-MoE Top-k experts, shared expert, router outputs ✅ Architecture only
openelm OpenELM 270M–3B Layer-wise heads/FFN widths, fused QKV, GQA ✅ Verify release
lfm2 LFM2 and LFM2.5 Hybrid convolution/attention decoder ✅ Per checkpoint
lfm2_moe LFM2 / LFM2.5 MoE Hybrid decoder and sparse expert routing ✅ Architecture/synthetic tests; LFM2.5-24B full-checkpoint smoke pending
gemma3_text Gemma3 1B Native text decoder and sliding attention ✅ Bounded functional smoke; known numerical/answer-quality limitations
phi3 Phi-3 Mini-4K Native decoder and sliding attention ✅ Bounded functional smoke; wider context/precision not qualified
gpt_oss GPT-OSS 20B Native MoE, MXFP4 and packed TQ3 projections ✅ Architecture/kernel tests; full-checkpoint smoke pending

Vision-language models

Registry type Family Native components Architecture Qualification
qwen2_vl Qwen2-VL Vision Transformer, 3D patches, merger, multimodal RoPE, image/video token insertion ✅ Verify exact checkpoint and processor
qwen2_5_vl Qwen2.5-VL-3B Window/full vision attention, biased SwiGLU vision tower, merger, multimodal RoPE ✅ Pinned static-image checkpoint smoke passed on M4
qwen3_5 Qwen3.5 0.8B/2B Hybrid gated-delta/full-attention text tower, learned/interpolated vision positions, multimodal RoPE ✅ Text source smoke retained; targeted MLX VLM Q4 checkpoint smoke passed on M4
lfm2_vl LFM2-VL / LFM2.5-VL SigLIP2 NaFlex, pixel unshuffle/projector, hybrid language model ✅ Pinned Q8 450M / Q4 3B static-image checkpoint smokes passed on M4

OCR and documents

Native source paths cover TrOCR, GOT-OCR 2.0, Florence-2, PaddleOCR-VL 1.5, LightOnOCR 2 and DeepSeek-OCR. Full-checkpoint measurements are experimental; task limits and per-image results are documented above. See OCR performance and scope and the Python/CLI/HTTP guide.

Embeddings and retrieval

Registry type Family Native components Architecture Qualification
bert all-MiniLM-L6-v2 BERT encoder, mean pooling, normalization, cosine ✅ Candidate
mpnet all-mpnet-base-v2 MPNet relative positions, mean pooling, normalization, cosine ✅ Candidate
qwen3_embedding Qwen3-Embedding-0.6B Final-token pooling, instructed queries, Matryoshka dimensions, normalization, cosine ✅ Candidate; synthetic validation only
qwen3_reranker Qwen3-Reranker-0.6B Official pair prompt, yes/no logit scoring, probabilities, stable ranking ✅ Candidate; synthetic validation only
lfm2_colbert LFM2/LFM2.5 ColBERT Token embeddings, masks, late-interaction MaxSim ✅ Candidate

Audio and speech

Registry type Family Native components Architecture Qualification
whisper tiny, base, small, medium, large-v3, turbo, Distil-large-v3 Encoder-decoder, safe loading, log-Mel, BPE, decoding, language, timestamps, WER/CER ✅ Tiny/turbo smoke gates; Distil M4 English short-form evidence; broader qualification pending
moonshine Original Tiny 27M / Base 61M Raw-waveform convolutions, GroupNorm, partial interleaved RoPE, encoder/cached decoder, tokenizer, greedy transcription ✅ M4 English short-form evidence; streaming/long-form unqualified
qwen3_asr Qwen3-ASR 0.6B / 1.7B Chunked Conv2D/audio encoder, Qwen3 decoder, strict BF16 loading, context/language prompts, accumulated-utterance streaming ✅ 0.6B offline passes and remaining failures; WIP full qualification
qwen3_forced_aligner Qwen3-ForcedAligner 0.6B Separate 5,000-class timestamp head, known-text units and boundary reconstruction ✅ Alignment only; WIP timestamp parity (800 ms versus 80-ms limit)
parakeet_tdt Parakeet TDT 0.6B v2 / v3 Float32 FastConformer, LSTM predictor, joint token/duration heads, greedy offline transcription, strict safetensors loading ✅ Scoped M4 evidence; WIP full qualification; offline-only
lfm2_audio LFM2.5-Audio Native checkpoint loader, Conformer/LFM2, Depthformer and waveform codec ✅ Source implementation; real checkpoint smoke and speech quality pending

Segmentation and tracking

Registry type Family Native components Architecture Qualification
sam3 Meta SAM3 concept detector ViT, feature pyramid, CLIP text/geometry encoders, DETR, presence scoring, masks Native Pinned text-prompt image fixture evidence; box exemplars and full qualification pending
sam3_tracker Meta SAM3 interactive image model Point/box/mask prompts, two-way decoder, multimask prediction, refinement Native Pinned positive-point fixture passes; refinement and automatic-mask parity pending
sam3_tracker_video Meta SAM3 temporal tracker Memory encoding/attention, object pointers, temporal state Native Standalone architecture only; used by the composite video workflow
sam3_video Meta SAM3 composite video model Shared image backbone, detector/tracker association, object lifecycle, offline/streaming sessions Native Separate 32-frame single-object CPU-reference comparisons pass on M4/32 GB; natural multi-object clips unqualified

Use facebook/sam3 through the dedicated segmentation API or segment/track commands, not text generation or the text Engine. Native components do not imply full task qualification. The measured video fixtures achieved minimum mask IoU 0.99998, maximum score difference 0.00007511, exact boxes, and stable object ID 0, with approximately 8.41 GB peak MLX allocation. These are controlled single-truck clips, not general tracking quality or isolated performance benchmarks; see the qualification report.

The detailed family backlog and exact status are maintained in model catalog. Package ownership and dependency boundaries are defined in repository summary.

Text checkpoint status

The existing text checkpoint scope is dense B1 with FP16 KV. These are bounded functional results, not a general quality or maximum-context guarantee. Exact revisions, precision limits and the three planned large checkpoints are recorded in the checkpoint inventory.

Checkpoint Primary precision Status
openai-community/gpt2 float32 Experimental; bounded functional smoke
Qwen/Qwen2.5-0.5B-Instruct affine_q8 Experimental; bounded functional smoke
Qwen/Qwen3-0.6B affine_q8 Experimental; bounded functional smoke
LiquidAI/LFM2-350M affine_q4 Experimental; bounded functional smoke
Qwen/Qwen3.5-0.8B affine_q4 Experimental; primary Q4 unqualified
HuggingFaceTB/SmolLM2-1.7B-Instruct affine_q4 Experimental; bounded functional smoke
meta-llama/Llama-3.2-1B-Instruct affine_q4 Experimental; bounded functional smoke
Qwen/Qwen2.5-1.5B-Instruct affine_q4 Experimental; bounded functional smoke
google/gemma-3-1b-it bfloat16 Experimental; bounded functional smoke
microsoft/Phi-3-mini-4k-instruct affine_q4 Experimental; bounded functional smoke

Capability levels

mlx-one deliberately avoids turning one successful test into a broad support claim.

Level Meaning
Architecture ✅ Config, model math, registry, weight contract, and synthetic tests pass
Candidate The family or checkpoint still needs full integration evidence
Integration-tested An exact checkpoint revision passes its task contract
Hardware-verified A checksummed workload passes on a recorded Apple Silicon profile
Quality-verified A pinned evaluation protocol passes its quality threshold

Every evidence claim is scoped to a model revision, operation, precision, workload, software environment, and hardware profile.

CLI

Inspect and plan

mlx-one inspect MODEL [--revision REVISION] [--offline] [--json-output]
mlx-one hardware list
mlx-one hardware detect --json-output
mlx-one plan inference --model MODEL --hardware PROFILE
mlx-one plan train --model MODEL --hardware PROFILE --method auto

Inspection is metadata-only: it does not execute remote model code or open pickle checkpoints.

Generate text

mlx-one generate MODEL PROMPT \
  [--revision REVISION] [--offline] [--cache-dir DIRECTORY] \
  [--max-tokens N] [--temperature T] [--top-k K] [--top-p P] \
  [--seed N] [--stop TEXT] [--stream] [--json-output]

GPT-2 uses the native path for direct generation, evaluation, and inference benchmarking. Native GPT-2 training and adapters are intentionally rejected until their own implementation and validation gates are complete.

Embed and rerank

mlx-one embed MODEL TEXT... \
  [--input-type query|document] [--instruction TEXT] [--dimensions N] \
  [--max-length N] [--batch-size N] [--offline] [--json-output]

mlx-one rerank MODEL QUERY DOCUMENT... \
  [--instruction TEXT] [--top-k N] [--max-length N] [--batch-size N] \
  [--offline] [--json-output]

Both commands use the native Qwen3 tokenizer and strict safetensors loader. Document embeddings are unprefixed; query embeddings use the documented Qwen3 instruction format. Reranking returns the original document index, raw yes/no logit difference, and two-class probability.

Segment images and track video

mlx-one segment facebook/sam3 image.jpg --mode concept --text "person" \
  --output results-concept
mlx-one segment facebook/sam3 image.jpg --mode interactive \
  --prompts-json prompts.json --output results-interactive
mlx-one segment facebook/sam3 image.jpg --mode automatic \
  --points-per-side 32 --output results-automatic

mlx-one track facebook/sam3 video.mp4 --text "person" --output results-offline
mlx-one track facebook/sam3 frames/ --streaming --text "person" --output results-stream

Both commands accept --revision, --offline, and --cache-dir. The publisher's SAM3 checkpoint defaults to the pinned revision recorded in the qualification report. An interactive prompts.json can contain:

{"points": [[100, 120]], "point_labels": [1]}

Coordinates must lie within the original image; labels 1 and 0 mean positive and negative points. The SAM3 guide documents box exemplars, refinement masks, and timed video prompt JSON for corrections/removal. Exports contain mask PNGs and a JSON manifest with scores, pixel-space XYXY boxes, identifiers, dimensions, and checkpoint provenance. Existing output directories are never overwritten.

Streaming processes frames chronologically and rejects retroactive corrections; offline sessions retain frames for replay. Streaming omits future-dependent hotstart removal, so its outputs are qualified separately. Automatic generation currently uses a single-image point grid and mask-IoU NMS, not a qualified crop-layer pipeline. These workflows remain experimental; no SAM3 training, HTTP endpoints, or Web UI integration is provided.

Validate training data

mlx-one data validate \
  --dataset examples/text-sft/train.jsonl \
  --layout prompt-completion

Supported layouts are instruction, messages, prompt-completion, and text. A tokenizer can be supplied for truncation and loss-mask previews.

Train and export

mlx-one train \
  --model Qwen/Qwen2.5-Coder-1.5B-Instruct \
  --revision PINNED_REVISION \
  --dataset examples/text-sft/train.jsonl \
  --config examples/text-sft/train.yaml

mlx-one export \
  --checkpoint runs/qwen-coder-sft/adapters/mlx-one-checkpoint.json \
  --output artifacts/qwen-coder-sft

Training is experimental. Start with the planner and pin the model revision.

Evaluate, compare, and benchmark

mlx-one evaluate \
  --model Qwen/Qwen2.5-Coder-1.5B-Instruct \
  --revision PINNED_REVISION \
  --dataset examples/text-sft/eval.jsonl \
  --predictions examples/text-sft/predictions-smoke.json \
  --runs-dir runs \
  --json-output

mlx-one compare runs/base/result.json runs/candidate/result.json \
  --gate examples/text-sft/quality-gate.yaml \
  --format markdown

mlx-one benchmark inference \
  --model Qwen/Qwen2.5-Coder-1.5B-Instruct \
  --revision PINNED_REVISION \
  --prompts examples/text-sft/prompts.json

ASR evaluation uses the pinned whisper-wer-v1 and whisper-cer-v1 profiles.

Evidence and registry

mlx-one registry list
mlx-one registry validate registry.json
mlx-one evidence publish --result runs/example/result.json --output evidence.json

Python API

Inspect and plan without initializing Metal:

from mlx_one import (
    Precision,
    WorkloadKind,
    WorkloadSpec,
    estimate_memory,
    inspect_model,
    load_hardware_profile,
)

model = inspect_model("Qwen/Qwen2.5-1.5B").model
hardware = load_hardware_profile("m4-air-32gb")
workload = WorkloadSpec(
    kind=WorkloadKind.INFERENCE,
    precision=Precision.BF16,
    context_length=2048,
)

estimate = estimate_memory(model, hardware, workload)
print(estimate.to_json())

Transcribe a file or mono 16-kHz waveform:

from mlx_one import WhisperDecodeOptions, transcribe

result = transcribe(
    "openai/whisper-tiny",
    "recording.wav",
    language="en",
    word_timestamps=True,
    options=WhisperDecodeOptions(seed=0),
)

print(result.text)
for segment in result.segments:
    print(segment.start, segment.end, segment.text)

Embed and rerank through typed native retrieval results:

from mlx_one import embed, rerank

query = embed(
    "Qwen/Qwen3-Embedding-0.6B",
    "How does MLX use unified memory?",
    input_type="query",
    dimensions=512,
)

ranking = rerank(
    "Qwen/Qwen3-Reranker-0.6B",
    "How does MLX use unified memory?",
    ["MLX arrays share CPU and GPU memory.", "A recipe for sourdough."],
    top_k=1,
)

print(query.embeddings[0])
print(ranking.items[0].index, ranking.items[0].score)

Segment an image with Meta SAM3 through the lazy segmentation namespace:

from mlx_one.segmentation import load_segmentation_model, segment_image

model = load_segmentation_model("facebook/sam3", task="concept")
result = segment_image(model, "image.jpg", text="person")
print(result.masks.shape, result.scores, result.boxes)

For interactive masks, load with task="interactive" and call predict_masks(model, image, points=..., point_labels=...). Interactive predicted_iou is distinct from concept confidence scores; refinement uses low_res_logits. All masks are original-resolution boolean arrays.

Track lexically ordered, fixed-dimension frames with a session-owned state:

from mlx_one.segmentation import load_segmentation_model

model = load_segmentation_model("facebook/sam3", task="video", offline=True)
with model.video_session("frames/") as session:
    prompt_id = session.add_prompt("person")
    for result in session.propagate():
        print(result.frame_index, result.object_ids, result.prompt_ids)

offline=True requires a complete cached checkpoint. Use zero-padded frame filenames. Python RGB iterators and local encoded-video paths are also accepted. For live Python frames, use model.video_session(streaming=True) and session.process_frame(frame). Context exit releases session resources without unloading another session's shared model. SAM3 temporal memory is separate from the text dense/APC/block cache runtime. See the model guide for prompt validation, corrections, cancellation, and current qualification limits.

Train through the typed SFT contract:

from mlx_one import SFTTrainer, TrainConfig

trainer = SFTTrainer(
    model="Qwen/Qwen2.5-Coder-1.5B-Instruct",
    revision="PINNED_REVISION",
    train_dataset="examples/text-sft/train.jsonl",
    args=TrainConfig(
        output_dir="runs/qwen-coder-sft",
        max_seq_length=512,
        method="lora",
        max_steps=10,
    ),
)

result = trainer.train()
print(result.to_json())

Architecture principles

  • Configuration determines architecture; model-name conditionals do not.
  • Shared operations are implemented once and reused across families.
  • Family-specific classes stay inside their model packages.
  • Weight mapping and sanitization are explicit and deterministic.
  • Unsupported settings and unknown tensors fail visibly.
  • Forward execution, generation, processing, and training remain separate layers.
  • Training and inference converge on the same native model implementation.
  • Lightweight inspection and registry imports do not initialize Metal.
  • Qualification is based on reproducible evidence, never inference from a model name or parameter count.

Validation

The current repository gates include:

  • Backend-free tests covering schemas, configs, registries, weight contracts, tokenization, processing, evaluation, loading policy, and CLI behavior.
  • Opt-in Apple Silicon/Metal tests covering native model execution, shapes, caches, masks, multimodal feature insertion, embeddings, reranking, MoE routing, and ASR components.
  • Pinned real-checkpoint smoke gates for openai/whisper-tiny and openai/whisper-large-v3-turbo.
  • Whisper log-Mel comparison within 1e-5 against the pinned reference path.
  • SAM3 network-free prompt/export/lifecycle checks, strict pinned checkpoint loading, and separately recorded 32-frame offline/streaming CPU-reference fixture comparisons. Natural multi-object tracking qualification is pending.
  • Ruff, source/wheel builds, and package metadata checks.

These counts describe the current development tree and will change as coverage expands.

Run backend-free checks:

python scripts/release/check_lint.py
pytest -q
python -m build --no-isolation
python -m twine check dist/*

Run native MLX execution tests on an Apple Silicon host:

MLX_ONE_RUN_MLX_TESTS=1 pytest -q

Run pinned Whisper integration gates:

MLX_ONE_RUN_WHISPER_INTEGRATION=1 pytest -q \
  tests/test_native_whisper_integration.py

Ordinary tests are network-free. Integration tests may download only the pinned assets needed by their explicit gate.

Citation

If you use mlx-one in your work, please cite it as:

@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.0a1. Native GPU-accelerated machine learning workflows on Apple Silicon}
}

See CITATION.bib for the repository citation file.

Roadmap

The implementation proceeds by evidence-backed vertical slices:

  1. Complete checkpoint loading, generation, and parity qualification for native language families.
  2. Expand the native retrieval APIs beyond the initial Qwen3 embedding and reranking vertical slice and qualify exact checkpoint revisions.
  3. Add complete image processing, generation, OCR/VQA evaluation, and training paths for native VLMs.
  4. Qualify Whisper revisions and expand native ASR, alignment, audio-language, and TTS coverage.
  5. Add native quantization, advanced training, export, and community evidence workflows.

Contributing

Contributions should include the smallest relevant config, synthetic execution, weight-contract, integration, and documentation updates. Read CONTRIBUTING.md before opening a pull request. Report security issues through SECURITY.md, not a public issue.

Released under the Apache License 2.0.

Metadata

Release files for mlx-one 0.1.0a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mlx-one 0.1.0a1
File Size Uploaded Provenance Actions
mlx_one-0.1.0a1.tar.gz 2.1 MB Without provenance Details for mlx_one-0.1.0a1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mlx-one 0.1.0a1
File Interpreter ABI Platform Actions
mlx_one-0.1.0a1-py3-none-any.whl Python 3 none any Details for mlx_one-0.1.0a1-py3-none-any.whl

Total release size: 4.3 MB

Release files / mlx_one-0.1.0a1.tar.gz

Download URL mlx_one-0.1.0a1.tar.gz
Size 2.1 MB
Tags Source
SHA-256 checksum
How to use checksums
78532d3a941e6f35ecc657488c6d15aa4faf77ab69c5bb35c2337eea5ef2f9c0
BLAKE2b-256 checksum
How to use checksums
9dc7be2182a3cdf4e8a99d44a8947248229effa148e5b98624cd2380f22382e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.11

Release files / mlx_one-0.1.0a1-py3-none-any.whl

Download URL mlx_one-0.1.0a1-py3-none-any.whl
Size 2.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
9dd212831b0a794bb5a2e8be541bfc297ae6f99ddc6349fd6a290a37d0b770a4
BLAKE2b-256 checksum
How to use checksums
a24f9acf0695eb38a0547f515c2e1bf49ff5aedabb72f3b97a99a78515cfe5f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.11

Security for mlx-one 0.1.0a1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page