liger-kernel-nightly 0.5.5.dev20250402185606__py3-none-any.whl → 0.5.5.dev20250402185702__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/ops/fused_linear_jsd.py +2 -1
- {liger_kernel_nightly-0.5.5.dev20250402185606.dist-info → liger_kernel_nightly-0.5.5.dev20250402185702.dist-info}/METADATA +1 -1
- {liger_kernel_nightly-0.5.5.dev20250402185606.dist-info → liger_kernel_nightly-0.5.5.dev20250402185702.dist-info}/RECORD +7 -7
- {liger_kernel_nightly-0.5.5.dev20250402185606.dist-info → liger_kernel_nightly-0.5.5.dev20250402185702.dist-info}/LICENSE +0 -0
- {liger_kernel_nightly-0.5.5.dev20250402185606.dist-info → liger_kernel_nightly-0.5.5.dev20250402185702.dist-info}/NOTICE +0 -0
- {liger_kernel_nightly-0.5.5.dev20250402185606.dist-info → liger_kernel_nightly-0.5.5.dev20250402185702.dist-info}/WHEEL +0 -0
- {liger_kernel_nightly-0.5.5.dev20250402185606.dist-info → liger_kernel_nightly-0.5.5.dev20250402185702.dist-info}/top_level.txt +0 -0
@@ -8,11 +8,12 @@ from liger_kernel.ops.utils import amp_custom_bwd
|
|
8
8
|
from liger_kernel.ops.utils import amp_custom_fwd
|
9
9
|
from liger_kernel.ops.utils import element_mul_kernel
|
10
10
|
from liger_kernel.ops.utils import is_hip
|
11
|
+
from liger_kernel.utils import infer_device
|
11
12
|
|
12
13
|
# The hard limit of TRITON_MAX_TENSOR_NUMEL is 1048576 https://github.com/triton-lang/triton/blob/ba42a5c68fd0505f8c42f4202d53be0f8d9a5fe0/python/triton/language/core.py#L19
|
13
14
|
# However, setting limit as 65536 as in LayerNorm tutorial is faster because of less register spilling
|
14
15
|
# The optimal maximum block size depends on your hardware, your kernel, and your dtype
|
15
|
-
MAX_FUSED_SIZE = 65536 // 2
|
16
|
+
MAX_FUSED_SIZE = 4096 if infer_device() == "xpu" else 65536 // 2
|
16
17
|
|
17
18
|
|
18
19
|
def fused_linear_jsd_forward(
|
@@ -19,7 +19,7 @@ liger_kernel/ops/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
|
|
19
19
|
liger_kernel/ops/cross_entropy.py,sha256=T5oSsqOS1y-Iea5o9v_BSU-_mIEXqWAT1oX_m59NcA4,18941
|
20
20
|
liger_kernel/ops/dyt.py,sha256=YD1-buHz9VmIX838VKzLc-lm5CeUQ4LAskGDWBUMQHA,6187
|
21
21
|
liger_kernel/ops/fused_linear_cross_entropy.py,sha256=1Y3Uk_TCSjqKgoG2eot1ptnWXJXXQESqGvOmqAW1gsM,10912
|
22
|
-
liger_kernel/ops/fused_linear_jsd.py,sha256=
|
22
|
+
liger_kernel/ops/fused_linear_jsd.py,sha256=CSoprxb-YcJy-YUKiTcYkxN8sb9h2kdk_iHuncvSV5c,9683
|
23
23
|
liger_kernel/ops/geglu.py,sha256=axGvCIvlBzuluoAIrWTsp2iZM4BFKNInkPov8YVvH9E,4126
|
24
24
|
liger_kernel/ops/group_norm.py,sha256=qD4D4lSjSgVtO52EBNLC2iTseALRgPgqXE50U2woggk,10837
|
25
25
|
liger_kernel/ops/jsd.py,sha256=rkloGA7nDfVaa5nKY6-EYBw0E1p_MSsl4fr2xZGTp04,6961
|
@@ -72,9 +72,9 @@ liger_kernel/transformers/trainer/__init__.py,sha256=p7yQfklV8-467qSz_ZMimkbDF7H
|
|
72
72
|
liger_kernel/transformers/trainer/orpo_trainer.py,sha256=pdekW7l6Qg_aqa5SYKYlSWUF8m3lkOFvFLcIMEHrz9s,8338
|
73
73
|
liger_kernel/triton/__init__.py,sha256=qCiCamzCRv6lpV8IqpAc9YMdNKC7GKurClWceQPnlis,92
|
74
74
|
liger_kernel/triton/monkey_patch.py,sha256=Rd0hUHAzDkFfHvnX7-PBaNK5EKnZhtfM_h-fgQH9HPY,1568
|
75
|
-
liger_kernel_nightly-0.5.5.
|
76
|
-
liger_kernel_nightly-0.5.5.
|
77
|
-
liger_kernel_nightly-0.5.5.
|
78
|
-
liger_kernel_nightly-0.5.5.
|
79
|
-
liger_kernel_nightly-0.5.5.
|
80
|
-
liger_kernel_nightly-0.5.5.
|
75
|
+
liger_kernel_nightly-0.5.5.dev20250402185702.dist-info/LICENSE,sha256=OhzLDHJ0to4a8sodVLELZiCFylZ1NAAYLs-HrjPy0ag,1312
|
76
|
+
liger_kernel_nightly-0.5.5.dev20250402185702.dist-info/METADATA,sha256=dxGuBAPSdYloQREOnavE1Dd5jAaDWMwI-NpEG0ku_RU,22959
|
77
|
+
liger_kernel_nightly-0.5.5.dev20250402185702.dist-info/NOTICE,sha256=njwnoPZLh9AN8SJQzxvCGLHi-8X__AvWRze6joNXIY8,2066
|
78
|
+
liger_kernel_nightly-0.5.5.dev20250402185702.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
79
|
+
liger_kernel_nightly-0.5.5.dev20250402185702.dist-info/top_level.txt,sha256=2eghu4hA3LnkM7ElW92tQ8zegWKgSbeo-k-aGe1YnvY,13
|
80
|
+
liger_kernel_nightly-0.5.5.dev20250402185702.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|