mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1698] [CLOSED] feat: experimental RoPE to YaRN 4x saved-cache migration #3617
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3617
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
7991159feat: opt-in saved RoPE cache migration to YaRN 4xea8e5eddocs: report CUDA and HIP cache migration validationd11e0fedocs: normalize generated SVG formattingbef1d5dfeat: support MTP cache migration and validate continuation through 1Mf685ec3Merge current main while preserving experimental validation paths24dc1d6fix: use current memory-limit-aware admission for YaRN migrationa79ad26docs: record current-main YaRN migration and backend checksecde3edMerge 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-cacheandSTRATA_ROPE_TABLE=1on 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_yarn4endpoint withfilenameand the source engine's allocationsource_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.