Instructions to use google/gemma-scope-2-27b-it with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- SAELens
How to use google/gemma-scope-2-27b-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
Add files using upload-large-folder tool
Browse files- crosscoder/layer_16_31_40_53_width_262k_l0_big/config.json +5 -4
- crosscoder/layer_16_31_40_53_width_262k_l0_medium/config.json +5 -4
- crosscoder/layer_16_31_40_53_width_524k_l0_big/config.json +5 -4
- crosscoder/layer_16_31_40_53_width_524k_l0_medium/config.json +5 -4
- crosscoder/layer_16_31_40_53_width_65k_l0_big/config.json +5 -4
- crosscoder/layer_16_31_40_53_width_65k_l0_medium/config.json +5 -4
crosscoder/layer_16_31_40_53_width_262k_l0_big/config.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
| 1 |
{
|
| 2 |
-
"hf_hook_point_in": "model.layers.{16
|
| 3 |
-
"hf_hook_point_out": "model.layers.{16
|
| 4 |
"width": 262144,
|
| 5 |
-
"model_name": "gemma-
|
| 6 |
"architecture": "jump_relu",
|
| 7 |
"l0": 150,
|
| 8 |
-
"affine_connection": false
|
|
|
|
| 9 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"hf_hook_point_in": "model.layers.{16,31,40,53}.output",
|
| 3 |
+
"hf_hook_point_out": "model.layers.{16,31,40,53}.output",
|
| 4 |
"width": 262144,
|
| 5 |
+
"model_name": "google/gemma-3-27b-it",
|
| 6 |
"architecture": "jump_relu",
|
| 7 |
"l0": 150,
|
| 8 |
+
"affine_connection": false,
|
| 9 |
+
"type": "crosscoder"
|
| 10 |
}
|
crosscoder/layer_16_31_40_53_width_262k_l0_medium/config.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
| 1 |
{
|
| 2 |
-
"hf_hook_point_in": "model.layers.{16
|
| 3 |
-
"hf_hook_point_out": "model.layers.{16
|
| 4 |
"width": 262144,
|
| 5 |
-
"model_name": "gemma-
|
| 6 |
"architecture": "jump_relu",
|
| 7 |
"l0": 50,
|
| 8 |
-
"affine_connection": false
|
|
|
|
| 9 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"hf_hook_point_in": "model.layers.{16,31,40,53}.output",
|
| 3 |
+
"hf_hook_point_out": "model.layers.{16,31,40,53}.output",
|
| 4 |
"width": 262144,
|
| 5 |
+
"model_name": "google/gemma-3-27b-it",
|
| 6 |
"architecture": "jump_relu",
|
| 7 |
"l0": 50,
|
| 8 |
+
"affine_connection": false,
|
| 9 |
+
"type": "crosscoder"
|
| 10 |
}
|
crosscoder/layer_16_31_40_53_width_524k_l0_big/config.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
| 1 |
{
|
| 2 |
-
"hf_hook_point_in": "model.layers.{16
|
| 3 |
-
"hf_hook_point_out": "model.layers.{16
|
| 4 |
"width": 524288,
|
| 5 |
-
"model_name": "gemma-
|
| 6 |
"architecture": "jump_relu",
|
| 7 |
"l0": 150,
|
| 8 |
-
"affine_connection": false
|
|
|
|
| 9 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"hf_hook_point_in": "model.layers.{16,31,40,53}.output",
|
| 3 |
+
"hf_hook_point_out": "model.layers.{16,31,40,53}.output",
|
| 4 |
"width": 524288,
|
| 5 |
+
"model_name": "google/gemma-3-27b-it",
|
| 6 |
"architecture": "jump_relu",
|
| 7 |
"l0": 150,
|
| 8 |
+
"affine_connection": false,
|
| 9 |
+
"type": "crosscoder"
|
| 10 |
}
|
crosscoder/layer_16_31_40_53_width_524k_l0_medium/config.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
| 1 |
{
|
| 2 |
-
"hf_hook_point_in": "model.layers.{16
|
| 3 |
-
"hf_hook_point_out": "model.layers.{16
|
| 4 |
"width": 524288,
|
| 5 |
-
"model_name": "gemma-
|
| 6 |
"architecture": "jump_relu",
|
| 7 |
"l0": 50,
|
| 8 |
-
"affine_connection": false
|
|
|
|
| 9 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"hf_hook_point_in": "model.layers.{16,31,40,53}.output",
|
| 3 |
+
"hf_hook_point_out": "model.layers.{16,31,40,53}.output",
|
| 4 |
"width": 524288,
|
| 5 |
+
"model_name": "google/gemma-3-27b-it",
|
| 6 |
"architecture": "jump_relu",
|
| 7 |
"l0": 50,
|
| 8 |
+
"affine_connection": false,
|
| 9 |
+
"type": "crosscoder"
|
| 10 |
}
|
crosscoder/layer_16_31_40_53_width_65k_l0_big/config.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
| 1 |
{
|
| 2 |
-
"hf_hook_point_in": "model.layers.{16
|
| 3 |
-
"hf_hook_point_out": "model.layers.{16
|
| 4 |
"width": 65536,
|
| 5 |
-
"model_name": "gemma-
|
| 6 |
"architecture": "jump_relu",
|
| 7 |
"l0": 150,
|
| 8 |
-
"affine_connection": false
|
|
|
|
| 9 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"hf_hook_point_in": "model.layers.{16,31,40,53}.output",
|
| 3 |
+
"hf_hook_point_out": "model.layers.{16,31,40,53}.output",
|
| 4 |
"width": 65536,
|
| 5 |
+
"model_name": "google/gemma-3-27b-it",
|
| 6 |
"architecture": "jump_relu",
|
| 7 |
"l0": 150,
|
| 8 |
+
"affine_connection": false,
|
| 9 |
+
"type": "crosscoder"
|
| 10 |
}
|
crosscoder/layer_16_31_40_53_width_65k_l0_medium/config.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
| 1 |
{
|
| 2 |
-
"hf_hook_point_in": "model.layers.{16
|
| 3 |
-
"hf_hook_point_out": "model.layers.{16
|
| 4 |
"width": 65536,
|
| 5 |
-
"model_name": "gemma-
|
| 6 |
"architecture": "jump_relu",
|
| 7 |
"l0": 50,
|
| 8 |
-
"affine_connection": false
|
|
|
|
| 9 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"hf_hook_point_in": "model.layers.{16,31,40,53}.output",
|
| 3 |
+
"hf_hook_point_out": "model.layers.{16,31,40,53}.output",
|
| 4 |
"width": 65536,
|
| 5 |
+
"model_name": "google/gemma-3-27b-it",
|
| 6 |
"architecture": "jump_relu",
|
| 7 |
"l0": 50,
|
| 8 |
+
"affine_connection": false,
|
| 9 |
+
"type": "crosscoder"
|
| 10 |
}
|