一台1800亿参数的MoE模型,在家用硬件上运行,耗电量比咖啡机还少。
散文和代码生成速度11 token/s,代码编辑最高18.9 token/s,128k上下文窗口。
以下是其工作原理、出了什么问题、诚实的局限性以及代码仓库
[视频]
First some notes on the hardware setup. I got Turing PI 2.5 cluster board with 3 x RK1 (RK3588) compute modules 32GB RAM each and 1 Jetson Orin NX 16 GB RAM. Total 112 GB RAM distributed across 4 nodes.
The trick is that sparse MoE activates only 6B out of 180B params per token (125B MoE backbone + 51B Engram + 2.6B MTP). So we split it by role using UD-Q4_K_XL.
- Nvidia Jetson: attention, KV Cache, routers, shared experts (Q8_0)
- Turing RK1 all 512 routed experts (71.7 GiB) pinned in RAM
- 95.4 GiB lossless Engram table (BF16): lazy-mmapped off Jetson NVMe (0 pinned RAM)
llama.cpp was extremely slow because it splits by layers (5 t/s). While one node was computing, others stayed idle. To run all 3 nodes in parallel, we came up with a custom MoE tensor parallelism. the challenge is that Qwen3.8 expert width is 640, which doesn't divide by 3. The solution was to slice each expert into 7+7+6 blocks of 32 (224 / 224 / 192) and rotate the short shard on every layer. Zero padding, zero requant, and it gave 23.9 GiB per RK1 node.
Nodes on the turing Pi board are interconnected with 1 Gbps switch. It might look as a bottleneck but in reality model weights never leave the nodes and never travel though the network. The network is used to transfer tiny quntisized weight activations (3 KB) out and 10 KB FP32 back per each node per layer. With a custom UDP path over 1GbE and hand tuned ARMv8.2 kernels for Cortex-A76 CPU, the network sync takes 18 ms/token for all 48 expert layers.
The real speed up came from running a 2.6 GiB Q8_0 MTP drafter on the Jetson node. What it does is it borrows tok_embd and lm_head from the main model (1.3 GiB RAM) and drafts 2 tokens ahead with 0 network trips. Paired with an adaptive SuffixIndex (which hits up to 18.9 tok/s on code edits) and 128K unified Q8_0 KV across 2 slots so two concurrent agents hit around 13.4 tok/…
