Views
No views yet
meta-llama/Llama-3.1-8B-Instructcontext_s100, orig_seq_len 8733, article 8397 tok,
frozen prefix 335 = cities system prompt)repeat (self-study, article-prefill).pt)hak_t{T}_k{key}_s{sel}_b{budget}.pt| axis | values | meaning |
|---|---|---|
t{T} | 32, 64, 128, 256, 512, 1024 | KV token budget per head |
k{key} | unrotated, rotated | stored cartridge key basis (C1): unrotated = de-rotated keys (full rope-free); rotated = keys kept RoPE-rotated |
s{sel} | target, test | key selection basis |
b{budget} | uniform, nonuniform | per-head budget: uniform (equal) or nonuniform (task-agnostic optimized allocation) |
unrotated for all 48 caches — so the unrotated/rotated
groups differ only in the stored key basis. Neither group is "Strategy B" (which uses
rotated queries and keys).1import torch
2sd = torch.load("hak_t256_kunrotated_starget_bnonuniform.pt", map_location="cpu")entrypoints.build_am_cache (repeat queries + --key/query/select-basis).entrypoints.validate_ropefree_am --query-scheme repeat.rope_free_am_initialization, experiment group 0712_ropefree_am_sweep.unrotated·test·nonuniform at t512
(recon mean_rel 1.924); best overall in the grid is
rotated·target·nonuniform·t256 (0.857).repeat/far-query, high-compression regime;
relative axis comparisons are the signal.