docs: 256k-class agent session on the 5090 (TTFT 27-39 s, decode ~105 tok/s at depth)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Pavlo Ratushnyi
2026-10-26 14:26:53 +01:00
co-authored by Claude Sonnet 5.5
parent 68e1eb3000
commit 2e71fcd46b
2 changed files with 15 additions and 1 deletions
+14
View File
@@ -195,3 +195,17 @@ Long-context smoke (`original_serve_long_context_streamed_kv_smoke`, one process
| 250,000 | 141.5 | 1,767 | 3.1 |
Prefill throughput stays flat (about 1.8k tok/s) from 28k to 250k, so a 256k prompt is a two-and-a-half-minute prefill on the 5090. This is the reference for the laptop (about 160 tok/s there, STRA-235). Not measured here: decode speed with speculation at depth, the prefix-cache hit at 256k, quality at depth (the teacher-forced gate runs at 128-token corpus lengths).
### 256k-class agent session through the real stack (job 9w2, 2026-10-26)
One conversation of real Rust source (`scripts/e2e/long_session.py`), each turn adds about 50k tokens and keeps the model's reply in the history; gateway + engine as in the live Codex jobs (`--prefix-cache-mib auto --prefix-cache-tail reply`, speculation on, `LELEKA_CHAIN=all`, context 262,144, 30 GiB budget), single run, thinking on, streamed.
| turn | input tokens | served from cache | TTFT s | decode tok/s | output tokens |
|---|---|---|---|---|---|
| 1 | 46,749 | 0 | 27.0 | 91.0 | 371 |
| 2 | 98,923 | 45,056 | 27.8 | 108.9 | 700 (cap) |
| 3 | 171,626 | 98,304 | 38.6 | 105.8 | 700 (cap) |
| 4 | 222,988 | 163,840 | 31.9 | 107.2 | 700 (cap) |
| 5 | 268,761 | - | refused: `context_length_exceeded` (prompt + 700 over 262,144; the driver's size estimate overshot, default target lowered to 215k) | | |
Each turn prefills only what the previous turns did not cover (the cache serves in blocks of 2,048 tokens), so TTFT stays 27-39 s at 100-220k tokens of context. Decode with speculation holds about 105-109 tok/s at 100-220k tokens, against ~167 tok/s on the short CRM replay (different workload; the drop at depth is not yet explained or A/B'd). The requests are captured (private) for replay. Not measured here: quality at depth, the same session on the laptop, the sweep of one variable at a time.
+1 -1
View File
@@ -105,7 +105,7 @@ def main():
ap = argparse.ArgumentParser()
ap.add_argument("--src", default=os.path.expanduser("~/work/leleka-head/src/crates"))
ap.add_argument("--turns", type=int, default=5)
ap.add_argument("--target-tokens", type=int, default=245000)
ap.add_argument("--target-tokens", type=int, default=215000)
ap.add_argument("--max-output", type=int, default=700)
a = ap.parse_args()
base, model, key = os.environ["E2E_BASE_URL"], os.environ["E2E_MODEL"], os.environ["E2E_API_KEY"]