Native inference for Apple silicon
Frontier models at full speed, on the Mac on your desk.
Vesperforge runs million-token language models, image generation and upscaling natively, in Rust and Metal. One brew install, no Python, and an OpenAI-compatible server for your tools.
- AGPL-3.0-only
- macOS 26.2+ on Apple silicon
- OpenAI-compatible API
- Qwen4-35B-A3B
- Qwen3.8-Flash-Next
- GLM-5.3-Flash
- Qwen3.8-27B
- MOSS-Image
- Real-ESRGAN
- Real-CUGAN
01Why Vesperforge
Native binary. No Python.
One brew install puts native Apple silicon binaries on your PATH. No interpreter, no Conda environment and no wheels to match to your macOS version.
A production server that speaks the OpenAI API.
Point your SDK, agent or editor at it. Streams, tools and structured output work as they do in the cloud, on your machine.
- Responses API
POST /v1/responses- Chat Completions
POST /v1/chat/completions- Live streaming
- HTTP with SSE, or WebSocket
- Structured output
- Constrained to your JSON Schema
- Tool calls
- Parallel, streamed as they form
- Context cache
- Multi-turn, kept on disk
- Images
- Generate and upscale, same server
-
Nothing to install around it
No Python, no virtual environments, no dependency drift. Self-contained native binaries with bundled Metal libraries are the whole runtime.
-
Verified precision
Exact arithmetic by default, with blind-tested fast plans only where certified — pass
--precision exactto lock pure reference execution everywhere. -
Open source
Licensed AGPL-3.0-only. Read it, change it and run it on your own hardware.
darkskygit/Vesperforge
02Built for Apple silicon
Made for unified memory.
On Apple silicon the GPU works in the same memory as the CPU. Vesperforge is built around it: one copy of the weights serves every session, and a million-token context fits on a desk instead of a rack of GPUs.
- Context per session
- 1Mtokens
- The full window the model was trained for, not a trimmed one.
- Sessions at once
- 4
- Agents share one copy of the weights, each with its own context.
- Unified memory
- 64to512GB
- From a MacBook Pro to a Mac Studio. Quiet, on your desk.
Four 1M-token sessions, one Mac
Peak memory of each runtime, drawn against the machine's 256 GB.
Qwen4-35B-A3B, four sessions of 1M tokens each, on a 256 GB Mac Studio.
03Benchmarks
Measured on the same Mac.
Same machine, same checkpoints, same prompts and greedy settings. Real multi-turn engineering sessions at full length, not short synthetic prompts.
Qwen4-35B-A3B
1,040,000-token engineering sessions
Stopped: the runtime passed 218 GiB of memory and was halted before it could finish.
Qwen3.8-Flash-Next
998,000-token engineering sessions
Stopped: the runtime passed 218 GiB of memory and was halted before it could finish.
GLM-5.3-Flash
200K-token engineering sessions
Qwen3.8-27B
200K-token engineering sessions
Stopped: the runtime passed 218 GiB of memory and was halted before it could finish.
MOSS-Image
1024 × 1024, 50 steps
Mac Studio, Apple M5 Ultra, 256 GB. Release binaries with default flags against oMLX (0.8.5 at 1M, 0.8.4 at 200K), vllm-metal (0.34.0), SGLang-MLX, ComfyUI (warm runs). Peak memory is the process's physical footprint; four-session speed is total tokens over the time all four were generating.
All measurements, prefill included
| Model | Runtime | Prefilltok/s | Generationtok/s, or s per image | Peak memoryGiB |
|---|---|---|---|---|
| Qwen4-35B-A3B1M, 1 session | Vesperforge | 5,361.4 | 128.8 | 63.9 |
| oMLX | 5,325.7 | 90.6 | 96.5 | |
| Qwen4-35B-A3B1M, 4 sessions | Vesperforge | 4,856.0 | 260.5 | 131.6 |
| oMLX | Stopped above 218 GiB | |||
| Qwen3.8-Flash-Next1M, 1 session | Vesperforge | 3,431.3 | 95.1 | 133.7 |
| oMLX | 3,408.0 | 65.4 | 163.5 | |
| Qwen3.8-Flash-Next1M, 4 sessions | Vesperforge | 3,244.6 | 141.0 | 180.3 |
| oMLX | Stopped above 218 GiB | |||
| GLM-5.3-Flash200K, 1 session | Vesperforge | 1,872.4 | 64.2 | 178.5 |
| oMLX | 1,936.5 | 55.2 | 180.1 | |
| GLM-5.3-Flash200K, 4 sessions | Vesperforge | 1,823.4 | 68.6 | 186.1 |
| oMLX | 1,949.7 | 23.7 | 193.1 | |
| Qwen3.8-27B200K, 1 session | Vesperforge | 863.0 | 37.2 | 30.4 |
| oMLX | 862.0 | 26.6 | 34.0 | |
| vllm-metal | 646.5 | 27.4 | 71.7 | |
| SGLang-MLX | 815.5 | 29.4 | 58.1 | |
| Qwen3.8-27B200K, 4 sessions | Vesperforge | 803.7 | 39.8 | 73.3 |
| oMLX | 833.1 | 5.2 | 105.6 | |
| vllm-metal | 548.1 | 0.4 | 97.8 | |
| SGLang-MLX | Stopped above 218 GiB | |||
| MOSS-Image1024 × 1024, 1 image | Vesperforge | n/a | 83.7 | 32.6 |
| ComfyUI | n/a | 90.1 | 33.0 | |
| MOSS-Image1024 × 1024, 4-image queue | Vesperforge | n/a | 83.9 | 32.6 |
| ComfyUI | n/a | 90.2 | 34.8 | |
04Models
Open models, ready to run.
Language models load MLX-format quantized checkpoints; images load ComfyUI weights, with LoRA adapters. Upscalers take the standard Real-ESRGAN and Real-CUGAN files, no conversion.
- Qwen4-35B-A3BMixture of expertsText, images1M tokens
- Qwen3.8-Flash-NextMixture of expertsText, images1M tokens
- GLM-5.3-FlashMixture of expertsText, images200K tokens
- Qwen3.8-27BDenseText, images200K tokens
- MOSS-ImageImage generationText to image1024 × 1024
- Real-ESRGAN, Real-CUGANSuper-resolutionImage to image2×, 3×, 4×
05Quickstart
Install with Homebrew. Run from the shell or over HTTP.
Homebrew installs prebuilt native binaries for Apple silicon (macOS 26.2+). No Rust toolchain, no compiling, nothing else to set up.
-
01
Install
Puts
vesperforgeandvesperforge-serveon your PATH.brew tap darkskygit/vesperforge https://github.com/darkskygit/Vesperforge brew install vesperforge -
02
Ask a model
Point
--modelat a checkpoint folder. Add--imageto attach pictures.vesperforge --model ~/models/Qwen4-35B-A3B \ --prompt 'Explain unified memory in two sentences.' -
03
Start the server
Listens on
127.0.0.1:8080with the models set in its config. See the operations guide.printf '%s\n' '[text_model]' 'id = "qwen4"' 'checkpoint = "./Qwen4-35B-A3B"' \ 'lane_base_bytes = 21474836480' 'lane_bytes_per_token = 139264' > serve.toml vesperforge-serve --config serve.toml -
04
Call it
Or use any OpenAI client with its base URL set to
http://127.0.0.1:8080/v1.curl http://127.0.0.1:8080/v1/responses \ -H 'content-type: application/json' \ -d '{"model": "qwen4", "stream": true, "input": "Hello"}'
Read the source, file an issue, or send a change.