Running 27B Local LLM at 367.9 TPS on 20GB Memory: 4 Inference Optimizations
A technical breakdown of running Qwen3.8-27B-Uncensored on 20GB memory with 367.9 tokens/s aggregate throughput using NVFP4 W4A4, FP8 KV cache, MTP speculative

Image source: Mfn · CC BY-SA 4.0 · https://creativecommons.org/licenses/by-sa/4.0 · https://commons.wikimedia.org/wiki/File:Alibaba_Marketplace_Logo.jpg
When running medium-large open models above 20 billion parameters on local hardware, developers inevitably run into the dual walls of constrained memory capacity and bandwidth. In October 2026, AI creator Oluwaphilemon1 (@Oluwaphilemon1) highlighted an inference setup that reportedly delivered an aggregate throughput of 367.9 tokens per second on local hardware with just 20GB of memory, running the open-weights Qwen3.8-27B-Uncensored model across eight concurrent requests.
Traditionally, serving a 27B parameter architecture with acceptable response times required high-end enterprise accelerators or multi-GPU configurations. The reported setup highlights how combining low-bit weight and activation quantization, reduced KV cache precision, and multi-token speculative decoding can change the economics of running a 27B model locally on hardware with just 20GB of memory.
The Four-Pillar Optimization Stack for High-Throughput Local Inference
The reported inference pipeline addresses memory footprint, compute efficiency, and concurrent serving density by orchestrating four complementary optimization techniques:
- NVFP4 W4A4 Quantization: Compresses both model weights and runtime activation tensors to 4-bit precision, reducing memory and computation requirements during matrix operations.
- FP8 KV Cache: Stores the attention mechanism's Key and Value states in 8-bit floating-point format instead of standard 16-bit representations, helping reduce cache memory usage during longer conversations.
- MTP (Multi-Token Prediction) Speculative Decoding: Uses Multi-Token Prediction to accelerate generation by predicting multiple tokens ahead and verifying them in parallel with the primary model pass.
- Concurrency 8 Execution: Runs eight concurrent requests in parallel, measuring total throughput across all active sessions to maximize hardware utilization.
By interleaving these four strategies, the serving environment recorded an aggregate throughput of 367.9 tokens per second across all eight active sessions.
Deep Dive: How NVFP4, FP8 KV Cache, and MTP Work Together
Understanding how these techniques interact reveals why this specific combination achieves such high aggregate throughput within a tight 20GB memory budget.
1. NVFP4 W4A4: Extreme Weight and Activation Compression
Standard 4-bit quantization recipes frequently rely on W4A16, leaving activations in 16-bit floating point. In contrast, the NVFP4 W4A4 scheme applies 4-bit precision to both weights and activations, substantially lowering computation and memory requirements so that a 27B model can fit and execute within a 20GB memory budget.
2. FP8 KV Cache: Eliminating Context Expansion Bottlenecks
As concurrent request counts scale and dialogue contexts lengthen, the memory consumed by the attention Key-Value cache quickly increases. Switching from standard 16-bit cache allocations to FP8 cuts KV cache memory consumption significantly, helping reduce cache memory pressure during longer conversations and concurrent sessions.
3. MTP Speculative Decoding: Overcoming Autoregressive Latency
Autoregressive transformer generation is inherently memory-bound because each forward pass produces only a single token. Multi-Token Prediction (MTP) bypasses this sequential constraint by proposing multiple candidate tokens ahead. The base model evaluates these proposals in parallel, yielding more verified tokens per step and boosting overall generation velocity.
4. Concurrency 8 Scheduling: Maximizing Hardware Saturation
Single-stream LLM generation leaves substantial portions of a modern GPU's execution units idle while waiting on memory fetches. By batching eight simultaneous requests, the serving scheduler interleaves compute and memory transfers, driving overall hardware utilization toward full saturation across all active sessions.
Critical Practical Caveats: Throughput vs. Latency Trade-offs
While an aggregate throughput of 367.9 tokens per second is impressive on 20GB of memory, several architectural nuances and operational trade-offs must be evaluated before applying this configuration to real-world workloads.
- Aggregate Throughput vs. Single-User Speed: The reported 367.9 tokens/s is the total aggregate throughput measured across eight active concurrent requests. As the source emphasizes, aggregate throughput is not the same as the speed experienced by a single user; total throughput is shared across requests, meaning individual generation speed depends heavily on how the workload is scheduled.
- Quantization Precision vs. Quality Trade-offs: Operating at NVFP4 (W4A4) and FP8 KV cache involves aggressive lossy compression. While casual conversation and general summarization typically remain coherent, complex mathematical reasoning, multi-step formal logic, and strict code syntax generation can suffer from subtle degradation or higher hallucination rates.
- Omission of Specific Hardware and Framework Details: The source post did not disclose the exact GPU model, host memory architecture, context window limits, or the serving engine used (such as vLLM, TensorRT-LLM, or SGLang). Developers must verify whether their specific GPU architecture provides native hardware acceleration for NVFP4 operations.
Despite these necessary caveats, pairing NVFP4 inference, an FP8 KV cache, and MTP speculative decoding illustrates how disciplined system-level optimization can bring high-density 27B model serving onto consumer-grade local hardware.
Original source
- Oluwaphilemon1 (@Oluwaphilemon1) on X: Qwen3.8-27B-Uncensored 367.9 tokens/s aggregate throughput optimization on 20GB memory