sae-lens 6.6.2__py3-none-any.whl → 6.6.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sae_lens/__init__.py +1 -1
- sae_lens/loading/pretrained_sae_loaders.py +16 -5
- {sae_lens-6.6.2.dist-info → sae_lens-6.6.3.dist-info}/METADATA +1 -1
- {sae_lens-6.6.2.dist-info → sae_lens-6.6.3.dist-info}/RECORD +6 -6
- {sae_lens-6.6.2.dist-info → sae_lens-6.6.3.dist-info}/LICENSE +0 -0
- {sae_lens-6.6.2.dist-info → sae_lens-6.6.3.dist-info}/WHEEL +0 -0
sae_lens/__init__.py
CHANGED
|
@@ -1254,11 +1254,22 @@ def get_mwhanna_transcoder_config_from_hf(
|
|
|
1254
1254
|
wandb_config_path = hf_hub_download(
|
|
1255
1255
|
repo_id, "wandb-config.yaml", force_download=force_download
|
|
1256
1256
|
)
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1257
|
+
try:
|
|
1258
|
+
base_config_path = hf_hub_download(
|
|
1259
|
+
repo_id, "config.yaml", force_download=force_download
|
|
1260
|
+
)
|
|
1261
|
+
with open(base_config_path) as f:
|
|
1262
|
+
base_cfg_info: dict[str, Any] = yaml.safe_load(f)
|
|
1263
|
+
except EntryNotFoundError:
|
|
1264
|
+
# the 14b transcoders don't have a config file for some reason, so just pull the model name from the repo_id
|
|
1265
|
+
qwen_3_size_match = re.search(r"qwen3-(\d+(?:\.\d+)?)b", repo_id)
|
|
1266
|
+
if not qwen_3_size_match:
|
|
1267
|
+
raise ValueError(f"Could not extract Qwen3 size from repo_id: {repo_id}")
|
|
1268
|
+
qwen_3_size = qwen_3_size_match.group(1)
|
|
1269
|
+
base_cfg_info = {
|
|
1270
|
+
"model_name": f"Qwen/Qwen3-{qwen_3_size}B",
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1262
1273
|
with open(wandb_config_path) as f:
|
|
1263
1274
|
wandb_cfg_info: dict[str, Any] = yaml.safe_load(f)
|
|
1264
1275
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
sae_lens/__init__.py,sha256=
|
|
1
|
+
sae_lens/__init__.py,sha256=PhaMB_ijs_Y7kwPlEyHpENZ8mPdEYouVbG9pFc297DI,3588
|
|
2
2
|
sae_lens/analysis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
sae_lens/analysis/hooked_sae_transformer.py,sha256=vRu6JseH1lZaEeILD5bEkQEQ1wYHHDcxD-f2olKmE9Y,14275
|
|
4
4
|
sae_lens/analysis/neuronpedia_integration.py,sha256=MrENqc81Mc2SMbxGjbwHzpkGUCAFKSf0i4EdaUF2Oj4,18707
|
|
@@ -9,7 +9,7 @@ sae_lens/evals.py,sha256=2YHR_IBhXdjktpmoVtvvNrqUZIx5ok7yERuiFY40HHY,39186
|
|
|
9
9
|
sae_lens/llm_sae_training_runner.py,sha256=exxNX_OEhdiUrlgmBP9bjX9DOf0HUcNQGO4unKeDjKM,13713
|
|
10
10
|
sae_lens/load_model.py,sha256=C8AMykctj6H7tz_xRwB06-EXj6TfW64PtSJZR5Jxn1Y,8649
|
|
11
11
|
sae_lens/loading/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
|
-
sae_lens/loading/pretrained_sae_loaders.py,sha256=
|
|
12
|
+
sae_lens/loading/pretrained_sae_loaders.py,sha256=iIcHM24qfb45JOGEmUn7jr5E9vl8L2FYSlArsobCwlI,44388
|
|
13
13
|
sae_lens/loading/pretrained_saes_directory.py,sha256=4Vn-Jex6SveD7EbxcSOBv8cx1gkPfUMLU1QOP-ww1ZE,3752
|
|
14
14
|
sae_lens/pretokenize_runner.py,sha256=w0f6SfZLAxbp5eAAKnet8RqUB_DKofZ9RGsoJwFnYbA,7058
|
|
15
15
|
sae_lens/pretrained_saes.yaml,sha256=O_FwoOe7fU9_WLEOnMk1IWXRxD4nwzf1tCfbof1r0D0,598578
|
|
@@ -33,7 +33,7 @@ sae_lens/training/types.py,sha256=qSjmGzXf3MLalygG0psnVjmhX_mpLmL47MQtZfe7qxg,81
|
|
|
33
33
|
sae_lens/training/upload_saes_to_huggingface.py,sha256=r_WzI1zLtGZ5TzAxuG3xa_8T09j3zXJrWd_vzPsPGkQ,4469
|
|
34
34
|
sae_lens/tutorial/tsea.py,sha256=fd1am_XXsf2KMbByDapJo-2qlxduKaa62Z2qcQZ3QKU,18145
|
|
35
35
|
sae_lens/util.py,sha256=mCwLAilGMVo8Scm7CIsCafU7GsfmBvCcjwmloI4Ly7Y,1718
|
|
36
|
-
sae_lens-6.6.
|
|
37
|
-
sae_lens-6.6.
|
|
38
|
-
sae_lens-6.6.
|
|
39
|
-
sae_lens-6.6.
|
|
36
|
+
sae_lens-6.6.3.dist-info/LICENSE,sha256=DW6e-hDosiu4CfW0-imI57sV1I5f9UEslpviNQcOAKs,1069
|
|
37
|
+
sae_lens-6.6.3.dist-info/METADATA,sha256=c0naO-z2PfIEeJY8f1YbC58Dscj2nl8KfyJVhA0sk0A,5303
|
|
38
|
+
sae_lens-6.6.3.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
39
|
+
sae_lens-6.6.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|