liger-kernel-nightly 0.5.7.dev20250412004829__py3-none-any.whl → 0.5.8.dev20250412164314__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- liger_kernel/chunked_loss/grpo_loss.py +3 -1
- {liger_kernel_nightly-0.5.7.dev20250412004829.dist-info → liger_kernel_nightly-0.5.8.dev20250412164314.dist-info}/METADATA +1 -1
- {liger_kernel_nightly-0.5.7.dev20250412004829.dist-info → liger_kernel_nightly-0.5.8.dev20250412164314.dist-info}/RECORD +7 -7
- {liger_kernel_nightly-0.5.7.dev20250412004829.dist-info → liger_kernel_nightly-0.5.8.dev20250412164314.dist-info}/LICENSE +0 -0
- {liger_kernel_nightly-0.5.7.dev20250412004829.dist-info → liger_kernel_nightly-0.5.8.dev20250412164314.dist-info}/NOTICE +0 -0
- {liger_kernel_nightly-0.5.7.dev20250412004829.dist-info → liger_kernel_nightly-0.5.8.dev20250412164314.dist-info}/WHEEL +0 -0
- {liger_kernel_nightly-0.5.7.dev20250412004829.dist-info → liger_kernel_nightly-0.5.8.dev20250412164314.dist-info}/top_level.txt +0 -0
@@ -1,3 +1,5 @@
|
|
1
|
+
from typing import Optional
|
2
|
+
|
1
3
|
import torch
|
2
4
|
|
3
5
|
from liger_kernel.chunked_loss.fused_linear_ppo import LigerFusedLinearPPOBase
|
@@ -204,7 +206,7 @@ class LigerFusedLinearGRPOLoss(torch.nn.Module):
|
|
204
206
|
epsilon_low: float = 0.2,
|
205
207
|
epsilon_high: float = 0.2,
|
206
208
|
loss_type: str = "bnpo",
|
207
|
-
max_completion_length: int
|
209
|
+
max_completion_length: Optional[int] = None,
|
208
210
|
temperature: float = 1.0,
|
209
211
|
):
|
210
212
|
"""
|
@@ -10,7 +10,7 @@ liger_kernel/chunked_loss/fused_linear_distillation.py,sha256=ooR-qnZCyWJN935oHC
|
|
10
10
|
liger_kernel/chunked_loss/fused_linear_ppo.py,sha256=AA19cpv6D8mo5RbSK5GRCcZoOSnpxV_Z1eJlAsC5eic,13434
|
11
11
|
liger_kernel/chunked_loss/fused_linear_preference.py,sha256=ojB42jYPu0c4ki96Ft-hy7Sf6fh_WikG-aWNrlZzSio,18362
|
12
12
|
liger_kernel/chunked_loss/fused_linear_unpaired_preference.py,sha256=RiuK3UtRwH9T6jZ36sA8Urj-TVuOLOO2syLg_JOQapY,13437
|
13
|
-
liger_kernel/chunked_loss/grpo_loss.py,sha256=
|
13
|
+
liger_kernel/chunked_loss/grpo_loss.py,sha256=kuqHkYV383sUxqJN-DMsfADHi2hxHVyKx5S24TNc8bQ,10866
|
14
14
|
liger_kernel/chunked_loss/jsd_loss.py,sha256=u2ahkuHsbhpNaKcpBCz5gCMDk9ou-P04DHji592dIBo,7067
|
15
15
|
liger_kernel/chunked_loss/kto_loss.py,sha256=llVCe6DkcpCo57seGWoMikaQVFApx764jsmSbQyqwQY,7529
|
16
16
|
liger_kernel/chunked_loss/orpo_loss.py,sha256=nu9UYG16dcMw93lvHi4_hYs3Q0FK1KnlmMRj7OpYU8s,4872
|
@@ -74,9 +74,9 @@ liger_kernel/transformers/trainer/__init__.py,sha256=p7yQfklV8-467qSz_ZMimkbDF7H
|
|
74
74
|
liger_kernel/transformers/trainer/orpo_trainer.py,sha256=pdekW7l6Qg_aqa5SYKYlSWUF8m3lkOFvFLcIMEHrz9s,8338
|
75
75
|
liger_kernel/triton/__init__.py,sha256=qCiCamzCRv6lpV8IqpAc9YMdNKC7GKurClWceQPnlis,92
|
76
76
|
liger_kernel/triton/monkey_patch.py,sha256=Rd0hUHAzDkFfHvnX7-PBaNK5EKnZhtfM_h-fgQH9HPY,1568
|
77
|
-
liger_kernel_nightly-0.5.
|
78
|
-
liger_kernel_nightly-0.5.
|
79
|
-
liger_kernel_nightly-0.5.
|
80
|
-
liger_kernel_nightly-0.5.
|
81
|
-
liger_kernel_nightly-0.5.
|
82
|
-
liger_kernel_nightly-0.5.
|
77
|
+
liger_kernel_nightly-0.5.8.dev20250412164314.dist-info/LICENSE,sha256=OhzLDHJ0to4a8sodVLELZiCFylZ1NAAYLs-HrjPy0ag,1312
|
78
|
+
liger_kernel_nightly-0.5.8.dev20250412164314.dist-info/METADATA,sha256=WX_rsKOThIXX4v5h9PUt-v0lHvqhZvsBK40O8QiNDfk,23297
|
79
|
+
liger_kernel_nightly-0.5.8.dev20250412164314.dist-info/NOTICE,sha256=njwnoPZLh9AN8SJQzxvCGLHi-8X__AvWRze6joNXIY8,2066
|
80
|
+
liger_kernel_nightly-0.5.8.dev20250412164314.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
81
|
+
liger_kernel_nightly-0.5.8.dev20250412164314.dist-info/top_level.txt,sha256=2eghu4hA3LnkM7ElW92tQ8zegWKgSbeo-k-aGe1YnvY,13
|
82
|
+
liger_kernel_nightly-0.5.8.dev20250412164314.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|