3-level Matryoshka BatchTopK SAE (dict=21504, k=48, groups=[1024,4096,16384]) trained on the output of a CayleySAE (mlp_in_post_sae, layer 6) of vanilla-loss-parity-v2. Part of a matched triplet comparing cayley-output / cayley-input / vanilla activations.
1from dictionary_learning.trainers.matryoshka_batch_top_k import MatryoshkaBatchTopKSAE
2sae = MatryoshkaBatchTopKSAE.from_pretrained('ae.pt', device='cuda')
3# encode: sae(x) returns (recon, f, loss_dict)
4# decode: sae.decode(f)
Part of a research project comparing Matryoshka SAEs and CayleySAEs on hierarchy properties.
See
evals/msae/ in
sparse-nanogpt-private.