Run this model with HF Jobs
Run google/gemma-scope-9b-pt-res on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/google/gemma-scope-9b-pt-res. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/google/gemma-scope-9b-pt-res on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use google/gemma-scope-9b-pt-res with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- SAELens
How to use google/gemma-scope-9b-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
Download README.md from google/gemma-scope-9b-pt-res: direct link, hf CLI and curl.
- Browser
- Download file 1.36 kB
-
https://huggingface.co/google/gemma-scope-9b-pt-res/resolve/refs%2Fpr%2F7/README.md
- Command line
-
hf download hf://google/gemma-scope-9b-pt-res@refs/pr/7/README.md
-
curl -L -o README.md https://huggingface.co/google/gemma-scope-9b-pt-res/resolve/refs%2Fpr%2F7/README.md
license: cc-by-4.0
library_name: saelens
1. Gemma Scope
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:
2. What Is gemma-scope-9b-pt-res?
gemma-scope-: See 1.9b-pt-: These SAEs were trained on Gemma v2 9B base model.res: These SAEs were trained on the model's residual stream.- We include experimental SAEs trained on token embeddings in the ./embedding folder.
3. How can I use these SAEs straight away?
from sae_lens import SAE # pip install sae-lens
sae, cfg_dict, sparsity = SAE.from_pretrained(
release = "gemma-scope-9b-pt-res-canonical",
sae_id = "layer_0/width_16k/canonical",
)
See https://github.com/jbloomAus/SAELens for details on this library.
4. Point of Contact
Point of contact: Arthur Conmy
Contact by email:
''.join(list('moc.elgoog@ymnoc')[::-1])
HuggingFace account: https://huggingface.co/ArthurConmyGDM