A hand lifting a small, friendly Mac toward a blue seaside sky, printed in cobalt and pink.

Run language models
on your Mac.

Mei runs language models on Apple Silicon and makes them available to your apps through an OpenAI-compatible API.

Native Swift, powered by MLX. No Python environment required. Tested on an M1 Max with 32 GB of memory.

Get started Mei 0.19.0 · Apple Silicon · macOS 15+ · MIT licensed

What you can use it for

Mei runs the model on your Mac. Your app provides the tools and carries out the actions the model requests.

See how your app, Mei and the model fit together →

Tool-using agents

Let a model request actions through your app’s APIs, read the results, and decide what to do next.

Local assistants

Build assistants that search information supplied by your app, summarize it, or extract data from text.

Light coding

Write small scripts, process data, or make changes to a few lines of code.

Recommended models

Mei supports Inkling 2 Mini alongside Groot, Qwen and Ornith. Choose a model that fits your Mac and the work you want to do.

The Groot, Qwen and Ornith downloads below are repacks of existing, quantized MLX models. A repack changes the packaged files, for example by removing unused components or adjusting the file layout. The repacking step leaves the retained language-model weights unchanged. Each Mei configuration selects a fixed version and includes the settings we tested with it.

Groot

19B parameters · text-only · 4.5 bits/weight

Our suggested first model for a 32 GB M1 Max, with an automatic serving profile for local assistants and tool calls.

Uses hermitdave’s MLX version. We removed image-processing weights and unused multi-token prediction components, and corrected the settings describing weight precision. The retained language-model weights are unchanged.

Download and run Groot

Mei automatically loads Groot’s measured settings: 256-token prefill, conversation anchors off, stock decode kernels and eligible blocked prefill. No kernel flags are needed.

Groot model commands
mei pull groot-19b-a3b-text
mei --model groot-19b-a3b-text

Qwen3.6

35B parameters · text-only · 4-bit weights

A 35B mixture-of-experts text model with 4-bit weights and an automatic serving profile.

Uses mlx-community’s 4-bit MLX version with the image-processing weights removed. The text weights, tokenizer and chat template are unchanged. This version accepts text only.

Download and run Qwen3.6

Mei automatically loads Qwen’s measured settings: 1024-token prefill on a fitting Mac and two conversation anchors. Smaller devices use the documented prefill fallback.

Qwen3.6 model commands
mei pull qwen3.6-35b-a3b-text
mei --model qwen3.6-35b-a3b-text

Ornith 1.5

35B parameters · MLX · 4-bit weights

Ornith’s 35B mixture-of-experts model, with aligned 4-bit MLX weights and an automatic serving profile.

Uses Ornith’s 4-bit MLX version. We changed the file padding to align the stored weights. The weight values are unchanged.

Download and run Ornith 1.5

Mei automatically loads Ornith’s measured settings: 1024-token prefill on a fitting Mac and conversation anchors off. Smaller devices use the documented prefill fallback.

Ornith 1.5 model commands
mei pull ornith-1.5-35b-a3b
mei --model ornith-1.5-35b-a3b

Inkling 2 Mini

26.4B parameters · text-only in Mei · NVFP4/MXFP8

A looped model that supports text chat and streaming tool calls. The tested bundle is about 19.5 GB and was qualified on a 32 GB M1 Max.

Uses nativ-community’s MLX bundle. Mei fetches the pinned revision and skips unused speculative decoding weights.

Download and run Inkling 2 Mini

Mei applies automatic context sizing for the prompt and reply, 4,096-token default output cap, 128-token prefill and one active generation. This profile supports text chat, streaming and tool calls. Prefix reuse, image input, speculative decoding and constrained output are outside its scope.

Inkling 2 Mini model commands
mei pull inkling-2-mini
mei --model inkling-2-mini

On the original weights, 22/25 passed the task suite. The optional vocabulary Q4 scored 20/25 and uses less memory. Use its memory cache for repeated chat prompts.

Run the optional Inkling Q4
mei pull inkling-2-mini-mei-q4
mei --model inkling-2-mini-mei-q4 --cache-mode memory

These are mixture-of-experts models. Each token uses only part of the model, but Mei still needs memory for the full set of weights, the prompt and generated text.

Latest release: Mei 0.19.0

Mei now sizes each request against available memory. Choose a context limit ↗

Chat and raw completions count the formatted prompt and reply against one ceiling. With a fixed 26,624-token ceiling, a 26,000-token prompt leaves 624 tokens for the reply.

Read contextCap and availableContextTokens from /v1/mei/status to see the model’s server ceiling and how much fits now. If Mei returns HTTP 503, request a shorter reply or retry when memory is available.

Read the full release notes ↗

How Mei runs models

Mei is written in Swift and uses MLX through vMLX to run models on Apple Silicon. Each server process loads one model and responds to HTTP requests from your app.

It runs as a compiled executable, so you don’t need to install Python or manage a Python environment to use it.

It can stream generated text and return tool calls. Supported features depend on the model: Groot, Qwen and Ornith can also produce JSON using supported schema rules and reuse calculations from earlier requests. Inkling uses its separate text profile. Mei reads long prompts in chunks to limit memory use.

We test on an M1 Max with 32 GB of memory. Other Apple Silicon Macs can run Mei too. The model you can run and its speed depend on your Mac’s memory, the length of the prompt and the work you ask it to do.

Read more about how Mei fits into your app →

Supported API features and limits ↗

Install and run Mei

Mei is a command-line server. Install it, download a model, then connect your own app or send an API request. Mei does not include a chat interface.

02

Download and start Groot

These commands use Groot, our suggested first model for the 32 GB M1 Max. Install the Hugging Face download tool first. If you already have the hf command, skip that first block.

Install the download helper
brew install uv
uv tool install huggingface_hub
Download and run Groot
mei pull groot-19b-a3b-text
mei --model groot-19b-a3b-text

Mei downloads a fixed version and loads its validated settings automatically. mei pull groot-19b-a3b-text --dry-run previews what it would download. Each server runs one model; stop it with Ctrl-C before switching models.

03

Send a request

Set your OpenAI-compatible client’s base URL to http://127.0.0.1:8024/v1 and use the served model ID groot-19b-a3b-text.

Make a first request
curl http://127.0.0.1:8024/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "groot-19b-a3b-text",
    "messages": [{
      "role": "user",
      "content": "Hello, Mei."
    }]
  }'

Use Mei with CoCore

CoCore supports Mei as an external model server. When it connects, it checks whether the selected model can handle tool calls and structured responses.

CoCore setup instructions ↗

Choose a context limit

Mei defaults to --context-cap auto. Restart with a numeric cap to choose a fixed total. Set your client’s context window to the same value.

On the 32 GiB M1 Max, the auto ceiling is 65,536 for Groot, 32,768 for stock Inkling and Qwen text, and 26,624 for SenseNova, Ornith and Qwen with vision. Inkling Q4 uses 26,624 with its in-memory prefix cache.

Override the context limit
mei --model groot-19b-a3b-text --context-cap 65536
Example context caps for a single model
Mac unified memoryTokensWhen to use it
24 GB8,192Try if the weights fit. Leave room for macOS.
32 GB26,624Fixed latency-oriented example. A greedy raw Inkling Q4 completion processed 26,368 input tokens in 134 seconds on an M1 Max.
64 GB or more65,536Try a long prompt and check Memory Pressure in Activity Monitor.

Every model shares its cap between the formatted prompt and generated reply. Earlier Groot, Qwen and Ornith releases allowed extra reply space. Read contextCap and availableContextTokens from /v1/mei/status to see the configured ceiling and current estimate.