Live WebGPU LLM Micro-Bench & Zero-Upload .GGUF X-Ray
Dispatch real WebGPU (WGSL) memory-streaming & Q4 GEMV compute kernels alongside Rust WASM SIMD128 right inside your tab — then drop any .gguf file to inspect its per-tensor quantization mix, KV-cache footprint, and exact 2k–128k VRAM-to-RAM offload cliff.
Unlock 100% of Your Native GPU with Local Cockpit 0.4.0Browser WebGPU sandboxes mask total physical VRAM and cap single storage buffers (typically 2–4 GiB). Local Cockpit 0.4.0 (native Rust desktop app for Windows & Linux) probes your real hardware, arbitrates across Ollama, LM Studio, and llama-server, runs real timed local benchmarks, and signs account-free Ed25519 passports on /apps/bench-validator.
Autoregressive token generation runs at batch size 1, making local LLM inference overwhelmingly memory-bandwidth bound: sustained tokens/s equals effective memory bandwidth divided by active bytes streamed per token.
1. Exact GQA KV-Cache Formula
With Grouped-Query Attention (n_head_kv < n_head), context memory scales linearly:
Quantizing KV cache from FP16 (2.0 B) to Q8_0 (~1.06 B) nearly halves VRAM consumed at 32k–128k context, preventing layers from spilling onto PCIe/DDR RAM.
2. Why MoE Survives Partial Offload
Compare two ~18 GiB Q4_K_M checkpoints on a 12 GiB or 16 GiB GPU:
A Dense 32B checkpoint streams every spilled gigabyte from ~40 GB/s DDR RAM on every token (6 GiB spilled adds ~150 ms/tok). A MoE 30B-A3B model activates only 8 of 128 experts (~3.3B active parameters), reading ~85% fewer bytes from system RAM per token.
3. Inside Mixed GGUF Quantization
A Q4_K_M file is not uniform 4-bit storage:
llama.cpp promotes sensitive tensors (token_embd, output.weight, attn_v, boundary blocks) to Q6_K (6.56 bpw) while keeping bulk FFN matrices in Q4_K (4.50 bpw), yielding ~4.85 effective bits per weight — parsed directly by our Rust WASM tensor inspector.