Skip to content

Commit 4ddce2b

Browse files
committed
Format
Signed-off-by: Austin Liu <[email protected]>
1 parent c8db7e2 commit 4ddce2b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/liger_kernel/chunked_loss/dpo_loss.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ def backward(ctx, grad_output):
9999
# Return these gradients, followed by None for the remaining inputs
100100
return d_input, d_weight, d_target, None, None, d_bias, None, None, None
101101

102+
102103
class LigerFusedLinearDPOLoss(torch.nn.Module):
103104
"""
104105
Fused linear layer with DPO loss.
@@ -132,4 +133,4 @@ def forward(self, lin_weight, _input, target, bias=None):
132133
self.beta,
133134
self.compute_nll_loss,
134135
self.compiled,
135-
)
136+
)

0 commit comments

Comments
 (0)