Skip to content

Commit

Permalink
More debug lines
Browse files Browse the repository at this point in the history
  • Loading branch information
pomonam committed Jul 8, 2024
1 parent 132ac9c commit 3cfcc48
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kronfluence/score/dot_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ def compute_dot_products_with_loader(
if factor_args.has_shared_parameters:
finalize_iteration(model=model, tracked_module_names=tracked_module_names)

print("Middle")
print(torch.cuda.memory_allocated())
print(torch.cuda.memory_reserved())

with torch.no_grad():
if score_args.compute_per_module_scores:
for module in cached_module_lst:
Expand Down

0 comments on commit 3cfcc48

Please sign in to comment.