全部软件
BigMoeOnEdgeUtilities
版本
v0.50.1
发布日期
2026-11-25
平台
macOS · Windows · Android
安装包大小
macOS 9.8 MB · Windows 12.7 MB · Android 57.4 MB
发布者
Helldez
Utilities · Helldez

BigMoeOnEdge

English · 中文 · 日本語 · Español · Français · Italiano

版本 v0.50.1
macOS · Windows · Android

README

BigMoeOnEdge

Helldez%2FBigMoeOnEdge | Trendshift

Latest release CI License

English · 中文 · 日本語 · Español · Français · Italiano

Run Mixture-of-Experts models larger than your device's memory. The engine keeps the weights every token needs and the experts used most in memory, and reads the rest from flash as the model asks for them. One engine for phones, laptops, desktop and datacenter GPUs, on Android, iOS, macOS, Windows and Linux: it measures the machine and the model and sets itself up. Built on llama.cpp.

Qwen3.6-35B-A3B generating an answer on a 12 GB Android phone, in real time. The iPhone app on a 12 GB iPhone with Qwen3.6-35B-A3B loaded: a chat about a picture, the plan, the models and the settings, in real time.
12 GB Android phone
Qwen3.6-35B-A3B · 5-6 tok/s
12 GB iPhone
Qwen3.6-35B-A3B · 6 tok/s
Qwen3.6-35B-A3B generating an answer in the desktop app on a 16 GB Apple-silicon laptop, in real time, at 21 tok/s.
16 GB Apple-silicon laptop
Qwen3.6-35B-A3B · 18-24 tok/s

Qwen3.6-35B-A3B, larger than each device's memory; any MoE model in GGUF runs, at any quantization. Speeds by machine and release: Performance.

The agent on a 2021 laptop, no GPU: the viral voxel-pagoda prompt to the built-in agent on a ThinkPad with 16 GB of RAM, CPU only, and Qwen3.6-35B-A3B Q4_K_M. 988 lines at 2.3 tok/s, then the page in the app's preview; the speed-ups are marked on screen.

The built-in agent writing a voxel pagoda garden as one HTML file on a 2021 ThinkPad with 15 GB of RAM and no dedicated GPU, then the page in the app's preview, turning.

What it does

  • Runs models that do not fit. A MoE model uses a few experts per token. The engine keeps the weights every token needs and the experts used most in memory, and reads the rest from flash. The output is the same as with the whole model in memory; the tests check it.
  • Sets itself up. --auto measures the machine and the model and picks the cache size, the threads and which device does what. The Plan screen shows each choice and why.
  • Any MoE GGUF. Whatever llama.cpp loads, in any quantization. No per-model code.
  • Every backend. CPU, Metal, CUDA, HIP, Vulkan, OpenCL and the Hexagon NPU. On a graphics card, the experts used most stay in its VRAM.
  • Apps and a server. A desktop app, phone apps, and an OpenAI- and Anthropic-compatible server for coding agents, and an agent of its own in the desktop app.
  • Sees images. Put a model's projector file (mmproj) beside it and the server reads images on every API; the CLI with --mmproj and --image. Any vision model llama.cpp's projector library knows, any quantization, every backend.

Platforms

Android iOS macOS Windows Linux
Engine and CLI arm64 arm64 (in the app) Apple silicon x86_64, arm64 x86_64, aarch64
App native app (APK) native app, TestFlight beta desktop app (.dmg) desktop app (installer) desktop app (AppImage)
Accelerators Hexagon NPU, Vulkan, OpenCL Metal Metal CUDA, Vulkan; OpenCL and Hexagon NPU on arm64 CUDA, HIP (AMD ROCm), Vulkan
Run on a 12 GB phone 12 GB iPhones a 16 GB laptop a 16 GB laptop; NVIDIA laptops and desktops in field reports rented NVIDIA cards from 8 to 96 GB, a 192 GB AMD card (ROCm)

What is measured, shipped or still owed on each: docs/platforms.md.

How it compares

BigMoeOnEdge llama.cpp Strata Lucebox ds4 colibri KTransformers
Android phone (NPU too) ✅ ✅ ❌ ❌ ❌ ❌ ❌
iPhone ✅ ✅ ❌ ❌ ❌ ❌ ❌
Mac ✅ ✅ ✅ ❌ ✅ ✅ ❌
Windows ✅ ✅ ✅ ❌ ❌ ✅ ✅
CPU only ✅ ✅ ❌ ❌ ❌ ✅ ❌
NVIDIA ✅ ✅ ✅ ✅ ✅ ✅ ✅
AMD ✅ ROCm, MI300X too ✅ Radeon RX, Strix Halo R9700, Ryzen AI MAX+ Strix Halo Vulkan ✅
Models any MoE GGUF any GGUF a list; your own file since 0.2.23 a list its own GGUFs its own format; GGUF by import listed families
Experts beyond RAM streamed from flash OS page cache spread to SSD by its planner streamed from SSD (DeepSeek V4.1) streamed from SSD streamed from disk held in RAM
Configures itself ✅ --auto, from measurements --fit picks the model by memory a profile per set of GPUs expert-cache budget coli setup, coli tune ❌

What each engine runs on and the speeds each reports, checked on 2026-11-28: docs/comparison.md. Against them on the same machine: Performance.

Install

From the latest release:

  • macOS (Apple silicon): open the .dmg and drag the app to Applications. It is not notarised yet; the dmg's README.txt has the one step for the first start.
  • Windows: run the -setup.exe. No administrator rights.
  • Linux: make the .AppImage executable and run it. The window needs WebKitGTK 4.1; --server runs the server alone.
  • Android: install app-dev-release.apk. Each release installs over the previous one.
  • iOS: join the TestFlight beta, built from release tags by a contributor, or build it with Xcode from examples/ios. Experimental.

Open the app and pick a model under Models. An NVIDIA or AMD card gets its backend from Settings (docs/desktop-app.md).

Command-line tools only (bmoe-cli, bmoe-server):

curl -fsSL https://github.com/Helldez/BigMoeOnEdge/releases/latest/download/install.sh | sh
irm https://github.com/Helldez/BigMoeOnEdge/releases/latest/download/install.ps1 | iex

Use

bmoe-cli -m model.gguf --auto -p "Explain MoE routing."   # plan and run
bmoe-cli -m model.gguf --plan                              # print the plan
bmoe-server -m model.gguf -c 32768                         # the server and its web UI, port 8765

The server speaks the OpenAI API (/v1/chat/completions, /v1/responses) and the Anthropic one (/v1/messages), with streaming, tool calls and reasoning. Add --host 0.0.0.0 --api-key KEY to serve other machines. Reference: docs/server-api.md.

On a machine that stays on, register it as a service of your login instead: it starts with the machine, comes back with its model, and reloads it when a request finds none loaded (running as a service).

bmoe-server service install --host 0.0.0.0 -m model.gguf -c 65536   # systemd, launchd or Task Scheduler
bmoe-server service status
from openai import OpenAI

client = OpenAI(base_url="http://127.0.0.1:8765/v1", api_key="local")
reply = client.chat.completions.create(model="local", messages=[{"role": "user", "content": "Hello"}])
print(reply.choices[0].message.content)

Coding agents need a large context: a few times their first request. 32768 is enough for opencode, 65536 for Claude Code (sizing the context).

opencode, Claude Code and Codex CLI settings
// opencode, ~/.config/opencode/opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "bmoe": {
      "npm": "@ai-sdk/openai-compatible",
      "options": { "baseURL": "http://127.0.0.1:8765/v1", "apiKey": "local" },
      "models": { "<model id from /v1/models>": { "limit": { "context": 32768, "output": 8192 } } }
    }
  },
  "model": "bmoe/<model id from /v1/models>"
}
# Claude Code
export ANTHROPIC_BASE_URL=http://127.0.0.1:8765
export ANTHROPIC_API_KEY=local
export ANTHROPIC_MODEL=<model id from /v1/models>
export ANTHROPIC_DEFAULT_HAIKU_MODEL=$ANTHROPIC_MODEL
export CLAUDE_CODE_MAX_CONTEXT_TOKENS=65536
claude
# Codex CLI, ~/.codex/config.toml
model = "<model id from /v1/models>"
model_provider = "bmoe"

[model_providers.bmoe]
name = "bmoe"
base_url = "http://127.0.0.1:8765/v1"
wire_api = "responses"
env_key = "BMOE_API_KEY"   # export BMOE_API_KEY=local

Under Connect apps, the app writes the settings for opencode and Codex CLI and shows the ones for Claude Code.

The agent. The desktop app has its own agent: it works in a folder you choose, reads and edits files and runs commands, and asks before it changes anything unless you allow it. A conversation can also be run by OpenCode, Claude Code, Codex or Pi. See docs/agent.md.

How it works

For each token, the router of each layer picks a few experts. The engine looks for them in up to three tiers, each a cache for the one below:

  • VRAM, on a graphics card: the weights every token reads, and the experts used most.
  • RAM: a cache of experts. Without a graphics card, also the weights every token reads.
  • Flash (the drive): the whole model.

An expert missing from VRAM is copied from RAM; one missing from RAM is read from flash. On a phone or an Apple-silicon Mac the GPU uses the same RAM as the CPU, so there are two tiers. A model that fits the card runs on it whole. Streaming only reads, so it does not wear the drive.

The engine uses llama.cpp's public API, so its quantizations, tokenizers and chat templates work unchanged, and an upgrade is a submodule bump. Which tensors are experts is read from the file (docs/which-models-stream.md). Design: docs/architecture.md.

The planner