⚠️ WARNING: We have small labelling issues, and some SAEs appear twice in this repo.
19
215 commits
2 linked in READMEs
updated Jan 19, 2025
⚠️ WARNING: We have small labelling issues, and some SAEs appear twice in this repo.
Gemma Scope is a comprehensive, open suite of sparse autoencoders for Gemma 2 9B and 2B. Sparse Autoencoders are a "microscope" of sorts that can help us break down a model’s internal activations into the underlying concepts, just as biologists use microscopes to study the individual cells of plants and animals.
See our landing page for details on the whole suite. This is a specific set of SAEs:
gemma-scope-2b-pt-res?gemma-scope-: See 1.2b-pt-: These SAEs were trained on Gemma v2 2B base model.res: These SAEs were trained on the model's residual stream.https://huggingface.co/google/gemma-scope-2b-pt-res/tree/main/layer_20/width_16k/average_l0_71
See also 4.:
from sae_lens import SAE # pip install sae-lens
sae, cfg_dict, sparsity = SAE.from_pretrained(
release = "gemma-scope-2b-pt-res-canonical",
sae_id = "layer_0/width_16k/canonical",
)
This uses canonical SAEs, those with average L0 closest to 100, which we expect to be reasonably useful for most tasks. The exact defined here is determined by this file in the SAELens repo, snappshotted on 22nd October 2024: https://github.com/jbloomAus/SAELens/blob/a470460/sae_lens/pretrained_saes.yaml#L1667
See https://github.com/jbloomAus/SAELens for more details on this library.
Point of contact: Arthur Conmy
Contact by email:
''.join(list('moc.elgoog@ymnoc')[::-1])
HuggingFace account: https://huggingface.co/ArthurConmyGDM
⚠️ WARNING: We have small labelling issues, and some SAEs appear twice in this repo.
19
215 commits
2 linked in READMEs
updated Jan 19, 2025
⚠️ WARNING: We have small labelling issues, and some SAEs appear twice in this repo.
Gemma Scope is a comprehensive, open suite of sparse autoencoders for Gemma 2 9B and 2B. Sparse Autoencoders are a "microscope" of sorts that can help us break down a model’s internal activations into the underlying concepts, just as biologists use microscopes to study the individual cells of plants and animals.
See our landing page for details on the whole suite. This is a specific set of SAEs:
gemma-scope-2b-pt-res?gemma-scope-: See 1.2b-pt-: These SAEs were trained on Gemma v2 2B base model.res: These SAEs were trained on the model's residual stream.https://huggingface.co/google/gemma-scope-2b-pt-res/tree/main/layer_20/width_16k/average_l0_71
See also 4.:
from sae_lens import SAE # pip install sae-lens
sae, cfg_dict, sparsity = SAE.from_pretrained(
release = "gemma-scope-2b-pt-res-canonical",
sae_id = "layer_0/width_16k/canonical",
)
This uses canonical SAEs, those with average L0 closest to 100, which we expect to be reasonably useful for most tasks. The exact defined here is determined by this file in the SAELens repo, snappshotted on 22nd October 2024: https://github.com/jbloomAus/SAELens/blob/a470460/sae_lens/pretrained_saes.yaml#L1667
See https://github.com/jbloomAus/SAELens for more details on this library.
Point of contact: Arthur Conmy
Contact by email:
''.join(list('moc.elgoog@ymnoc')[::-1])
HuggingFace account: https://huggingface.co/ArthurConmyGDM