Instructions to use suchitg/testrun-saes with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- SAELens
How to use suchitg/testrun-saes 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
File size: 294 Bytes
c18844a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ---
library_name: saelens
---
# SAEs for use with the SAELens library
This repository contains the following SAEs:
- gen_000/blocks.4.hook_resid_post
Load these SAEs using SAELens as below:
```python
from sae_lens import SAE
sae = SAE.from_pretrained("suchitg/testrun-saes", "<sae_id>")
``` |