Hyperion Gray

A journal that is (somewhat) about research and poor writing

journalsresearcharchitectureengineeringlow vramvram

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.4T Qwen3.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-byte pstack instruction 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:

  1. Compute Offloading (llama.cpp partial 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.
  2. Naive Layer Swapping (accelerate device_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

  1. Meta-Device Construction & Expert-Bank Severance:
    • At startup, the reviewed Hugging Face reference model (Transformers 5.18.0.dev0 for Qwen3-Coder-Next / Qwennifer (customized Qwen3-Coder) / Qwen3.8, 4.57.6 for dense Qwen3) is constructed on PyTorch's meta device (reference.py, PersistentQwen3Model).
    • Before any weights are materialized, the massive routed MoE expert banks (or dense linear projections) are severed and replaced with belikewater native execution adapters (install_hf_experts, install_dense_linears).
    • Only the small compact non-expert spine (embeddings, RMSNorms, routers, shared experts, LM head) and .pvrte pointer artifacts are loaded permanently into VRAM.
  2. Pre-Compiled 64-Byte pstack Frames & Persistent CUDA Graphs:
    • Offline preparation decomposes checkpoints into dependency-complete weight records and compiles canonical 64-byte pstack instruction frames (pasm-sdk / pstack-sdk).
    • The native iprog-jit Duo runner (libduo_runner_gpu.so, libduo_persistent.so) processes tiles of 4,096 B (64 frames per tile) and 64 KiB windows (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 before session.start() begins serving.
    • During live inference, the persistent GPU controller dispatches hundreds of thousands of device graphs directly from VRAM (633,186 device graph launches to 1 host graph launch in the Nov 1, 2026 Qwen3-Coder-Next qualification, with 0 host frame callbacks and 0 host group waits).
  3. 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's READY generation is already satisfied and recycling the slot only after the consumer's DONE event 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.

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 KiB per expert) permanently in VRAM consumes exactly 6.0 GiB across the entire model (or 9.0 GiB for 48 rows; or 4 rows in Qwennifer 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 first ceil(p * rows(t)) output rows of every projection across all layers (DENSE_PREFIX_RESIDENCY.md) guarantees every layer starts its GEMM at t = 0 ns upon entry.
  • 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 only 10 / 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 from 94.43 GiB to 23.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/s median, 292.7 tok/s peak) 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!

2.4 Multi-Tier Compression (PVRTE, PVRTC, Zstd Slot Transfer, and MXFP4)

  1. 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 represents Qwen3-Coder-Next's 148.4 GiB checkpoint via a 188 MB resident PVRTE artifact (4,863,237 proven windows).
  2. PVRTC & Prepared Zstd GPU Slot Transfer (PreparedZstdSlotTransfer):
    • Across 48 held-out Qwen3-Coder-Next expert leaves (4,608 / 4,608 windows), lossless PVRTC achieves a 0.766 wire ratio (~20.5%–23.4% byte reduction) with 1.426 ms max single-window decode+reform time.
    • For GPT-OSS 20B real KV caches, PVRTC exploits BF16 sign/exponent low entropy (2.88–3.16 bits vs 7.95 bits in the mantissa byte) to achieve 66.48% cold ratio (91.87% structural palette coverage).
    • At 1 MiB quanta 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 raw SlotPool homes via 2–4 asynchronous NVIDIA nvCOMP decoder streams, using GPU event dependencies with zero host synchronization.
  3. Hybrid BF16 Prefix + Group32 MXFP4 Tails (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.

2.5 Verify-Once Admission (BackingGenerationAdmission) & fast-lane/v1

  • Early prototypes suffered from per-record SHA-256 hashing, Python BindPayload reconstruction, 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 / ProfileTotal Weight SizeTarget HardwareMeasured / Admitted VRAMPower & TempKey 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 fleet645.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 coldNative 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 Arena13.875 GiB (14.90 GB) declared production GPU envelope—Startup metadata audit of all 47,104 experts / 141,312 records in 2.16 GB RSS86.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 BF16RTX 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 BF162× 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 BF161× 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 coldSub-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 node4× nodes = 256 seats (rider, magma, inferno, daemon01)4,679–4,685 MiB (~4.57 GiB) during 128-voice run46°C at 98–100% GPU util1.597 s / 64-seat batch (daemon01)<br>3.001 s / 64-seat batch (inferno)<br>71.06 s for all 128 voices64 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.0 vs PyTorch Oracle):
    • KDA Recurrent Core: 2.87× faster (1.03 ms native vs 2.97 ms fallback) — 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 ms native vs 1.19 ms fallback) with 0 bytes of expanded KV tensor materialized in VRAM (491,520 B logical 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).
  • Full-Depth 93-Layer Generation in 645.8 MiB Peak VRAM:
    • In the full-depth two-token autoregressive generation probe (docs/STATS.md §4.8), Kimi K3 executed all 69 KDA layers, 24 MLA layers, and 93 MoE layers with a peak VRAM footprint of just 645.8 MiB (454.46 MB resident KDA state + 55.3 KB resident MLA cache).
  • Resident 1M+ Token Context Serving (docs/STATS.md §5):
    • Cold Start (1M Context): 7,616 ms total wall (58.9 ms KDA, 17.1 ms MLA, 7,405 ms MoE; 21.3 GB expert source read across 1,214 reads; 6.46 GB secondary cache staged). With expert striping (mod-2 route-1), cold start drops to 4,656 ms (7.54 GB read, 2.84 GB staged).
    • Warm/Hot Path (1M Context, 8 samples):
      • Local Hot Path Median: 853 ms (827 ms min, 867 ms p95) — 52.8 ms KDA, 20.8 ms MLA, 693.1 ms MoE.
      • Expert-Stripe Hot Path Median: 861 ms (820 ms min) with 52% expert cache hits and 3.23 GB staged.
    • Heterogeneous 5-GPU Fleet Qualification: Qualified across punk-valkyrie (RTX 5090), punk-daemon01 (RTX 4090), punk-inferno (RTX 5070), punk-rider (RTX 3060), and punk-vvv (RTX 3060).

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 GiB VRAM:
    • Declared Production GPU Envelope: 14,897,958,912 bytes (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 of 985.9 MB and 23 attention packs of 948.0 MB)
      • Hybrid 69-DeltaNet + 23-Attention state cache (at 256 context positions): 614,236,160 B (585.8 MiB)
      • Owner-serialized 10-lane pstack frame catalog (2,624 / 4,096 B active per window): 452,198,400 B (431.2 MiB)
    • Host DMA Arena Envelope: 89.83 GB non-expert layer packs + 64 GiB (default) or 128 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 GiB of routed expert payload (87.15 GiB allocator extents, 107.52 GiB with 20.375 GiB lookahead, fitting cleanly inside the 128 GiB expert cache without touching NVMe).

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 MiB and 15,968 MiB / 16,380 MiB (~97% capacity), 100% / 100% GPU utilization, streaming 14,391.5 GiB of expert source across 128 prefill chunks and retrieving the exact semantic needle at 5,000 bps.
  • 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 MiB VRAM on 5060 Ti) and 137 W (61°C, 15,022 / 16,303 MiB VRAM 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 s median per 2K chunk, 1,357.0 GiB expert source processed).
  • 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 (reminedme miner) throttled the host CPU to 868.4 MHz at 90.0°C, a short prompt took 13.942 s TTFT (16.111 s total).
    • Isolating CPU affinity (2,620.1 MHz) immediately dropped TTFT to 2.812 s (3.246 s total), and disabling the miner dropped TTFT to 2.156 s (2.541 s total — 6.47× faster).

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 s first text, 7.30–7.36 s total).
    • Single-Lane Warm Decode: 6.531 decode tok/s at 1K context (33.83 GiB peak); 4.484–4.845 decode tok/s at 10.84–13.02 GiB VRAM without tail retention; 6.108 decode tok/s with 24.77 GiB retained tails (75.39% H2D avoided).
    • Multi-Sequence Decode Scaling:
      • 16 sequences: 10.74 aggregate decode tok/s (3.043 s TTFT, 36.61 GiB peak)
      • 32 sequences: 14.71 – 14.95 aggregate decode tok/s (3.815–3.94 s TTFT, 555.4 MiB/tok H2D, 36.10 GiB peak)
      • 64 sequences: 16.11 aggregate decode tok/s (5.57 s TTFT, 467.3 MiB/tok H2D — 15.9% less H2D/token, 35.42 GiB peak)
    • Known-Token Prefill Scaling (8 sequences):
      • 512 tok (376 useful): 71.2 tok/s (77.87 MiB/tok H2D, 31.41 GiB peak)
      • 1,024 tok (994 useful): 95.3 tok/s (51.10 MiB/tok H2D, 31.52 GiB peak)
      • 2,048 tok (1,964 useful): 138.6 tok/s (30.78 MiB/tok H2D, 31.69 GiB peak)
      • 4,096 tok (3,980 useful): 200.4 tok/s (17.45 MiB/tok H2D, 32.03 GiB peak)
      • 8,192 tok (8,138 useful): 261.2 tok/s median (292.7 tok/s max) (9.83 MiB/tok H2D, 32.75 GiB peak)
    • 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).
  • Dual RTX 5090 with Shared 144 GiB ResidentSource DMA Arena (punk-ripper, docs/CODER_RESIDENT_SOURCE.md, docs/CODER_FEEDING.md):
    • Two independent Qwen3-Coder-Next instances in one process borrow the same immutable 144 GiB pfs_dma.ko arena (zero duplicate host payload, zero serving file reads/hashes/evictions).
    • Measured PCIe H2D Transport: 25.47–26.0 GiB/s per GPU (33.4 GiB/s combined).
    • Latency & Throughput:
      • Direct production worker probes (results/coder-latency-20261030.json, report.json): 1.68 s – 1.755 s TTFT (1.95–2.10 s total) 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 s TTFT, <25.04 GiB VRAM).
  • 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 GiB process RSS).
    • Bit-Exact Verification: 100% bit-exact (0 / 19,447,808 mismatched 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 visited 15,716 distinct expert-layer pairs and triggered 106.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 was 97.82 s (43.47 s for 64 tokens); increasing to 4 parallel reader threads (stress_four_readers) nearly halved TTFT to 51.29 s (24.33 s for 64 tokens — 1.91× speedup), and batching 4 × 256-token code conversations achieved a 2.74× throughput gain (43.26 s combined TTFT, 6.45 GiB Torch+native peak). This directly proves the design rule in THE_BASE_FLOW.md: keep hot weights in the DMA arena / DRAM or packed in MXFP4 (Qwennifer) rather than pulling 99 GiB per request from raw NVMe.

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, or NVIDIA 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-valkyrie RTX 5070 Ti): 2.14 s TTFT (2.21 s total completion)
    • 2,389-token prompt (punk-horizon RTX 4060 Ti, sm_89): 5.90 s ordinary / 6.07 s streaming (17.9 ms queue wait)
    • 2,389-token prompt (punk-horizon NVIDIA A10G, sm_86): 6.28 s ordinary / 7.24 s streaming (17.5 ms queue 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 s first preview)

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):

NodeEndpoint / ServiceGPU HardwareConcurrent Seats (max_batch_size)Context / SeatVerified 64-Seat Physical Batch LatencyStatus (Nov 2026)
punk-daemon01http://10.50.1.42:28092<br>qwen3-8b-swarm-daemon01RTX 4090 / A100 node (GPU-57292653...)64 seats4,096 tokens1.597 s physical batch (1.871 s median seat wall, 5.484 s total)Active / Verified (all_seats_match_individual: true)
punk-infernohttp://10.50.1.131:28092<br>qwen3-8b-swarm-infernoRTX 5070 (GPU-ae4d0500...)64 seats4,096 tokens3.001 s physical batch (3.306 s median seat wall, 9.308 s total)Active / Verified (all_seats_match_individual: true)
punk-riderqwen3-8b-swarm-riderRTX 3060 (12 GiB)64 seats4,096 tokensVerified 64-seat batching & native token streamActive / Verified
punk-magmaqwen3-8b-swarm-magmaConsumer GPU worker64 seats4,096 tokensVerified 64-seat batching & native token streamActive / Verified
punk-vvvvvv-staged-spareRTX 3060 (12 GiB)64 seats (staged)4,096 tokensCheckpoint SHA-verified & environment admittedVerified Staged Spare
punk-fgiantqwen3-8b-swarm-fgiantHistorical swarm worker64 seats (offline)4,096 tokensExcluded from active routing while NVIDIA driver offlineQuarantined
Fleet Totalnk-clusterfk-chat gateway4 Active GPUs (+1 Spare)256 Active Seats4,096 tokensRotated 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

  1. 64-Seat Physical Batch Execution (daemon-8b-recovered-live.json, inferno-live.json):
    • When 64 concurrent requests hit a single Qwen3-8B endpoint 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 s median seat turnaround including 0.237 s queue 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 s median seat turnaround).
  2. The Chorus — 128 Parallel Voices in 4.57 GiB VRAM (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 independent Qwen3-8B persona conversations ran across the swarm fleet and synthesized a complete lossless 128-voice assembly in 71.06 seconds with 0 failed voices.
    • Across 12 one-second NVML telemetry samples during peak 64-seat active execution (vram-samples.json), driver VRAM usage stayed completely flat between 4,679 MiB and 4,685 MiB (~4.57 GiB) at 98–100% GPU utilization and a cool 46°C!
  3. Host-Prepared Code Swarm (Planner -> Scouts -> 8B Curators -> Lead):
    • During ClusterFK automatic code workflows (docs/HOST_PREPARED_SWARM.md, docs/RELEASE_VALIDATION_2026-10-31.md), one Qwen3-8B planner job ranks slice assignments (J1..Jn), up to 256 Qwen3-8B scouts inspect 40-line / 4,000-byte AST-anchored slices in parallel, and when >16 reports return, up to 2 waves of Qwen3-8B curators 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 daemon01 and 27.0 seconds on inferno, enabling full helper-backed repository reviews to finish in 40.95 seconds with Qwennifer and 66.62–86.86 seconds with Qwen3-Coder-Next.

4. Takeaways: Why This Proves Turnkey Low-VRAM Serving Is Viable

  1. 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-8B swarm worker runs at 4.57 GiB VRAM and 46°C.
  2. 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/s from pfs_dma.ko arenas) 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.
  3. 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), and start_streaming_session, the low-level pstack/Duo/memhub/tiercache primitives are already converging into a single repeatable Python and CLI serving interface.