Sharing GB10s with a dev team

I run inference for a team of ~10 engineers on two stacks of 2× GB10 (TP=2) behind LiteLLM, serving DeepSeek-V4-Flash-Vision-Exp with @eugr’s recipe. Most recipes target one user. Here is what changes when people share the boxes, from a 1× GB10 bench (Nemotron 120B NVFP4) and our first production data.

What we measured

  • One cold prompt blocks everyone. On the bench, a 444k-token cold prefill took 5.4 min, and a colleague’s 20-token question waited up to 4.6 min for its first token. With four 219k sessions at once, prefills ran one after the other and the wait reached 6.8 min.
  • Memory is not the problem. KV cache stayed under 15% during the worst phase. On GB10, GPU utilization reads ~96% even idle: watch GPU power and num_requests_waiting instead.
  • Cold prefill is super-linear. On one GB10: 50k ≈ 19 s, 250k ≈ 2.3 min, 1M ≈ 20 min. The 1M needle test also failed.
  • The prefix cache saves the day. In prod, ~79M prompt tokens in one day with a ~95% hit rate. One key sent 78% of all tokens (~140k per request), yet our canary request stayed at p95 TTFT 1.2 to 1.7 s, with zero degraded windows.

📊


🔵 probe TTFT < 10 s · 🟠 probe TTFT > 10 s · 🟥 bars = heavy cold prefill running (log scale). Look at phases 2 and 4: while a big prompt is being read, a 20-token question waits minutes.

Takeaway: daily volume is not the limit. Two heavy users missing the cache at the same time is.

Settings I would use for a team

Recipe Team
max_model_len auto (1M) 256k–512k, below agents’ compaction threshold
max_num_batched_tokens 8192 4096–8192 (smaller prefill chunks interleave short requests better)
--long-prefill-token-threshold — 2048–4096, so one long prefill cannot take the whole step
--enable-prefix-caching on on, non-negotiable
max_num_seqs 8 8 (concurrency never exceeded 3)

Plus at the gateway: per-key max_parallel_requests (2–3), a separate key for batch jobs, timeouts longer than your worst cold prefill (retries re-run the prefill), and some session affinity between stacks so a cached prefix is not lost on the other one.

Habits that keep the cache warm

  1. One active agent session at a time.
  2. New task, new session.
  3. Keep the start of the prompt stable: no timestamps in the system prompt, no reordered tool lists, no history rewriting.
  4. Search the repo instead of attaching it.

Tooling

The Prometheus/Grafana stack with a canary probe is open source: litellm-vllm-observability. A follow-up with full-team load test results is coming.

Questions: has anyone A/B tested --long-prefill-token-threshold on GB10 with mixed traffic? And what max_model_len do you run for multi-user setups?

From my findings correct harness means more than stack in this case. For deepseek DSH is 100% best option, cache miss is unheard of. Reasoning level change requires no reprefill as harness never injects reasoning level into top context chunk like Opencode and many other harness do. Also pay attention to latest Tensorfold recipes with ssd cache offload, could be a game changer for multi session approach.

Thanks for sharing your knowledge!

On the Cybersecurity side, I work with a sandboxed OpenCode agent using Docker MicroVMs as DSH VM sandbox is not yet handle, still one of my co-worker build a portable USB key with a sandboxed DSH so I’m glad to hear that it handles caching much better. However, my dev team relies on PhpStorm along with existing harnesses like Continue or Cline. I can’t really change that for now, as developing a custom ACP (Agent-IDE Adapter) harness isn’t viable at our stage—the developers have only had access to the GB10 stacks for a month.

In three weeks, we’re holding a feedback session (RETEX) with the dev team to discuss options for improving the user experience. From my end, I see three main levers:

  1. Limit API key usage

  2. Tweak vLLM server parameters and recipes

  3. Encourage adoption of best usage practices

Ideally, I’d like to avoid strict hard limits as long as possible. My plan is to focus on usage habits first. If latency and queue times continue to degrade the user experience, I will then consider applying rate limits at either the gateway or vLLM server level.

What are your thoughts on this approach?

Well my own experience is probably not applicable as developers of the company I advise on product development are pretty demanding in terms of their favorite toolset (also php storm and some other tools) and prefer using cursor “cuz its fast”. Basically any speed below 60-80 t/s per stream is no acceptable and they would just code by hand faster. Which is fare to a degree as most time model spends and exploring, reasoning. And any attempt to organize a comprehensive knowledge base, LLMWIKI, which I did for them is completely ignored just like any discussions of optimization, orchestration. They are not luddites per se, but stubborn. I just chose to ignore and let them be. Not my problem.

I get your point. I’m not planning to build any scaffolding or force a context engineering setup on them. I’ll just explain why and how to do it, and let them build their own, everyone has their own working habits.

Regarding performance, you mentioned 60-80 t/s, but I’m closer to ~15 t/s when the dev team is active 😅. Some devs say it’s fine because they just run prompts in the background while working on something else, but others find it pretty frustrating.

I actually caught a few power users running multiple long-running sessions, which saturated the bandwidth and dropped the t/s with high TTFT (Time To First Token) for the rest of the team. They still managed to consume 4 Billion tokens in a single month, which is impressive for a first month with non-AI enthusiasts!

I’m currently trying to find a middle ground. Since t/s is bound to the LPDDR5 bandwidth limit, I can’t do much to increase raw speed, I can only try to avoid performance drops caused by concurrency and saturation.

I haven’t tried a single 4xGB10 stack yet (went straight to 2x2 GB10 clusters). I’m not sure if pooling 4 nodes would help stabilize t/s, though it would certainly allow serving larger models.

try tuning down max_num_batched_tokens for higher concurrency fairness.

Don’t take it as a criticism but a curiosity: what prompted you to go for local Ai and sparks to serve a development team? Privacy, legal demands, need for custom solution or sft/Lora models?

I totally see how gb10 based solution can be cost effective and advantageos for automated agentic pipelines, but for human use at 30% utilization (8h a day) and only 5/7 = 25% at best it’s honestly much more expensive and much slower experience than highly competitive and much more robust cloud offerings with same models.

I use 2 sparks locally myself and they cover 90+ % of my ai use but I am taking it as a learning exercise plus independent solution, not exercise in cost efficiency. And only recently with massive performance boosts in serving stacks like tensor fold python and zig the performance becomes finally comfortable for a single user like me at 50-80 t/s on a strong model like ds 41 or glm53f and not annoying and prompting to just end the pain and switch to the cloud to get job done.

I am just trying to wrap my head around the motivation and realities of whole team using setups like that whose motivation is to deliver a product not necessarily play and get proficient in local Ai sphere

Hey!

Well, I simply pre-ordered my DGX Founder’s Edition back in 2025 and did a RAG demo for the big bosses in December 2025. Then, I was called into the big boss’s office late December to help them decide how to spend the rest of their budget. I simply suggested either RTX 6000 Ada or GB10, and without any further discussion, I ended up with 4x GB10s in April and had to figure out a use case for them.

At first, they asked me to deliver AI projects for business teams, but I ran straight into a wall of bureaucracy. The DPO (Data Protection Officer) was extremely conservative, and even on-premise AI was considered a NO-GO for most of my use cases. Fast forward to September, I was asked to stop developing POCs altogether and instead open up access to the 4x GB10 setup for the dev teams and other co-workers.

Great writeup. A few things that should directly cut the “one cold prompt blocks everyone” problem:

  1. Split traffic by prompt size across your two stacks. You already have two 2×GB10 stacks behind LiteLLM. Instead of balancing users across both, route by input size: prompts over about 32k tokens go to stack A, everything else to stack B. A LiteLLM pre-call hook can do this. Then a 400k cold prefill only ever delays other long-context jobs, and the 20-token questions never queue behind it. You lose a little prefix-cache sharing, but your cache is per-session anyway.
  2. Priority scheduling. vLLM has --scheduling-policy priority. Have the gateway tag interactive keys with a higher priority than agent and batch keys, so short requests get scheduled ahead of waiting long jobs. Check that the vLLM version your recipe pins supports it.
  3. Keep huge prompts off the interactive path. In the same gateway hook, reject or reroute prompts over N tokens on interactive keys, and give the agent users a separate key without the cap. One stray 400k paste then can’t stall everyone.
  4. A one-minute check on prefill speed itself: run env | grep NCCL in the container. Several community recipes force NCCL_ALGO / NCCL_PROTO (for example allreduce:LL) as small-message tuning, but that also applies to prefill’s large all-reduces. On our 8-node cluster, removing it took prefill from 699 to 1,520 tok/s, and time-to-first-token at 10k tokens from 14.6 s to 6.7 s. The effect is smaller on two nodes, but it’s quick to rule out.

Hello @Anantus, thank you for those tips! We will definitely look into input-size routing, priority scheduling, and checking our NCCL env vars.

To follow up on my first post, here is a quick look at our 30-day production telemetry (~10-15 active users). I stripped out our internal user breakdown, but the system-level metrics clearly validate your point about isolating long-context traffic and enforcing session affinity.

1. Quantifying the “Head-of-Line Blocking” Blast Radius

Thresholds: Small request < 8k tokens | Large prompt ≥ 100k tokens.

Across 96k small requests, whenever a ≥100k prompt was being read on the same stack, median TTFT jumped ×8.8 and p95 TTFT jumped ×30.3:

Small Requests (< 8k tokens) Count TTFT p50 TTFT p95 Duration p50 Duration p95
Without concurrent large prompt 94.4 k 211 ms 436 ms 212 ms 1.45 s
With concurrent large prompt 1,652 1.86 s 13.21 s 2.11 s 41.11 s

2. The Traffic Mix: Why size-based routing makes sense

Coding agents completely skew the token distribution. Prompts ≥100k represent only ~6% of requests, but 82.9% of all input tokens (and a single heavy agent key accounted for 56% of our total token volume):

Prompt Size Requests Active Users In Tokens Share TTFT p50 TTFT p95 Duration p95
< 8k 183.6 k 14 0.2% 212 ms 457 ms 1.38 s
8k – 32k 4,040 12 2.3% 1.71 s 13.63 s 94.56 s
32k – 100k 8,417 11 14.6% 1.90 s 13.62 s 145.89 s
≥ 100k 13.1 k 10 82.9% 2.71 s 10.58 s 139.93 s

Routing <32k to Stack B and ≥32k to Stack A (as you suggested) would protect over 90% of interactive requests from the heavy agentic traffic.

3. vLLM Engine Reality: Compute-bound, not Memory-bound

Despite processing ~450M input tokens in our Prometheus window, KV cache usage is negligible and prefix caching is doing massive heavy lifting (~94% hit rate). Peak concurrency hit 11 (p95 is 5/min).

Stack Requests Prompt Tokens Peak In-flight Peak Queue KV p95 Preemptions Prefix Hit TTFT p50 TTFT p95 ITL p95
stack-a 38.2 k 238.99 M 6 4 2.9% 0 94.0% 202 ms 1.67 s 162 ms
stack-b 38.9 k 212.52 M 6 7 2.0% 0 93.5% 186 ms 1.29 s 168 ms


4. Real-world proof of why Session Affinity is critical

Looking at our largest prompts log, we caught a textbook example of an agent iterating on an ~800k token context.
On stack-a, where the prefix cache was warm, TTFT stayed around 6–7s. At 23:39:35, a single request landed on stack-b (cold cache), triggering an 86.64s prefill and stalling that stack:

Timestamp Stack In Tokens TTFT (s) Total Duration (s) Behavior
23:48:37 stack-a 810.9 k 7.36 s 18.18 s Warm prefix cache
23:47:53 stack-a 810.0 k 6.75 s 25.14 s Warm prefix cache
23:44:09 stack-a 802.1 k 6.79 s 68.37 s Warm prefill + long gen
23:41:07 stack-a 800.8 k 10.68 s 12.36 s Partial cache hit
23:39:35 stack-b 800.6 k 86.64 s 89.01 s Cache miss on other stack → Cold prefill
23:37:33 stack-a 796.7 k 5.85 s 120.14 s Warm prefill + long gen

Thanks for the numbers.

You asked in your first post whether anyone has A/B tested --long-prefill-token-threshold on GB10 with mixed traffic. Your two stacks are a ready-made A/B: set it on one stack only while routing is still mixed, and compare small-request TTFT with a concurrent large prompt on each.

Why it’s the setting that matters: in the V1 scheduler, a long prefill otherwise takes the whole max_num_batched_tokens budget every step, and new requests are only admitted once budget is left over, at its last chunk. Lowering max_num_batched_tokens alone only makes those chunks smaller. The threshold caps each long prompt’s chunk per step and leaves the rest of the budget for everyone else. Things to watch:

  • The cap is per request, so keep it well below the budget. At 4096/4096 one long prefill still fills the step; at 8192/2048, two long prefills together use 4096 and leave 4096.
  • It protects time to first token, not decode. Every step still carries the chunk, so other streams on that stack slow while a long prefill runs. Your table 1 shows both (small-request TTFT p95 +12.8 s, duration p95 +39.7 s). A smaller threshold shortens those steps; only separate stacks avoid it.
  • vLLM builds from before late September 2026 apply the cap even when the long prompt is the only request, which makes a lone cold prefill slower; newer builds skip it then. Include your ≥100k TTFT in the A/B.
  • Priority scheduling only reorders the waiting queue. It preempts a running request only when the KV cache runs out, which at KV p95 under 3% and zero preemptions doesn’t happen. So the threshold does the work, and priority decides who goes next.

On the size split we suggested: stack A would get 97.5% of input tokens (14.6% + 82.9%) and the longest-running requests (duration p95 140-146 s, against 1.38 s under 8k), so watch its in-flight count against max_num_seqs rather than its token volume. Two heavy users missing the cache at once, the limit you named in your first post, would always land on stack A; with the threshold set they share it in chunks rather than queueing. A session that grows past 32k pays one cold prefill of about 32k tokens, a few seconds at the ~9.2k tok/s your 800k miss ran at.

For the session affinity from your first post, LiteLLM has it built in: optional_pre_call_checks: ["session_affinity"] under router_settings pins a session to the stack that served its first request, until it sits idle longer than deployment_affinity_ttl_seconds (default 3600). It needs a session ID from the client: an x-litellm-session-id header, an x-<client>-session-id header, or metadata.session_id; recent versions also read the X-Session-Id that OpenCode sends. We found no sign that Continue or Cline send one by default, so check what actually arrives at your gateway. For clients that send none, adding deployment_affinity pins each API key to one stack instead, at the cost of keeping all of a heavy key’s sessions together. A pinned stack in cooldown falls back to normal routing, so long prefills that hit timeouts can still move a session.

God damn, you are a savior! Thanks a lot for all of your insight.

Your breakdown of the V1 scheduler and the --long-prefill-token-threshold makes total sense. We are definitely going to set up that A/B test on one stack to measure the TTFT improvement, and look into LiteLLM’s session_affinity to fix our multi-stack routing issues. Really appreciate you taking the time to write all of this down!