sae-lens 6.22.1__py3-none-any.whl → 6.22.2__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/training/activations_store.py +4 -4
- {sae_lens-6.22.1.dist-info → sae_lens-6.22.2.dist-info}/METADATA +1 -1
- {sae_lens-6.22.1.dist-info → sae_lens-6.22.2.dist-info}/RECORD +6 -6
- {sae_lens-6.22.1.dist-info → sae_lens-6.22.2.dist-info}/WHEEL +0 -0
- {sae_lens-6.22.1.dist-info → sae_lens-6.22.2.dist-info}/licenses/LICENSE +0 -0
sae_lens/__init__.py
CHANGED
|
@@ -166,9 +166,11 @@ class ActivationsStore:
|
|
|
166
166
|
disable_concat_sequences: bool = False,
|
|
167
167
|
sequence_separator_token: int | Literal["bos", "eos", "sep"] | None = "bos",
|
|
168
168
|
) -> ActivationsStore:
|
|
169
|
+
if context_size is None:
|
|
170
|
+
context_size = sae.cfg.metadata.context_size
|
|
169
171
|
if sae.cfg.metadata.hook_name is None:
|
|
170
172
|
raise ValueError("hook_name is required")
|
|
171
|
-
if
|
|
173
|
+
if context_size is None:
|
|
172
174
|
raise ValueError("context_size is required")
|
|
173
175
|
if sae.cfg.metadata.prepend_bos is None:
|
|
174
176
|
raise ValueError("prepend_bos is required")
|
|
@@ -178,9 +180,7 @@ class ActivationsStore:
|
|
|
178
180
|
d_in=sae.cfg.d_in,
|
|
179
181
|
hook_name=sae.cfg.metadata.hook_name,
|
|
180
182
|
hook_head_index=sae.cfg.metadata.hook_head_index,
|
|
181
|
-
context_size=
|
|
182
|
-
if context_size is None
|
|
183
|
-
else context_size,
|
|
183
|
+
context_size=context_size,
|
|
184
184
|
prepend_bos=sae.cfg.metadata.prepend_bos,
|
|
185
185
|
streaming=streaming,
|
|
186
186
|
store_batch_size_prompts=store_batch_size_prompts,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
sae_lens/__init__.py,sha256=
|
|
1
|
+
sae_lens/__init__.py,sha256=ad-_bf4xBL043OneDJ77dcRtQBjrSE8LYdn36-Q_e1w,4033
|
|
2
2
|
sae_lens/analysis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
sae_lens/analysis/hooked_sae_transformer.py,sha256=dQRgGVwce8XwylL2AzJE7l9elhtMRFCs2hdUj-Qyy4g,14038
|
|
4
4
|
sae_lens/analysis/neuronpedia_integration.py,sha256=Gx1W7hUBEuMoasNcnOnZ1wmqbXDd1pSZ1nqKEya1HQc,4962
|
|
@@ -27,7 +27,7 @@ sae_lens/saes/transcoder.py,sha256=BfLSbTYVNZh-ruGxseZiZJ_acEL6_7QyTdfqUr0lDOg,1
|
|
|
27
27
|
sae_lens/tokenization_and_batching.py,sha256=D_o7cXvRqhT89H3wNzoRymNALNE6eHojBWLdXOUwUGE,5438
|
|
28
28
|
sae_lens/training/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
29
29
|
sae_lens/training/activation_scaler.py,sha256=FzNfgBplLWmyiSlZ6TUvE-nur3lOiGTrlvC97ys8S24,1973
|
|
30
|
-
sae_lens/training/activations_store.py,sha256=
|
|
30
|
+
sae_lens/training/activations_store.py,sha256=pG6YhPCLrf7bd7bZTZ3_aS5J92lfnhVtyK8e0bzYFnI,33752
|
|
31
31
|
sae_lens/training/mixing_buffer.py,sha256=vDpYG5ZE70szDvBsRKcNHEES3h_WTKJ16qDYk5jPOVA,2015
|
|
32
32
|
sae_lens/training/optim.py,sha256=bJpqqcK4enkcPvQAJkeH4Ci1LUOlfjIMTv6-IlaAbRA,5588
|
|
33
33
|
sae_lens/training/sae_trainer.py,sha256=zhkabyIKxI_tZTV3_kwz6zMrHZ95Ecr97krmwc-9ffs,17600
|
|
@@ -35,7 +35,7 @@ sae_lens/training/types.py,sha256=1FpLx_Doda9vZpmfm-x1e8wGBYpyhe9Kpb_JuM5nIFM,90
|
|
|
35
35
|
sae_lens/training/upload_saes_to_huggingface.py,sha256=r_WzI1zLtGZ5TzAxuG3xa_8T09j3zXJrWd_vzPsPGkQ,4469
|
|
36
36
|
sae_lens/tutorial/tsea.py,sha256=fd1am_XXsf2KMbByDapJo-2qlxduKaa62Z2qcQZ3QKU,18145
|
|
37
37
|
sae_lens/util.py,sha256=tCovQ-eZa1L7thPpNDL6PGOJrIMML2yLI5e0EHCOpS8,3309
|
|
38
|
-
sae_lens-6.22.
|
|
39
|
-
sae_lens-6.22.
|
|
40
|
-
sae_lens-6.22.
|
|
41
|
-
sae_lens-6.22.
|
|
38
|
+
sae_lens-6.22.2.dist-info/METADATA,sha256=nkgSNh4ilUGvyG1h2dNRHDmJ4W1nPWzz36YFdIysG4s,5369
|
|
39
|
+
sae_lens-6.22.2.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
40
|
+
sae_lens-6.22.2.dist-info/licenses/LICENSE,sha256=DW6e-hDosiu4CfW0-imI57sV1I5f9UEslpviNQcOAKs,1069
|
|
41
|
+
sae_lens-6.22.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|