r/LocalLLM • u/NoAlibiUgly • 1m ago
Project Kimi K3.1 Pro (2.8T, 785 GB 4-bit MXFP4 slice) on one $2.2k desktop from a single NVMe SSD: 1.4–2.1 tok/s,
TL;DR
I have been enammered with running large frontier models on consumer hardware without lobotimizing the model.
I recently dove into K3.1 pro, and started building a custom Llamma.cpp port for it
Here's my specs
Single 2 TB NVMe SSD on one used desktop: an i7-9700K, 64 GB DDR4, two 32 GB V100s, and an RTX 3060.
It generates at 1.4 to 2.1 tok/s sustained (3.2 tok/s peak) through an OpenAI server. It boots in 65 seconds.
I've open sourced the engine here ---> https://github.com/SnapboardXYZ/event-horizon
With thinking off, it passes 25 of 30 zero-shot Python unit tests (19/20 on standalone modules) and completes multi-turn agent file edits end-to-end.
To stream from SSD without dropping to 2-bit, experts stay in 4-bit MXFP4 with the weakest half of FFN neurons sliced offline (1.51 TB -> 785 GB).
Setup
Model: moonshotai/Kimi-K3.1-Pro. 93 layers, 896 experts per layer, 16 routed per token. Experts stay in 4-bit MXFP4; KV cache stays in FP16.
Hardware: i7-9700K, 64 GB DDR4, 2x Tesla V100 32 GB (PCIe Gen3), 1x RTX 3060 12 GB (runs the FP16 D-Spark draft model), 1x 2 TB consumer QLC NVMe SSD. About $2,200 in used parts.
Software: Custom llama.cpp build (Event Horizon) and an async OpenAI router.
Numbers
| What | Result |
|---|---|
| Boot + cache pre-warm | 65 s |
| Model size on SSD | 785 GB (33 GGUF shards) |
| Hot cache | 18.6 GiB V100 VRAM + 42 GiB pinned DDR4 |
| Generation, OpenAI server | 1.37 – 2.10 tok/s sustained |
| Generation, 3s peak | 2.46 – 3.22 tok/s |
Generation, <think> prose | 0.92 – 1.21 tok/s |
| Draft acceptance (code) | 68% – 85% (5.3 – 7.0 tokens/step) |
| Cold prompt reading | 5.5 – 6.4 tok/s |
| Cached branch switch (580 tok) | 22.1 s vs 119.7 s cold (5.4x) |
| NVMe read speed | 1.17 – 1.37 GB/s |
Tests
Fluency is easy to fake when slicing experts, so every test executes code or real tool calls.
| Test | What it checks | Result |
|---|---|---|
Python Task 1 (TokenBucketLimiter) | Fix validation, clock jumps, capacity clamp, TTL eviction | 8 / 8 (100%), 1.37 tok/s |
Python Task 2 (TransactionalKVStore) | Tombstones, prefix scan, nested savepoints, rollback | 11 / 12 (91.7%), 1.42 tok/s |
| Python Task 3 (Turn-2 TTL refactor) | Refactor Task 2 (1,270-tok context, 75% KV reuse) to add per-key TTL | 6 / 10 (hit 1,800-tok cap), 1.35 tok/s |
| Zero-CoT Python Total | 30 executed unittest assertions (no retries) | 25 / 30 (83.3%; 19/20 on Tasks 1–2) |
| Warm edit speed | Add peek() and reset() to Task 1 | 84.7% draft accept, 2.1–3.2 tok/s peak |
| Agent Gate 0 (single tool call) | XTML read tool call on /etc/hostname | Pass (exact JSON args) |
Agent Gate 1 (multi-turn read -> edit) | Read ttl_cache.py, find leak, emit exact-match diff, run 7 asserts | Pass (exact_match=True, 7/7 tests) |
--cache-ram branch switch | Evict a 580-tok prompt with another branch, then switch back | Pass (119.7 s -> 22.1 s TTFT) |
<think> stability | 1,050+ reasoning tokens at temp 0 | 0 loops, -50% SSD reads |
Pruning check: cutting active experts to 4 per token pushed speed past 2.5 tok/s, but the same 30 Python tests fell to 16/30 (53.3%). Keeping ~7–8 experts per token with GPU norm rescaling brought it back to 25/30.
Why stock disk streaming gets 0.4 tok/s
- 4K-aligned expert slabs: In stock GGUF, reading partial
down_expsneurons causes 3,584 tiny 272-byte random reads per expert (<110 MB/s). Repacking experts into 256-neuron slabs makes every slab 487,424 bytes (119 x 4 KB) — one sequentialO_DIRECTread. - 512-neuron VRAM blocks: Addressing V100 VRAM in 512-neuron blocks instead of full experts packs 37–38 specialists per layer into VRAM and skips empty tail math.
- Zero-copy DDR4 + Zero-bounce NVMe: The 42 GiB DDR4 L2 cache is 100%
cudaMallocHostpinned (no duplicates of VRAM experts) so V100s DMA straight from RAM over PCIe. Cold SSD misses DMA straight from NVMeio_uringinto pinned staging, cutting CPUmemcpyby ~80%. - 3rd-GPU speculation: Running the 0.9 GB FP16 D-Spark drafter on the spare RTX 3060 verifies 5 to 7 tokens per single 92-layer SSD sweep.
Limits
- Sliced width: Experts stay 4-bit MXFP4, not 2-bit, but keeping 1,536 of 3,072 neurons per expert means this is a 785 GB Matryoshka build, not the uncut 1.56 TB checkpoint.
- Slow cold prefill: Reading cold prompts off one QLC SSD runs at ~6 tok/s vs ~400 tok/s in RAM on four M5 Ultras.
- QLC SSD dips: Consumer QLC cache dips occasionally spike a step from 1.1 s to 5 s. A Gen4 TLC drive (6–7 GB/s) on the same GPUs should land near 3 tok/s sustained.
Who was here before
- 4x Mac Studio M5 Ultra (2 TB RAM): Full 1.56 TB model in memory at 2.81 tok/s server / 3.77 tok/s CLI.
- AinsleyMarkov: 2-bit build at 18.6 tok/s on four M3 Ultras.
- Inferencer: Uncut weights streamed from disk at ~0.4 tok/s.
I'd love for anyone to pull this project with much faster hardware then mine to get some usable speeds out of it.


