[PR #1702] [CLOSED] bench: validate 128K-1M live, RAM and disk cache reuse #3622

Closed
opened 2026-11-07 15:29:37 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/1702
Author: @CC-David-CC
Created: 10/9/2026
Status: ❌ Closed

Base: main ← Head: bench/long-context-checkpoint-tiers


📝 Commits (5)

  • 8a6318b feat: extend native sessions with branch history and checkpoint retention
  • 219dff9 bench: compare existing RoPE and YaRN at 512K and 1M
  • b81e7c8 docs: clarify saving and restarting YaRN configuration
  • 3732447 bench: validate 128K through 1M live, RAM and disk cache reuse
  • 0bca799 docs: normalize inherited chart whitespace

📊 Changes

136 files changed (+25093 additions, -49 deletions)

View changed files

➕ bench/results/2026-10-09-long-context-cache/README.md (+174 -0)
➕ bench/results/2026-10-09-long-context-cache/capacity.png (+0 -0)
➕ bench/results/2026-10-09-long-context-cache/capacity.svg (+3314 -0)
➕ bench/results/2026-10-09-long-context-cache/latency.png (+0 -0)
➕ bench/results/2026-10-09-long-context-cache/latency.svg (+3905 -0)
➕ bench/results/2026-10-09-long-context-cache/plot.py (+138 -0)
➕ bench/results/2026-10-09-long-context-cache/raw/context-1048576/COMPLETE (+1 -0)
➕ bench/results/2026-10-09-long-context-cache/raw/context-1048576/disk/config.json (+57 -0)
➕ bench/results/2026-10-09-long-context-cache/raw/context-1048576/disk/disk-restore-after-restart-native.log (+9 -0)
➕ bench/results/2026-10-09-long-context-cache/raw/context-1048576/disk/engine.log (+85 -0)
➕ bench/results/2026-10-09-long-context-cache/raw/context-1048576/disk/execution-identity.json (+84 -0)
➕ bench/results/2026-10-09-long-context-cache/raw/context-1048576/disk/seed-prefill-native.log (+8 -0)
➕ bench/results/2026-10-09-long-context-cache/raw/context-1048576/disk/server.log (+159 -0)
➕ bench/results/2026-10-09-long-context-cache/raw/context-1048576/live/config.json (+57 -0)
➕ bench/results/2026-10-09-long-context-cache/raw/context-1048576/live/distraction-native.log (+1 -0)
➕ bench/results/2026-10-09-long-context-cache/raw/context-1048576/live/engine.log (+44 -0)
➕ bench/results/2026-10-09-long-context-cache/raw/context-1048576/live/execution-identity.json (+84 -0)
➕ bench/results/2026-10-09-long-context-cache/raw/context-1048576/live/fresh-replay-native.log (+1 -0)
➕ bench/results/2026-10-09-long-context-cache/raw/context-1048576/live/live-reuse-native.log (+1 -0)
➕ bench/results/2026-10-09-long-context-cache/raw/context-1048576/live/seed-prefill-native.log (+7 -0)

...and 80 more files

📄 Description

Summary

Validate #1667 checkpoint persistence with the existing RoPE/YaRN configurations covered by #1692. This integration branch includes those dependency commits; the new work is the benchmark harness, raw evidence and charts. Native inference code is unchanged; no cache converter is used.

At 1M, disk restore cuts first-token latency from 236.48s to 40.53s (5.8x). Including checkpoint writeback, the full request drops from 236.84s to 106.89s (2.2x faster; 130 seconds saved).

First-token and full-request latency

Prefix Fresh TTFT Live RAM restore Disk restore
128K 20.51s 0.25s 0.60s 5.48s
256K 43.17s 0.33s 0.91s 10.55s
512K 95.78s 0.49s 1.55s 20.67s
1M 236.48s 0.87s 2.87s 40.53s

Checkpoint capacity and server memory

At 1M: 27.73 GiB disk checkpoint; 28.29 GiB parked RAM snapshot; peak server RAM 71.6 GiB, VRAM 73.9 GiB, temporary disk growth 83.3 GiB. Parking the outgoing 1M conversation itself costs 10.90s.

Validation and reproduction

RTX PRO 6000 96 GB; ISTA IQ3_XXS; FP16 KV; MTP width 4; 128-token output cap. Ordinary RoPE at 128K/256K, YaRN 2x at 512K and 4x at 1M.

All 16 continuations recovered three codes placed near the beginning, middle and end. Example follow-up: "Return the three verification codes in order." Answer: CEDAR-731 | MARBLE-482 | QUARTZ-956. Identical continuation token hashes and execution identities across tiers; native RAM restores and bookmarked disk restores after restart verified. Focused regression tests: 56 passed, one optional SDK test skipped.

One observation per condition, not percentile or general quality evidence. Startup excluded; OS page cache not flushed. RAM restore follows a tiny unrelated request, not a second equally large conversation. Cache tiers are isolated for comparison.

Commands, cache-budget settings, raw answers and measurements. The larger FP16 snapshots require raising the default 4 GiB snapshot limit.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/1702 **Author:** [@CC-David-CC](https://github.com/CC-David-CC) **Created:** 10/9/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `bench/long-context-checkpoint-tiers` --- ### 📝 Commits (5) - [`8a6318b`](https://github.com/Niko1221/Strata/commit/8a6318bd4410dde06f65f783f4b9203200d6c5f2) feat: extend native sessions with branch history and checkpoint retention - [`219dff9`](https://github.com/Niko1221/Strata/commit/219dff9f28b23f96d357e4584a41d121dfbe717e) bench: compare existing RoPE and YaRN at 512K and 1M - [`b81e7c8`](https://github.com/Niko1221/Strata/commit/b81e7c86280006bfbd46ff9f447e3b9a52ec7b9a) docs: clarify saving and restarting YaRN configuration - [`3732447`](https://github.com/Niko1221/Strata/commit/37324471ac24f44e1ced3debe0093776751600c4) bench: validate 128K through 1M live, RAM and disk cache reuse - [`0bca799`](https://github.com/Niko1221/Strata/commit/0bca799742343534dcf42ac714f29bc53a68f973) docs: normalize inherited chart whitespace ### 📊 Changes **136 files changed** (+25093 additions, -49 deletions) <details> <summary>View changed files</summary> ➕ `bench/results/2026-10-09-long-context-cache/README.md` (+174 -0) ➕ `bench/results/2026-10-09-long-context-cache/capacity.png` (+0 -0) ➕ `bench/results/2026-10-09-long-context-cache/capacity.svg` (+3314 -0) ➕ `bench/results/2026-10-09-long-context-cache/latency.png` (+0 -0) ➕ `bench/results/2026-10-09-long-context-cache/latency.svg` (+3905 -0) ➕ `bench/results/2026-10-09-long-context-cache/plot.py` (+138 -0) ➕ `bench/results/2026-10-09-long-context-cache/raw/context-1048576/COMPLETE` (+1 -0) ➕ `bench/results/2026-10-09-long-context-cache/raw/context-1048576/disk/config.json` (+57 -0) ➕ `bench/results/2026-10-09-long-context-cache/raw/context-1048576/disk/disk-restore-after-restart-native.log` (+9 -0) ➕ `bench/results/2026-10-09-long-context-cache/raw/context-1048576/disk/engine.log` (+85 -0) ➕ `bench/results/2026-10-09-long-context-cache/raw/context-1048576/disk/execution-identity.json` (+84 -0) ➕ `bench/results/2026-10-09-long-context-cache/raw/context-1048576/disk/seed-prefill-native.log` (+8 -0) ➕ `bench/results/2026-10-09-long-context-cache/raw/context-1048576/disk/server.log` (+159 -0) ➕ `bench/results/2026-10-09-long-context-cache/raw/context-1048576/live/config.json` (+57 -0) ➕ `bench/results/2026-10-09-long-context-cache/raw/context-1048576/live/distraction-native.log` (+1 -0) ➕ `bench/results/2026-10-09-long-context-cache/raw/context-1048576/live/engine.log` (+44 -0) ➕ `bench/results/2026-10-09-long-context-cache/raw/context-1048576/live/execution-identity.json` (+84 -0) ➕ `bench/results/2026-10-09-long-context-cache/raw/context-1048576/live/fresh-replay-native.log` (+1 -0) ➕ `bench/results/2026-10-09-long-context-cache/raw/context-1048576/live/live-reuse-native.log` (+1 -0) ➕ `bench/results/2026-10-09-long-context-cache/raw/context-1048576/live/seed-prefill-native.log` (+7 -0) _...and 80 more files_ </details> ### 📄 Description ## Summary Validate #1667 checkpoint persistence with the existing RoPE/YaRN configurations covered by #1692. This integration branch includes those dependency commits; the new work is the benchmark harness, raw evidence and charts. Native inference code is unchanged; no cache converter is used. **At 1M, disk restore cuts first-token latency from 236.48s to 40.53s (5.8x). Including checkpoint writeback, the full request drops from 236.84s to 106.89s (2.2x faster; 130 seconds saved).** ![First-token and full-request latency](https://raw.githubusercontent.com/CC-David-CC/Strata-a5500/0bca799742343534dcf42ac714f29bc53a68f973/bench/results/2026-10-09-long-context-cache/latency.png) | Prefix | Fresh TTFT | Live | RAM restore | Disk restore | |---|---:|---:|---:|---:| | 128K | 20.51s | 0.25s | 0.60s | 5.48s | | 256K | 43.17s | 0.33s | 0.91s | 10.55s | | 512K | 95.78s | 0.49s | 1.55s | 20.67s | | 1M | 236.48s | 0.87s | 2.87s | 40.53s | ![Checkpoint capacity and server memory](https://raw.githubusercontent.com/CC-David-CC/Strata-a5500/0bca799742343534dcf42ac714f29bc53a68f973/bench/results/2026-10-09-long-context-cache/capacity.png) At 1M: 27.73 GiB disk checkpoint; 28.29 GiB parked RAM snapshot; peak server RAM 71.6 GiB, VRAM 73.9 GiB, temporary disk growth 83.3 GiB. Parking the outgoing 1M conversation itself costs 10.90s. ## Validation and reproduction RTX PRO 6000 96 GB; ISTA IQ3_XXS; FP16 KV; MTP width 4; 128-token output cap. Ordinary RoPE at 128K/256K, YaRN 2x at 512K and 4x at 1M. All 16 continuations recovered three codes placed near the beginning, middle and end. Example follow-up: "Return the three verification codes in order." Answer: `CEDAR-731 | MARBLE-482 | QUARTZ-956`. Identical continuation token hashes and execution identities across tiers; native RAM restores and bookmarked disk restores after restart verified. Focused regression tests: 56 passed, one optional SDK test skipped. One observation per condition, not percentile or general quality evidence. Startup excluded; OS page cache not flushed. RAM restore follows a tiny unrelated request, not a second equally large conversation. Cache tiers are isolated for comparison. [Commands, cache-budget settings, raw answers and measurements](https://github.com/CC-David-CC/Strata-a5500/blob/0bca799742343534dcf42ac714f29bc53a68f973/bench/results/2026-10-09-long-context-cache/README.md). The larger FP16 snapshots require raising the default 4 GiB snapshot limit. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:29:37 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3622
No description provided.