[GH-ISSUE #81] Full RTX 4090 (2684, not 4090D) with 48GB mod: Qwen3.6-35B-A3B NVFP4 on vLLM in production, uncached prefill +41-50% against untouched control cards (unlock + 350 W) #46

Open
opened 2026-10-31 06:55:53 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @vakovalskii on GitHub (Oct 27, 2026).
Original GitHub issue: https://github.com/JustAResearcher/gpu-unlock-ada/issues/81

Environment: 4x full RTX 4090 (AD102, 10de:2684, not the 4090D 2685) with the 48GB memory mod in two boxes, Ubuntu 22.04 / 20.04, kernel 5.15, driver 580.173.02, vLLM 0.27.1, module v1.1.1 (d28c485), one vLLM engine per card (TP=1), Qwen3.6-35B-A3B NVFP4, prefix caching on, real production traffic. Unlock applied at runtime without a reboot: drain the engine, unbind from nvidia, insmod targets=<pci>, bind back, rmmod, start the engine. dmesg gpu_unlock: unlocked on all 4, zero Xid since.

Two more 4090 48GB cards with the same model, same image and the same traffic mix were left untouched (stock, 260 W) as a control group.

Note on power: our cards ran at a 260 W cap before. At 260 W they already sit on SW Power Cap during prefill, so the unlock alone gives almost nothing there. We raised the cap to 350 W together with the unlock. A reboot of one box in the middle of the day gave us a clean "350 W, no unlock" window, so both effects can be separated.

Production, uncached prefill tok/s per request (vllm:request_prefill_kv_computed_tokens_sum / vllm:request_prefill_time_seconds_sum, token-weighted, relative to the control cards in the same window):

window treated / control vs baseline
baseline, stock 260 W (18h, 870M tokens) 0.92-0.94 -
350 W, no unlock (box A after an unplanned reboot, 5h) 1.13 +23%
unlock + 350 W (box A, 8h, 90M tokens) 1.38 +50%
unlock + 350 W (box B, 8h, 147M tokens) 1.33 +41%

So on this workload, 350 W alone gives about +20%, and the unlock on top of that gives another +20-22%. Absolute numbers: baseline ~8.5-8.8k tok/s per request, now ~11.9-12.3k, while control cards stayed at ~8.9-9.3k.

timeline

Per-request prefill depends on how many requests share the card, so here is the same data against load. Before the change, prefill per request dropped from ~11k to ~8k as concurrency went from 1 to 4. After the change it stays flat around 12k up to 4 concurrent requests. The control cards gained nothing (in this window they are even a bit lower than their own baseline, which is why we compare against them and not against absolute numbers).

prefill vs load

Controlled bench (canary, one card, same engine flags, no prefix cache), Qwen3.8-27B NVFP4, tok/s:

scenario stock 260 W unlocked 260 W unlocked 350 W
prefill 16k 2210 2332 3321
prefill 4k x4 2308 2397 3530
decode, 1 stream 42 43 44
decode, 8 streams 247 250 272

Why NVFP4 gains this much on Ada: Ada has no native FP4. vLLM serves NVFP4 checkpoints on SM89 through a weight-only path that dequantizes to 16-bit and runs FP16/BF16 GEMMs with FP32 accumulation, which is exactly the path the limiter halves. This matches the 1.44-1.63x instruction-level numbers reported in #65. Decode is bandwidth-bound and does not change.

Runtime unlock without a reboot, one card at a time behind a load balancer. This is what we run per card, the other cards keep serving:

PCI=0000:25:00.0                      # card to unlock
idx=$(nvidia-smi --query-gpu=index,pci.bus_id --format=csv,noheader | grep -i "${PCI#0000:}" | cut -d, -f1)
# 1. take the engine out of the router, wait until it has 0 running requests, stop it
#    (and stop anything else that opens /dev/nvidia$idx, e.g. the DCGM/nvidia exporter)
sudo nvidia-smi -i $idx -pm 0         # persistenced holds the card otherwise
sudo systemctl stop gdm               # only if a desktop session runs on this card
sudo fuser -v /dev/nvidia$idx && exit 1   # anything still holding it -> unbind hangs
echo $PCI | sudo tee /sys/bus/pci/drivers/nvidia/unbind
sudo insmod gpu_unlock.ko targets=$PCI
sudo dmesg | grep "$PCI: gpu_unlock: " | tail -1   # expect "unlocked"
echo $PCI | sudo tee /sys/bus/pci/drivers/nvidia/bind
sudo rmmod gpu_unlock
sudo nvidia-smi -i $idx -pm 1
sudo nvidia-smi -i $idx -pl 350       # bind resets the power limit to default
sudo systemctl start gdm
# 2. start the engine, wait for /health, send one short request, put it back into the router

Two things that bit us: bind resets the power limit, so re-apply it after every unlock; and if you run the unlock while a router still sends traffic to that engine, clients get errors for the whole restart (a few minutes for a 35B model), so drain first.

Notes for others running this in production:

  • The unlock does not survive a reboot. We lost it twice in one day on unplanned power cycles, and the cards came back at stock while still running at 350 W. Worth checking gpu_unlock: unlocked in dmesg after every boot. We also watch uncached prefill per card in Prometheus: a card that silently lost the unlock shows up as a ~25% drop against its neighbours within an hour. The initramfs path from the README avoids the problem altogether.
  • nvidia-persistenced and a desktop session (gdm: Xorg, gnome-shell) hold /dev/nvidiaN. Unbind hangs if anything holds the card, so check fuser /dev/nvidiaN first.
  • Thermals at 350 W in an air-conditioned room: 52-56 °C core. Memory temperature on the 48GB mod is not exposed (N/A in nvidia-smi).

Happy to share raw series or the drain/unlock script.

Originally created by @vakovalskii on GitHub (Oct 27, 2026). Original GitHub issue: https://github.com/JustAResearcher/gpu-unlock-ada/issues/81 **Environment:** 4x full RTX 4090 (AD102, `10de:2684`, not the 4090D `2685`) with the 48GB memory mod in two boxes, Ubuntu 22.04 / 20.04, kernel 5.15, driver 580.173.02, vLLM 0.27.1, module v1.1.1 (`d28c485`), one vLLM engine per card (TP=1), Qwen3.6-35B-A3B NVFP4, prefix caching on, real production traffic. Unlock applied at runtime without a reboot: drain the engine, unbind from `nvidia`, `insmod targets=<pci>`, bind back, `rmmod`, start the engine. dmesg `gpu_unlock: unlocked` on all 4, zero Xid since. Two more 4090 48GB cards with the same model, same image and the same traffic mix were left untouched (stock, 260 W) as a control group. Note on power: our cards ran at a 260 W cap before. At 260 W they already sit on SW Power Cap during prefill, so the unlock alone gives almost nothing there. We raised the cap to 350 W together with the unlock. A reboot of one box in the middle of the day gave us a clean "350 W, no unlock" window, so both effects can be separated. **Production, uncached prefill tok/s per request** (`vllm:request_prefill_kv_computed_tokens_sum / vllm:request_prefill_time_seconds_sum`, token-weighted, relative to the control cards in the same window): | window | treated / control | vs baseline | |---|---:|---:| | baseline, stock 260 W (18h, 870M tokens) | 0.92-0.94 | - | | 350 W, **no** unlock (box A after an unplanned reboot, 5h) | 1.13 | +23% | | unlock + 350 W (box A, 8h, 90M tokens) | 1.38 | **+50%** | | unlock + 350 W (box B, 8h, 147M tokens) | 1.33 | **+41%** | So on this workload, 350 W alone gives about +20%, and the unlock on top of that gives another +20-22%. Absolute numbers: baseline ~8.5-8.8k tok/s per request, now ~11.9-12.3k, while control cards stayed at ~8.9-9.3k. ![timeline](https://gist.githubusercontent.com/vakovalskii/2d409405b0c4daa1a434ced81740cd1c/raw/4c3d9ade5fe471636c63b3548c8c6cc1346e0f67/timeline.png) Per-request prefill depends on how many requests share the card, so here is the same data against load. Before the change, prefill per request dropped from ~11k to ~8k as concurrency went from 1 to 4. After the change it stays flat around 12k up to 4 concurrent requests. The control cards gained nothing (in this window they are even a bit lower than their own baseline, which is why we compare against them and not against absolute numbers). ![prefill vs load](https://gist.githubusercontent.com/vakovalskii/2d409405b0c4daa1a434ced81740cd1c/raw/4c3d9ade5fe471636c63b3548c8c6cc1346e0f67/prefill_vs_load.png) **Controlled bench (canary, one card, same engine flags, no prefix cache)**, Qwen3.8-27B NVFP4, tok/s: | scenario | stock 260 W | unlocked 260 W | unlocked 350 W | |---|---:|---:|---:| | prefill 16k | 2210 | 2332 | 3321 | | prefill 4k x4 | 2308 | 2397 | 3530 | | decode, 1 stream | 42 | 43 | 44 | | decode, 8 streams | 247 | 250 | 272 | **Why NVFP4 gains this much on Ada:** Ada has no native FP4. vLLM serves NVFP4 checkpoints on SM89 through a weight-only path that dequantizes to 16-bit and runs FP16/BF16 GEMMs with FP32 accumulation, which is exactly the path the limiter halves. This matches the 1.44-1.63x instruction-level numbers reported in #65. Decode is bandwidth-bound and does not change. **Runtime unlock without a reboot, one card at a time behind a load balancer.** This is what we run per card, the other cards keep serving: ```bash PCI=0000:25:00.0 # card to unlock idx=$(nvidia-smi --query-gpu=index,pci.bus_id --format=csv,noheader | grep -i "${PCI#0000:}" | cut -d, -f1) # 1. take the engine out of the router, wait until it has 0 running requests, stop it # (and stop anything else that opens /dev/nvidia$idx, e.g. the DCGM/nvidia exporter) sudo nvidia-smi -i $idx -pm 0 # persistenced holds the card otherwise sudo systemctl stop gdm # only if a desktop session runs on this card sudo fuser -v /dev/nvidia$idx && exit 1 # anything still holding it -> unbind hangs echo $PCI | sudo tee /sys/bus/pci/drivers/nvidia/unbind sudo insmod gpu_unlock.ko targets=$PCI sudo dmesg | grep "$PCI: gpu_unlock: " | tail -1 # expect "unlocked" echo $PCI | sudo tee /sys/bus/pci/drivers/nvidia/bind sudo rmmod gpu_unlock sudo nvidia-smi -i $idx -pm 1 sudo nvidia-smi -i $idx -pl 350 # bind resets the power limit to default sudo systemctl start gdm # 2. start the engine, wait for /health, send one short request, put it back into the router ``` Two things that bit us: `bind` resets the power limit, so re-apply it after every unlock; and if you run the unlock while a router still sends traffic to that engine, clients get errors for the whole restart (a few minutes for a 35B model), so drain first. **Notes for others running this in production:** - The unlock does not survive a reboot. We lost it twice in one day on unplanned power cycles, and the cards came back at stock while still running at 350 W. Worth checking `gpu_unlock: unlocked` in dmesg after every boot. We also watch uncached prefill per card in Prometheus: a card that silently lost the unlock shows up as a ~25% drop against its neighbours within an hour. The initramfs path from the README avoids the problem altogether. - `nvidia-persistenced` and a desktop session (`gdm`: Xorg, gnome-shell) hold `/dev/nvidiaN`. Unbind hangs if anything holds the card, so check `fuser /dev/nvidiaN` first. - Thermals at 350 W in an air-conditioned room: 52-56 °C core. Memory temperature on the 48GB mod is not exposed (N/A in nvidia-smi). Happy to share raw series or the drain/unlock script.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JustAResearcher/gpu-unlock-ada#46
No description provided.