Downloads · 30 days
0
jbloom/Gemma-2b-Residual-Stream-SAEs
Gemma-2b-Residual-Stream-SAEs is a machine learning model from jbloom. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
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…
Downloads · 30 days
0
Access
Public
Updated Jul 16, 2024
Repo size
1.3 GB
Likes
12
Public
Click a slice to open those files.
.safetensors1.3 GB · 100%
From the Hugging Face model README
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.
import torch
from transformer_lens import HookedTransformer
from sae_lens import SparseAutoencoder, ActivationsStore
torch.set_grad_enabled(False)
model = HookedTransformer.from_pretrained("gemma-2b")
sparse_autoencoder = SparseAutoencoder.from_pretrained(
"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
"blocks.0.hook_resid_post" # change this to another specific SAE ID in the release if desired.
)
activation_store = ActivationsStore.from_config(model, sparse_autoencoder.cfg)
Stats:
Notes:
Stats:
Notes:
Stats:
Notes: