Elise: Qwen4-35B on One RTX 5090, with 12 Requests, 16 MP Vision and a 410K KV Cache

Single-panel cartoon: a man holding a coffee mug gestures proudly through an open door under a sign reading "RTX 5090 (32 GB)" while a woman with a notebook looks on in surprise. Inside the small room, twelve people work happily at desks with laptops beside a full bookshelf and a very large framed landscape painting. Out in the hallway sit a cardboard box labeled "SPARE HEAD" and a small table labeled "EMBEDDING TABLE". Caption: "Once we moved the spare head into the hallway, we fit twelve requests, the large photos, and somehow ended up with more room than when we started."

Follows Twice as Fast on the Same Card (Penny Royal), Can Claude Double the Speed of Qwen3.6-35B-A3B on an RTX 5090? and More Than Double the Speed (Elsa).

TL;DR

Qwen4-35B-A3B NVFP4 arrived this week, and we wanted it on a single 32 GB RTX 5090 with everything we use: twelve concurrent requests, images up to the model’s 16.8 MP maximum, and at least a 256K-token KV cache. The model card’s recipe, adapted to one card, gave us two requests, 147K tokens and a crash on any image above about 8 MP. Elise 1.2 runs twelve requests, holds 410K tokens, reads 16.8 MP images, and idles with 3.0 GB of VRAM free. Single-request decode went from about 270 to 373 tok/s, and twelve requests decode 1,526 tok/s in aggregate. The code is at github.com/Joshua8-AI/elise. As with Elsa, Claude did the engineering and I decided what to keep.


The third one of these

Elise follows a method we borrowed. John Pezzulli’s Penny Royal showed what happens when you pick one model and one GPU and tune every kernel choice and memory budget for exactly that pair; it doubled our decode speed on the RTX PRO 6000. Elsa applied the same idea to Qwen3.6-35B on the RTX 5090. Elise is inspired by and derived from both, and it reuses Elsa’s speculative decoding setup and its hot-token map directly, because Qwen4 keeps the same vocabulary.

  stock image, model card recipe Elise 1.0 Elise 1.1 Elise 1.2
running requests 2 12 12 12
KV pool (FP4), tokens 147K 159K 262K 410K
largest image crashes above ~8 MP 8.3 MP 16.8 MP 16.8 MP
free VRAM at idle – 2.2 GB 2.8 GB 3.0 GB
decode, 1 request (tok/s) ~270 ~378 ~373 ~373
decode, 12 requests (aggregate) ~430 at 2 ~1,530 ~1,531 ~1,526
prefill (tok/s) ~17.6K ~18.3–19.1K ~18.2K ~18.2K

1.0: flags and two upstream patches

The first version needed no code of our own. Two open SGLang pull requests, #55246 (NVFP4 decode kernels for this GPU generation) and #55317 (a slimmer weight load), were worth about 20% on single-request decode and 0.8 GB of VRAM. Elsa’s 32K hot-token map for the draft head added another 17%. ReplaySSM speculative decoding with three state slots per request, rather than five, is what took the server from two requests to twelve without shrinking the KV cache. Turning off the prefill CUDA graph freed 1.27 GB and cost 23 ms of time to first token on short prompts.

1.1 and 1.2: find out where the memory is

The rest came from memory, and the rule I set was that the KV cache could not grow by eating the free-VRAM margin. So Claude added a debug hook that lists every tensor on the card in the running server, and read the list. Five things were on the GPU that did not need to be:

  • Large images. The vision tower ran a 16.8 MP image in one pass and ran out of memory. It now runs large images in row slices and peaks at about 0.57 GB. Output matches the stock path to rounding (cosine 0.9998).
  • The token embedding table (1 GB). It now sits in pinned host memory beside the model’s 19 GiB n-gram table, read by the same kernel. No measurable speed change.
  • A spare output head (1 GB). The draft model held its own copy while the KV pool was being sized. Removing it is what let the pool grow past 159K.
  • The vision tower’s weights (0.77 GiB). The 27 blocks now stay in host memory and are copied one at a time through a single 29 MiB slot on the card. Tower time for a 16.8 MP image is unchanged at about 4.1 s.
  • Position tables sized for 1M tokens (~0.3 GiB). The model’s native context is 1M tokens. This server cannot hold that, so the tables are now sized to what it can.

About 0.8 GiB of the last two went to the pool (262K → 410K) and the rest stayed free. That is why the margin went up while the cache grew by more than half.

What we looked at and left alone matters as much. Shrinking FlashInfer’s 384 MiB workspace booted and passed the stress test, but changed a few answers on a vision reading test, so it was reverted. Dropping multi-GPU support saves nothing: NCCL measured 0 MiB with one GPU. The remaining 1.3 GiB outside PyTorch is the CUDA context, cuBLAS, cuSOLVER and CUDA graphs. CUDA 13.4 and 13.5 base images were no faster.

Not as fast as Elsa

Elsa 1.7 decodes 2,432 tok/s across twelve sampled requests and reads prompts at 39K tok/s on this same card. Elise does 1,526 and 18.2K. Both models are labeled 35B, so why the gap?

Part of it is time. Stock SGLang on Qwen3.6 gave us 310 tok/s for one request and 1,201 across eight; Elise is at 373 and 1,213, about where Elsa was before weeks of engine work. Part of it is the model. Speculative decoding accepts about 2.3 tokens per step on Qwen4 against 3.5–4.4 on Qwen3.6, and Qwen4 carries a 19 GiB n-gram table that lives in host RAM here, so table lookups cross PCIe. I have not profiled the split between those causes. And 18K tok/s prefill is what the other engines managed in the Inkling comparison; Elsa’s 39K is the outlier.

Quality and one weakness

On our usual suite, Qwen4 in the stock configuration scored 97.4% on GSM8K, 98.2% on MATH-500, 86.1% on MMLU-Pro, 83.5% on GPQA-Diamond and 92.9% on AIME 2025. That is level with Qwen3.8-Flash-Next and well ahead of Qwen3.6-35B (94.9% GSM8K, 47.9% AIME). Instruction following is the exception: 81.5% strict on IFEval against 86.7–91.1% for our other models. Elise 1.1 scored within noise of stock on GSM8K, MATH-500 and IFEval. I have not rerun the suite on 1.2; it passed the stress test (twelve decodes, 16.8 MP images and a 394K-token prompt answered correctly, never below 1.55 GB free) and matched 1.1 on vision reading, 234 of 240 cells.

One problem is still open. Asked for short codes such as 2004-YY from a document, Qwen4 scores 21–28 of 30 where Elsa and Penny Royal score 30. The stock image does the same, so the tuning did not cause it, and we have not found what does.

Where it stands

Elise 1.2 is in production on one of our 5090s. The repository has the compose file, both Dockerfiles, the patches, and every benchmark result. Each patch is off unless its environment variable is set, so you can take them one at a time.

All numbers are from one RTX 5090 (600 W), Qwen4-35B-A3B NVFP4, FP4 KV cache, MTP 3/4 with a 32K FR-Spec map, measured December 3–4, 2026. Decode is sampled with the model card’s settings (temperature 1.0, top-p 0.95, top-k 20).