Skip to content

Commit

Permalink
Remove reference to score
Browse files Browse the repository at this point in the history
  • Loading branch information
pomonam committed Jul 8, 2024
1 parent 7556c56 commit 8f5e80f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kronfluence/score/dot_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ def compute_dot_products_with_loader(
if score_args.compute_per_token_scores:
raise RuntimeError(DIMENSION_NOT_MATCH_ERROR_MSG) from exc
raise
score_chunks[ALL_MODULE_NAME].append(pairwise_scores.cpu())
pairwise_scores = pairwise_scores.cpu()
score_chunks[ALL_MODULE_NAME].append(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 8f5e80f

Please sign in to comment.