# edge0

> Run 145B and 120B Mixture-of-Experts models on one consumer NVIDIA GPU, and a 35B model on a phone

- Category: Models & Inference / Local Runtimes
- Language: C++
- Licence: Apache-2.0
- Repository: https://github.com/Edge0-AI/Edge0
- Canonical page: https://ai-tldr.dev/tools/edge0/
- Updated: 2026-11-12

## In short

edge0 is Run 145B and 120B Mixture-of-Experts models on one consumer NVIDIA GPU, and a 35B model on a phone. The project's headline claim for its 35B tier is roughly 2.9 GB of peak active memory, and its 12 November 2026 release extends the idea to Edge0-145B and Edge0-120B. It sits in the Local Runtimes category of the Models & Inference tools and is open-source, written in C++ and licensed Apache-2.0.

## Overview

edge0 is an open-source inference framework for sparse Mixture-of-Experts language models, built around one idea: a MoE model only uses a small slice of its parameters on any given token, so the rest does not need to sit in memory. edge0 keeps expert weights on disk, memory-maps them and reads them on demand, which means peak memory is bounded by the active expert set rather than by the total parameter count. The project's headline claim for its 35B tier is roughly 2.9 GB of peak active memory, and its 12 November 2026 release extends the idea to Edge0-145B and Edge0-120B.

Edge0-145B, released with Edge0-120B on 12 November 2026, is a latent Mixture-of-Experts model built on Qwen3.8-Flash-Next: 145B total parameters with about 10.12B active per token, 48 layers, and 512 experts per layer, of which 10 routed plus 1 shared run for each token. The routed experts read and write a narrow latent width (1792 for 145B, 1280 for 120B) while attention and the shared projections keep the full width, so every expert is a small fixed-size record that can be pinned, swapped or streamed onto the GPU. The launch post keeps frequently used experts in GPU memory, an expert library of about 40 GB in system memory and about 48 GB of vocabulary data on the SSD, and reports 29 GB measured peak memory and 80+ tokens/s decoding.

Streaming weights from storage normally means stalling the forward pass while the next expert loads, and that is what the other two mechanisms address. A trained **prerouter** head predicts expert routing one step ahead so loads overlap computation instead of blocking it — the README reports up to +59% decode throughput, and says the gain grows with storage latency, model size and routed width. **Recover-LoRA** handles the quality side: the int4 base is frozen and LoRA adapters are trained by distillation from the full-precision teacher, recovering most of the quantization loss. The adapters stay unmerged, so one read-only base can serve several adapter sets.

The project now ships two engines. The 145B and 120B models run on **edge0-strata** with an NVIDIA GPU (CUDA 13) on Linux or Windows; the earlier edge0-35b tier runs on a native GGML-based engine with CPU, Vulkan and Metal backends, including iOS. The `edge0-infer` command serves models through an OpenAI-compatible endpoint. The framework code is Apache-2.0, while the Edge0-145B weights use the Edge0 Community Model License 1.0 together with the Qwen Community License.

## What it does

- Edge0-145B and Edge0-120B: open latent-MoE models (Q3_K and NVFP4 builds) made to run on one consumer NVIDIA GPU
- Tiered expert placement: hot experts on the GPU, the expert library in system RAM and large vocabulary tables read from SSD on demand
- Prerouter: a trained head predicts routing one step ahead so expert loads overlap the forward pass — the README reports up to +59% decode throughput
- Recover-LoRA: adapters distilled from the full-precision teacher onto a frozen int4 base, recovering most of the 4-bit quantization loss
- Adapters stay unmerged as safetensors with provenance metadata, so one read-only base serves multiple adapter sets and upgrading swaps adapter files only
- OpenAI-compatible server: `edge0-infer serve` exposes /v1/chat/completions on port 8000, and `edge0-infer chat` opens an interactive session
- Edge0 App (v0.2.0) runs the models without setting up a build environment

## Getting started

For Edge0-145B and Edge0-120B you need Linux or Windows with an NVIDIA GPU (CUDA 13); macOS is not a supported target for these two models. Clone the repo, build the edge0-strata engine and edge0-infer by following the build docs in the repo, download a model build from Hugging Face, then serve it.

1. Clone the repository

   The build steps live in edge0-strata/EDGE0.md (engine) and edge0-infer/docs/getting-started.md (server), with separate Linux and Windows instructions.

```bash
git clone https://github.com/Edge0-AI/Edge0.git edge0
```

2. Serve a model

   Download a build such as Edge0/Edge0-145B-q3k or Edge0/Edge0-145B-NVFP4 from Hugging Face and point edge0-infer at it. Once the weights load it prints the address it listens on. On Windows the binary is build\windows\bin\edge0-infer.exe.

```bash
build/cpu/bin/edge0-infer serve --model /path/to/Edge0-145B-q3k
```

3. Call the OpenAI-compatible endpoint

   Any OpenAI-style client can talk to the local server.

```bash
curl localhost:8000/v1/chat/completions -H 'content-type: application/json' -d '{"model":"edge0_145b","messages":[{"role":"user","content":"hi"}],"max_tokens":64}'
```

4. Or chat in the terminal

   Use chat instead of serve for an interactive session.

```bash
edge0-infer chat --model /path/to/Edge0-145B-q3k
```

## When to use it

- Running a 145B-class open model for coding and agent work on a single consumer NVIDIA GPU instead of a hosted API
- Serving a local OpenAI-compatible endpoint for apps that should not send prompts to a hosted API
- Trading disk for RAM on memory-constrained hardware, accepting streaming latency in exchange for a much larger model
- Experimenting with quantization recovery: comparing a plain int4 base against the same base with Recover-LoRA adapters attached

## Version history

- 2026-11-12 Edge0-145B / Edge0-120B: Edge0 open-sourced Edge0-145B and Edge0-120B, latent Mixture-of-Experts models built on Qwen3.8-Flash-Next, together with a unified inference framework and deployment tools. The launch post reports 29 GB measured peak memory and 80+ tokens/s decoding for the 145B model.
- 2026-09-16: The team published the technical report behind edge0, describing the trained prerouter that predicts the next layer's expert routing one token ahead and the unmerged Recover-LoRA that wins back loss from 4-bit quantization. It reports the 35B tier running at roughly 2.9 GB of peak active memory on a 24 GB machine.
