mlxl3

agent
Security Audit
Warn
Health Warn
  • License — License: GPL-3.0
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 9 GitHub stars
Code Pass
  • Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

Private local AI with EXL3 models on Apple Silicon (Rust + MLX + Metal) and Windows GPUs: agent, image generation, OpenAI-compatible server, CLI.

README.md

MLXL3 logo

MLXL3

Private, local AI on your own machine.
EXL3 models on Apple Silicon and Windows GPUs: an agent that works in your folders,
image generation, decision models and an OpenAI-compatible server, with nothing sent to the cloud.

Latest Desktop release Downloads Platforms GPL-3.0-or-later license Discord

Download · Website · Documentation · Changelog · Discord

MLXL3 Desktop with its ASCII aurora, sidebar and composer


Why MLXL3

  • Runs entirely on your machine. Models, conversations, files and generated images stay local. The network is used only for the things you ask for: downloading a model, checking for updates, or letting the agent browse.
  • Built for quantized models. EXL3 checkpoints are executed straight from their compressed form, so large models fit in the memory of an ordinary laptop or gaming PC.
  • More than a chat box. An agent that edits real projects under review, image generation, single-pass decision models, a local API server and a lab to measure it all, in one native app.
  • Honest engineering. Every optimization is recorded with its protocol, failures included, in a public optimization journal. Release notes state what was verified and what was not.

Performance

Measured on one Apple M5 (10-core GPU, 24 GB) with the macOS engine. Each figure links to its full protocol and limits; results depend on the model, the prompt and your Mac.

Model Measurement Result
Inkling 2 Mini · 26B MoE, 3.4B active · EXL3 3.33 bpw Decode: coding prompt, 1,200 tokens, temperature 1, 4 passes, on battery 37.6 tok/s with the DFlash2 drafter (32.9–40.2) · 28.4 tok/s with prompt lookup only · engine 2.0.32
Inkling 2 Mini · same checkpoint Prefill: prompt of about 1,135 tokens, fresh process per run, on battery 269–294 tok/s · first token in 3.9–4.2 s · engine 2.0.36
LFM2.5 24B-A2B · EXL3 4.15 bpw WikiText-2 perplexity against the BF16 model, llama.cpp protocol (8 × 1,024 tokens, 4,088 labels) +4.61 % with a 12.44 GB file, vs +4.50 % for GGUF UD-Q4_K_XL at 14.88 GB · report (French)

Speeds were measured on the engine release that introduced each change, not re-measured on the latest one. The perplexity comparison shows the same quality within noise for a file about 16 % smaller; it is a single model and corpus, not proof that EXL3 beats GGUF in general, and it says nothing about agent or coding quality.

Platforms

macOS Windows
Hardware Apple Silicon (M-series) NVIDIA GPU (CUDA) · AMD GPU through WSL2 (experimental)
Engine MLXL3 engine: Rust, Apple MLX and custom Metal kernels Upstream ExLlamaV3 in a private, managed Python runtime
App Native SwiftUI Tauri
Install DMG, one-line installer or Homebrew, with the mlxl3 CLI setup.exe installer

Both apps share the same design, the same EXL3 model format and the same bridge protocol between app and engine. The macOS app is the reference: new features usually land there first. Each release states which platform it covers.

Get started

macOS — install the latest Desktop app and its command-line tool:

curl -fsSL https://mlxl3.0xzknw.tech/install.sh | bash

Or with Homebrew:

brew install --cask 0xzknw/mlxl3/mlxl3-desktop   # Desktop app
brew install 0xzknw/mlxl3/mlxl3                  # command-line engine only

Use these full names: Homebrew only loads a third-party tap's packages once trusted, and installing by full name trusts them. The tap follows each release.

Or download the .dmg from the latest release and drag MLXL3 Desktop into Applications. Everything the app needs (engine, MLX, Metal assets, conversion environment) is bundled: no Python, Homebrew or MLX install required.

Windows — download MLXL3-Desktop-…-Windows-x64-setup.exe from the latest release that ships one and run it. On first launch the app detects your GPU and prepares its own isolated engine runtime.

Then:

  1. Open Models, pick a recommended model (or import a local EXL3 folder) and download it.
  2. Select it from the model picker at the top of the window.
  3. Ask a question, attach files or a folder, and let it work.

[!NOTE]
The macOS app is ad-hoc signed, not notarized. If macOS blocks the first launch, allow it once in System Settings → Privacy & Security. Agent features that track changes use Git from Apple's Command Line Tools.

What you can do

The tour below follows the macOS app. The Windows app covers Chat, Agent, Server and Lab with the same look; each release lists the differences.

🧑‍💻 Agent

Give the model a task and, optionally, a folder. It reads, searches, edits files and runs commands with native tools, then hands you its work for review.

  • Work in your folder or in a private copy. Every change is recorded per turn; open Review under a reply to see exactly which files that turn touched.
  • Stay in control. Reading, writing, running commands and Internet access are separate switches. Destructive commands (rm, git reset --hard, forced pushes…) wait for your approval when the agent works in your own folder.
  • Sandboxed by the OS. On macOS, commands run under a native sandbox that keeps them inside the workspace and away from credential stores, the keychain and other apps.
  • Agent Studio. File browser, editor, diffs, Git history, checkpoints, restore and ZIP export for every task.
  • Steer it while it works. Send a follow-up mid-task; the current step finishes and your instruction is picked up next.
  • Long sessions. When a conversation fills the context, earlier turns are summarized by the model instead of being cut off. Your full history stays on screen.
  • Bring your tools. MCP servers from your own configuration are offered next to the built-in tools.

A plain question is simply a task in which the model uses no tool: answers stream with reasoning, Markdown, tables, syntax-highlighted code, math and live HTML previews. Attach documents, PDFs and images; branch, search, pin and export conversations.

🎨 Image

Generate images locally with Qwen Image in EXL3, in a fast few-step Turbo variant or an adjustable Base variant. Every image keeps its prompt, size, steps and seed so you can reuse them, and an optional history keeps your generations on disk.

⚖️ Decision

Run Liquid d1 decision models: ask typed questions (yes/no, choices, scores, numbers, boxes on a picture…) about text, JSON, images or audio, and get calibrated probabilities in a single forward pass, with no generated text. Expose them on POST /v1/decide with one click.

🌐 Server

Keep a model resident behind an OpenAI-compatible API on loopback or your local network, with a generated bearer key, live logs and copy-ready curl commands.

🧪 Lab

See token usage per model and per day, time to first text and decode speed, compare two models side by side on the same prompt, and inspect or export individual generations as JSON.

📦 Models

Browse Hugging Face from the app, read model cards, and download pinned revisions with resume, size and hash checks. Quantization Studio converts supported Safetensors models to EXL3 on your Mac, with a simple mode and an expert mode for calibration and quality checks.

Models

EXL3 is a quantization format: a usable checkpoint also needs a supported architecture, its configuration, tokenizer and every weight shard. The in-app catalogue lists tested, pinned checkpoints for each family.

Family Highlights on macOS
Inkling 2 Text, vision and native tool calls; DFlash2 speculative decoding
Qwen 3.5 · 3.6 · 3.8 Dense and MoE, hybrid attention; optional MTP and DFlash2
Qwen 3.8 Flash Next Large MoE with experts streamed from SSD and a bounded memory cache
LFM2 · LFM2.5 · LFM3 Dense and MoE text; LFM3-VL for images
Gemma 4 Text with native tool-call parsing
Ling / Bailing Routed experts with native tool-call parsing
Liquid d1 Decision models (text, image, audio inputs)
Qwen Image Image generation, Turbo and Base

On Windows, the app runs the architectures supported by the bundled ExLlamaV3 release. Model licenses apply separately from MLXL3's license.

Faster decoding. Compatible models can use MTP heads or DFlash2 draft models. Proposals are always verified by the target model before tokens are accepted, and a built-in tuner records the best settings for your model, context and Mac. Speedups depend on the model, the prompt and the hardware; see the engine release notes for measured results and their protocols.

Command line and API

The macOS installer adds mlxl3 to your shell, and brew install 0xzknw/mlxl3/mlxl3 installs it on its own, without the app. With the DMG, use the bundled binary at /Applications/MLXL3 Desktop.app/Contents/Resources/runtime/mlxl3.

mlxl3 hub search LFM3                         # browse, download and resume EXL3 models
mlxl3 register lfm3 /path/to/LFM3-1.7B-EXL3-8bpw
mlxl3 run lfm3 --prompt 'Explain a ring buffer.' --max-tokens 128
printf %s "$MLXL3_KEY" | mlxl3 serve lfm3 --port 8000 --api-key-stdin
curl http://127.0.0.1:8000/v1/chat/completions \
  -H "Authorization: Bearer $MLXL3_KEY" -H 'Content-Type: application/json' \
  -d '{"model":"lfm3","messages":[{"role":"user","content":"Explain a mutex."}],"stream":true}'
Endpoint Purpose
GET /v1/models Loaded model
POST /v1/chat/completions Chat Completions, JSON or SSE streaming, images for vision models, reasoning_effort
GET /v1/capabilities What the running engine supports: query it rather than assuming
POST /v1/decide Decision models (mlxl3 decide-serve)
GET /health · GET /ready Liveness and readiness

A non-loopback host always requires an API key. mlxl3 --help lists every command, including inspect, mcp and the speculative-decoding helpers. Details are in the engine documentation.

Privacy and security

  • Inference, history and generated images are stored locally (on macOS under ~/Library/Application Support/io.mlxl3.desktop).
  • Network access happens only for Hugging Face downloads, GitHub update checks, agent browsing you have enabled, and MCP servers you configure. MCP is off by default.
  • Engine updates are checked for identity, compatibility, hashes and architecture before use, and a managed engine that fails to start falls back to the bundled one.
  • Chat-template control markers typed in messages or tool definitions are neutralized before rendering, so content cannot impersonate the system or a tool.
  • Report vulnerabilities privately as described in SECURITY.md.

Architecture

flowchart LR
  subgraph mac["macOS"]
    S["SwiftUI app"] -->|bridge protocol| E["MLXL3 engine<br/>Rust · MLX · Metal"]
    C["mlxl3 CLI / HTTP server"] --> E
  end
  subgraph win["Windows"]
    T["Tauri app"] -->|bridge protocol| X["ExLlamaV3 worker<br/>CUDA · ROCm (WSL2)"]
  end
  E --> M[("EXL3 checkpoints")]
  X --> M

The macOS engine owns checkpoint validation, tokenization, chat templates, generation, streaming and model state in Rust, and evaluates EXL3 projections directly from their quantized representation with MLX and dedicated Metal kernels. The app and the CLI talk to it over the same JSON-lines bridge, which the Windows worker also speaks.

Build from source

macOS app and engine

Requires Apple Silicon, Xcode Command Line Tools, Rust (see rust-version in Cargo.toml), Swift 6 and Python 3.12. MLX and the other build dependencies are pinned in packaging/constraints-macos.txt.

git clone https://github.com/0xZKnw/mlxl3.git && cd mlxl3
python3.12 -m venv .venv
.venv/bin/python -m pip install -e '.[dev,bundle]' -c packaging/constraints-macos.txt
export MLXL3_BUILD_PYTHON="$PWD/.venv/bin/python"
export MLXL3_MLX_ROOT="$PWD/.venv/lib/python3.12/site-packages/mlx"
export MLXL3_ENGINE_BACKEND=mlx
scripts/build-macos-dmg.sh        # engine + app + converter → dist/*.dmg
Windows app

Requires Node.js, Rust and the Tauri prerequisites for Windows. The installer bundles pinned, hash-checked uv binaries that set up the engine runtime; the windows-desktop workflow is the reference build and shows how they are fetched.

cd apps/MLXL3Windows
npm ci
npm run build                     # NSIS installer

CI builds the installer on every change to the Windows app and attaches it to Desktop releases.

Checks
cargo fmt --check
cargo clippy --locked --all-targets --no-default-features --features chat -- -D warnings
cargo test --locked --no-default-features --features chat
cargo kani --lib --no-default-features                      # bounded proofs of engine helpers
MLXL3_TEST_PYTHON="$PWD/.venv/bin/python" scripts/check-desktop.sh

CPU tests and Kani proofs do not cover MLX, Metal or physical GPU behavior; GPU checks are selected explicitly on real hardware. See CONTRIBUTING.md for the full workflow and the CI in .github/workflows.

Repository

Path Contents
apps/MLXL3Studio macOS SwiftUI app
apps/MLXL3Windows Windows Tauri app and its Rust core
native Rust engine, CLI, HTTP server and Metal kernels
engines/exl3 ExLlamaV3 worker used by the Windows app
src/mlxl3_quantizer Safetensors → EXL3 conversion
scripts, tests, benchmarks Packaging, regression checks, measurement campaigns
website Landing page and installer
docs, opti.md Documentation, measurements and the optimization journal

Community

Credits

Created by 0xZKnw, with major contributions from Lucas Bauduin / HENK0O and everyone in the contributor graph.

MLXL3 builds on Apple MLX (array runtime), ExLlamaV3 (the EXL3 format and the Windows engine), PonyExl3 (conversion), MTPLX and TensorFold (speculative decoding references), DeepSeek Harness (agent tool design), MFLUX (image pipeline), minijinja (chat templates), Tauri and SwiftMath. Thanks to the model authors and quantizers whose checkpoints the app recommends.

License

MLXL3 is free software released under the GNU General Public License, version 3 or later (GPL-3.0-or-later). You may redistribute and modify it under those terms; it comes with no warranty. Releases published before 2026-12-01 remain available under the MIT license they shipped with. Upstream components and model weights keep their own licenses; see THIRD_PARTY_NOTICES.md.

Reviews (0)

No results found