Repository navigation
Tags
Tags
fix(corpus): normalize the prompt corpus to printable ASCII (--corpus… …-ascii, default on) Models occasionally emit a vocabulary token whose own bytes are U+FFFD (GLM 5691 in place of the "e-grave" of "Regne Animal", p=0.068 vs 0.735 for the real letter; DSv4.1 29429 = U+FFFD x3 in tail excursions), which --verify scores as a garbled response. The corpus kvlab cuts every prompt from (built-in Moby-Dick bench_doc.txt or --docs-dir) carries 7,807 non-ASCII characters in 21 code points, ~95% typographic punctuation (U+2019 2790, U+2014 1728, U+201C 1617, U+201D 1476, U+2018 146), plus ligatures/accents (ae 23, e-acute 5, oe 4, e-grave 3), pound sign, Greek, Hebrew and bidi marks. Every system block, tool description and message text the replay builders send is synthText over that corpus, so all of it inherited these characters. NormalizeCorpusASCII rewrites the corpus to 0x20-0x7E plus \n and \t: - curly quotes/primes -> ' and ", dashes and minus -> -, ellipsis -> ..., NBSP and the other Unicode spaces -> space, a few symbols spelled out (GBP, EUR, (c), deg, x); - ligatures and undecomposable letters spelled out (ae, oe, ss, o, d, l, th); - otherwise NFKD with combining marks dropped (e-grave -> e, fi lig -> fi); - anything left (other scripts, emoji, controls, bidi/zero-width, U+FFFD) is dropped. It is applied once where the corpus is loaded (RunAutoBenchmark, after ToValidUTF8; and the throughput command's embedded docs), before any cut, so synthText still returns exactly n bytes, content stays a pure function of corpus + seed, and the run nonce / KV-uniqueness rules are untouched. --corpus-ascii (env BENCHMARK_CORPUS_ASCII) defaults to true; --corpus-ascii=false sends the corpus as before. Tests: TestNormalizeCorpusASCII (rules), TestEmbeddedCorpusNormalizesToASCII (whole corpus in set, idempotent), TestReplayPromptsFromNormalizedCorpusAreASCII (every decoded JSON string of anthropic/openai/sglang bodies at four scales, from the embedded corpus and a multi-byte-dense one, is in the set). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015ECap9vE4vaYRtPkV17aeY
feat(router): --pd-on-reject serves static P/D decode-first With --pd-prefill-backends, --pd-on-reject sends each chat/completions request to a decode node first as an ordinary aggregated request, with large-prefill reject capture armed. Only a request the decode node refuses (503 large_prefill_rejected) is re-sent through the existing static P/D path: a P leg, then a decode leg with its kv_transfer_params. Both carry vllm_xargs.weka_prefill=1, so neither can be refused again. The refusal precedes any response byte, so streaming callers never see it. P nodes take no decode-first traffic. A refused /v1/messages request goes back to a decode node with the bypass. Before this, reject capture was armed only with --prefill-split, and --pd-prefill-backends could only be combined with the dynamic --prefill-split-mode=pd, so static reject-to-P/D was impossible. Metrics: router_prefill_rejections_total counts the refusals, router_pd_reject_handoffs_total the P/D re-sends; both exist only for a pool running the mode. One log line per re-send. Startup rejects --pd-on-reject without --pd-prefill-backends or with --prefill-split. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015ECap9vE4vaYRtPkV17aeY
fix(replay): cut replay and corpus text on rune boundaries synthText sliced the docs corpus at a hash-derived byte offset and cut each chunk at a byte count, so replay content routinely started or ended inside a multi-byte rune. encoding/json then wrote those bytes as �, so prompts carried U+FFFD, which a model may echo and the verify pass scored as decode corruption. - synthText starts at the next rune start, ends each chunk before a rune that would overrun it, and pads a final rune that does not fit with ASCII spaces: still exactly n bytes, now always valid UTF-8, still deterministic per seed (cutRunes does the same for the seed fallback). - stampDocsWithGUID starts each stamp on a rune start and blanks the continuation bytes of a rune it cuts into; truncateToApproxTokens and GetEmbeddedDocs cut back to a rune start. - The loaded corpus (readDirectoryContents, and RunAutoBenchmark's docs either way) is made valid UTF-8 with strings.ToValidUTF8. The echoed-U+FFFD rule (52d446d) stays as a safety net and counter. Tests: TestSynthTextIsValidUTF8AtExactSize, TestGeneratedReplayPromptsAreValidUTF8 (both wire formats, several scales, over a multi-byte-dense corpus), TestCorpusCutsAreValidUTF8; all three fail on the previous tree. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015ECap9vE4vaYRtPkV17aeY
fix(replay): start --timeout after calibration, bound calibration sep… …arately Replay calibration (71fcc65) ran inside each model's run, under the --timeout deadline, so its probes ate the benchmark duration: a "30 min" run measured 30 min minus calibration, and probes slower than --timeout failed the run outright. Calibration now runs in RunAutoBenchmark for every model (concurrently, each against its own server) before any model's run starts, and the --timeout deadline is applied only after it (and after docs/dataset/header loading). The run's time-zero is therefore post-calibration everywhere: the timeout context, each model's elapsed/startTime and run-params ts, the live-view origin and the realtime session clocks (all created after). Calibration probes were already excluded from stats (no autoState exists yet, separate poster, calib- stamp); unchanged. Calibration gets its own bound, calibrateTotalTimeout = 20m per model (each probe still 5m); exceeding it fails the run with "calibration exceeded its 20m0s bound after N probe(s)". SIGINT stops calibration. A calibration failure now returns an error from RunAutoBenchmark. Log: "[calibrate][m] done in Xs (setup, outside --timeout)" then "[auto] load starts now; --timeout=D counts from here"; run params gain calibration_sec. Tests: TestTimeoutCountsFromAfterCalibration (probes outlast --timeout; fails before: run never starts), TestCalibrationTotalTimeoutFailsClearly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015ECap9vE4vaYRtPkV17aeY
fix(release): second release on the registry-grafted flow (warm compa… …rison) Empty commit: a back-to-back release to measure the steady-state duration with the Go cache restored. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015ECap9vE4vaYRtPkV17aeY
fix(release): first release on the registry-grafted image flow Empty commit: cuts a release so the grafted-replay, binary-reuse flow (03d825e, 464f0f7) runs end to end in CI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015ECap9vE4vaYRtPkV17aeY
fix(release): second release on the new pipeline (warm comparison) Empty commit: a back-to-back release to measure the steady-state duration of the reused-replay, native-compile flow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015ECap9vE4vaYRtPkV17aeY
fix(release): first release on the reused-replay, native-compile pipe… …line Empty commit: cuts a release so the new release flow (b94a8b1, c99fca5) runs end to end in CI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015ECap9vE4vaYRtPkV17aeY
fix(router): re-check a D node's role under its lease, not only at th… …e snapshot A request's candidates are a snapshot; the leg's lease is taken after the policy has selected from it. A drain that converted the node in between saw no lease, so it neither waited for the leg nor turned it away: the D leg landed on a node already out of decode (draining or prefill). Instrumented under 8-way -race stress (-cpu 2): 14 D-leg leases acquired on a node already out of decode in 80 runs. This is what TestPDDynamicTTFTRampFromOneExpandsUnderLoadAndShrinksUnderLightTraffic reported in CI (run 45379862160); the test was right. The proxy now re-asks the request's Eligible check right after the lease is held. The drain reads the node's in-flight count under the manager lock that the check takes, so either the check sees the new role (the pick is dropped and another backend selected, with no attempt counted and no breaker verdict) or the drain counts the lease. The gateway sets Eligible from the same role filter as candidates. Same stress, 200 runs each, run concurrently: before 6 failures, after 0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015ECap9vE4vaYRtPkV17aeY
fix(chart): expose --limit-context and --replay-drop-late-system as H… …elm values replay.limitContext (int, 0 = no limit) renders --limit-context=N and replay.dropLateSystem (bool) renders --replay-drop-late-system. Both render only when set, so a default install never passes a flag to an image that predates it. Before this, the only way to set either from the chart was to smuggle its BENCHMARK_* env var through the API-key secret. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015ECap9vE4vaYRtPkV17aeY
PreviousNext