liger-kernel-nightly 0.4.2.dev20241209193335__py3-none-any.whl → 0.4.2.dev20241209195823__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.
@@ -105,7 +105,9 @@ class LigerFusedLinearDistillationBase(torch.autograd.Function):
105
105
 
106
106
  hard_loss /= full_target.shape[0]
107
107
 
108
- soft_loss = distillation_loss_fn(student_logits_chunk, teacher_logits_chunk, temperature)
108
+ soft_loss = distillation_loss_fn(
109
+ student_logits_chunk, teacher_logits_chunk, temperature
110
+ )
109
111
  soft_loss /= full_target.shape[0]
110
112
 
111
113
  loss = weight_hard_loss * hard_loss + weight_soft_loss * soft_loss
@@ -24,7 +24,7 @@ def print_env_report():
24
24
  cuda_version = (
25
25
  torch.version.cuda if torch.cuda.is_available() else "Not available"
26
26
  )
27
- print(f"CUDA version: {cuda_version}")
27
+ print(f"CUDA version: {cuda_version}")
28
28
  except ImportError:
29
29
  print("PyTorch: Not installed")
30
30
  print("CUDA version: Unable to query")
@@ -42,15 +42,14 @@ def print_env_report():
42
42
  print(f"Transformers version: {transformers.__version__}")
43
43
  except ImportError:
44
44
  print("Transformers: Not installed")
45
-
45
+
46
46
  try:
47
47
  xpu_version = (
48
48
  torch.version.xpu if torch.xpu.is_available() else "XPU Not Available"
49
49
  )
50
- print(f"XPU version: {xpu_version}")
50
+ print(f"XPU version: {xpu_version}")
51
51
  except ImportError:
52
- print("XPU version: Unable to query")
53
-
52
+ print("XPU version: Unable to query")
54
53
 
55
54
 
56
55
  if __name__ == "__main__":
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: liger_kernel_nightly
3
- Version: 0.4.2.dev20241209193335
3
+ Version: 0.4.2.dev20241209195823
4
4
  Summary: Efficient Triton kernels for LLM Training
5
5
  License: BSD 2-CLAUSE LICENSE
6
6
  Copyright 2024 LinkedIn Corporation
@@ -99,7 +99,7 @@ Requires-Dist: transformers~=4.0; extra == "transformers"
99
99
  </div>
100
100
  <div style="display: block;">
101
101
  <a href="https://github.com/linkedin/Liger-Kernel/actions/workflows/amd-ci.yml">
102
- <img src="https://github.com/linkedin/Liger-Kernel/actions/workflows/amd-ci.yml/badge.svg" alt="Build">
102
+ <img src="https://github.com/linkedin/Liger-Kernel/actions/workflows/amd-ci.yml/badge.svg?event=schedule" alt="Build">
103
103
  </a>
104
104
  </div>
105
105
  </td>
@@ -1,11 +1,11 @@
1
1
  liger_kernel/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- liger_kernel/env_report.py,sha256=YHJJCm2y53JWgBUPBcQX5ntUO0_oKv8Q5aHv-kGj_Kw,1385
2
+ liger_kernel/env_report.py,sha256=1ETxx6HW4bKMK5aa5xaFzEmx0Ibc_kNryL_gXBVyyrI,1374
3
3
  liger_kernel/utils.py,sha256=HJa-xVKOohDn6pLVIx-Fv0V9h0QAL3qZGQNRICI-OpI,249
4
4
  liger_kernel/chunked_loss/__init__.py,sha256=R2wCcz4Y0kTAve926DH3k182XKezpXeACMHj05g9Mm8,346
5
5
  liger_kernel/chunked_loss/cpo_loss.py,sha256=P20txjErLCSfSfToFT8pnuVPqFU4Bbybt3zRXfGEV-0,3122
6
6
  liger_kernel/chunked_loss/dpo_loss.py,sha256=NZyM4ju56MBVrUTI_7-jGMx5pWWDYzwx7ALoMj1G8Ec,4276
7
7
  liger_kernel/chunked_loss/functional.py,sha256=9Gr-YXIuEzEJkBUhDx3G2fuQayckLor7cC7svhmPML4,549
8
- liger_kernel/chunked_loss/fused_linear_distillation.py,sha256=8Dvr5FRQcWEpNYu615GxvAxlmh-0cDnUKLet274nxTQ,10200
8
+ liger_kernel/chunked_loss/fused_linear_distillation.py,sha256=2BH6DCPjsR2zS6zcwFPcIIZRhLF8SohjGdKsAJ_301o,10222
9
9
  liger_kernel/chunked_loss/fused_linear_preference.py,sha256=_4MDZMzrNNgm91c6qdLEuXG1M8HyglZioiufv5opJOI,14881
10
10
  liger_kernel/chunked_loss/orpo_loss.py,sha256=GGwc3pLGGJzb_P_C7IogcA1EfdAcM1uktfKPmI1z2jk,3523
11
11
  liger_kernel/chunked_loss/simpo_loss.py,sha256=FtURWbXGjoAKyiVYF7fkMv8Us7uk3UrSg21pWOFk11Y,3385
@@ -56,9 +56,9 @@ liger_kernel/transformers/model/qwen2.py,sha256=EyhSSzQOskGjSnCsKMZpd1s5IAIlHd5P
56
56
  liger_kernel/transformers/model/qwen2_vl.py,sha256=bIQe2bWiY--G84FhCD29Gdi64_qHP6vbcGsK6vKysQE,8547
57
57
  liger_kernel/triton/__init__.py,sha256=yfRe0zMb47QnqjecZWG7LnanfCTzeku7SgWRAwNVmzU,101
58
58
  liger_kernel/triton/monkey_patch.py,sha256=5BcGKTtdqeYchypBIBopGIWPx1-cFALz7sOKoEsqXJ0,1584
59
- liger_kernel_nightly-0.4.2.dev20241209193335.dist-info/LICENSE,sha256=OhzLDHJ0to4a8sodVLELZiCFylZ1NAAYLs-HrjPy0ag,1312
60
- liger_kernel_nightly-0.4.2.dev20241209193335.dist-info/METADATA,sha256=QJLLe6qP6qYrkumYsRdnK4qn2EtthJhWdiK_9Qio7eg,22786
61
- liger_kernel_nightly-0.4.2.dev20241209193335.dist-info/NOTICE,sha256=njwnoPZLh9AN8SJQzxvCGLHi-8X__AvWRze6joNXIY8,2066
62
- liger_kernel_nightly-0.4.2.dev20241209193335.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
63
- liger_kernel_nightly-0.4.2.dev20241209193335.dist-info/top_level.txt,sha256=2eghu4hA3LnkM7ElW92tQ8zegWKgSbeo-k-aGe1YnvY,13
64
- liger_kernel_nightly-0.4.2.dev20241209193335.dist-info/RECORD,,
59
+ liger_kernel_nightly-0.4.2.dev20241209195823.dist-info/LICENSE,sha256=OhzLDHJ0to4a8sodVLELZiCFylZ1NAAYLs-HrjPy0ag,1312
60
+ liger_kernel_nightly-0.4.2.dev20241209195823.dist-info/METADATA,sha256=rdhqAHF-DhOwy_DKk5SVEAC65LcW-IeyMY5QcYRUwSg,22801
61
+ liger_kernel_nightly-0.4.2.dev20241209195823.dist-info/NOTICE,sha256=njwnoPZLh9AN8SJQzxvCGLHi-8X__AvWRze6joNXIY8,2066
62
+ liger_kernel_nightly-0.4.2.dev20241209195823.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
63
+ liger_kernel_nightly-0.4.2.dev20241209195823.dist-info/top_level.txt,sha256=2eghu4hA3LnkM7ElW92tQ8zegWKgSbeo-k-aGe1YnvY,13
64
+ liger_kernel_nightly-0.4.2.dev20241209195823.dist-info/RECORD,,