r/Vllm • • 15h ago

HyperQwen vs stock vLLM on one RTX 3090 with Qwen3.8-27B: 121 vs 43.5 tok/s for one request, 1,064 vs 395 at 64

Thumbnail
homebrewserver.club
4 Upvotes

Everyone kept telling me to try HyperQwen, so I gave it a try. It's a patched vLLM 0.33.0 for Qwen3.8-27B on one 24 GB card. I ran it against stock vLLM 0.33.0 on the same RTX 3090 (350 W), with the same prompts.

TestStock vLLMHyperQwen batchHyperQwen single-user
One request, 71 in / 512 out43.5 tok/s48.8 tok/s121.1 tok/s
Quote a 4,129-token prompt, 512 out42.7 tok/s48.1 tok/s504.1 tok/s (DFLASH_TOKENS=15)
64 at once, 71 in / 256 out, total395.1 tok/s1,064.4 tok/s243.9 tok/s
GSM8K, 200 questions96.0%95.0%96.0%
Context per request8,192150,00065,536
  • Prefill is not faster. First token on a 4,121-token prompt: 3.30 s in single-user mode, 3.35 s on stock vLLM.
  • Single-user mode falls behind stock vLLM at 8+ requests. It holds only 8 requests at once, so the rest queue.
  • It crashed at its defaults on a card that also drives a desktop. GPU_UTIL=0.92 fixed batch mode, and KV_MEM=4800000000 MAX_LEN=45056 fixed DFLASH_TOKENS=15.
  • The two load different 4-bit files (HyperQwen's AutoRound vs AWQ).

r/Vllm • • 1d ago

We skipped the host DRAM tier and put vLLM's agentic KV cache straight on NVMe: within 1% at equal size, 5.1× throughput when capacity matters

25 Upvotes

NVMe is much slower than DRAM, so we tested skipping the host DRAM tier entirely for vLLM's agentic KV cache—putting a 1.8 TB pool straight on local NVMe (2× 3.84 TB Micron 7450 PRO per node, ext4, direct I/O via io_uring, with only ~80 GB DRAM for write buffering/staging) using AMD's MoRI UMBP and vLLM's UMBPStoreConnector.

Tested on Kimi-K3 (1P1D, 16× MI355X, FP8 KV) replaying SemiAnalysis's AgentX traces (142K median prompt, >96% prefix reuse):

Sessions1.8 TB DRAM1.8 TB NVMeHit rate (DRAM / NVMe)
4812,240 tok/s/GPU12,275 (+0.3%)96.62% / 96.67%
7013,380 tok/s/GPU13,492 (+0.8%)95.57% / 95.65%
9613,313 tok/s/GPU13,284 (-0.2%)94.50% / 94.48%

And when capacity actually runs out (WEKA's kvlab 40-day trace, 70 sessions): a 4.6 TB NVMe pool hit 8,813 tok/s/GPU (93% hit rate) vs. 1,725 tok/s/GPU (52% hit rate) for a 1.0 TB DRAM pool—5.1× throughput.

Why NVMe keeps up (and one big gotcha):

  • Hit rate drives throughput (R² = 0.96): Same-size pools with the same eviction keep the same KV (+1% hit rate was worth ~10% throughput).
  • Async loading hides the extra latency: On a 128K prefix, NVMe adds ~0.4 s over DRAM (0.84 s vs 0.45 s, vs 7.7 s to recompute), and UMBPStoreConnector loads asynchronously while requests wait for a prefill slot.
  • Segment size mattered a lot: UMBP's default 4 GiB append-only files left NVMe 12.8% behind DRAM because reclaiming a file evicted live KV alongside stale KV. Dropping to 256 MiB segments jumped throughput +15.6% and cut TTFT p90 from 63 s to 21 s.

Trade-offs & caveats: DRAM scales by TB held (~$76K for 1.8 TB = 31 min retention at 3.5 TB/hr), while NVMe scales by TB written (~$59K over 5 yrs for 1-DWPD drives holding 24h). The main catches are SSD wear (two 3.84 TB drives took ~11 DWPD at 96 sessions—needs spreading across more drives), light-traffic TTFT (+~0.4 s with no queue to hide behind), and KV size (Kimi-K3 uses MLA/hybrid attention at ~14 KB/tok FP8; dense models need more drive bandwidth).

UMBPStoreConnector is already in vLLM main (#61789). Full breakdown, flags, and DeepSeek-V4-Pro / V4.1-Flash numbers: https://vllm.ai/blog/2026-11-23-skip-the-dram-tier

Happy to answer questions on the setup or trade-offs.


r/Vllm • • 1d ago

GPU-native suffix decoding is now in vLLM — speculative decoding without a draft model

29 Upvotes

Hey folks, I recently contributed a GPU-native implementation of suffix decoding to vLLM, which is now available in v0.34.0.

For those unfamiliar with suffix decoding, it speculates on upcoming tokens by identifying recurring patterns in the current request’s token history and previously completed responses. This makes it particularly interesting for coding, agentic workflows, and structured generation, where token sequences tend to repeat.

The previous implementation relied on a CPU-based suffix tree. I reimplemented the speculator to run on the GPU, integrated it with Model Runner V2, and added support for asynchronous scheduling and adaptive verification.

The nice part is that you don’t need a separate draft model or any additional model weights.
I’ve attached some benchmarks comparing the previous implementation in v0.33.0 against the new one in v0.34.0.

The vLLM team also published my technical write-up covering the implementation and performance characteristics.
Blog: https://vllm.ai/blog/2026-11-30-suffix-decoding-mrv2
PR: https://github.com/vllm-project/vllm/pull/60339

You can try it by passing the following speculative decoding configuration:
--speculative-config '{"method":"suffix","num_speculative_tokens":8}'

I’m particularly curious to see how this performs on real-world workloads outside my benchmarks. If you’re serving coding agents, structured outputs, or other repetitive workloads using vLLM, I’d love to hear about your results.

Happy to answer any questions about the implementation or discuss potential improvements!

#vllm #specdecoding


r/Vllm • • 1d ago

Tandem-vLLM 0.3.1: DeepSeek-V4.1-Flash native FP4 on 2x PRO 6000 (103 tok/s), or 2-bit VQ at 124 tok/s

Thumbnail
reddit.com
2 Upvotes

I'm making this for my lab use. CPU is bottleneck, and up to 4 streams will be practical. If you have 4+ big cards, no need this. But, if you have 1~2 cards but enough RAM, you may try.

Drafter (k=3) works too, but it will be maxed at 2 streams.


r/Vllm • • 1d ago

A quarter of the experts is all you need

Post image
0 Upvotes

r/Vllm • • 2d ago

I disabled NCCL P2P on two H100s. NVLink traffic went up.

Post image
7 Upvotes

I was benchmarking vLLM tensor parallelism on two H100s in the same NVSwitch server. I set NCCL_P2P_DISABLE=1 expecting to get a host-memory baseline. The NCCL logs showed shared-memory channels. The NVLink transmit counters went up, from about 651 to 898 kB per processed token on each GPU.

I went back to the logs and found that NCCL had also created an NVLS communicator and reported 16 NVLS channels. I left P2P disabled and added NCCL_NVLS_ENABLE=0. This time both NVLink transmit and receive counters stayed at zero during the load.

SetupNVLink TX per GPU per processed tokenSteady-state output
TP=2, NCCL651 kB12,800 tok/s
TP=2, NCCL with P2P off898 kB11,300 tok/s
TP=2, NCCL with P2P and NVLS off0 kB6,610 tok/s
One H100N/A8,770 tok/s

These are the 256-client results for Qwen3-8B BF16 on vLLM 0.31.0 and NCCL 2.29.7, with 512-token prompts and 256-token replies. The NVLink denominator includes both prompt and generated tokens. Each NCCL configuration ran once, so I don't know its run-to-run spread. The attached chart also shows vLLM's default FlashInfer path for reference.

I'd labeled the P2P-off run "no NVLink." I now check both link counters under load before calling a run host-only. Those counters cover the whole load phase, so I couldn't tie the traffic to individual collectives. Has anyone traced NVLink traffic back to individual NCCL collectives on an NVSwitch system? What did you use?

The configurations and counter measurements are on my blog: https://beyondthegpu.com/posts/the-link-was-still-busy/?utm_source=reddit


r/Vllm • • 1d ago

anyone measured what happens when you move a timestamp to the end of the prompt?

2 Upvotes

hey folks, we tried a small cache test on Nebius Token Factory, where i work. putting a timestamp before a long shared doc took the cached count from about 33k to zero. i want to try the same thing on one vLLM instance and see what happens if the timestamp goes after the doc.

my plan is to warm the doc first, then replay the same question with the timestamp in each position. i’d read the change in prefix_cache_hits and prefix_cache_queries with the server idle otherwise. the question would need the timestamp to answer correctly, just to check the move didn’t change the behavior.

anything you’d watch for here? i’m especially curious whether the chat template has ever made this kind of test misleading for you.


r/Vllm • • 2d ago

Same model on MIG slices vs one full-GPU instance with vLLM: can splitting ever win on throughput?

4 Upvotes

We're serving a ~27B dense model (NVFP4) with vLLM on Blackwell (B300). Someone proposed splitting each GPU into 4 MIG slices (2g x3 + 1g x1) and running 4 replicas of the same model, the argument being "LLMs generate tokens sequentially, so one instance can't fully use the GPU; more instances = more concurrency and throughput."

My understanding is the opposite, at least for vLLM:

  • continuous batching already advances many requests per step in one instance
  • decode is memory-bandwidth bound, and a MIG slice only gets its share of HBM bandwidth (MIG guide: a memory slice is ~1/8 of capacity and bandwidth)
  • each slice holds its own copy of the weights and reads it separately

So splitting should give the same or lower aggregate tok/s and higher per-request latency. Isolation / failover / rolling updates are real benefits, but a separate question.

What I found so far:

  • NVIDIA's A100 MIG blog shows 4.17x for BERT-Large, but the full-GPU baseline was effectively batch 1
  • anujdutt9/multi-tenant-llm-serving (H100, vLLM): one engine x16 slots beat two engines x8 by ~1.8x (memory-capped, not MIG)
  • a few H100/H200 MIG numbers showing per-token latency roughly scaling with slice size

Questions:

  1. Is there any regime (concurrency, long context, prefill-heavy, MoE vs dense) where N MIG replicas of the same model beat one full-GPU instance on aggregate throughput?
  2. Has anyone measured MIG vs full GPU for the same model with vLLM, especially on Blackwell?

r/Vllm • • 3d ago

2 Inkling 2 Mini on RDNA2 on opengfx1030/vllm-rdna

Thumbnail
reddit.com
3 Upvotes

We are a community aiming on improving rdna2 experience with vLLM.

Goal is to make our hardware running better for local inference.


r/Vllm • • 4d ago

Autoscale LLMs by Lowering Precision in vLLM

Thumbnail
medium.com
7 Upvotes

I built a vLLM plugin that switches a running model between BF16, FP8 and INT4 in about a second without a restart, so a pod can trade a bit of quality for throughput during a traffic burst while autoscaling catches up. Anyone tried something like this in vLLM?


r/Vllm • • 5d ago

vLLM in Rust?? RustingStrata is now also a serving engine: 64 users on one 12 GB RTX 3060

23 Upvotes

RustingStrata is my Rust GGUF engine. Until now it was for one user. serve --parallel N now runs the requests of many users as one batch on the GPU, so the same binary works for one person on a laptop and for a small team on one server.

So this is first Strata that can be used for single inference and big inferences

To be clear: it is not better than vLLM. vLLM has years of work in it, multi-GPU, prefix caching and much more. I am working on closing the gap.

Equal test: both servers load the same file, Qwen3-4B-Instruct-2507-Q4_K_M.gguf, on the same RTX 3060 12 GB, same day, same load script (N streamed chats at once, 128 reply tokens each, greedy, 4k context). vLLM 0.33.0 reads GGUF through the official vllm-gguf-plugin. Total decode tok/s:

ClientsRustingStrata (CUDA)vLLM 0.33 + GGUF plugin
191.084.3
4231.7154.9
16734.1268.0
641694-1699283.4-283.6

GGUF is not vLLM's fast path, so I also ran both on the original bf16 weights (vLLM reads the HF safetensors, RustingStrata a BF16 GGUF made from the same files). Same card, same script, total decode tok/s:

ClientsRustingStrata BF16vLLM 0.33 bf16
138.336.5
4140.2139.1
16527.0525.8
641490-14911470-1473

On its own format vLLM is very good, and here the two are level. Vulkan works too in RustingStrata (824-960 tok/s at 64 clients on Q4_K_M), useful for AMD and Intel cards.

Each slot's KV cache starts at 512 tokens and grows when a request needs more, so all 64 slots fit at the default context.

Where RustingStrata goes from here: MoE models with a lot of RAM and little VRAM. Most companies that want a private, local model do not have an H100, but a server with 128 GB of RAM and one consumer card is cheap. RustingStrata keeps the most used experts on the card and runs the rest on the CPU.

Qwen3.6-35B-A3B UD-Q5_K_M, a 27 GB file on the same 12 GB card, 64 parallel slots (vLLM not run here, the model does not fit in VRAM):

ClientsRustingStrata
155.1
4106.4
1685.0
64106.7

For the MoE the total stops growing after 4 clients, because the expert work is not batched across requests yet. That is the next thing I am working on.

Speed at bigger context (one client, prefill / decode tok/s): Qwen3-4B 2125 / 87.9 at 0.5k, 1529 / 52.9 at 16k, 1123 / 37.1 at 32k. Qwen3.6-35B-A3B 1797 / 66.2 at 16k, 1647 / 61.7 at 32k.

rustingstrata serve --gpu --model Qwen3-4B-Instruct-2507-Q4_K_M.gguf --parallel 64
python3 tools/loadtest.py --url http://127.0.0.1:8080 --clients 1,4,16,64 --max-tokens 128

vllm serve Qwen3-4B-Instruct-2507-Q4_K_M.gguf --tokenizer <Qwen3-4B-Instruct-2507 tokenizer dir> --hf-config-path <same dir> --max-model-len 4096 --gpu-memory-utilization 0.88

BF16: rustingstrata serve --gpu --model Qwen3-4B-Instruct-2507-BF16.gguf --parallel 64 against vllm serve <HF Qwen3-4B-Instruct-2507 dir> --max-model-len 4096 --gpu-memory-utilization 0.88.

Do you think this make sense? Do I need to continue trying to catch up with vLLM and maybe make RustingStrata like vLLM but for a lot of RAM and low VRAM amount? I would be happy to hear some thoughts, ty all!

Repo: RustingStrata


r/Vllm • • 5d ago

Mixed-precision quantization in vLLM (RTX 3090):

4 Upvotes

Hey everyone,

I’d love to hear your experiences and tips regarding mixed-precision quantization in vLLM.

So far, I’ve had great results quantizing open-weight and abliterated models (finding them much more stable than the usual alternatives), and my current setup is running quite well on a single RTX 3090 (24GB):

Current Quantization: lm_head at INT8, main weights at INT4, keeping the Vision tower in its original precision, and MTP (Multi-Token Prediction) enabled.

Performance: ~80 tok/s with a max KV cache of 90k tokens.

Bottleneck: The model footprint is currently sitting at 16GB, and I haven't been able to push it down any further without breaking things or tanking quality.

I already tried quantizing the KV cache to INT4 using vllm-quantpack, but the performance/perplexity hit was too severe to be usable.

My goal: Shave ~2GB off the model weights (getting it down to ~14GB) so I can allocate that extra VRAM to expand my KV cache even further, while keeping Vision intact and MTP working.

Has anyone successfully squeezed extra VRAM out of a similar mixed-precision setup? Should I look into dropping lm_head to INT4/FP8, selectively quantizing parts of the vision encoder, or tweaking group sizes? Any advice or configs would be greatly appreciated!


r/Vllm • • 6d ago

Built an in-browser vLLM GPU hardware profiler: weights, GQA KV cache, TP, and cloud cost breakeven

2 Upvotes

Calculating whether a model will fit into VRAM with enough room left for KV cache and concurrency usually means manual math across quantizations and GQA ratios.

I built a free, 100% client-side calculator:

https://devopskit.tools/tools/vllm-gpu-hardware-profiler

What it models:

- Exact weight VRAM footprint across FP16, FP8, INT8, and INT4 (Llama 3.3, DeepSeek, Qwen 2.5, etc.)

- PagedAttention KV Cache allocation adjusted for GQA (Grouped-Query Attention) ratios

- Required Tensor Parallelism (TP) across H100 (80GB), A100 (80GB/40GB), L40S, and A10G

- Monthly cost crossover: when it becomes cheaper to self-host on RunPod/Lambda Cloud vs paying for GPT-4o / Claude 3.7 API tokens

Zero tracking, no backend, open source on GitHub (https://github.com/haseeb0505/devopskit). Hope this saves you from OOM crashes!


r/Vllm • • 7d ago

Why is LLM inference hard?

Thumbnail reddit.com
2 Upvotes

r/Vllm • • 8d ago

105B Local AI & The Riemann Proof: Can We Trust It?

Thumbnail
youtu.be
0 Upvotes

r/Vllm • • 8d ago

Inkling 2 Mini on one Spark with the vLLM recipe: ~50 tok/s single-stream on real prompts, 36 on random tokens, ~200 total at 16 concurrent

Thumbnail
reddit.com
1 Upvotes

r/Vllm • • 8d ago

Inkling 2 Mini on 1 or 2 RTX 3090s: 242 tok/s on one, 512K BF16 context on two

Thumbnail
github.com
2 Upvotes

r/Vllm • • 9d ago Bravo

Experimental vLLM overlay: KV Cache offload to RAM works with Qwen 3.8 Flash Next

22 Upvotes

A while back I read a post that floated the idea to offload KV cache to RAM with the new architecture proposed in 3.8 FN. I didn't find anything in stock vLLM that would easily allow to do this, but I was really interested in getting this working. I own a 4x3090 rig with 256GB DDR4, so I thought I'll give it a shot.

For this project I used Claude Code entirely, as I was purely trying to see if it would work. After a few weeks and a few thousand commits on more than 1000 test branches, and many engine starts later, I got a stable version running on this ampere setup. To anyone with more skill than me, this might look like a trainwreck, yet it runs stable and shows nice numbers too. Maybe this can help form a basis for a more standardized approach.

I configured TP2xPP2, enabled P2P, I'm using nvlink for the two pairs and been using Intel's W4A16 Autoround quant. It runs at around 480tk/s aggregate on 8 streams, each with a 200k context and about 6.2k tk/s prefill. It also has its limitations. For example the vision encoder needs to sit on a 5th 3090 in my network, it's likely to only run on ampere cards and it is pinned to one vLLM release which isn't the newest either.

Many engines already exist that let you run a model that doesn't fit in VRAM, but not a lot of approaches exist where you barely fit the model in VRAM but offload the KV cache to RAM. Happy to hear your ideas about it, and hopefully this will work for a hopefully soon released Qwen 4 120b-ish model too.

https://github.com/Mr-Moonsilver/crazydiamond-on-ampere


r/Vllm • • 9d ago

Inkling 2 Mini on 2× RTX 3090 — Windows 11 + Docker + patched vLLM, 143 tok/s decode

10 Upvotes

Thinking Machines released Inkling 2 Mini (2026-11-20) with native NVFP4/MXFP8 expert weights, and vLLM does not run it on Ampere — the official image targets Hopper/Blackwell/DGX Spark.

This repo is a Dockerfile that patches the official vLLM image (compiled kernels swapped, five source patches, one tuning patch) plus a serving config for two RTX 3090s with an NVLink bridge: tensor parallel 2 with expert parallelism 2, BF16 activations against the native NVFP4/MXFP8 weights, speculative decoding with the bundled DSpark drafter (mtp.safetensors), and a vision tower.

It runs on Windows 11 in Docker (Docker Desktop / container: official image by digest + patches) on two RTX 3090s (sm_86, 24 GB, 300 W, NVLink bridge), and serves on port 1234 with Docker Compose. No API key. The checkpoint is read from a read-only Hugging Face cache; the container never downloads at boot (HF_HUB_OFFLINE=1).

Measured on 2× RTX 3090, TP2:

- 143 tok/s decode without the drafter; 170–306 tok/s with it (prose → JSON tool calls)

- Decode depth: 131 tok/s at 32K, 107 at 120K

- Prefill: ~7,030 tok/s at 8K, ~6,700 at 24K, ~5,170 at 120K (23 s to first token)

- 509 tok/s aggregate at 4 requests, 747 at 8 (8 concurrent)

- GSM8K-200: 98.0%; retrieval 5/5 to 120K; two cards match one card token for token within the model's own decode/prefill noise

Requirements: two 24 GB sm_86 cards (measured on RTX 3090s with an NVLink bridge), Docker with the NVIDIA Container Toolkit, CUDA 13 driver (tested 620.73.04), x86_64 host. Disk: ~26 GB for the image, ~20 GB for the checkpoint.

Not supported upstream — vLLM has an open Ampere PR (vllm-project/vllm#69165). I am not affiliated with Thinking Machines or the vLLM project; this is a port for local use, not a vendor recipe. A pair without an NVLink bridge is a documented, untested configuration.

Numbers, port story and tuning notes: https://github.com/peaster/inkling-2-mini-vllm-2x3090


r/Vllm • • 9d ago

People deploying LLMs, what's your biggest inference or infrastructure bottleneck?

Thumbnail
reddit.com
1 Upvotes

r/Vllm • • 10d ago

Yet another one-model, one-GPU vLLM fork: Inkling 2 Mini on an RTX 3090

Thumbnail
reddit.com
2 Upvotes

r/Vllm • • 10d ago

My Qwen3.8-Flash-Next-NVFP4 settings in vLLM 0.34.0, under RTX Pro 4500 Blackwell@165W TP=4, PCIE4.0*16*4

Thumbnail
reddit.com
1 Upvotes

r/Vllm • • 10d ago

Why vLLM burns peak 700W during autoregressive decode (and our open-source C++ NVML pacer to fix it)

6 Upvotes

Hey everyone,

If you run vLLM or Triton on modern accelerators (H100, A100, L40S, etc.), you probably noticed that GPUs stay locked at maximum core clock frequencies (e.g., 1980 MHz on H100) through the entire generation step.

### The Problem: Silicon Asymmetry in Serving

- **Prompt Prefill:** Compute-bound (GEMM). Arithmetic intensity is > 100 FLOPs/Byte. You *need* peak SM clocks to keep TTFT low.

- **Autoregressive Decode:** Memory-bound (GEMV). Arithmetic intensity drops to ≤ 4 FLOPs/Byte. Over 85% of step time is spent stalling on High-Bandwidth Memory (HBM) reads.

Because dynamic CMOS power dissipation scales quadratically with voltage ($P_{dyn} \propto V^2 f$), sustaining peak core clocks while memory stalls burns massive amounts of electricity without improving token latency.

### What we built: TensorPackAI (Community Edition)

We just open-sourced **TensorPackAI**: a zero-overhead C++17 NVML runtime layer with Python bindings:

  1. **Fast NVML Direct Loader:** Direct `dlopen` of `libnvidia-ml.so` (eliminates standard python ctypes latency).
  2. **Prometheus Telemetry:** Exposes windowed `tensorpack_joules_per_token` and `tensorpack_tokens_per_watt` on port `:9100/metrics`.
  3. **CLI Tuner (`tensorpack-tune`):** Inspect real-time per-GPU power and recommend memory-paced decode clocks.

### Quick Test:

```bash

pip install tensorpackai

tensorpack-tune status

```

In our Chatbot Arena benchmark runs, pacing core clocks to memory speeds during decode drops dynamic power by up to **58.1%** while keeping P90 Inter-Token Latency (ITL) strictly under human-perceptible thresholds (<20ms).

- **GitHub (Apache 2.0):** https://github.com/tensorpackai/tensorpackai-community

- **Docs:** https://tensorpackai.com/docs

Would love to hear your thoughts, feedback, and edge cases on different architectures (especially A100/L40S)!