Views
No views yet
aniket-ward-stage-bresults_b.md, results_b_behavioral.md1checkpoints/
2 txc__resid_L10__k16__s42.pt # B1 Sonnet primary winner (s42)
3 txc__resid_L10__k16__s7.pt # multi-seed verification
4 txc__resid_L10__k16__s11.pt
5 txc__resid_L10__k16__s23.pt
6 txc_h13__resid_L10__k16__s42.pt # Han matryoshka × MD contrastive
7 txc_h13__resid_L10__k16__s7.pt
8 txc_h13__resid_L10__k16__s11.pt
9 txc_h13__resid_L10__k16__s23.pt
10 txc_h8__resid_L10__k16__s42.pt # Han multi-distance contrastive
11 topk_sae__ln1_L10__k64__s42.pt # best non-TXC SAE under Sonnet
12 stacked_sae__resid_L10__k16__s42.pt
13 tsae__resid_L10__k32__s42.pt # Han's TSAE (TopK variant)
14 tsae_paper__resid_L10__k32__s42.pt # Bhalla 2025 paper-faithful
15
16architectures.py # build_arch / arch_forward dispatch
17cell_id.py # cell-id parser/serializer
18config.yaml # arch_kwargs + training config1import torch, yaml
2from huggingface_hub import hf_hub_download
3from architectures import build_arch # also bundled in this repo
4from cell_id import Cell
5
6cell_id = "txc__resid_L10__k16__s42"
7ckpt_path = hf_hub_download(
8 repo_id="aniketdesh/ward-stage-b-dictionaries",
9 filename=f"checkpoints/{cell_id}.pt",
10)
11config_path = hf_hub_download(
12 repo_id="aniketdesh/ward-stage-b-dictionaries",
13 filename="config.yaml",
14)
15cfg = yaml.safe_load(open(config_path))
16
17cell = Cell.from_id(cell_id)
18arch_kw = cfg["txc"].get("arch_kwargs", {}).get(cell.arch, {})
19model = build_arch(
20 arch=cell.arch,
21 d_in=cfg["txc"]["d_model"],
22 d_sae=cfg["txc"]["d_sae"],
23 T=cfg["txc"]["T"],
24 k=cell.k_per_position,
25 **arch_kw,
26)
27state = torch.load(ckpt_path, map_location="cpu", weights_only=False)
28model.load_state_dict(state["state_dict"])
29model.eval()<arch>__<hookpoint>__k<k>__s<seed>txc (TemporalCrosscoder), txc_h13 / txc_h8 (Han's
contrastive variants), topk_sae (per-position TopK), stacked_sae
(matryoshka H/L recon), tsae (Han's TemporalSAE w/ TopK),
tsae_paper (Bhalla 2025 ReLU+L1).resid_L10 (Ward's layer-10 residual), attn_L10,
ln1_L10 (pre-LN, captured via forward-pre-hook).features/<cell_id>.npz:1import numpy as np
2z = np.load("features/txc__resid_L10__k16__s42.npz", allow_pickle=True)
3top_features = z["top_features"] # (k_for_steering,) ranked by D+/D-
4decoder_pos0 = z["decoder_at_pos0"] # (k, d_model) — single-T-slot direction
5decoder_union = z["decoder_union"] # (k, d_model) — averaged across T slotstxc__resid_L10__k16__s42) the winning steering
direction is decoder_at_pos0[idx] where top_features[idx] == 14621.results_b_behavioral.md. Treat these
checkpoints as research artifacts for studying the linguistic surface
form of induced backtracking, not as a tool for boosting reasoning
performance.