Vesperforge

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
Runs
  • 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.

vesperforge-serve

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 exact to 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.

Vesperforge131.6 GiB
oMLXStopped above 218 GiB

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

Generation speedtok/sOne session+42%
Vesperforge128.8
oMLX90.6
Generation speedtok/sFour sessions at onceOthers stopped
Vesperforge260.5
oMLXStopped
Peak memoryGiBOne session−34%
Vesperforge63.9
oMLX96.5
Lower is better. Bar scale: 256 GB unified memory
Peak memoryGiBFour sessions at onceOthers stopped
Vesperforge131.6
oMLX>218
Lower is better. Bar scale: 256 GB unified memory

Stopped: the runtime passed 218 GiB of memory and was halted before it could finish.

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
ModelRuntimePrefilltok/sGenerationtok/s, or s per imagePeak memoryGiB
Qwen4-35B-A3B1M, 1 sessionVesperforge5,361.4128.863.9
oMLX5,325.790.696.5
Qwen4-35B-A3B1M, 4 sessionsVesperforge4,856.0260.5131.6
oMLXStopped above 218 GiB
Qwen3.8-Flash-Next1M, 1 sessionVesperforge3,431.395.1133.7
oMLX3,408.065.4163.5
Qwen3.8-Flash-Next1M, 4 sessionsVesperforge3,244.6141.0180.3
oMLXStopped above 218 GiB
GLM-5.3-Flash200K, 1 sessionVesperforge1,872.464.2178.5
oMLX1,936.555.2180.1
GLM-5.3-Flash200K, 4 sessionsVesperforge1,823.468.6186.1
oMLX1,949.723.7193.1
Qwen3.8-27B200K, 1 sessionVesperforge863.037.230.4
oMLX862.026.634.0
vllm-metal646.527.471.7
SGLang-MLX815.529.458.1
Qwen3.8-27B200K, 4 sessionsVesperforge803.739.873.3
oMLX833.15.2105.6
vllm-metal548.10.497.8
SGLang-MLXStopped above 218 GiB
MOSS-Image1024 × 1024, 1 imageVesperforgen/a83.732.6
ComfyUIn/a90.133.0
MOSS-Image1024 × 1024, 4-image queueVesperforgen/a83.932.6
ComfyUIn/a90.234.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.

  1. 01

    Install

    Puts vesperforge and vesperforge-serve on your PATH.

    Terminal
    brew tap darkskygit/vesperforge https://github.com/darkskygit/Vesperforge
    brew install vesperforge
  2. 02

    Ask a model

    Point --model at a checkpoint folder. Add --image to attach pictures.

    Terminal
    vesperforge --model ~/models/Qwen4-35B-A3B \
      --prompt 'Explain unified memory in two sentences.'
  3. 03

    Start the server

    Listens on 127.0.0.1:8080 with the models set in its config. See the operations guide.

    Terminal
    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
  4. 04

    Call it

    Or use any OpenAI client with its base URL set to http://127.0.0.1:8080/v1.

    Terminal
    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.