Skip to content

Commit

Permalink
Reduce size
Browse files Browse the repository at this point in the history
  • Loading branch information
pomonam committed Jul 8, 2024
1 parent 3cfcc48 commit 386b335
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion kronfluence/module/linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def compute_pairwise_score(
minimize = "size"
else:
expr = "qio,b...i,b...o->qb"
minimize = "flops"
minimize = "size"
self.einsum_expression = contract_expression(
expr,
preconditioned_gradient.shape,
Expand Down
1 change: 0 additions & 1 deletion kronfluence/score/dot_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ def compute_dot_products_with_loader(
raise
pairwise_scores = pairwise_scores.cpu()
score_chunks[ALL_MODULE_NAME].append(pairwise_scores)
del pairwise_scores
accumulate_iterations(model=model, tracked_module_names=tracked_module_names)

if state.use_distributed and total_steps % DISTRIBUTED_SYNC_INTERVAL == 0:
Expand Down

0 comments on commit 386b335

Please sign in to comment.