Instructions to use google/gemma-scope-2-4b-it with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- SAELens
How to use google/gemma-scope-2-4b-it with SAELens:
# pip install sae-lens from sae_lens import SAE sae, cfg_dict, sparsity = SAE.from_pretrained( release = "RELEASE_ID", # e.g., "gpt2-small-res-jb". See other options in https://github.com/jbloomAus/SAELens/blob/main/sae_lens/pretrained_saes.yaml sae_id = "SAE_ID", # e.g., "blocks.8.hook_resid_pre". Won't always be a hook point ) - Notebooks
- Google Colab
- Kaggle
| { | |
| "hf_hook_point_in": "model.layers.12.pre_feedforward_layernorm.output", | |
| "hf_hook_point_out": "model.layers.12.post_feedforward_layernorm.output", | |
| "width": 262144, | |
| "model_name": "google/gemma-3-4b-it", | |
| "architecture": "jump_relu", | |
| "l0": 20, | |
| "affine_connection": false, | |
| "type": "transcoder" | |
| } |