---
title: gemma-scope-9b-pt-att
canonical_url: "https://www.modelscope.cn/models/LLM-Research/gemma-scope-9b-pt-att"
md_url: "https://www.modelscope.cn/models/LLM-Research/gemma-scope-9b-pt-att.md"
repository: LLM-Research/gemma-scope-9b-pt-att
last_updated: 2024-09-18
license: cc-by-4.0
pipeline_tag: text-generation
tasks:
  - text-generation
library_name:
  - pytorch
frameworks:
  - pytorch
downloads: 3176
stars: 0
---

# gemma-scope-9b-pt-att

> gemma-scope-9b-pt-att - LLM-Research 在 ModelScope 开源的模型。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…

LLM-Research/gemma-scope-9b-pt-att 是 ModelScope 魔搭社区上的text-generation模型，采用 cc-by-4.0 许可。

- **Repository**: LLM-Research/gemma-scope-9b-pt-att
- **License**: cc-by-4.0
- **Tasks**: text-generation
- **Downloads**: 3176
- **Stars**: 0
- **Last updated**: 2024-09-18

Source: https://www.modelscope.cn/models/LLM-Research/gemma-scope-9b-pt-att

---

# 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](https://huggingface.co/google/gemma-scope) for details on the whole suite. This is a specific set of SAEs:

# 2. What Is `gemma-scope-9b-pt-att`?

- `gemma-scope-`: See 1.
- `9b-pt-`: These SAEs were trained on Gemma v2 9B base model.
- `att`: These SAEs were trained on the model's attention layer output before the linear projection.

# 3. How can I use these SAEs straight away?

```python
from sae_lens import SAE  # pip install sae-lens

sae, cfg_dict, sparsity = SAE.from_pretrained(
    release = "gemma-scope-9b-pt-att-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:

```python
''.join(list('moc.elgoog@ymnoc')[::-1])
```

HuggingFace account:
https://huggingface.co/ArthurConmyGDM

# 5. Citation

Paper: https://arxiv.org/abs/2408.05147
