$ the-wire · showcase
SAELens 6.56.0 renames n_batches_in_buffer, fixes Apple Silicon crashes
By RepoJournal · Filed · About Interpretability · Composed from the cited sources · methodology
SAELens shipped the rename of n_batches_in_buffer to n_sequences_in_buffer and two operator-facing crash fixes: verbose log token counts and MPS support for run_evals and covariance_whitening.
v6.56.0 jbloomAus/SAELens
by github-actions[bot]
The 6.56.0 release carries the rename, so configs that still pass n_batches_in_buffer will need the new key. It is a naming correction, not a behavior change: the parameter has always denoted the number of sequences in the activation mixing buffer.
feat: rename n_batches_in_buffer to n_sequences_in_buffer jbloomAus/SAELens
Since v6.0.0, n_batches_in_buffer actually set the number of sequences in the mixing buffer (n_batches_in_buffer * context_size activations), and the docstring and verbose buffer-size log overstated it by a factor of store_batch_size_prompts. The rename fixes the label rather than growing the buffer, which the PR notes would have made existing configs OOM.
fix: run_evals and covariance_whitening crash on MPS (no float64) jbloomAus/SAELens
On Apple Silicon, run_evals (since #781) and covariance_whitening crashed with RuntimeError: Undefined type Double because PyTorch creates the float64 tensor on MPS before moving it. If you train or replicate on an M1, these paths now run.
fix: drop context_size from feature window token counts in verbose log (#792) jbloomAus/SAELens
Verbose training logs no longer fold context_size into feature window token counts, so the reported totals match the actual counts.
test: make fewer Hugging Face requests so CI stays under the rate limit jbloomAus/SAELens
CI work only: the test suite cut Hugging Face requests from about 1000 to stay under the anonymous 500-per-5-minutes limit, which ends the 429 failures and roughly 4-minute rate-limit stalls on PR runs.
Action items
- → Rename n_batches_in_buffer to n_sequences_in_buffer in SAELens training configs when upgrading to 6.56.0 jbloomAus/SAELens [plan]