Skip to content

Commit

Permalink
remove tqdm from data loader, too noisy
Browse files Browse the repository at this point in the history
  • Loading branch information
jbloom-md committed Feb 28, 2024
1 parent b3054b1 commit de3b1a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sae_training/cache_activations_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def cache_activations_runner(cfg: CacheActivationsRunnerConfig):
cfg.store_batch_size * cfg.context_size * cfg.n_batches_in_buffer
)
n_buffers = math.ceil(cfg.total_training_tokens / tokens_per_buffer)
for i in tqdm(range(n_buffers), desc="Caching activations"):
# for i in tqdm(range(n_buffers), desc="Caching activations"):
for i in range(n_buffers):
buffer = activations_store.get_buffer(cfg.n_batches_in_buffer)
torch.save(buffer, f"{activations_store.cfg.cached_activations_path}/{i}.pt")
del buffer
Expand Down

0 comments on commit de3b1a1

Please sign in to comment.