[PR #1698] [CLOSED] feat: experimental RoPE to YaRN 4x saved-cache migration #3617

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

📋 Pull Request Information

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

Base: main ← Head: feat/experimental-rope-yarn4-cache


📝 Commits (8)

  • 7991159 feat: opt-in saved RoPE cache migration to YaRN 4x
  • ea8e5ed docs: report CUDA and HIP cache migration validation
  • d11e0fe docs: normalize generated SVG formatting
  • bef1d5d feat: support MTP cache migration and validate continuation through 1M
  • f685ec3 Merge current main while preserving experimental validation paths
  • 24dc1d6 fix: use current memory-limit-aware admission for YaRN migration
  • a79ad26 docs: record current-main YaRN migration and backend checks
  • ecde3ed Merge Strata v0.1.43 into feat/experimental-rope-yarn4-cache

📊 Changes

41 files changed (+34450 additions, -57 deletions)

View changed files

📝 CMakeLists.txt (+4 -1)
➕ bench/results/2026-10-09-mtp-migration/README.md (+183 -0)
➕ bench/results/2026-10-09-mtp-migration/cuda-256k-to-1m-results.json (+3950 -0)
➕ bench/results/2026-10-09-mtp-migration/cuda-4k-results.json (+2135 -0)
➕ bench/results/2026-10-09-mtp-migration/cuda-resources-summary.json (+10 -0)
➕ bench/results/2026-10-09-mtp-migration/hip-4k-results.json (+2073 -0)
➕ bench/results/2026-10-09-mtp-migration/hip-extension-4k-8k-results.json (+2971 -0)
➕ bench/results/2026-10-09-mtp-migration/hip-windowed-4k-results.json (+2092 -0)
➕ bench/results/2026-10-09-mtp-migration/overview.png (+0 -0)
➕ bench/results/2026-10-09-mtp-migration/overview.svg (+3504 -0)
➕ bench/results/2026-10-09-mtp-migration/plot.py (+67 -0)
➕ bench/results/2026-10-09-rope-cache-migration/README.md (+112 -0)
➕ bench/results/2026-10-09-rope-cache-migration/measurements.json (+6283 -0)
➕ bench/results/2026-10-09-rope-cache-migration/overview.png (+0 -0)
➕ bench/results/2026-10-09-rope-cache-migration/overview.svg (+3446 -0)
➕ bench/results/2026-10-09-rope-cache-migration/plot.py (+54 -0)
➕ bench/results/2026-10-11-yarn-main-refresh/1698-cuda-256k-to-1m.json (+3950 -0)
➕ bench/results/2026-10-11-yarn-main-refresh/1698-cuda-4k.json (+2135 -0)
➕ bench/results/2026-10-11-yarn-main-refresh/README.md (+63 -0)
➕ bench/results/2026-10-11-yarn-main-refresh/hip-build-status.json (+29 -0)

...and 21 more files

📄 Description

Adds an explicit saved-session conversion from ordinary RoPE to approximate YaRN 4x history, including computed MTP draft keys. Restored migrated prefixes can continue into a larger context without recomputing the whole prefix. Migration provenance survives save/reload.

Refreshed onto current main (61b3fb5d), with memory admission using the current host/cgroup sampler. Defaults stay unchanged. The operation requires --experimental-rope-yarn4-cache and STRATA_ROPE_TABLE=1 on source and target; it supports text-only, single-GPU FP16 KV with batching and automatic conversation caching off. Quantized KV is rejected. SYCL's separate entry point does not expose migration.

Use the existing /slots/0?action=migrate_yarn4 endpoint with filename and the source engine's allocation source_context. Destination overwrite, duplicate conversion, and unsupported fingerprints are refused. Usage and limits.

Fresh validation: CUDA native and slot tests, 4K migration, and a 256K source continued through full 512K and 1M sequences on RTX PRO 6000 Blackwell / ISTA IQ3_XXS / FP16 KV / MTP 4. All measured retrieval tasks recalled their three markers. Migration is approximate: at 1M, 32 forced positions had mean KL 0.005081 and 31/32 top-token agreement versus fresh YaRN. These narrow measurements do not establish broad quality parity or a general speed win.

Refreshed HIP gfx1012 builds and four native tests passed; SYCL builds and the host migration test passed. Earlier HIP/XTX runtime measurements remain separately dated; there is no claim of fresh XTX runtime validation here.

Fresh results, exact source/binary identity, individual measurements and reproduction. Machine time for the long CUDA campaign was 1186.863 seconds; setup/engineering time is excluded.


🔄 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/1698 **Author:** [@CC-David-CC](https://github.com/CC-David-CC) **Created:** 10/9/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/experimental-rope-yarn4-cache` --- ### 📝 Commits (8) - [`7991159`](https://github.com/Niko1221/Strata/commit/7991159ab27174ddac672d4ee19efd06e936c9c9) feat: opt-in saved RoPE cache migration to YaRN 4x - [`ea8e5ed`](https://github.com/Niko1221/Strata/commit/ea8e5ed88dce10241ae0f1bace47bea6df7f35e6) docs: report CUDA and HIP cache migration validation - [`d11e0fe`](https://github.com/Niko1221/Strata/commit/d11e0fee16212023a0ff2a267e1bfb87d9fb6933) docs: normalize generated SVG formatting - [`bef1d5d`](https://github.com/Niko1221/Strata/commit/bef1d5d05c8c66ed74cc0e19ec52529f76d3df75) feat: support MTP cache migration and validate continuation through 1M - [`f685ec3`](https://github.com/Niko1221/Strata/commit/f685ec3aa4d24e20a898a57f65308f0abbbd3d5f) Merge current main while preserving experimental validation paths - [`24dc1d6`](https://github.com/Niko1221/Strata/commit/24dc1d6ef5880049b6e7c9b0f4faeeff93afd9f1) fix: use current memory-limit-aware admission for YaRN migration - [`a79ad26`](https://github.com/Niko1221/Strata/commit/a79ad26920f873431ee3ef800e4105877921d96c) docs: record current-main YaRN migration and backend checks - [`ecde3ed`](https://github.com/Niko1221/Strata/commit/ecde3eddad9c399676663a118ec594d8209ecafc) Merge Strata v0.1.43 into feat/experimental-rope-yarn4-cache ### 📊 Changes **41 files changed** (+34450 additions, -57 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+4 -1) ➕ `bench/results/2026-10-09-mtp-migration/README.md` (+183 -0) ➕ `bench/results/2026-10-09-mtp-migration/cuda-256k-to-1m-results.json` (+3950 -0) ➕ `bench/results/2026-10-09-mtp-migration/cuda-4k-results.json` (+2135 -0) ➕ `bench/results/2026-10-09-mtp-migration/cuda-resources-summary.json` (+10 -0) ➕ `bench/results/2026-10-09-mtp-migration/hip-4k-results.json` (+2073 -0) ➕ `bench/results/2026-10-09-mtp-migration/hip-extension-4k-8k-results.json` (+2971 -0) ➕ `bench/results/2026-10-09-mtp-migration/hip-windowed-4k-results.json` (+2092 -0) ➕ `bench/results/2026-10-09-mtp-migration/overview.png` (+0 -0) ➕ `bench/results/2026-10-09-mtp-migration/overview.svg` (+3504 -0) ➕ `bench/results/2026-10-09-mtp-migration/plot.py` (+67 -0) ➕ `bench/results/2026-10-09-rope-cache-migration/README.md` (+112 -0) ➕ `bench/results/2026-10-09-rope-cache-migration/measurements.json` (+6283 -0) ➕ `bench/results/2026-10-09-rope-cache-migration/overview.png` (+0 -0) ➕ `bench/results/2026-10-09-rope-cache-migration/overview.svg` (+3446 -0) ➕ `bench/results/2026-10-09-rope-cache-migration/plot.py` (+54 -0) ➕ `bench/results/2026-10-11-yarn-main-refresh/1698-cuda-256k-to-1m.json` (+3950 -0) ➕ `bench/results/2026-10-11-yarn-main-refresh/1698-cuda-4k.json` (+2135 -0) ➕ `bench/results/2026-10-11-yarn-main-refresh/README.md` (+63 -0) ➕ `bench/results/2026-10-11-yarn-main-refresh/hip-build-status.json` (+29 -0) _...and 21 more files_ </details> ### 📄 Description Adds an explicit saved-session conversion from ordinary RoPE to approximate YaRN 4x history, including computed MTP draft keys. Restored migrated prefixes can continue into a larger context without recomputing the whole prefix. Migration provenance survives save/reload. Refreshed onto current main (`61b3fb5d`), with memory admission using the current host/cgroup sampler. Defaults stay unchanged. The operation requires `--experimental-rope-yarn4-cache` and `STRATA_ROPE_TABLE=1` on source and target; it supports text-only, single-GPU FP16 KV with batching and automatic conversation caching off. Quantized KV is rejected. SYCL's separate entry point does not expose migration. Use the existing `/slots/0?action=migrate_yarn4` endpoint with `filename` and the source engine's allocation `source_context`. Destination overwrite, duplicate conversion, and unsupported fingerprints are refused. [Usage and limits](https://github.com/CC-David-CC/Strata-a5500/blob/a79ad26920f873431ee3ef800e4105877921d96c/docs/ROPE_CACHE_MIGRATION.md). Fresh validation: CUDA native and slot tests, 4K migration, and a 256K source continued through full 512K and 1M sequences on RTX PRO 6000 Blackwell / ISTA IQ3_XXS / FP16 KV / MTP 4. All measured retrieval tasks recalled their three markers. Migration is approximate: at 1M, 32 forced positions had mean KL 0.005081 and 31/32 top-token agreement versus fresh YaRN. These narrow measurements do not establish broad quality parity or a general speed win. Refreshed HIP gfx1012 builds and four native tests passed; SYCL builds and the host migration test passed. Earlier HIP/XTX runtime measurements remain separately dated; there is no claim of fresh XTX runtime validation here. [Fresh results, exact source/binary identity, individual measurements and reproduction](https://github.com/CC-David-CC/Strata-a5500/blob/a79ad26920f873431ee3ef800e4105877921d96c/bench/results/2026-10-11-yarn-main-refresh/README.md). Machine time for the long CUDA campaign was 1186.863 seconds; setup/engineering time is excluded. --- <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:35 +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#3617
No description provided.