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:
1from sae_lens import SAE # pip install sae-lens
2
3sae, cfg_dict, sparsity = SAE.from_pretrained(
4 release = "gemma-scope-2b-pt-mlp-canonical",
5 sae_id = "layer_0/width_16k/canonical",
6)
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#L2635