You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Provider API] Extreme TTFT variance on long-context requests (identical payloads differ 10.6x within one minute) — deepseek/deepseek-v4.1-flash #995
[Provider API] Extreme TTFT variance on long-context requests (identical payloads differ 10.6x within one minute) — deepseek/deepseek-v4.1-flash
Date: 2026-10-07, 09:16–09:18 UTC (inside DeepSeek off-peak window) Endpoint:POST https://api.commandcode.ai/provider/v1/chat/completions (streaming) Model:deepseek/deepseek-v4.1-flash, temperature=0, GOAT plan Client network: direct public internet via Cloudflare Scale of testing: ~120 requests total. Short-context (≤2K tokens) success rate 100%. The problem is specific to long context.
Summary
Time-to-first-token on ~136K-token prompts varies randomly by more than 10x between requests of identical size sent one minute apart. Agent workloads with large context die to client/gateway timeouts when a request lands on a slow upstream channel. This matches and extends #978.
Decisive evidence (trace_ids provided for server-side lookup)
Both are ~135.9K tokens, cold cache (cached=0), identical structure, differing in one word near the head. 8.9x throughput difference between upstream channels within the same minute.
Also observed (same test session)
Qwen/Qwen3.8-Max: TTFT 63.42s on a ~2K-token request — c775fb6ec03fbfd0c0c1d490226e2e86
moonshotai/Kimi-K3: TTFT 34.92s on ~2K tokens — 579ae80dbf513da01600a9bb4745462f
Cache-hit read speed itself varies 2.5K–5.7K tok/s across fully-cached runs
A 400K-token request containing a 240K prefix sent seconds earlier came back with cached_tokens=0 — prompt cache does not reliably propagate across requests/channels
Activity
roundbell commentedon Oct 7, 2026
Same from CN on minimal requests, see #999