A journal that is (somewhat) about research and poor writing
Low VRAM LLM serving - the hard numbers
One of the big things we've been working on over the last few months is low VRAM LLM serving. There are plenty of "tricks" out there that people do to achieve this, but we really didn't think another trick was needed. We wanted to do the real thing, look at the actual architecture, process, models, and everything around them that had to happen to serve an LLM in VRAM. This was not done with nothing in hand, we've been developing a novel HPC framework with some odd concepts and results, and apply that research into a variety of different problems, making it a hardened and battle tested repo, by putting it against:
-
Cryptomining- incredibly interesting. Some cryptocurrencies we were able to speed up mining by ~75x (Autolykos- and it still wasn't profitable) while others retained modest wins like RandomX (~1.5-2x speedup). RandomX remains our arch-nemesis, but seriously big props to the XMR team for this algorithm, I hate it, and that's a compliment.
-
Alternatives to several HPC concepts/products - the research was constrained to solely consumer or consumer-adjacent hardware and software. No NVLink, no GPUDirect, no special Mellanox NICS or RDMA. Instead we developed our own alternatives, dubbed DMAR (distributed memory access remote), NICDirect (doesn't actually use a NIC, we had planned to but didn't, the name stuck), and DoNE (DMAR over Normal Ethernet). You may notice the similarities in some names, totally coincidental of course. Some particular highlights:
-
Native drivers. Specifically NVIDIA's. Several drivers attempt, in adorable fashions, to block "enterprise only features". We had to bypass this, eventually we realized it was actually just easier to write our own drivers for some functionality. This led to the creation of P2P4TP, a soon(ish) to be open software that focuses on actual P2P communications between hardware by translating, unifying, and understanding DMA, MMIO, and virtual host allocation addressing under a single virtual space.
What I'm getting at is- we didn't walk in one day and decide "we're going to change how LLMs are served." This was 2 years and 2.5 million lines of approximately half C code and half python. And even TENS of lines of typescript for one thing. Now, I've put together some numbers and examples of how we're serving LLMs.
Here is the long story short - we have confused and continued to confuse VRAM execution with VRAM residency. There are several problems in software dev and research where we may have to work around the fact that something is apparently "memory bound." An oft-used solution is to make a trade, such as trade compute for memory, or trade byte motion and planning for "shove everything in RAM." The LLM problem is not any different, it is workable, and the resulting work came from several parts of the repository that already existed to make exactly these tradeoffs.
#pThings
That's not a typo, there's a lot of things in our HPC repository, called "Be Like Water," that are all about trading a thing for another thing computationally. The repo started when I (Alex- hi), started to mess around with a system I called PacketFS or PFS. The idea was to use shared byte references on "two things on computers" loosely, to achieve extremely efficient byte motion. This is described more in another entry, but the basic idea is - everything on a computer is sets of bytes in a specific order. There's only 256 bytes, there are tons of standards that mandate how those bytes are shaped, creating myriad patterns everywhere on a computer. We can exploit this by holding a shared reference of two "byte blobs" on two sides of a thing. By that I mean for example, one network endpoint to another network endpoint, host RAM to VRAM, or anywhere to anywhere. The result was that effectively files became pointers into the shared byte blob - picture this as something like tuples (offset, length to read, fuzziness) - where fuzziness involved developing a custom ISA to efficiently describe fuzzinesss in bytes, and eventually expanded to a full on ASM-like ISA called pASM. Read more about it in Belikewater Intro.
OK enough about history. Here's the skinny on how we're doing this, and doing it without losing speed, precision, or offloading to CPU. Here's a bunch of data and the technique.
BeLikeWater Low-VRAM LLM Serving: JIT Streaming Execution, Byte-Motion Architecture, and Measured Fleet Telemetry
Core Thesis: Large language models (from 32B dense models up to 148 GiB
Qwen3-Coder-Next, 1T+Kimi K3, and 2.4TQwen3.8-2.4T-A95B) do not need their weights permanently resident in VRAM—or even fully resident in pinned DMA memory—to execute at native GPU speed. By treating the GPU as a Just-In-Time (JIT) streaming execution engine where 100% of arithmetic runs in VRAM over pre-compiled 64-bytepstackinstruction frames, permanent per-layer/per-expert prefix runways, and asynchronous tiered byte motion (NVMe -> DRAM -> Kernel DMA Arena -> VRAM), models that are 5×–150× larger than device memory execute with bounded VRAM, low power draw, and bit-exact fidelity.
1. Why This Is "JIT Streaming Execution in VRAM" — Not CPU/PCIe Offloading
Conventional "low-VRAM" or "offload" approaches fall into two traps:
- Compute Offloading (
llama.cpppartial offload, hybrid CPU/GPU split): Moves layers that do not fit in VRAM onto the CPU, collapsing token generation speed to host DDR bandwidth and CPU FLOPs. - Naive Layer Swapping (
acceleratedevice_map="auto", synchronous layer paging): Stalls the GPU at every layer boundary while waiting for an entire layer or expert bank to cross PCIe before the first GEMM instruction can launch.
BeLikeWater (belikewater-transformers + pfs-sdk) does neither. Every projection, attention kernel, recurrence step, activation, and reduction executes 100% in VRAM on the GPU. What changes is when weight bytes arrive in VRAM and how long their device buffers remain alive:
┌──────────────────────────────────────────────────────────────────────────────┐
│ 4-Tier Byte-Motion Hierarchy │
├──────────────┬───────────────────────────┬───────────────────────────────────┤
│ Tier │ Owner & Mechanism │ Measured / Nominal Bandwidth │
├──────────────┼───────────────────────────┼───────────────────────────────────┤
│ L1: VRAM │ Permanent prefix seeds, │ 0 ns time-to-first-useful-byte │
│ (Device) │ .pvrte pointers, compact │ (HBM / GDDR6X / GDDR7 native; │
│ │ spine, reusable SlotPool, │ 633,186 device graph launches │
│ │ optional retained tails │ per 1 host launch) │
├──────────────┼───────────────────────────┼───────────────────────────────────┤
│ L2: DMA │ memhub-sdk (pfs_dma.ko), │ 25.47 – 26.0 GiB/s single GPU H2D │
│ Arena │ duo_gpu_dma_pool, │ 33.4 GiB/s dual-GPU combined H2D │
│ (Host Pinned)│ ResidentSource / │ (PCIe 4.0/5.0 zero-copy import or │
│ │ PinnedRangeCache │ cuda-host-register-mapped) │
├──────────────┼───────────────────────────┼───────────────────────────────────┤
│ L3: DRAM │ tiercache.TieredCache, │ ~10 – 19 GiB/s host conveyor │
│ (Pageable) │ WindowedProvisioner │ (Duo HOTPATH: 19.023 GiB/s) │
├──────────────┼───────────────────────────┼───────────────────────────────────┤
│ L4: NVMe │ packed_nvme.py, │ ~1.5 – 3.0 GiB/s per drive │
│ (Immutable) │ ZFS COW snapshots, │ (Cold prefill / conveyor source; │
│ │ BackingGenerationAdmission│ verify-once SHA admission) │
└──────────────┴───────────────────────────┴───────────────────────────────────┘
How Execution Actually Runs Inside VRAM
- Meta-Device Construction & Expert-Bank Severance:
- At startup, the reviewed Hugging Face reference model (
Transformers 5.18.0.dev0forQwen3-Coder-Next/Qwennifer(customized Qwen3-Coder) /Qwen3.8,4.57.6for denseQwen3) is constructed on PyTorch'smetadevice (reference.py,PersistentQwen3Model). - Before any weights are materialized, the massive routed MoE expert banks (or dense linear projections) are severed and replaced with
belikewaternative execution adapters (install_hf_experts,install_dense_linears). - Only the small compact non-expert spine (embeddings, RMSNorms, routers, shared experts, LM head) and
.pvrtepointer artifacts are loaded permanently into VRAM.
- At startup, the reviewed Hugging Face reference model (
- Pre-Compiled 64-Byte
pstackFrames & Persistent CUDA Graphs:- Offline preparation decomposes checkpoints into dependency-complete weight records and compiles canonical 64-byte
pstackinstruction frames (pasm-sdk/pstack-sdk). - The native
iprog-jitDuo runner (libduo_runner_gpu.so,libduo_persistent.so) processes tiles of4,096 B(64 frames per tile) and64 KiBwindows (with short-final-window support down to 256 valid program bytes and zero NOP padding). - Cold priming (
session.prime(...),rotary_startup.py) pre-captures every admitted(batch_rows, projection_shape)variant into a palette of CUDA child graphs (libduo_reference_gemm.so,cublasGemmEx) and FP32 rotary/FLA normalization buckets beforesession.start()begins serving. - During live inference, the persistent GPU controller dispatches hundreds of thousands of device graphs directly from VRAM (
633,186device graph launches to1host graph launch in the Nov 1, 2026Qwen3-Coder-Nextqualification, with0host frame callbacks and0host group waits).
- Offline preparation decomposes checkpoints into dependency-complete weight records and compiles canonical 64-byte
- Strict Lease Ownership Without Blocking the GPU:
- Every nonresident weight record follows a deterministic state machine:
reserve -> fill -> publish -> wait for readiness -> consume -> complete -> retire/reuse - A reusable pool of GPU transfer slots (
SlotPool, e.g., 40 × 3.75 MiB slots = 150 MiB of in-flight VRAM buffer) receives asynchronous H2D copies on a dedicated copy stream. - Compute streams synchronize via lightweight GPU stream event dependencies (
completion_mode: "gpu-stream-dependency"), skipping host waits whenever a ticket'sREADYgeneration is already satisfied and recycling the slot only after the consumer'sDONEevent fires. If a frame ever encounters an unready range, Duo emits a structured[BLW NEED]event rather than silently reading files on the hot path.
- Every nonresident weight record follows a deterministic state machine:
2. Why Byte Motion Doesn't Cause a Slowdown
A 148.4 GiB model (Qwen3-Coder-Next) or 2.4T model (Qwen3.8) cannot be copied across PCIe in its entirety per token. BeLikeWater avoids PCIe bottlenecks through five compounding byte-motion mechanisms:
2.1 Permanent Prefix Runways ("Zero Time-to-First-Useful-Byte")
As formalized in docs/THE_BASE_FLOW.md, docs/CODER_EXPERT_RUNWAY.md, and docs/DENSE_PREFIX_RESIDENCY.md:
- Never cache whole layers while leaving other layers empty. If Layer 0 is 100% resident and Layer 1 is 0% resident, the GPU stalls at Layer 1 waiting for PCIe.
- Instead, split the VRAM residency budget across the beginning (
prefix_rows) of every layer and every expert:- In
Qwen3-Coder-Next(48 layers × 512 experts = 24,576 experts), keeping the first 32 paired gate/up output rows (256 KiBper expert) permanently in VRAM consumes exactly 6.0 GiB across the entire model (or 9.0 GiB for 48 rows; or 4 rows inQwennifer K6). - In
Kimi K3(896 experts/layer, top-16), holding a few MiB of every expert's initial rows in VRAM provides an instant runway regardless of which 16 experts the router chooses. - In Dense models (
Qwen3-32B/Qwen3-8B), holding the firstceil(p * rows(t))output rows of every projection across all layers (DENSE_PREFIX_RESIDENCY.md) guarantees every layer starts its GEMM att = 0 nsupon entry.
- In
- The Runway Effect: Because computers execute instructions sequentially ("leftmost-instruction"), the GPU does not need the end of a matrix to begin multiplying the start of the matrix. While the GPU executes the resident prefix rows in VRAM, the asynchronous copy stream streams only the 10 or 16 router-selected experts' tails (or the next 3–4 dense layers' tails in an interleaved cyclic stream) into VRAM slots just ahead of the execution frontier.
2.2 Sparse Routing + Prefix/Tail Split Drastically Cuts Moved Bytes
- In
Qwen3-Coder-Next, the full expert bank is ~144 GiB, but top-10 routing selects only10 / 512(1.95%) of experts per token per layer. - With 32 permanent prefix rows in VRAM, a single-token decode forward only needs to stream 2.695 GiB (or 2.637 GiB at 48 prefix rows) of expert tails across all 48 layers—and at 25.5–33.4 GiB/s DMA bandwidth, that transfer overlaps with prefix + attention compute.
- When demand-filled VRAM tail retention (
retained_tail_gib) is added on GPUs with spare headroom, repeated expert hits stay in VRAM: on a 40 GiB A100, retaining 24.77 GiB of hot tails avoids 75.39% of tail H2D traffic (reducing per-request H2D from94.43 GiBto23.24 GiB,docs/RESIDENCY_SWEEP.md).
2.3 Batching Is a Throughput Multiplier, Not a Byte Multiplier
- In classical full-residency serving, batching is limited by VRAM left over after loading all weights.
- In BeLikeWater's JIT streaming regime, VRAM is bounded to a small fixed envelope, and all tokens in a batch/prefill chunk are flattened across the GEMM $M$ dimension and grouped by expert (
docs/CODER_PREFILL_PARALLELISM.md,docs/TOKEN_BATCHES.md). - Each streamed weight record is transferred once and shared across all active token rows in the cohort.
- Measured proof on
Qwen3-Coder-Next(A100,docs/TOKEN_BATCHES.md):- Scaling known-token input batching from 376 tokens to 8,138 tokens across 8 sequences increased throughput 3.67× (
71.2 -> 261.2 tok/smedian,292.7 tok/speak) while tail H2D bytes per input token dropped by 87.4% (77.87 MiB/tok -> 9.83 MiB/tok)—all within a nearly flat 31.41–32.75 GiB VRAM footprint!
- Scaling known-token input batching from 376 tokens to 8,138 tokens across 8 sequences increased throughput 3.67× (
2.4 Multi-Tier Compression (PVRTE, PVRTC, Zstd Slot Transfer, and MXFP4)
PVRTE01(Self-Referential Encoding,pvrt-sdk):- Encodes static weight blocks and sealed rolling KV snapshots as compact back-references into SHA-256 identity-bound backing.
- Compresses a 476 MiB GPT-OSS decoder block to ~269 KiB (
0.056%), a 3.1 MiB KV snapshot to 1,831 bytes (0.058%), and representsQwen3-Coder-Next's 148.4 GiB checkpoint via a 188 MB resident PVRTE artifact (4,863,237proven windows).
PVRTC& PreparedZstdGPU Slot Transfer (PreparedZstdSlotTransfer):- Across 48 held-out
Qwen3-Coder-Nextexpert leaves (4,608 / 4,608windows), losslessPVRTCachieves a 0.766 wire ratio (~20.5%–23.4% byte reduction) with1.426 msmax single-window decode+reform time. - For GPT-OSS 20B real KV caches,
PVRTCexploits BF16 sign/exponent low entropy (2.88–3.16 bitsvs7.95 bitsin the mantissa byte) to achieve 66.48% cold ratio (91.87%structural palette coverage). - At
1 MiBquanta on A100 (docs/PVRTC_TRANSFER.md), the prepared compressed H2D pipeline delivers 14.801 GiB/s logical payload vs 12.467 GiB/s raw (+18.7% effective H2D bandwidth). PreparedZstdSlotTransfer(docs/PREPARED_ZSTD_SLOT_TRANSFER.md) copies compressed Zstd frames from pinned host memory to GPU staging and expands them directly into rawSlotPoolhomes via 2–4 asynchronous NVIDIAnvCOMPdecoder streams, using GPU event dependencies with zero host synchronization.
- Across 48 held-out
- Hybrid BF16 Prefix + Group32
MXFP4Tails (Qwennifer K6&Kimi K3):- Preserves full BF16 precision for attention, router, shared spine, and the 4-row permanent expert prefixes, while packing streamed expert tails in
MXFP4(duo_mxfp4). - In
Kimi K3(RTX 5090), native MXFP4 MoE GEMM delivers a 6.35× compute speedup while using 37.7% less VRAM (cosine similarity = 1.0,max error = 2 ULP). - In
Qwennifer K6, this shrinks a 148 GiB-class model into a 15 GiB VRAM single-card envelope delivering 10.8–12.8 decode tok/s and 2.14 s TTFT on 2,389-token prompts on consumer 16 GiB GPUs.
- Preserves full BF16 precision for attention, router, shared spine, and the 4-row permanent expert prefixes, while packing streamed expert tails in
2.5 Verify-Once Admission (BackingGenerationAdmission) & fast-lane/v1
- Early prototypes suffered from per-record SHA-256 hashing, Python
BindPayloadreconstruction, and per-transfer pointer audits on the hot path. BackingGenerationAdmission(docs/FAST_LANE.md) performs a single cold SHA-256 verification of the immutable prepared backing and binds open file-generation stamps. Serving profiles (execution_profile="fast-lane",source_verification="admitted-generation") perform zero record hashes during inference, read directly into reserved pinned slabs (RangeProvisioner.fill_into), and pre-Check readiness fences before waiting.- In
Qwen3.8-2.4T(QWEN38_PERFORMANCE_REVIEW_2026-10-11.md), replacing per-forward reader reopening across 1,536 bindings with immutable source binding maps reduced CPU lookup overhead from 215.51 µs to 0.18 µs (1,197× faster).
3. Model-by-Model Timings, VRAM Residency & Power Telemetry
3.1 Summary Matrix Across Models & Hardware
| Model / Profile | Total Weight Size | Target Hardware | Measured / Admitted VRAM | Power & Temp | Key Latency (TTFT / Total) | Decode / Prefill Throughput |
|---|---|---|---|---|---|---|
Kimi K3 (93L, 896E top-16, 1M+ ctx) | ~1T+ MoE (MXFP4/BF16) | 1× RTX 5090 (32 GB) + 5-node fleet | 645.8 MiB (2-tok probe)<br>3.23–6.46 GB staged (1M ctx) | — | 853–861 ms median (820 ms min) on 1M+ context hot path; 4.66–7.62 s cold | Native KDA 2.87×, MLA 4.43× (0 B expanded KV), MXFP4 MoE 6.35× |
Qwen3.8-2.4T-A95B (92L, 512E top-10) | ~4.8 TB BF16 (2.4T params, 95B active) | 1× RTX 5090 (32 GB) + 256 GB DMA Arena | 13.875 GiB (14.90 GB) declared production GPU envelope | — | Startup metadata audit of all 47,104 experts / 141,312 records in 2.16 GB RSS | 86.25 GiB expert sweep / token; 215.5 µs -> 0.18 µs binding lookup |
Qwen3-Coder-Next (coder-fast, 48L, 512E top-10) | 148.4 GiB BF16 (188 MB PVRTE) | 1× A100 (40 GB) | 10.84 GiB (1-lane)<br>31.15 GiB (262K ctx)<br>35.61 GiB (4-lane fast) | 53–55°C (8K batch)<br>71–78°C (cooled B32) | 1.68–4.42 s TTFT (short)<br>3.04 s TTFT (B16)<br>3.82 s TTFT (B32) | 47.28–48.20 tok/s (4-lane lookup)<br>16.11 tok/s (B64 decode)<br>261.2 tok/s (292.7 max, 8K prefill) |
Qwen3-Coder-Next (ResidentSource DMA) | 148.4 GiB BF16 (144 GiB DMA arena) | 2× RTX 5090 (punk-ripper) | 15.9–16.28 GiB (prefix32)<br><25.04 GiB (prefix48 + 6G tail) | — | 1.68–1.88 s TTFT (1-lane)<br>4.11 s TTFT (8-lane batch)<br>5.62 s / 16.69 s (64 / 1K code) | 4.05–4.10 tok/s (1-lane decode)<br>11.26 tok/s (8-lane decode)<br>82.9 tok/s (64K prefill) |
Qwen3-Coder-Next (262K Dual Blackwell) | 148.4 GiB BF16 | RTX 5060 Ti (16G) + RTX 5070 Ti (16G) (notgrim) | 15,692 MiB (5060 Ti)<br>15,022 MiB (5070 Ti) | 108 W (65°C)<br>137 W (61°C) | 0.757 s (hot short, 20+28 split)<br>737.8 s full 262,144-tok pass | ~355 tok/s effective chunked prefill (5.5 s median per 2K chunk) |
Qwen3-Coder-Next (262K Dual 4060 Ti) | 148.4 GiB BF16 | 2× RTX 4060 Ti (16G each) (punk-ripper) | 15,974 MiB / 15,968 MiB (~97% of 16 GB) | 89.3 W (64°C)<br>85.5 W (55°C) | 0.81–0.98 s (hot repeat)<br>7.50 s (cold)<br>12.82 s (coding) | Full 262,140-token exact needle retrieval (14,391.5 GiB streamed) |
Qwen3-Coder-Next (Single RTX 4090) | 148.4 GiB BF16 | 1× RTX 4090 (24 GB) (punk-daemon01) | < 24 GiB single-card | — | 0.62–0.71 s HTTP warm repeat (0.54 s prefill, 0.14 s decode); 2.01 s cold | Sub-second interactive single-card turnarounds |
Qwen3-Coder-Next (12 GiB Stress Test) | 148.4 GiB BF16 (0 seeds, NVMe-bound) | 1× RTX 5060 Ti (16 GB) (punk-valkyrie) | 7.58 GiB (8.14 GB) actual whole-device peak (12 GiB cap) | — | 24.33 s (64t, 4 readers)<br>51.29 s (1024t, 4 readers)<br>21.99 s (short SSE TTFT) | 0.67–0.71 tok/s decode while streaming 99 GiB/req off PCIe x4 NVMe |
Qwennifer K6 (k6-prefix4-15g-v1) | 148.4 GiB base (BF16 prefix4 + MXFP4 tails) | 1× RTX 5060 Ti / 5070 Ti / 4060 Ti / A10G (16–24 GB) | 15.0 GiB reservation | — | 0.24 s (9-tok)<br>0.50 s (short SSE)<br>2.14 s (2,389-tok, 5070 Ti)<br>9.01 s (18,994-tok)<br>15.48 s (32,768-tok) | 10.8 – 12.8 tok/s single-stream decode up to 32,768 context |
Qwen3-32B Dense (PersistentQwen3Model) | ~64 GiB BF16 (64L, 448 projections) | 1× RTX 5070 Ti (16 GB) | 10.51–11.30 GiB allocated (11.19–12.00 GiB reserved) | — | 6.61 s (512-tok prefill)<br>3.15 s (decode step) | 77.35–77.50 input tok/s; 387/387 tensors bit-exact at B1/M512 & B2/P256 |
Qwen3-8B Swarm (qwen3-8b-swarm-dense) | ~16 GiB BF16 per node | 4× nodes = 256 seats (rider, magma, inferno, daemon01) | 4,679–4,685 MiB (~4.57 GiB) during 128-voice run | 46°C at 98–100% GPU util | 1.597 s / 64-seat batch (daemon01)<br>3.001 s / 64-seat batch (inferno)<br>71.06 s for all 128 voices | 64 concurrent seats per endpoint (256 total); ~40–120+ aggregate tok/s per node |
3.2 Deep Dive: Frontier Giant Models (Kimi K3 & Qwen3.8-2.4T-A95B)
A. Kimi K3 (93 Layers: 69 KDA Recurrent + 24 MLA Attention + 93 MoE Layers, 896 Experts, Top-16)
Kimi K3 combines Kimi Delta Attention (KDA) linear recurrence on 69 layers with Multi-Head Latent Attention (MLA) on 24 layers and 896-expert MoE across all 93 layers (docs/STATS.md, belikewater-transformers/docs/KIMI_K3_BRINGUP.md, belikewater-transformers/docs/THE_BASE_FLOW.md):
- Native CUDA Kernel Speedups (RTX 5090,
cosine similarity = 1.0vs PyTorch Oracle):- KDA Recurrent Core: 2.87× faster (
1.03 msnative vs2.97 msfallback) — Convolution 3.28× (0.54 ms), L2 Norm 2.92× (0.05 ms), Recurrence 2.62× (0.34 ms), Gated RMSNorm 2.25× (0.08 ms). - Absorbed MLA Attention: 4.43× faster (
0.27 msnative vs1.19 msfallback) with 0 bytes of expanded KV tensor materialized in VRAM (491,520 Blogical KV preserved in compressed latent form). - Native MXFP4 MoE GEMM: 6.35× faster with 37.7% less VRAM allocated and exact routing parity (
max error = 0.0078 / 2 ULP).
- KDA Recurrent Core: 2.87× faster (
- Full-Depth 93-Layer Generation in
645.8 MiBPeak VRAM:- In the full-depth two-token autoregressive generation probe (
docs/STATS.md§4.8),Kimi K3executed all 69 KDA layers, 24 MLA layers, and 93 MoE layers with a peak VRAM footprint of just 645.8 MiB (454.46 MBresident KDA state +55.3 KBresident MLA cache).
- In the full-depth two-token autoregressive generation probe (
- Resident 1M+ Token Context Serving (
docs/STATS.md§5):- Cold Start (1M Context):
7,616 mstotal wall (58.9 msKDA,17.1 msMLA,7,405 msMoE;21.3 GBexpert source read across 1,214 reads;6.46 GBsecondary cache staged). With expert striping (mod-2 route-1), cold start drops to4,656 ms(7.54 GBread,2.84 GBstaged). - Warm/Hot Path (1M Context, 8 samples):
- Local Hot Path Median: 853 ms (
827 msmin,867 msp95) —52.8 msKDA,20.8 msMLA,693.1 msMoE. - Expert-Stripe Hot Path Median: 861 ms (
820 msmin) with52%expert cache hits and3.23 GBstaged.
- Local Hot Path Median: 853 ms (
- Heterogeneous 5-GPU Fleet Qualification: Qualified across
punk-valkyrie(RTX 5090),punk-daemon01(RTX 4090),punk-inferno(RTX 5070),punk-rider(RTX 3060), andpunk-vvv(RTX 3060).
- Cold Start (1M Context):
B. Qwen/Qwen3.8-2.4T-A95B (92 Layers: 69 DeltaNet + 23 Attention, 512 Experts/Layer, Top-10)
Qwen3.8-2.4T-A95B (belikewater-transformers/docs/QWEN38_BRINGUP.md, docs/QWEN38_GENERATION_QUALIFICATION.md, QWEN38_PERFORMANCE_REVIEW_2026-10-11.md) has 47,104 expert members (141,312 weight records) with hidden width 8,192 and intermediate width 2,048:
- Fitting a 2.4-Trillion Parameter Architecture into
13.875 GiBVRAM:- Declared Production GPU Envelope:
14,897,958,912bytes (13.875 GiB) on a single RTX 5090 (GPU-dfb8ff4b-ce1f-6ce4-d361-94986f71855d), consisting of:- Resident spine payload:
8,136,966,144 B(7.58 GiB) - Two reusable GPU non-expert pack homes:
1,971,750,400 B(1.84 GiB) (swapping 69 DeltaNet packs of985.9 MBand 23 attention packs of948.0 MB) - Hybrid 69-DeltaNet + 23-Attention state cache (at 256 context positions):
614,236,160 B(585.8 MiB) - Owner-serialized 10-lane
pstackframe catalog (2,624 / 4,096 Bactive per window):452,198,400 B(431.2 MiB)
- Resident spine payload:
- Host DMA Arena Envelope:
89.83 GBnon-expert layer packs +64 GiB(default) or128 GiB(host-cache-128gib.json) expert cache inside a 256 GiB hugepage-backed kernel DMA arena (host-arena-256gib.json,cuda-host-register-mapped). - Byte-Motion Analysis: A single unseeded 1-row sweep across 92 layers × 10 experts touches
86.25 GiBof routed expert payload (87.15 GiBallocator extents,107.52 GiBwith20.375 GiBlookahead, fitting cleanly inside the128 GiBexpert cache without touching NVMe).
- Declared Production GPU Envelope:
3.3 Deep Dive: Qwen3-Coder-Next (148.4 GiB BF16) & Qwennifer K6
Qwen/Qwen3-Coder-Next (revision a7fbcb5c0e12d62a448eaa0e260346bf5dcc0feb) is a 48-layer hybrid architecture (12 full-attention KV layers + 36 linear/FLA recurrence layers, 512 MoE experts per layer, top-10 routing, 262,144 context length) with a 148.4 GiB BF16 checkpoint.
A. Power Output & Thermal Efficiency Under Load
Because JIT streaming bounds active VRAM allocations and avoids spinning multiple 80 GB datacenter GPUs in lockstep, power consumption on consumer cards remains remarkably low even at 100% GPU utilization during 262K-context sweeps:
- Dual RTX 4060 Ti 16 GB (
punk-ripper, 262,140-token context proof,docs/STATS.md§15.2):- Power Draw: 89.3 W (
cuda:0,64°C) and 85.5 W (cuda:1,55°C) — 174.8 W combined GPU power for a 148.4 GiB model at 262K context! - VRAM Peak:
15,974 MiB / 16,380 MiBand15,968 MiB / 16,380 MiB(~97% capacity), 100% / 100% GPU utilization, streaming14,391.5 GiBof expert source across 128 prefill chunks and retrieving the exact semantic needle at 5,000 bps.
- Power Draw: 89.3 W (
- Dual Blackwell RTX 5060 Ti 16 GB + RTX 5070 Ti 16 GB (
punk-notgrim, 262,144-token context proof,docs/STATS.md§15.10):- Power Draw: 108 W (
65°C,15,692 / 16,311 MiBVRAM on 5060 Ti) and 137 W (61°C,15,022 / 16,303 MiBVRAM on 5070 Ti) — 245 W combined GPU power. - Completed the entire 262,143-token prefill + 262,144th response token in
737.8 s(~12.3 minutes) (5.5 smedian per 2K chunk,1,357.0 GiBexpert source processed).
- Power Draw: 108 W (
- Host CPU Clock / Thermal Sensitivity (
results/coder-full-flow-20261101/thermal-comparison/receipt.json):- Because the host producer thread feeds H2D slots and advances the frontier, severe CPU thermal throttling directly impacts TTFT: when a rogue background process (
reminedmeminer) throttled the host CPU to 868.4 MHz at 90.0°C, a short prompt took 13.942 s TTFT (16.111 stotal). - Isolating CPU affinity (
2,620.1 MHz) immediately dropped TTFT to 2.812 s (3.246 stotal), and disabling the miner dropped TTFT to 2.156 s (2.541 stotal — 6.47× faster).
- Because the host producer thread feeds H2D slots and advances the frontier, severe CPU thermal throttling directly impacts TTFT: when a rogue background process (
B. Single-Card & Dual-Card Interactive Latencies (Qwen3-Coder-Next)
- 40 GiB A100 (
coder-fast,bak/qwen3-next-coder/docs/PROFILE.md,BATCH_LADDER.md,TOKEN_BATCHES.md):- 4-Lane Streaming + Prompt Lookup (Width 16): 47.28 – 48.20 aggregate decode tok/s (
4.42–4.54 sfirst text,7.30–7.36 stotal). - Single-Lane Warm Decode: 6.531 decode tok/s at 1K context (
33.83 GiBpeak); 4.484–4.845 decode tok/s at10.84–13.02 GiBVRAM without tail retention; 6.108 decode tok/s with24.77 GiBretained tails (75.39%H2D avoided). - Multi-Sequence Decode Scaling:
- 16 sequences: 10.74 aggregate decode tok/s (
3.043 sTTFT,36.61 GiBpeak) - 32 sequences: 14.71 – 14.95 aggregate decode tok/s (
3.815–3.94 sTTFT,555.4 MiB/tokH2D,36.10 GiBpeak) - 64 sequences: 16.11 aggregate decode tok/s (
5.57 sTTFT,467.3 MiB/tokH2D — 15.9% less H2D/token,35.42 GiBpeak)
- 16 sequences: 10.74 aggregate decode tok/s (
- Known-Token Prefill Scaling (8 sequences):
512tok (376useful): 71.2 tok/s (77.87 MiB/tokH2D,31.41 GiBpeak)1,024tok (994useful): 95.3 tok/s (51.10 MiB/tokH2D,31.52 GiBpeak)2,048tok (1,964useful): 138.6 tok/s (30.78 MiB/tokH2D,31.69 GiBpeak)4,096tok (3,980useful): 200.4 tok/s (17.45 MiB/tokH2D,32.03 GiBpeak)8,192tok (8,138useful): 261.2 tok/s median (292.7 tok/smax) (9.83 MiB/tokH2D,32.75 GiBpeak)
- Full 262,144-Token Context on 1× A100: 31.150 GiB accounted peak, 2.291 decode tok/s, exact middle-needle retrieval (
docs/CONTEXT262K.md).
- 4-Lane Streaming + Prompt Lookup (Width 16): 47.28 – 48.20 aggregate decode tok/s (
- Dual RTX 5090 with Shared 144 GiB
ResidentSourceDMA Arena (punk-ripper,docs/CODER_RESIDENT_SOURCE.md,docs/CODER_FEEDING.md):- Two independent
Qwen3-Coder-Nextinstances in one process borrow the same immutable 144 GiBpfs_dma.koarena (zeroduplicate host payload,zeroserving file reads/hashes/evictions). - Measured PCIe H2D Transport: 25.47–26.0 GiB/s per GPU (
33.4 GiB/scombined). - Latency & Throughput:
- Direct production worker probes (
results/coder-latency-20261030.json,report.json): 1.68 s – 1.755 s TTFT (1.95–2.10 stotal) on short prompts; 5.62 s TTFT on 64-token code prompts; 16.69 s TTFT on 1,024-token code prompts. - Dual-model simultaneous launch (
CODER_RESIDENT_SOURCE.md): 1.87 s and 1.88 s TTFT at 16,139 MiB and 16,283 MiB peak VRAM. - With 48-row permanent prefixes (9 GiB) + 6 GiB tail cache (
CODER_FEEDING.md): 4.05–4.10 solo decode tok/s, and 11.26 aggregate decode tok/s across 8 concurrent chat lanes (4.11 sTTFT,<25.04 GiBVRAM).
- Direct production worker probes (
- Two independent
- 12 GiB VRAM Low-End Stress Qualification on 1× RTX 5060 Ti (
punk-valkyrie, Nov 1, 2026,results/coder-real-workload-20261101/handoff.json):- Configured with
vram_gib: 12,host_cache_gib: 12,expert_runway_layers: 0(no permanent GPU seeds), streaming full BF16 weights on an RTX 5060 Ti. - Actual Whole-Device VRAM Peak: 8,139,046,912 bytes (
7.58 GiB) across 303 NVML samples (18.57 GiBprocess RSS). - Bit-Exact Verification: 100% bit-exact (
0 / 19,447,808mismatched logit elements) across all 48 layers, 48 routes, and 96 cache coordinates. - Why NVMe Streaming Is the Boundary to Avoid (
results/coder-ttft-investigation-20261101/report.json): Because this stress profile had zero GPU seeds and only a 12 GiB host cache, a 1,024-token Python code prompt visited15,716distinct expert-layer pairs and triggered106.2 GB(~99 GiB) of physical block reads from an ext4 NVMe drive (MasonSemi SSD, PCIe 8.0 GT/s x4). With 1 reader thread, TTFT was97.82 s(43.47 sfor 64 tokens); increasing to 4 parallel reader threads (stress_four_readers) nearly halved TTFT to51.29 s(24.33 sfor 64 tokens — 1.91× speedup), and batching 4 × 256-token code conversations achieved a 2.74× throughput gain (43.26 scombined TTFT,6.45 GiBTorch+native peak). This directly proves the design rule inTHE_BASE_FLOW.md: keep hot weights in the DMA arena / DRAM or packed inMXFP4(Qwennifer) rather than pulling 99 GiB per request from raw NVMe.
- Configured with
C. Qwennifer K6 (blw-qwennifer-model/v1 / k6-prefix4-15g-v1) on 16 GiB Cards
Qwennifer combines Qwen3-Coder-Next's exact BF16 attention, compact spine, and 4-row permanent expert prefixes with group32 MXFP4 packed expert tails and top-6 routing (docs/PREALPHA_SERVING.md, valkyrie-qwennifer-recovery.json, sm_86-http-2389.json, sm_89-http-2389.json):
- Footprint: 15 GiB VRAM ceiling + 64 GiB host RAM — fits comfortably on a single
RTX 5060 Ti 16GB,RTX 5070 Ti 16GB,RTX 4060 Ti 16GB, orNVIDIA A10G 24GB. - Measured Latencies & Decode Speeds:
- 9-token prompt (
RTX 5060 Ti): 0.24 s TTFT, 11.4 – 12.8 decode tok/s - Short SSE prompt (
RTX 5060 Ti): 0.50 – 0.57 s TTFT, 12.8 decode tok/s - 2,389-token prompt (
punk-valkyrieRTX 5070 Ti): 2.14 s TTFT (2.21 stotal completion) - 2,389-token prompt (
punk-horizonRTX 4060 Ti,sm_89): 5.90 s ordinary / 6.07 s streaming (17.9 msqueue wait) - 2,389-token prompt (
punk-horizonNVIDIA A10G,sm_86): 6.28 s ordinary / 7.24 s streaming (17.5 msqueue wait) - 18,994-token prompt (
RTX 5060 Ti): 9.01 – 9.36 s TTFT, 11.8 decode tok/s - 32,768-token prompt (
RTX 5060 Ti): 15.48 – 15.65 s TTFT, 10.8 decode tok/s - Live ClusterFK End-to-End Agentic / Browser Flows (
2026-11-01&2026-11-04):- Direct browser smoke (
live-user-check-20261104/receipt.json): 4.629 s end-to-end - Live read-only agentic code-review canary (
valkyrie-qwennifer-recovery.json): 16.92 s total across 31 events with verified source citations - Full uploaded-project code edit + 4-worker container test swarm verification + ZIP packaging (
runtime-handoff.json): 189.74 s (5.06 sfirst preview)
- Direct browser smoke (
- 9-token prompt (
3.4 Deep Dive: Qwen3-8B Swarm Fleet & Per-Endpoint Seat Architecture
In clusterfk-llm (docs/HOST_PREPARED_SWARM.md, docs/THE_CHORUS.md, docs/SOQOL.md) and notkubernetes (results/swarm-expansion-20261031/, results/cluster-expansion-20261031/), small Qwen3-8B models are deployed as a high-concurrency subagent swarm fleet (qwen3-8b-swarm-dense@2026.10.12-1) rather than single-seat chat workers.
A. How Many Swarm Seats Run on Each Endpoint?
Each single-GPU Qwen3-8B worker endpoint runs 64 concurrent batch seats (max_batch_size: 64, max_context_tokens: 4096, streaming: "native-token-stream"). Across the 4 active endpoints, the fleet provides 256 concurrent helper seats (shared_helper_parallel: 256):
| Node | Endpoint / Service | GPU Hardware | Concurrent Seats (max_batch_size) | Context / Seat | Verified 64-Seat Physical Batch Latency | Status (Nov 2026) |
|---|---|---|---|---|---|---|
punk-daemon01 | http://10.50.1.42:28092<br>qwen3-8b-swarm-daemon01 | RTX 4090 / A100 node (GPU-57292653...) | 64 seats | 4,096 tokens | 1.597 s physical batch (1.871 s median seat wall, 5.484 s total) | Active / Verified (all_seats_match_individual: true) |
punk-inferno | http://10.50.1.131:28092<br>qwen3-8b-swarm-inferno | RTX 5070 (GPU-ae4d0500...) | 64 seats | 4,096 tokens | 3.001 s physical batch (3.306 s median seat wall, 9.308 s total) | Active / Verified (all_seats_match_individual: true) |
punk-rider | qwen3-8b-swarm-rider | RTX 3060 (12 GiB) | 64 seats | 4,096 tokens | Verified 64-seat batching & native token stream | Active / Verified |
punk-magma | qwen3-8b-swarm-magma | Consumer GPU worker | 64 seats | 4,096 tokens | Verified 64-seat batching & native token stream | Active / Verified |
punk-vvv | vvv-staged-spare | RTX 3060 (12 GiB) | 64 seats (staged) | 4,096 tokens | Checkpoint SHA-verified & environment admitted | Verified Staged Spare |
punk-fgiant | qwen3-8b-swarm-fgiant | Historical swarm worker | 64 seats (offline) | 4,096 tokens | Excluded from active routing while NVIDIA driver offline | Quarantined |
| Fleet Total | nk-clusterfk-chat gateway | 4 Active GPUs (+1 Spare) | 256 Active Seats | 4,096 tokens | Rotated across rooms (helper_parallel: 256) | Production Active |
(Note: For SOQOL read-only recon lanes, a dedicated 32-seat profile qwen3-8b-swarm with 4,096 tokens/seat and 32,768 padded tokens/wave is also supported.)
B. Measured Qwen3-8B Swarm VRAM, Temperature & Workflow Timings
- 64-Seat Physical Batch Execution (
daemon-8b-recovered-live.json,inferno-live.json):- When 64 concurrent requests hit a single
Qwen3-8Bendpoint simultaneously, the worker coalesces all 64 seats into one single physical forward sweep (physical_batch_size: 64). - On
punk-daemon01, all 64 seats execute their physical batch in 1.597 seconds (1.871 smedian seat turnaround including0.237 squeue formation), and every single seat's output tokens ([45578, 13, 151645]) match standalone single-request execution bit-for-bit (all_seats_match_individual: true). - On
punk-inferno(RTX 5070), the full 64-seat physical batch executes in 3.001 seconds (3.306 smedian seat turnaround).
- When 64 concurrent requests hit a single
The Chorus— 128 Parallel Voices in4.57 GiBVRAM (results/the-chorus-20261008/fleet-live.json,vram-samples.json):- In the live acceptance run of
The Chorus(max_subagents: 128,max_parallel_subagents: 64), 128 independentQwen3-8Bpersona conversations ran across the swarm fleet and synthesized a complete lossless 128-voice assembly in 71.06 seconds with0failed voices. - Across 12 one-second NVML telemetry samples during peak 64-seat active execution (
vram-samples.json), driver VRAM usage stayed completely flat between4,679 MiBand4,685 MiB(~4.57 GiB) at 98–100% GPU utilization and a cool 46°C!
- In the live acceptance run of
- Host-Prepared Code Swarm (
Planner -> Scouts -> 8B Curators -> Lead):- During
ClusterFKautomatic code workflows (docs/HOST_PREPARED_SWARM.md,docs/RELEASE_VALIDATION_2026-10-31.md), oneQwen3-8Bplanner job ranks slice assignments (J1..Jn), up to 256Qwen3-8Bscouts inspect 40-line / 4,000-byte AST-anchored slices in parallel, and when >16 reports return, up to 2 waves ofQwen3-8Bcurators reduce groups of 8 reports to the top 2 cited report IDs (F1..F8). - Individual checked 35-token scout reports complete in 18.5 seconds on
daemon01and 27.0 seconds oninferno, enabling full helper-backed repository reviews to finish in 40.95 seconds withQwenniferand 66.62–86.86 seconds withQwen3-Coder-Next.
- During
4. Takeaways: Why This Proves Turnkey Low-VRAM Serving Is Viable
- VRAM Is Bounded by Design, Not by Model Size:
- A 2.4-Trillion parameter model (
Qwen3.8-2.4T-A95B) admits into 13.875 GiB VRAM. - A 148.4 GiB coder model (
Qwen3-Coder-Next/Qwennifer) runs in 7.58–15.0 GiB VRAM on a single 16 GiB consumer GPU, or 15.0–15.9 GiB per card across dual 16 GiB GPUs at full 262,144-token context while drawing only 85–137 W per GPU. - A 64-seat concurrent
Qwen3-8Bswarm worker runs at 4.57 GiB VRAM and 46°C.
- A 2.4-Trillion parameter model (
- No Offload Slowdown When the Prefix Runway + DMA Conveyor Are Respected:
- Because 100% of compute runs in VRAM via persistent CUDA graphs (
libduo_persistent.so) and every layer/expert starts immediately on its resident VRAM prefix (expert_runway_rows/prefix_rows), PCIe transfers (25.5–33.4 GiB/sfrompfs_dma.koarenas) overlap with GPU execution. - Slowdowns only appear when the hierarchy is intentionally bypassed in stress tests (e.g., 0 GPU seeds + 99 GiB/request raw NVMe reads, or a throttled 868 MHz host CPU). When staged in DMA/DRAM or compressed with
PVRTE/PVRTC/MXFP4, TTFT stays in the 0.24 s – 2.75 s range and aggregate throughput scales to 47–48 decode tok/s and 261–293 prefill tok/s.
- Because 100% of compute runs in VRAM via persistent CUDA graphs (
- Clear Path to a Formalized Turnkey Library:
- With the Nov 1, 2026 unification of
ModelConfiguration(plan-model -> doctor -> check-model -> prepare-model --save ready.json -> serve ready.json),BackingGenerationAdmission, cold rotary/FLA priming (CUDA_MODULE_LOADING=EAGER), andstart_streaming_session, the low-levelpstack/Duo/memhub/tiercacheprimitives are already converging into a single repeatable Python and CLI serving interface.
- With the Nov 1, 2026 unification of