Skip to content

Commit

Permalink
remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
kashif committed Dec 17, 2024
1 parent d8e457b commit 8273696
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/liger_kernel/chunked_loss/fused_linear_preference.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,6 @@ def chunk_forward(
reduction="sum",
ignore_index=ignore_index,
)
else:
chosen_nll_loss = torch.zeros(
(), device=target_chunk.device, dtype=target_chunk.dtype
)

loss_mask = target_chunk != ignore_index
label_chunk = torch.where(loss_mask, target_chunk, 0)
Expand Down

0 comments on commit 8273696

Please sign in to comment.