Repository navigation
Closed
Description
The Idea
MoE models load ALL experts but only activate a few per token. On constrained devices, this wastes memory. Instead: keep the router + hot experts local, page cold experts from the grid on demand.
Architecture
iPhone (2GB budget):
- Router weights (tiny, always resident)
- 4 hot experts (recently used, ~500MB)
- Cold expert requests → grid mesh → nearest node with expert loaded
MacBook (8-16GB budget):
- Router + 16-32 experts resident
- Overflow to grid for rare experts
5090 Tower (32GB):
- Full expert set resident
- Serves cold expert requests from edge devices
How It Works
- Token arrives at MoE layer
- Router selects top-K experts
- If expert is local → run locally (fast path)
- If expert is remote → request from grid (async, with fallback to best local expert)
- Prefetch: router predicts next-token experts, pre-fetches from grid
- LRU eviction: least-recently-used experts paged out when memory pressure
The Docker Parallel
- Expert = container image
- Router = orchestrator/scheduler
- Grid node = compute host
- Pull expert = docker pull
- Hot expert = running container
- Cold expert = image in registry
Performance
- Local expert: ~1ms (GPU memory access)
- Grid expert over Tailscale: ~5-20ms (LAN latency)
- Grid expert over internet: ~50-200ms (WAN)
- Prefetching hides most latency for sequential generation
This Is The Moat
Hermes/OpenClaw route to cloud APIs. We route to experts on YOUR hardware. The model is distributed across devices you own. No API keys. No monthly bill. No data leaving your network.
Dependencies
- Grid transport working (Tailscale now, Reticulum later)
- MoE model loading with partial expert sets
- Expert-level weight serialization (ship one expert, not the whole model)
- Candle inference with dynamic expert loading
- Factory widget showing expert residency across grid
Related
- Factory — forge production floor with SCADA monitoring and AI foreman #576 (Factory widget)
- Architecture Visualizer — shared widget for model surgery and cognition #577 (Architecture visualizer — show expert residency per node)
- Voice/Audio model forging — same pipeline as LLMs #578 (Voice forging)
- Vision model forging — compacted models for camera/domain tasks #579 (Vision forging)
- sentinel-ai Build(deps): Bump inquirer from 8.2.6 to 12.9.1 #108 (device ladder)
Metadata
Metadata
Assignees
Labels
No labels
Activity
joelteply commentedon Mar 30, 2026
Tracked in architecture roadmap. Not actionable as individual issue — needs grid + inference + dynamic loading.