0
stars
3
commits
2
linked in READMEs
May 18, 2026
updated
The training and evaluation corpus for srt-nla-av-v1.
Each example is a (hidden activation, source text) pair where the activation
is the last valid token's L20 hidden state of a Qwen2.5-7B continuation
of length 64.
| Backbone | Qwen/Qwen2.5-7B |
| Layer | 20 |
| Token position | Last valid token (attention-mask determined) |
| Sequence length | 64 tokens |
| Dtype | bf16 (activation), str (text) |
| Activation dim | 3584 |
| N targets | 30,000 (seed=1) |
| Pool size (paper anchors) | 2,000 |
Anisotropy ‖μ‖ | ≈ 55.18 |
| File | Size | Notes |
|---|---|---|
targets_q7b_L20_seq64_30k_seed1.pt | ~26 GB | Full (activations, texts, attn_masks). Use with weights_only=False. |
targets_q7b_L20_seq64_30k_seed1_pool.pt | ~155 MB | Just the (last-token) pool tensor — sufficient for centered_eval / oracle_ceiling. |
data_card.md | — | This file. |
obj = torch.load(path, weights_only=False)
# obj["activations"]: list[Tensor(seq_len, 3584)] of len N
# obj["texts"]: list[str] of len N
# obj["attn_masks"]: list[Tensor(seq_len,)] of len N
# obj["meta"]: {"backbone": "Qwen/Qwen2.5-7B", "layer": 20, "seed": 1, ...}
The "pool" file contains only torch.stack([a[last_valid_idx] for a in activations]),
shape (N, 3584), which is what centered_eval.py and oracle_ceiling.py
actually consume.
python scripts/sample_targets.py \
--backbone Qwen/Qwen2.5-7B \
--layer 20 --seq-len 64 \
--n-targets 30000 --seed 1 \
--out artifacts/nla/targets_q7b_L20_seq64_30k_seed1.pt
Critical: scripts/sample_targets.py was patched on 2026-05-16
(commit 902b746) to guard against Qwen2.5's bos_token_id == eos_token_id == 151643, which previously caused every target to collapse
to a single constant activation. The targets file above was regenerated
after that fix. Validate any newly-produced targets file with
python -m srt.nla.targets_check <path> (asserts targets.std(0).mean() > 0.1).
Computed on a 200-target held-out slice (see artifacts/nla/oracle_ceiling_30k_v2.json):
| anchor | raw fve_nrm | centered |
|---|---|---|
| replay (re-encode) | 0.973 | 0.968 |
| paraphrase best-of-8 (Qwen) | 0.848 | 0.799 ← ρ_norm = 1 |
| NN in-pool (pool=200) | 0.750 | 0.663 |
| NN-retrieval (pool=2000) | 0.795 | 0.714 |
| random floor (off-diagonal) | 0.622 | 0.510 ← ρ_norm = 0 |
See srt-nla-av-v1 model card.
3 commits
0
stars
3
commits
2
linked in READMEs
May 18, 2026
updated
The training and evaluation corpus for srt-nla-av-v1.
Each example is a (hidden activation, source text) pair where the activation
is the last valid token's L20 hidden state of a Qwen2.5-7B continuation
of length 64.
| Backbone | Qwen/Qwen2.5-7B |
| Layer | 20 |
| Token position | Last valid token (attention-mask determined) |
| Sequence length | 64 tokens |
| Dtype | bf16 (activation), str (text) |
| Activation dim | 3584 |
| N targets | 30,000 (seed=1) |
| Pool size (paper anchors) | 2,000 |
Anisotropy ‖μ‖ | ≈ 55.18 |
| File | Size | Notes |
|---|---|---|
targets_q7b_L20_seq64_30k_seed1.pt | ~26 GB | Full (activations, texts, attn_masks). Use with weights_only=False. |
targets_q7b_L20_seq64_30k_seed1_pool.pt | ~155 MB | Just the (last-token) pool tensor — sufficient for centered_eval / oracle_ceiling. |
data_card.md | — | This file. |
obj = torch.load(path, weights_only=False)
# obj["activations"]: list[Tensor(seq_len, 3584)] of len N
# obj["texts"]: list[str] of len N
# obj["attn_masks"]: list[Tensor(seq_len,)] of len N
# obj["meta"]: {"backbone": "Qwen/Qwen2.5-7B", "layer": 20, "seed": 1, ...}
The "pool" file contains only torch.stack([a[last_valid_idx] for a in activations]),
shape (N, 3584), which is what centered_eval.py and oracle_ceiling.py
actually consume.
python scripts/sample_targets.py \
--backbone Qwen/Qwen2.5-7B \
--layer 20 --seq-len 64 \
--n-targets 30000 --seed 1 \
--out artifacts/nla/targets_q7b_L20_seq64_30k_seed1.pt
Critical: scripts/sample_targets.py was patched on 2026-05-16
(commit 902b746) to guard against Qwen2.5's bos_token_id == eos_token_id == 151643, which previously caused every target to collapse
to a single constant activation. The targets file above was regenerated
after that fix. Validate any newly-produced targets file with
python -m srt.nla.targets_check <path> (asserts targets.std(0).mean() > 0.1).
Computed on a 200-target held-out slice (see artifacts/nla/oracle_ceiling_30k_v2.json):
| anchor | raw fve_nrm | centered |
|---|---|---|
| replay (re-encode) | 0.973 | 0.968 |
| paraphrase best-of-8 (Qwen) | 0.848 | 0.799 ← ρ_norm = 1 |
| NN in-pool (pool=200) | 0.750 | 0.663 |
| NN-retrieval (pool=2000) | 0.795 | 0.714 |
| random floor (off-diagonal) | 0.622 | 0.510 ← ρ_norm = 0 |
See srt-nla-av-v1 model card.
3 commits