Skip to content

Commit

Permalink
Fixed typo that threw out half of activations
Browse files Browse the repository at this point in the history
  • Loading branch information
lucyfarnik committed Dec 13, 2023
1 parent f7ea316 commit 5f73918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sae_training/train_sae_on_language_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def train_sae_on_language_model(
# Forward and Backward Passes
optimizer.zero_grad()
x = activation_store.next_batch()
sae_out, feature_acts, loss, mse_loss, l1_loss = sparse_autoencoder(activation_store.next_batch())
sae_out, feature_acts, loss, mse_loss, l1_loss = sparse_autoencoder(x)
n_training_tokens += batch_size

with torch.no_grad():
Expand Down

0 comments on commit 5f73918

Please sign in to comment.