- Автор
- Edge0-AI
- Размер
- 55.1 MB
- Звёзды
- 12K
- Обновлён
- КоммитNov 19Релизv0.3.0Nov 17
- Возраст
- 2 мес
- Коммиты · 90 дней
README проекта с github.com/Edge0-AI/Edge0. Одним файлом markdown: README.md.

An open-source streaming MoE inference framework
Think big. Run here.
Sparse. By design.
macOS · iOS · Android · Linux · Windows
One program for every Edge0 model
English · 中文 · 日本語 · Español · Français · 한국어
News · About · Models · Quality · Benchmark · Getting started
edge0-145b and edge0-120b, latent mixture-of-experts models derived from Qwen3.8-Flash-Next for a single NVIDIA GPU on Linux or Windows. They run on edge0-strata, which edge0-infer serve and edge0-infer chat start for them; see the model page. Weights on Hugging Face: Edge0-145B-q3k · Edge0-145B-NVFP4 · Edge0-120B-q3k · Edge0-120B-NVFP4.edge0-infer: built on GGML, one engine and one native C++ API run the same model on macOS, iOS, Android and Windows, with a CLI, an OpenAI-compatible local server, and chat app examples for desktop, Android and iOS. The first release supports edge0-35b; edge0-8b follows in a later release. It replaces the Python framework and the per-platform engines; the previous code is kept at tag pre-edge0-infer.pre-edge0-infer).Edge0-35B-A3B-preview and Edge0-8B-A1B-preview — on Hugging Face and ModelScope.→ 35B / 8B release guide — model downloads, architecture, benchmarks, supported platforms and setup instructions.
Edge0 is an open-source streaming MoE inference framework for running large sparse models on consumer hardware.
Use it through the command line, a local API server, or the Edge0 Chat app.
The latest release brings 145B and 120B latent-MoE models to a single NVIDIA GPU or an Apple Silicon Mac.
Trained natively at 4 bits, both models are available in Q3_K and NVFP4 for local agent workloads.
edge0-infer provides shared serve and chat commands and selects the engine from the model folder. The latest models run on edge0-strata, a fork of Strata; the previous 35B release runs on the GGML-based native engine.
Support depends on the model and its engine.
| Platform | edge0-145b, edge0-120b (edge0-strata) |
edge0-35b (native engine) |
|---|---|---|
| Linux | NVIDIA GPU (CUDA 13) | CPU |
| Windows | NVIDIA GPU (CUDA 13) | CPU, Vulkan |
| macOS (Apple Silicon) | Metal | Metal, CPU |
| iOS | — | Metal |
| Android | — | CPU |
Use the 145B / 120B setup for the latest release. The previous-release guide covers native backends, platform-specific builds and chat examples. The 8B checkpoint is available; native-engine support is planned.
145B / 120B are the current latent-MoE series, derived from Qwen3.8-Flash-Next and trained natively at 4 bits.
They run on edge0-strata through edge0-infer serve and edge0-infer chat, on Linux or Windows with an NVIDIA GPU and CUDA 13, or on macOS with Metal on Apple Silicon.
145B Q3_K · RTX 5090 D 24 GB: 121.2 tok/s agent decode · 3554.9 tok/s 16K prefill.
| Tier | Released checkpoint | Inference profile | Engine |
|---|---|---|---|
edge0-145b |
Edge0/Edge0-145B-q3k · NVFP4 |
Q3_K or NVFP4 latent experts (1792), 48 layers, 512 experts, K=10 | edge0-strata ✅ (Linux or Windows, NVIDIA GPU; macOS Apple Silicon, Metal) |
edge0-120b |
Edge0/Edge0-120B-q3k · NVFP4 |
Q3_K or NVFP4 latent experts (1280), 48 layers, 512 experts, K=10 | edge0-strata ✅ (Linux or Windows, NVIDIA GPU; macOS Apple Silicon, Metal) |
Q3_K · RTX 5090 D 24 GB. Prefill uses a 16K-token input. Quality scores are model-level results.
Six benchmarks, six models. Higher is better. Scores are reported by model, not as separate Q3_K and NVFP4 evaluations.
Copyable scores and all model names
Bold values indicate the best score in each column.
| Model | deepswe 1.1 | terminal-bench 2.1 | AA-LCR | IFBench | GPQA-Diamond | HLE |
|---|---|---|---|---|---|---|
| Edge0-145B | 64.6 | 86.5 | 79.3 | 80.6 | 90.4 | 35.4 |
| Edge0-120B | 51.3 | 75.3 | 81.0 | 79.3 | 87.4 | 31.0 |
| DeepSeek-V4-Flash-0731 | 54.4 | 82.7 | 79.7 | 79.2 | 90.8 | 33.8 |
| Qwen3.8-Flash-Next | 58.7 | 83.3 | 79.1 | 81.3 | 91.7 | 35.9 |
| Qwen3.8-27B | 42.2 | 73.0 | 82.0 | 79.5 | 89.2 | 30.8 |
| Claude-Opus-4.6 (Max) | / | 78.2 | 78.0 | 62.5 | 91.3 | 40.0 |
All throughput figures are in tok/s. The headline uses 145B Q3_K on RTX 5090 D 24 GB.
Highlighted rows show Q3_K. Click the table to view it at full size.
| Machine | Build | 4K prefill | 16K prefill | Chat decode | Agent decode |
|---|---|---|---|---|---|
| RTX 5090 D 24 GB | Q3_K | 2169.9 | 3554.9 | 99.7 | 121.2 |
| RTX 5090 D 24 GB | NVFP4 | 1839.6 | 3165.7 | 79.6 | 98.3 |
| RTX 4090 24 GB | Q3_K | 2042.0 | 3179.4 | 69.9 | 91.7 |
| RTX 3090 24 GB (community-measured) | Q3_K | 1195.5 | 1481.2 | 48.6 | 52.8 |
| RTX Spark N1X 60 GiB | Q3_K | 674.0 | 770.3 | 37.7 | 36.7 |
| RTX Spark N1X 60 GiB | NVFP4 | 821.2 | 922.4 | 40.1 | 46.0 |
| Apple M2 Ultra (Metal) | Q3_K | 755.6 | 800.3 | 60.9 | 57.0 |
| 16 GiB VRAM + 20 GiB RAM | Q3_K | 249 | 335 | 36.8 | 44.9 |
The 16 GiB VRAM + 20 GiB RAM rows are the same RTX 5090 D 24 GB, not a different card. VRAM is capped with --vram-reserve-mib 8192; system RAM by a cgroup (MemoryMax=20G, no swap). With residency on, the same card holds Q3_K (40.81 GiB of weights)
as 23.14 GiB VRAM + 31.28 GiB RAM, and NVFP4 (47.79 GiB) as 23.25 GiB VRAM + 38.27 GiB RAM — disjoint expert sets,
nothing counted twice.
See Usage & troubleshooting for memory-saving options.
The 16 GiB VRAM + 20 GiB RAM budget is a test limit, not a minimum system requirement. The Apple M2 Ultra row is a Metal measurement.
The RTX 3090 24 GB (community-measured) row is a community result on an RTX 3090 24 GB, measured with Edge0 v0.2.0 (3203c39) and the stock edge0-infer serve defaults. Source: MAJOR//minor, CUDA Recipes 006 and raw results.
| Machine | Build | 4K prefill | 16K prefill | Chat decode | Agent decode |
|---|---|---|---|---|---|
| RTX 5090 D 24 GB | Q3_K | 3236.7 | 4576.5 | 130.2 | 144.6 |
| RTX 5090 D 24 GB | NVFP4 | 2668.5 | 4357.1 | 124.9 | 135.5 |
| RTX 4090 24 GB | Q3_K | 2637.5 | 3551.1 | 95.0 | 104.9 |
| RTX Spark N1X 60 GiB | Q3_K | 987.0 | 1081.7 | 47.2 | 68.4 |
| RTX Spark N1X 60 GiB | NVFP4 | 996.4 | 1066.9 | 45.1 | 68.9 |
| Apple M2 Ultra (Metal) | Q3_K | 867.6 | 908.7 | 60.4 | 63.0 |
| 16 GiB VRAM + 20 GiB RAM | Q3_K | 430 | 778 | 62.4 | 73.3 |
| 16 GiB VRAM + 20 GiB RAM | NVFP4 | 361.1 | 619.7 | 51.3 | 59.9 |
16 GiB VRAM + 20 GiB RAM rows are the RTX 5090 D 24 GB again, constrained by cgroup to a 16 GiB VRAM and
20 GiB system-RAM budget — not a different card. With residency on, the same card holds Q3_K (27.98 GiB of weights)
as 22.93 GiB VRAM + 18.40 GiB RAM, and NVFP4 (32.96 GiB) as 23.02 GiB VRAM + 23.40 GiB RAM — disjoint expert sets,
nothing counted twice.
These residency readings use expert residency enabled, --no-prefill-borrow, conv cache = 0 and kv-resident = 0. Host RAM is measured as RssAnon + RssShmem. These are single-run readings, not minimum system requirements. See Usage & troubleshooting for memory-saving options.
Recorded with Edge0-145B · Open video ↗
| Time | Demonstration |
|---|---|
| 0:00 | Local Chat & Coding |
| 0:36 | Video Production |
| 0:58 | Manhattan in 3D |
| 1:19 | Cathedral World Building |
| 1:38 | PCB Design |
Latent MoE compresses expert inputs while keeping attention at full width. The 145B model uses latent width 1792; the 120B model uses 1280. Both route each token to 10 of 512 experts, alongside one shared expert.
Each model folder (Q3_K or NVFP4, Edge0-145B or Edge0-120B) runs through edge0-infer, from the command line or from the Edge0 Chat desktop app. Keep the folder as it is:
edge0-infer identifies the model by model_name in its model.json.
For 145B and 120B, use serve or chat; run belongs to the native engine.
The build instructions cover NVIDIA GPUs with CUDA 13 on Linux or Windows (x64 or ARM64), and Metal on Apple Silicon macOS.
1. Build. Clone the repository, then build two parts. Run the launch commands below from edge0-infer/:
git clone https://github.com/Edge0-AI/Edge0.git edge0
2. Run from the command line. Pass one model folder, such as Edge0-145B-q3k, not the folder that holds several of
them. On Windows the program is build\windows\bin\edge0-infer.exe.
build/cpu/bin/edge0-infer serve --model /path/to/Edge0-145B-q3k
It prints Listening: http://127.0.0.1:8000 model=<name> once the weights are loaded, where <name> is edge0_145b,
and then serves OpenAI- and Anthropic-compatible endpoints:
curl localhost:8000/v1/chat/completions -H 'content-type: application/json' -d '{"model":"edge0_145b","messages":[{"role":"user","content":"hi"}],"max_tokens":64}'
edge0-infer chat --model /path/to/Edge0-145B-q3k opens an interactive session instead. More options:
edge0-infer/docs/edge0-145b.md.
A second NVIDIA card holds the experts that do not fit in the first one's VRAM, and decoding uses it for both expert formats. The cards need no NVLink or P2P.
edge0-infer runs the engine on one card (its --device is one card), so for two cards start the
engine with the config serve/server.py --config reads (it holds exe, args, cwd, env):
"gpu": [0, 1] — the engine's device 0 is the first card, device 1 the second;"args": "--peer-device", "1", "--peer-reserve-mib", "1024", "--peer-slots", "0".cd /path/to/Edge0-145B-q3k
/path/to/edge0-strata/.venv/bin/python /path/to/edge0-strata/serve/server.py \
--engine strata --config ./model-two-gpus.json
The startup log prints the second card's tier (peer GPU 1: … experts, … GiB), and the server serves
the same endpoints as on one card. --peer-device cannot be combined with --layer-split or
--expert-cache-device1..3. More: Two GPUs.
⬇️ Download: GitHub Releases
Open Edge0 Chat on Windows or macOS (Apple Silicon). Under Models, download a model from Hugging Face or ModelScope, or add a model folder you already have, such as Edge0-145B-q3k, then load it to run the model locally. On macOS the app offers all four folders and runs them on Metal; the NVFP4 folders keep the whole expert pool in unified memory. To build the app from source, follow the Edge0 Chat guide.
mmproj-BF16.gguf in the model folder is the vision encoder. Add this to the model's model.json, next to args:
"vision": {"exe": "/path/to/strata-vision", "mmproj": "./mmproj-BF16.gguf",
"model": "./model-skeleton.gguf", "gpu": false}
and --vision to "args". strata-vision comes with the engine archive that setup.py --setup --vision yes fetches.
Its source is also in this repository, at edge0-strata/tools/vision/: a separate CMake project that the main build does not
compile, built against a llama.cpp checkout at the engine's pinned commit (third_party/llama.cpp is not vendored; a tree
whose main CMake fetched it has one under build/_deps/strata_llamacpp-src):
cmake -S edge0-strata/tools/vision -B build-vision -DLLAMA_DIR=/path/to/llama.cpp
cmake --build build-vision --target strata-vision
The log then says images on; send a picture with /image in the chat, or an image_url part over the OpenAI API.
145B / 120B · Memory options
--mmap-experts — read uncached experts from SSD on demand.--resident-budget-gib 20 --expert-profile expert-profile.bin
Up to 20 GiB of host RAM for the expert cache; uncached experts are read from SSD on demand. Includes --mmap-experts and disjoint GPU/RAM caches automatically.
Required: a static expert profile. Replace expert-profile.bin with your profile path.
--resident-budget-gib 20 caps host-RAM expert caching at 20 GiB, lowered further to fit available memory.--resident-experts or --resident-budget-gib N, with a static --expert-profile.--mmap-experts, --resident-cpu-experts, --resident-pin.These live in the pack's model.json (args for flags, env for environment variables), so a change there
applies to every launch of the model.
| Flag | Meaning | Default |
|---|---|---|
--vram-reserve-mib N |
VRAM left free for the desktop, the driver and other processes; the engine sizes its caches from what remains. | 700 |
--expert-cache N|auto |
Expert slots kept in VRAM. auto derives the count from the free VRAM after the fixed footprint (projections, MTP draft, verify buffers, D/U device buffers). |
0 |
--kv-resident N |
KV cells kept in VRAM per QSA layer; the rest streams from pinned host RAM, which frees VRAM for experts. | 0 |
--spec N |
The MTP drafter's verify window: tokens proposed per check. A bigger window needs bigger verify buffers (about 180 MiB at 4) and pays off when every window has a fixed per-layer cost. Without an MTP layer there is no speculation. | 4 |
--resident-budget-gib N |
Cap on the host-RAM expert cache. It holds only the experts the VRAM cache does not hold, so the two sets are disjoint, and the value is clamped to the RAM available minus headroom. Needs a static --expert-profile. |
0 |
--mmap-experts |
Read experts through the pack file on demand instead of pinning them, so nothing is resident in RAM. | off |
Latest release · 145B / 120B
Framework
Models & algorithms
Q4 works two fronts: bringing a next-generation architecture into the framework, and turning latent reasoning into a real latency saving rather than just an arithmetic one.
Previous-release milestones and planned native-engine support.
Contributions are welcome — issues, PRs, benchmark reports and model ports all count.
Building and testing are described in Testing; the checks that need no model assets:
cd edge0-infer
cmake --preset cpu && cmake --build --preset cpu
ctest --preset cpu -L "L0|L1"
Workflow: fork → feature branch → PR against main. Please keep the
tests passing and add tests for new behavior. Agree on a behavior change
in an issue first, put related fixes in one PR, and keep at most two of
your PRs open.
The technical report covers 35B SSD streaming and trained routing prediction.
If you find edge0 useful, please cite our technical report:
@article{lin2026other,
title = {The Other Half of the Memory Wall: Serving 35B MoEs from SSD
with Trained Routing Prediction},
author = {Lin, Yu and Wang, Yiming and Cai, Runyuan and Liu, Hanze and
Zeng, Xiaodong},
journal = {arXiv preprint arXiv:2609.18063},
year = {2026},
url = {https://arxiv.org/abs/2609.18063}
}
For bugs and feature requests, please use GitHub Issues.
The framework code remains under Apache-2.0. Bundled components retain their own licenses and notices, including the MIT license for Strata.
Edge0-specific model contributions are licensed under the Edge0 Community Model License 1.0, which applies only to contributions that Edge0 owns or is authorized to license. Prior valid licenses remain unchanged.
Subject to applicable upstream terms, the license permits personal use, research, education, modification, noncommercial sharing, internal use and commercial use of generated outputs. It does not require disclosure of private modifications or an Edge0 interface badge.
Separate written Edge0 permission is required for:
See the full license for definitions, exceptions and redistribution requirements. Commercial licensing: [email protected].
Qwen materials remain governed by their applicable upstream license. The retained Qwen Community License 1.0 is reproduced unchanged; Edge0 permission does not waive Qwen's attribution or separate commercial authorization requirements.
See the model NOTICE for attribution and licensing scope. Framework and third-party code licenses are unaffected.
We thank the teams behind Qwen3.8-Flash-Next and Strata. Edge0 adds latent MoE support to the Strata engine. edge0-strata is a fork of Strata by Niko1221 and the Strata contributors and retains its MIT license.
The Edge0 framework code is released under Apache-2.0; bundled third-party components keep their own licenses (see NOTICE). The earlier releases retain their Qwen3.6 and Ling model lineage.