Skip to content
المشاريع

حول

Local AI inference on Apple Silicon with MLX, a native macOS app, and an OpenAI-compatible server.

الذكاء الاصطناعي وتعلّم الآلة

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
+١
خلال 15 يومًا
+١
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

AX Engine

CI PyPI macOS MLX License: Apache-2.0

Run chat, embeddings, and supported vision and speech models locally on Apple Silicon. AX Engine runs inference with MLX. Chat in the macOS app, connect an OpenAI-compatible client to the local server, or run inference in-process with the Python or Rust SDK.

Install for macOS · Use the CLI · Choose a model · Performance · Documentation

AX Engine for macOS mockups with sample data showing Home, Models, Playground, Compare, API and Logs, System, and Settings.

Install AX Engine for macOS

The prebuilt app requires Apple Silicon and macOS 26.2 or later. M5 and later are the primary target, M3 and M4 are supported, and M2 is best-effort. M1 is unsupported.

  1. Quit AX Engine if it is open. Run the installer in Terminal.

    curl -fsSL https://download.automatosx.com/ax-engine-desktop/install | bash
    
  2. Open AX Engine from Applications. Under Models → Catalog, download a model that fits your Mac. For 16 GB of unified memory, start with Qwen 3.5 9B 4-bit and a short context.

  3. Select the downloaded model on Home, choose Start Server, then open Playground and send a message.

The installer verifies the signed release and installs the app with its runtime. For a shell command on your PATH, use a CLI installation below.

Update or verify the app

Choose AX Engine → Check for Updates… in version 8.1.0 or later. To verify a download without installing it, pass --verify-only to the installer. Installer options · Updates

Run the CLI server

With Homebrew, run these commands in one terminal. The first launch downloads the pinned 27B pack (about 17.4 GB). Allow about 20 GB of free disk and use a Mac with at least 32 GB of unified memory for this example.

brew install defai-digital/tap/ax-engine
ax-engine doctor
ax-engine serve qwen3.8-27b:axq

Leave the server running. In a second terminal, list the loaded models and send a chat request. For a different model, use the ID returned by /v1/models. The reply text appears in choices[0].message.content.

curl -fsS http://127.0.0.1:31418/v1/models

curl -fsS http://127.0.0.1:31418/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -d '{"model":"qwen3.8-27b","messages":[{"role":"user","content":"Say hello in one sentence."}],"max_tokens":64}'

For a CLI without Homebrew, use the standalone download. For in-process Python inference, run python -m pip install "ax-engine>=8.1.0,<9" in a Python 3.12+ virtual environment. Python installation · SDK examples

Models

Use Model selector Operating guidance
Compact chat qwen3.5-9b Community 4-bit pack for a single model and short contexts on a 16 GB Mac.
General chat qwen3.8-27b:axq Pinned AXQ MXFP4 MTP pack, 32 GB+ recommended.
Large-memory chat qwen3.8-flash-next:axq Flash Next MXFP4. The standard profile runs one resident request on M5 Max 128 GB, with up to 32,768 tokens across input and output.
Coding tiel-coder-35b:axq Tiel Coder 35B-A3B development pack.

Run ax-engine download --list to see the catalog in your installed version. For embeddings, images, audio, video, and OCR, check the inputs and endpoints supported by the specific checkpoint. Supported models · Embeddings · API compatibility

Qwen 3.8 27B. Primary optimization target. Checkpoint Tier 1. MTP Tier 2 pending. AX certification record: Candidate (gates open). The default alias selects AutomatosX/AX-Qwen3.8-27B-MLX-AXQ-MXFP4-MTP at b2c5354f779e430d0c1733143db848a72b71c16e. 27B qualification record

Qwen 3.8 Flash Next. Second SKU. Qualification and certification standard: MacBook Pro M5 Max 128 GB, single-stream resident (one request at a time, MTP off, contexts up to 32k). MXFP4 MTP target. The signed v7.9.0 release passed the direct-default gates on this standard. AX certification record: Candidate. Model MTP remains an experimental opt-in; MTP Tier 2 is pending. Flash Next qualification record · Formats and selectors

Performance

MacBook Pro M5 Max 128 GB

The tables compare pinned AXQ MXFP4 packs with one active request. On the three-prompt, 64-output-token workload, Qwen 3.8 27B delivered 35.46 output tokens/s with direct greedy decoding and 113.40 with DFlash2. DFlash2 needs a matching local drafter for eligible greedy text. The 27B comparison uses the same drafter weights across engines. DFlash2 setup and eligibility · Optional draft-tree calibration

Decode counts visible output tokens after the first streamed text chunk. Effective prefill divides the difference in input length by the difference in first-text latency across two prompts. A zero marks a configuration that did not complete the workload. Workload, route checks and reproduction

Qwen 3.8 Flash Next MXFP4

Qwen 3.8 Flash Next decode and effective prefill by engine version and mode on M5 Max.

Engine and mode Decode (output tok/s) Effective prefill (input tok/s) First text, 127–128 input tokens (s) First text, 1,492 input tokens (s)
AX Engine 8.1.0+02ab4a08 (Direct greedy) † 59.74 2841.18 0.21 0.69
oMLX 0.8.2 (Direct greedy) † 59.60 4061.45 0.36 0.70
mlx-lm 0.32.0 (Direct greedy) 0 0 — —
MTPLX 2.12.3 (Direct greedy) 0 0 — —
TensorFold 1.3.4 (Direct greedy) 0 0 — —
ds4 19b3f501 (Direct greedy) 0 0 — —
Splash 1.7.0 (DFlash2) 0 0 — —

† Median of three runs interleaved with the neighbouring † rows, with 150 seconds of rest before each run, in one later session on the same day; the other rows are single runs from the original session. See the campaign notes.

First text by input length, one cold direct greedy request. The servers ran one after another in the order AX Engine, oMLX, AX Engine, with 150 seconds of rest before each; the AX Engine column is the mean of its two runs. Lower is better. Measurements and method.

Qwen 3.8 Flash Next cold first text by input length on M5 Max.

Input tokens AX Engine 8.1.0+8108ac93 (s) oMLX 0.8.2 (s) AX Engine against oMLX
36 0.168 0.165 +2%
127 0.189 0.350 −46%
231 0.219 0.232 −6%
413 0.285 0.291 −2%
803 0.416 0.432 −4%
1,492 0.642 0.692 −7%
2,233 1.046 1.327 −21%
2,961 1.350 1.421 −5%
4,443 2.102 2.170 −3%
6,523 3.087 3.191 −3%
9,123 4.405 4.522 −3%
13,023 6.352 6.441 −1%

Qwen 3.8 27B MXFP4

Qwen 3.8 27B decode and effective prefill by engine version and mode on M5 Max.

Engine and mode Decode (output tok/s) Effective prefill (input tok/s) First text, 127–128 input tokens (s) First text, 1,492 input tokens (s)
AX Engine 8.1.0+02ab4a08 (Direct greedy) † 35.46 1028.41 0.16 1.49
AX Engine 8.1.0+02ab4a08 (DFlash2) † 113.40 1023.89 0.16 1.49
Splash 1.7.0 (DFlash2) † 108.93 1323.63 0.17 1.20
oMLX 0.8.2 (Direct greedy) † 34.68 1060.18 0.22 1.51
oMLX 0.8.2 (DFlash2) 40.02 1027.14 0.30 1.65
mlx-lm 0.32.0 (Direct greedy) 31.92 857.92 0.24 1.83
MTPLX 2.12.3 (Direct greedy) 31.18 800.05 0.24 1.94
TensorFold 1.3.4 (Direct greedy) 0 0 — —
TensorFold 1.3.4 (DFlash2) 0 0 — —
ds4 19b3f501 (Direct greedy) 0 0 — —

† Median of three runs interleaved with the neighbouring † rows, with 150 seconds of rest before each run, in one later session on the same day; the other rows are single runs from the original session. See the campaign notes.

For measurements at other output lengths, after idle time, or with concurrent requests, see the performance guide and Qwen 3.8 runtime controls.

Components and workflow

AX Engine components and workflow

The server routes requests to a model session. The engine schedules prefill and decode, manages the KV cache, and runs the model graph with MLX. Allowlisted models can share one server process and clients select them by model ID. Architecture · Multi-model serving · Scheduler · KV cache

Documentation

Task Guide
Install or troubleshoot Getting started · macOS app · FAQ
Connect a client or agent Server · API compatibility · SDKs · OpenClaw
Build or test AX Engine Source build · Testing · Contributing
Explore other topics Documentation index

Related projects

  • AX Quant — Quantizes model checkpoints and builds AXQ packs.
  • AX Engine for SGLang — Runs CUDA inference and speculative verification through SGLang.
  • AX Tendem — Develops speculative draft models and integrations for MLX and SGLang.
  • AX Serving — Routes requests and orchestrates inference fleets.

Contributing

Issues, wishlist items, reproducible benchmarks, and docs feedback are welcome. Unsolicited code PRs for runtime, kernel, scheduler, or performance paths are generally not accepted — open an issue first. See CONTRIBUTING.md.

Community

Acknowledgments

AX Engine is grateful to the open-source foundations, benchmarking peers, and community contributors listed in Acknowledgments.

License

Apache License, Version 2.0. See LICENSE.

Copyright (c) 2026 DEFAI Private Limited

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…