jcagle
July 13, 2026, 10:19pm
1
A colleague just mentioned this, itβs on macOS, but the same concept could be used on DGX Spark:
Run GLM-5.2 (744B MoE) on a 25GB-RAM consumer machine β pure C, zero deps, experts streamed from disk. Tiny engine, immense model. π¦
Has anyone tried this yet?
Like only works in an offline analysis capacity, check the Tk/s projections
An interesting start apparentlyβ¦ Hopefully @Vincent might give us a report at some point. π
opened 01:37AM - 14 Jul 26 UTC
Machine:** NVIDIA DGX Spark (`NVIDIA_DGX_Spark`) Β· Ubuntu 24.04 Β· Linux 6.17.0-1β¦ 008-nvidia aarch64
**CPU:** 10Γ Cortex-X925 @ 3.9 GHz + 10Γ Cortex-A725 @ 2.8 GHz (20 cores)
**Memory:** 121 GB unified (CPU/GPU shared)
**GPU:** NVIDIA GB10 (sm_121), driver 580.126.09
**Disk:** NVMe (`/dev/nvme0n1p2`), model on local ext4
**Model:** GLM-5.2 colibri int4 Β· **int8 MTP heads** (sizes match matey-0 clone: 3527131672 / 5366238584 / 1065950496)
**Engine base:** `JustVugg/colibri` @ `a78a06f` + local experimental patches (CACHE_ROUTE / TRACE_EXPERTS / CUDA unified path)
## Disk (README protocol)
`c/iobench` Β· 19 MB Γ 64 reads Β· 8 threads Β· shard `out-00099.safetensors`:
| mode | measured |
|------|----------|
| buffered | **4.25 GB/s** |
| **O_DIRECT** | **9.69 GB/s** |
## How to read these numbers
Community table rows are usually **stock routing (full top-8)** with **decode tok/s** from the coli stats line after warm-up. This report has **two tiers**:
1. **Tier A β full top-8, no routing change** (config `num_experts_per_tok=8`)
2. **Tier B β experimental `CACHE_ROUTE`** (opt-in, not upstream default; ~14% expert substitution vs true top-8; cache-aware routing, arXiv:2412.00099 max-rank)
Also:
- **Decode tok/s** = generation window only (coli `decode tok/s`). **Overall** includes prefill β do not use overall for ranking.
- **`MTP=0` / `DRAFT=0`** for these speed cells.
- Chat used **`TEMP=0.7`**. Output on the primes prompt was the correct first-20 list every turn.
- Short context via **`:reset` each turn** (clears KV only; pin/LRU survive).
---
## Tier A β full top-8, stock routing (`TOPK` unset, no CACHE_ROUTE)
Config: `COLI_CUDA_UNIFIED=1` Β· `CUDA_DENSE=1` Β· `CUDA_GROUPED=1` Β· `DIRECT=1` Β· `PIPE=1` Β· large session LRU Β· learned AUTOPIN.
| cell | protocol | decode tok/s | hit | notes |
|------|----------|-------------:|----:|-------|
| Timed `./glm` PROFILE | WARM=160, NGEN=48, greedy `TEMP=0` | **2.39** | 82% | best non-interactive full
| Chat (warm session) | primes prompt, `:reset` each turn | **~2.08** | ~82% | chat ladder peak before CA
Example footer (preβCACHE_ROUTE):
```text
ββ 39 tok Β· 2.08 decode tok/s Β· β¦ Β· hit 82% Β· RSS ~76 GB
miss ~107/tok Β· I/O ~8.5s Β· expert ~3.2s Β· attention ~3.9s
βββ
Tier B β experimental CACHE_ROUTE (opt-in; not stock default)
CACHE_ROUTE=1 ROUTE_J=2 ROUTE_M=12
# keep true top-2; fill remaining 6 slots preferring pinβͺLRU experts ranked in top-12
Sandbox predicted hit 0.81β0.955 and ~14% substitution. Live chat matches substitution and exceeds the hit target.
Interactive chat ladder
Prompt each turn:
List the first 20 prime numbers, one per line.
Protocol: one long-lived session Β· :reset before every turn Β· same prompt Β· full top-8 K Β· CACHE_ROUTE on.
ββββββββ¬ββββββ¬βββββββββββββββ¬ββββββ¬βββββββ¬βββββββ¬βββββββββββ
β turn β tok β decode tok/s β hit β swap β I/O β miss/tok β
ββββββββΌββββββΌβββββββββββββββΌββββββΌβββββββΌβββββββΌβββββββββββ€
β 1 β 41 β 3.01 β 95% β 15% β 2.8s β 32.6 β
ββββββββΌββββββΌβββββββββββββββΌββββββΌβββββββΌβββββββΌβββββββββββ€
β 2 β 39 β 3.16 β 96% β 15% β 2.1s β 25.1 β
ββββββββΌββββββΌβββββββββββββββΌββββββΌβββββββΌβββββββΌβββββββββββ€
β 4 β 39 β 3.24 β 96% β 14% β 1.8s β 21.2 β
ββββββββΌββββββΌβββββββββββββββΌββββββΌβββββββΌβββββββΌβββββββββββ€
β 6 β 39 β 3.29 β 97% β 14% β 1.6s β 18.4 β
ββββββββΌββββββΌβββββββββββββββΌββββββΌβββββββΌβββββββΌβββββββββββ€
β best β 41 β 3.33 β 97% β 14% β 1.5s β 18.0 β
ββββββββ΄ββββββ΄βββββββββββββββ΄ββββββ΄βββββββ΄βββββββ΄βββββββββββ
Best (Tier B): 3.33 decode tok/s Β· hit 97% Β· swap 14% Β· RSS 78.5 GB Β· wall ~18s for 41 tokens.
Verbatim footer:
ββ 41 tok Β· 3.33 decode tok/s Β· 2.27 overall Β· hit 97% Β· swap 14% Β· RSS 78.5 GB Β· 18s
miss 18.0/tok (0.34 GB/tok) Β· MTP 1.00 tok/fw (0% accept) Β· I/O 1.5s Β· expert 3.2s Β· attention 4.1s
CUDA 112.5% of expert calls (27675 calls) Β· 1.00 rows/expert
cache admission 80 accepted Β· 660 scan-pollution rejects
Output quality on this prompt: correct first-20 primes every turn. Not a full ./coli bench quality gate β still pending before defaulting CACHE_ROUTE.
Timed one-shot (heavy warm, less favorable than multi-turn chat LRU):
48 tokens in 18.00s (2.67 tok/s decode) | expert hit rate 93.5% | swap 15.0%
PROFILE: expert-disk 3.852s | expert-matmul 3.833s | attention 6.155s | other 4.162s
Iβm very curious if this system could scale to two Sparks using an analogue of expert parallel. Twice the resident RAM, twice the SSD read bandwidth.
Sounds like a job for Fable :D
mashie
July 14, 2026, 3:40pm
6
Besides proving it can be done, what is the point of this?
Also what is the PP speed, only token generation is covered in those benchmarks?
>Besides proving it can be done, what is the point of this?
You wouldnβt be using this for coding, but GLM 5.2 is considered the SOTA local writing/translation model. For those tasks you usually turn off reasoning, so 3 tok/sec is not so awful, itβs faster than most peopleβs typing speed. Youβd only choose this over a cloud model (even GLM 5.2 by API) for privacy though, itβs inconvenient.
mashie
July 27, 2026, 6:16pm
8
Most users on this forum with 4 sparks or more are running GLM 5.2 at 8+ times that speed, at which point it is useful.
At 3 tokens per second it really is a science project at best.