This is a "quick and dirty" SAE release to unblock researchers. These SAEs have not been extensively studied or characterized.
However, I will try to update the readme here when I add SAEs here to reflect what I know about them.
These SAEs were trained with
SAE Lens and the library version is stored in the cfg.json.
All training hyperparameters are specified in cfg.json.
They are loadable using SAE via a few methods. The preferred method is to use the following:
EDIT: This chunk is out of date. Please see SAE Lens tutorials for up to date syntax for loading pretrained SAEs.
1import torch
2from transformer_lens import HookedTransformer
3from sae_lens import SparseAutoencoder, ActivationsStore
4
5torch.set_grad_enabled(False)
6model = HookedTransformer.from_pretrained("gemma-2b")
7sparse_autoencoder = SparseAutoencoder.from_pretrained(
8 "gemma-2b-res-jb", # to see the list of available releases, go to: https://github.com/jbloomAus/SAELens/blob/main/sae_lens/pretrained_saes.yaml
9 "blocks.0.hook_resid_post" # change this to another specific SAE ID in the release if desired.
10)
11activation_store = ActivationsStore.from_config(model, sparse_autoencoder.cfg)