Skip to content

Commit

Permalink
remove unused outputs back to default
Browse files Browse the repository at this point in the history
  • Loading branch information
kashif committed Jan 22, 2025
1 parent 1582cda commit a18766c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/liger_kernel/chunked_loss/fused_linear_preference.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,5 @@ def _compute_loss(
chosen_logits_mean,
rejected_logits_mean,
chosen_nll_loss,
ref_chosen_logps if use_ref_model else None,
ref_rejected_logps if use_ref_model else None,
)
return loss, (*return_vars, *aux_outputs)
2 changes: 0 additions & 2 deletions test/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,8 +546,6 @@ def get_batch_loss_metrics(
policy_chosen_logits.detach().mean(),
policy_rejected_logits.detach().mean(),
policy_nll_loss,
ref_chosen_logps if self.use_ref_model else None,
ref_rejected_logps if self.use_ref_model else None,
)
return loss, (*return_vars, *aggregated_aux_outputs)

Expand Down

0 comments on commit a18766c

Please sign in to comment.