Instructions to use google/gemma-scope-2b-pt-res with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- SAELens
How to use google/gemma-scope-2b-pt-res 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
Commit History
-
add experimental embedding SAEs (#7)
Verified signature- add embedding sae parameters (4cdad7faa506b5602d2b3cbb79af3d16c28b6214) - fold in scaling by sqrt(d_model) into params (9ff4e7b3ef5f24a9f7777c1732ac0bde3523a46f)0127b34