[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-114660":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":9,"totalLinesOfCode":9,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":9,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":24,"createdAt":9,"pushedAt":37,"updatedAt":38,"readmeContent":39,"aiSummary":40,"trendingCount":16,"starSnapshotCount":16,"syncStatus":41,"lastSyncTime":42,"discoverSource":43},114660,"BigMoeOnEdge","Helldez\u002FBigMoeOnEdge","Helldez","Run MoE models bigger than your RAM. Frontier-size MoE on a phone, laptop, edge. Lossless, on stock llama.cpp. An adaptive streaming optimizer. Any hardware, any OS, any model, any quantization, behind a local OpenAI-compatible server.",null,"https:\u002F\u002Fgithub.com\u002FHelldez\u002FBigMoeOnEdge","C++",1098,113,8,50,0,14,221,227,72,101.17,false,"main",[25,26,27,28,29,30,31,32,33,34,35,36],"android","cpp","edge-ai","gguf","inference","llama-cpp","llm","mixture-of-experts","moe","on-device-ai","qwen","gemma","2026-11-23 19:26:22","2026-11-23 15:25:17","\u003Cp align=\"center\">\n  \u003Cpicture>\n    \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs\u002Fassets\u002Flogo\u002Fhorizontal-ink.svg\">\n    \u003Cimg src=\"docs\u002Fassets\u002Flogo\u002Fhorizontal.svg\" width=\"320\" alt=\"BigMoeOnEdge\">\n  \u003C\u002Fpicture>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FHelldez\u002FBigMoeOnEdge\u002Freleases\u002Flatest\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fv\u002Frelease\u002FHelldez\u002FBigMoeOnEdge\" alt=\"Latest release\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FHelldez\u002FBigMoeOnEdge\u002Factions\u002Fworkflows\u002Fci.yml\">\u003Cimg src=\"https:\u002F\u002Fgithub.com\u002FHelldez\u002FBigMoeOnEdge\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg\" alt=\"CI\">\u003C\u002Fa>\n  \u003Ca href=\"LICENSE\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Flicense\u002FHelldez\u002FBigMoeOnEdge\" alt=\"License\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\u003Ca href=\"README.md\">English\u003C\u002Fa> · \u003Ca href=\"README_zh.md\">中文\u003C\u002Fa> · \u003Ca href=\"README_ja.md\">日本語\u003C\u002Fa> · \u003Ca href=\"README_es.md\">Español\u003C\u002Fa> · \u003Ca href=\"README_fr.md\">Français\u003C\u002Fa> · \u003Ca href=\"README_it.md\">Italiano\u003C\u002Fa>\u003C\u002Fp>\n\nRun Mixture-of-Experts models larger than your device's memory. The experts are read from flash as\nthe model needs them. Android, iOS, macOS, Windows and Linux, built on llama.cpp.\nUnified Streaming Framework - from phones, laptops, consumer and data-center GPUs - Supports any hardware, any OS, any model, any quant.\nAutomated resource scheduling tailor made to optimize tok\u002Fs.\n\n\u003Ctable align=\"center\">\n\u003Ctr>\n\u003Ctd align=\"center\" width=\"50%\">\u003Cimg src=\"https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002F7967bed2-6094-489f-bd60-05b0b1980102\" width=\"220\" alt=\"Qwen3.6-35B-A3B generating an answer on a 12 GB Android phone, in real time.\">\u003C\u002Ftd>\n\u003Ctd align=\"center\" width=\"50%\">\u003Cimg src=\"https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002F26760326-2ef5-4b4a-950d-581c99e58206\" width=\"220\" alt=\"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.\">\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd align=\"center\">12 GB Android phone\u003Cbr>Qwen3.6-35B-A3B · 5-6 tok\u002Fs\u003C\u002Ftd>\n\u003Ctd align=\"center\">12 GB iPhone\u003Cbr>Qwen3.6-35B-A3B · 6 tok\u002Fs\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd align=\"center\" colspan=\"2\">\u003Cimg src=\"https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002F0e1fd1d2-4976-4ecf-a56f-fee60f5dff74\" width=\"620\" alt=\"Qwen3.6-35B-A3B generating an answer in the desktop app on a 16 GB Apple-silicon laptop, in real time, at 21 tok\u002Fs.\">\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd align=\"center\" colspan=\"2\">16 GB Apple-silicon laptop\u003Cbr>Qwen3.6-35B-A3B · 18-24 tok\u002Fs\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftable>\n\nQwen3.6-35B-A3B, larger than each device's memory; any MoE model in GGUF runs, at any\nquantization. Decode speeds are the [Performance](#performance) table's.\n\n**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\u002Fs, then the page in the app's preview; the speed-ups are marked on screen.\n\n\u003Cp align=\"center\">\u003Cimg src=\"https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002F1da744d4-dd98-4d14-a76e-50bdf0d9aec4\" width=\"640\" alt=\"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.\">\u003C\u002Fp>\n\n## What it does\n\n- **Runs models that do not fit.** A MoE model uses a few experts per token. The engine keeps the\n  weights every token needs and the experts used most in memory, and reads the rest from flash. The\n  output is the same as with the whole model in memory; the tests check it.\n- **Sets itself up.** `--auto` measures the machine and the model and picks the cache size, the\n  threads and which device does what. The Plan screen shows each choice and why.\n- **Any MoE GGUF.** Whatever llama.cpp loads, in any quantization. No per-model code.\n- **Every backend.** CPU, Metal, CUDA, HIP, Vulkan, OpenCL and the Hexagon NPU. On a graphics card,\n  the experts used most stay in its VRAM.\n- **Apps and a server.** A desktop app, phone apps, and an OpenAI- and Anthropic-compatible server\n  for coding agents.\n- **Sees images.** Put a model's projector file (`mmproj`) beside it and the server reads images on\n  every API; the CLI with `--mmproj` and `--image`. Any vision model llama.cpp's projector library\n  knows, any quantization, every backend.\n\n## Performance\n\n| Hardware | Memory | Model | On disk | Experts from | Decode tok\u002Fs |\n|---|---|---|---:|---|---:|\n| **Android phone** | 12 GB | DeepSeek V4 Flash 284B | 91 GB | flash | 1 |\n|  |  | Qwen3.8-Flash-Next 125B | 80 GB | flash | 2-4 |\n|  |  | Qwen3.6-35B-A3B | 21 GB | flash | 5-6 |\n| **iPhone** | 12 GB | Qwen3.6-35B-A3B | 21 GB | flash | 6 |\n| **Apple-silicon laptop** | 16 GB | Qwen3.8-Flash-Next 125B | 76 GB | flash | 7-9 |\n|  |  | Qwen3.6-35B-A3B | 21 GB | flash | 18-24 |\n| **Windows laptop** | 16 GB | Qwen3.6-35B-A3B | 21 GB | flash | 5 |\n| **Desktop GPU** (NVIDIA) | 12 GB + 128 GB RAM | Qwen3.8-Flash-Next 125B | 84 GB | RAM, GPU cache | 16-17 |\n| **Desktop GPU** (NVIDIA) | 16 GB + 32 GB RAM | Qwen3.8-Flash-Next 125B | 66 GB | flash, GPU cache | 19-21 |\n| **Desktop GPU** (NVIDIA) | 24 GB + 96 GB RAM | Qwen3.8-Flash-Next 125B | 66 GB | RAM, GPU cache | 70 |\n|  |  | Qwen3.6-35B-A3B | 21 GB | GPU | 217 |\n| **Desktop GPU** (NVIDIA) | 24 GB + 62 GB RAM | Qwen3.6-35B-A3B | 21 GB | GPU | 154 |\n|  | 12 GB of it free | Qwen3.6-35B-A3B | 21 GB | RAM, GPU cache | 59-67 |\n|  |  | Gemma 4 26B-A4B | 17 GB | GPU | 114 |\n|  |  | Laguna XS 2.1 33B | 20 GB | GPU | 93-94 |\n| **Desktop GPU** (NVIDIA) | 8 GB + 31 GB RAM | Qwen3.8-Flash-Next 125B | 66 GB | flash, GPU cache | 16 |\n|  |  | Qwen3.6-35B-A3B | 21 GB | RAM, GPU cache | 37-44 |\n| **Two desktop GPUs** (NVIDIA) | 2 × 16 GB + 60 GB RAM | Qwen3.8-Flash-Next 125B | 66 GB | RAM, GPU cache | 41-48 |\n|  |  | DeepSeek V4 Flash 284B | 91 GB | flash, GPU cache | 5 |\n| **Datacenter GPU** (AMD, ROCm) | 192 GB | Qwen3.8-Flash-Next 125B | 66 GB | GPU | 53 |\n\nA range is the spread across runs. Method and every run:\n[docs\u002Fbenchmarks.md](docs\u002Fbenchmarks.md). To add your machine, run\n`scripts\u002Fbench-report.sh model.gguf` and open a\n[benchmark report](https:\u002F\u002Fgithub.com\u002FHelldez\u002FBigMoeOnEdge\u002Fissues\u002Fnew?template=benchmark-report.yml).\n\n## Install\n\nFrom the [latest release](https:\u002F\u002Fgithub.com\u002FHelldez\u002FBigMoeOnEdge\u002Freleases\u002Flatest):\n\n- **macOS** (Apple silicon): open the `.dmg` and drag the app to Applications. It is not notarised\n  yet; the dmg's README.txt has the one step for the first start.\n- **Windows**: run the `-setup.exe`. No administrator rights.\n- **Linux**: make the `.AppImage` executable and run it. The window needs WebKitGTK 4.1;\n  `--server` runs the server alone.\n- **Android**: install `app-dev-release.apk`. Each release installs over the previous one.\n- **iOS**: build it with Xcode from [examples\u002Fios](examples\u002Fios\u002FREADME.md). Experimental.\n\nOpen the app and pick a model under **Models**. An NVIDIA or AMD card gets its backend from\n**Settings** ([docs\u002Fdesktop-app.md](docs\u002Fdesktop-app.md)).\n\nCommand-line tools only (`bmoe-cli`, `bmoe-server`):\n\n```bash\ncurl -fsSL https:\u002F\u002Fgithub.com\u002FHelldez\u002FBigMoeOnEdge\u002Freleases\u002Flatest\u002Fdownload\u002Finstall.sh | sh\n```\n\n```powershell\nirm https:\u002F\u002Fgithub.com\u002FHelldez\u002FBigMoeOnEdge\u002Freleases\u002Flatest\u002Fdownload\u002Finstall.ps1 | iex\n```\n\n## Use\n\n```bash\nbmoe-cli -m model.gguf --auto -p \"Explain MoE routing.\"   # plan and run\nbmoe-cli -m model.gguf --plan                              # print the plan\nbmoe-server -m model.gguf -c 32768                         # the server and its web UI, port 8765\n```\n\nThe server speaks the OpenAI API (`\u002Fv1\u002Fchat\u002Fcompletions`, `\u002Fv1\u002Fresponses`) and the Anthropic one\n(`\u002Fv1\u002Fmessages`), with streaming, tool calls and reasoning. Add `--host 0.0.0.0 --api-key KEY` to\nserve other machines. Reference: [docs\u002Fserver-api.md](docs\u002Fserver-api.md).\n\nOn a machine that stays on, register it as a service of your login instead: it starts with the\nmachine, comes back with its model, and reloads it when a request finds none loaded\n([running as a service](docs\u002Fserver-api.md#running-as-a-service)).\n\n```bash\nbmoe-server service install --host 0.0.0.0 -m model.gguf -c 65536   # systemd, launchd or Task Scheduler\nbmoe-server service status\n```\n\n```python\nfrom openai import OpenAI\n\nclient = OpenAI(base_url=\"http:\u002F\u002F127.0.0.1:8765\u002Fv1\", api_key=\"local\")\nreply = client.chat.completions.create(model=\"local\", messages=[{\"role\": \"user\", \"content\": \"Hello\"}])\nprint(reply.choices[0].message.content)\n```\n\n**Coding agents** need a large context: a few times their first request. 32768 is enough for\nopencode, 65536 for Claude Code\n([sizing the context](docs\u002Fserver-api.md#sizing-the-context-for-a-client)).\n\n```jsonc\n\u002F\u002F opencode, ~\u002F.config\u002Fopencode\u002Fopencode.json\n{\n  \"$schema\": \"https:\u002F\u002Fopencode.ai\u002Fconfig.json\",\n  \"provider\": {\n    \"bmoe\": {\n      \"npm\": \"@ai-sdk\u002Fopenai-compatible\",\n      \"options\": { \"baseURL\": \"http:\u002F\u002F127.0.0.1:8765\u002Fv1\", \"apiKey\": \"local\" },\n      \"models\": { \"\u003Cmodel id from \u002Fv1\u002Fmodels>\": { \"limit\": { \"context\": 32768, \"output\": 8192 } } }\n    }\n  },\n  \"model\": \"bmoe\u002F\u003Cmodel id from \u002Fv1\u002Fmodels>\"\n}\n```\n\n```bash\n# Claude Code\nexport ANTHROPIC_BASE_URL=http:\u002F\u002F127.0.0.1:8765\nexport ANTHROPIC_API_KEY=local\nexport ANTHROPIC_MODEL=\u003Cmodel id from \u002Fv1\u002Fmodels>\nexport ANTHROPIC_DEFAULT_HAIKU_MODEL=$ANTHROPIC_MODEL\nexport CLAUDE_CODE_MAX_CONTEXT_TOKENS=65536\nclaude\n```\n\n```toml\n# Codex CLI, ~\u002F.codex\u002Fconfig.toml\nmodel = \"\u003Cmodel id from \u002Fv1\u002Fmodels>\"\nmodel_provider = \"bmoe\"\n\n[model_providers.bmoe]\nname = \"bmoe\"\nbase_url = \"http:\u002F\u002F127.0.0.1:8765\u002Fv1\"\nwire_api = \"responses\"\nenv_key = \"BMOE_API_KEY\"   # export BMOE_API_KEY=local\n```\n\nUnder **Connect apps**, the app writes the settings for opencode and Codex CLI and shows the ones for\nClaude Code.\n\n**The agent.** The desktop app has its own agent: it works in a folder you choose, reads and edits\nfiles and runs commands, and asks before it changes anything unless you allow it. A conversation can\nalso be run by OpenCode, Claude Code, Codex or Pi. See [docs\u002Fagent.md](docs\u002Fagent.md).\n\n## How it works\n\nFor each token, the router of each layer picks a few experts. The engine looks for them in up to\nthree tiers, each a cache for the one below:\n\n- **VRAM**, on a graphics card: the weights every token reads, and the experts used most.\n- **RAM**: a cache of experts. Without a graphics card, also the weights every token reads.\n- **Flash** (the drive): the whole model.\n\nAn expert missing from VRAM is copied from RAM; one missing from RAM is read from flash. On a phone or\nan Apple-silicon Mac the GPU uses the same RAM as the CPU, so there are two tiers. A model that fits\nthe card runs on it whole. Streaming only reads, so it does not wear the drive.\n\nThe engine uses llama.cpp's public API, so its quantizations, tokenizers and chat templates work\nunchanged, and an upgrade is a submodule bump. Which tensors are experts is read from the file\n([docs\u002Fwhich-models-stream.md](docs\u002Fwhich-models-stream.md)). Design:\n[docs\u002Farchitecture.md](docs\u002Farchitecture.md).\n\n## The planner\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002F98e6de3e-e27d-482d-bff1-26fc66074af4\" width=\"820\" alt=\"The Plan screen on a 16 GB Apple-silicon laptop with Qwen3.6-35B-A3B Q4_K_M: experts stream from flash with a 6.6 GiB cache, the prompt runs on the GPU and the tokens on the CPU, 23.9 tok\u002Fs and 94% cache hits measured, and where the memory goes.\">\n\u003C\u002Fp>\n\nThe planner reads the model's header and measures the machine: memory, storage speed, each CPU, GPU\nand NPU. Its rules name no device or platform, so a phone and a desktop get different plans from the\nsame code. Values you set yourself are kept. See [docs\u002Fhardware-planning.md](docs\u002Fhardware-planning.md).\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fassets\u002Fdiagrams\u002Fplan-en.png\" width=\"820\" alt=\"The planner: the machine and the model go into the plan; the plan decides where each weight goes (VRAM, RAM or flash), which device reads the prompt and which one generates, and the cache sizes and threads; the first answer is measured and what is faster is kept for the next load.\">\n\u003C\u002Fp>\n\n## Platforms\n\n| | Android | macOS | Windows | Linux | iOS |\n|---|---|---|---|---|---|\n| Engine and CLI | arm64 | Apple silicon | x86_64, arm64 | x86_64, aarch64 | arm64 (in the app) |\n| App | native app | desktop app | desktop app | desktop app | native app, built from source |\n| Accelerators | Hexagon NPU, Vulkan, OpenCL | Metal | Vulkan, CUDA, OpenCL (arm64), Hexagon NPU (arm64) | Vulkan, CUDA, HIP | Metal |\n| Tested on | 12 GB phone | 16 GB laptop | 16 GB laptop | rented 12-24 GB NVIDIA and 192 GB AMD cards | 12 GB iPhone |\n\nDetails: [docs\u002Fplatforms.md](docs\u002Fplatforms.md).\n\n## How it compares\n\n| | **BigMoeOnEdge** | Strata | ds4 | colibri | KTransformers |\n|---|:---:|:---:|:---:|:---:|:---:|\n| Android phone (NPU too) | ✅ | ❌ | ❌ | ❌ | ❌ |\n| iPhone | ✅ | ❌ | ❌ | ❌ | ❌ |\n| Mac | ✅ | ✅ | ✅ | ✅ | ❌ |\n| Windows \u002F Linux, CPU only | ✅ | ❌ | Linux, for debugging | ✅ | ❌ |\n| NVIDIA | ✅ | ✅ | ✅ | ✅ | ✅ |\n| AMD (ROCm) | ✅ (MI300X too) | Radeon RX and Strix Halo | Strix Halo and RDNA | Vulkan | ✅ |\n| Any MoE model in GGUF | ✅ | few models | few models | its own format | few models |\n| Configures itself | ✅ `--auto` | picks the model by memory | expert-cache budget | `coli tune` | ❌ |\n\nSpeeds and sources: [docs\u002Fcomparison.md](docs\u002Fcomparison.md).\n\n## Build from source\n\n```bash\ngit clone --recursive https:\u002F\u002Fgithub.com\u002FHelldez\u002FBigMoeOnEdge.git\ncd BigMoeOnEdge\ncd ui && npm ci && npm run build && cd ..\nscripts\u002Fbuild-host.sh\nbuild\u002Fbin\u002Fbmoe-server --open\n```\n\nA llama.cpp backend is a CMake flag passed through: `scripts\u002Fbuild-host.sh -DGGML_VULKAN=ON` (or\n`-DGGML_CUDA=ON`). Tests: `cd build && ctest --output-on-failure` (needs `python3` with `gguf`). Android:\n`scripts\u002Fbuild-android.ps1`, then the APK in [examples\u002Fandroid](examples\u002Fandroid). More:\n[CONTRIBUTING.md](CONTRIBUTING.md).\n\n## Documentation\n\n[docs\u002F](docs\u002FREADME.md). Start with [hardware-planning.md](docs\u002Fhardware-planning.md),\n[settings.md](docs\u002Fsettings.md), [server-api.md](docs\u002Fserver-api.md) and\n[limitations.md](docs\u002Flimitations.md).\n\n## Prior art\n\nAirLLM, Apple's *LLM in a flash*, FlexGen, PowerInfer, EdgeMoE and\n[flash-moe](https:\u002F\u002Fgithub.com\u002Fdanveloper\u002Fflash-moe), a Metal engine that streams a 397B MoE from SSD\non Apple silicon.\n\n## License\n\nApache-2.0 ([LICENSE](LICENSE)). The binaries and apps also carry llama.cpp, ggml and other libraries\nunder MIT, BSD, Apache-2.0 and SIL OFL 1.1: [THIRD_PARTY_LICENSES](THIRD_PARTY_LICENSES).\n","BigMoeOnEdge 是一个面向边缘设备的混合专家（MoE）大模型推理优化框架，支持在内存受限的终端设备（如手机、笔记本）上运行远超物理内存容量的 MoE 模型。其核心技术是基于 llama.cpp 的自适应流式加载机制，按需从闪存动态加载专家权重，实现零精度损失的推理；兼容任意 GGUF 格式 MoE 模型、任意量化级别，并提供 OpenAI 兼容 API。适用于移动端 AI 应用、离线本地大模型部署、资源受限场景下的实时 LLM 服务等。",2,"2026-11-24 04:49:19","trending"]