peal.sparse_dictionaries.ra_sae_decomposition.RASAEDecompositionConfig¶
- class peal.sparse_dictionaries.ra_sae_decomposition.RASAEDecompositionConfig[source]¶
Bases:
SparseDictionaryConfigConfiguration for a pretrained RA-SAE decomposition.
Methods
Attributes
Delete the 4.4 GB raw checkpoint once the fused cache is written.
Backbone whose tokens this dictionary decomposes.
Name of the fused-tensor cache written next to the raw checkpoint.
Writable scratch directory.
Activation threshold of the BatchTopK eval branch.
- encoder_model: str = 'dino_v2_base_reg'¶
Backbone whose tokens this dictionary decomposes. Kept for the record and checked against the generator’s encoder tag by consumers that edit z_sem.
- ckpt_url: str = 'https://huggingface.co/matybohacek/RA-SAE-DINOv2-32k/resolve/main/RA-SAE-DINOv2-32k.pth'¶
- local_dir: str = '/tmp/ra_sae_weights'¶
Writable scratch directory. The GPU nodes mount ~/.cache read-only, so this must not default anywhere under it.
- fused_filename: str = 'ra_sae_dinov2_32k_fused.pt'¶
Name of the fused-tensor cache written next to the raw checkpoint.
- running_threshold: float | None = None¶
Activation threshold of the BatchTopK eval branch. None -> read from the published config.json (0.829 for this checkpoint).