liger-kernel-nightly 0.6.0.dev20250708194445__tar.gz → 0.6.0.dev20250709030408__tar.gz

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.
Files changed (273) hide show
  1. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/PKG-INFO +1 -1
  2. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/pyproject.toml +1 -1
  3. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/monkey_patch.py +4 -2
  4. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel_nightly.egg-info/PKG-INFO +1 -1
  5. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/transformers/test_monkey_patch.py +67 -0
  6. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/.github/ISSUE_TEMPLATE/bug_report.yaml +0 -0
  7. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/.github/ISSUE_TEMPLATE/feature_request.yaml +0 -0
  8. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/.github/pull_request_template.md +0 -0
  9. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/.github/workflows/amd-ci.yml +0 -0
  10. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/.github/workflows/benchmark.yml +0 -0
  11. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/.github/workflows/docs.yml +0 -0
  12. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/.github/workflows/intel-ci.yml +0 -0
  13. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/.github/workflows/nvi-ci.yml +0 -0
  14. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/.github/workflows/publish-nightly.yml +0 -0
  15. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/.github/workflows/publish-release.yml +0 -0
  16. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/.gitignore +0 -0
  17. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/LICENSE +0 -0
  18. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/Makefile +0 -0
  19. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/NOTICE +0 -0
  20. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/README.md +0 -0
  21. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/benchmark/README.md +0 -0
  22. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/benchmark/__init__.py +0 -0
  23. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/benchmark/benchmarks_visualizer.py +0 -0
  24. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/benchmark/data/all_benchmark_data.csv +0 -0
  25. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/benchmark/scripts/__init__.py +0 -0
  26. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/benchmark/scripts/benchmark_cpo_loss.py +0 -0
  27. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/benchmark/scripts/benchmark_cross_entropy.py +0 -0
  28. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/benchmark/scripts/benchmark_distill_cosine_loss.py +0 -0
  29. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/benchmark/scripts/benchmark_distill_jsd_loss.py +0 -0
  30. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/benchmark/scripts/benchmark_dpo_loss.py +0 -0
  31. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/benchmark/scripts/benchmark_dyt.py +0 -0
  32. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/benchmark/scripts/benchmark_embedding.py +0 -0
  33. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/benchmark/scripts/benchmark_fused_linear_cross_entropy.py +0 -0
  34. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/benchmark/scripts/benchmark_fused_linear_jsd.py +0 -0
  35. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/benchmark/scripts/benchmark_fused_neighborhood_attention.py +0 -0
  36. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/benchmark/scripts/benchmark_geglu.py +0 -0
  37. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/benchmark/scripts/benchmark_group_norm.py +0 -0
  38. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/benchmark/scripts/benchmark_jsd.py +0 -0
  39. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/benchmark/scripts/benchmark_kl_div.py +0 -0
  40. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/benchmark/scripts/benchmark_kto_loss.py +0 -0
  41. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/benchmark/scripts/benchmark_layer_norm.py +0 -0
  42. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/benchmark/scripts/benchmark_multi_token_attention.py +0 -0
  43. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/benchmark/scripts/benchmark_orpo_loss.py +0 -0
  44. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/benchmark/scripts/benchmark_qwen2vl_mrope.py +0 -0
  45. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/benchmark/scripts/benchmark_rms_norm.py +0 -0
  46. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/benchmark/scripts/benchmark_rope.py +0 -0
  47. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/benchmark/scripts/benchmark_simpo_loss.py +0 -0
  48. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/benchmark/scripts/benchmark_softmax.py +0 -0
  49. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/benchmark/scripts/benchmark_sparse_multi_token_attention.py +0 -0
  50. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/benchmark/scripts/benchmark_sparsemax.py +0 -0
  51. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/benchmark/scripts/benchmark_swiglu.py +0 -0
  52. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/benchmark/scripts/benchmark_tvd.py +0 -0
  53. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/benchmark/scripts/utils.py +0 -0
  54. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/dev/fmt-requirements.txt +0 -0
  55. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/dev/modal/benchmarks.py +0 -0
  56. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/dev/modal/tests.py +0 -0
  57. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/dev/modal/tests_bwd.py +0 -0
  58. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/docs/Examples.md +0 -0
  59. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/docs/Getting-Started.md +0 -0
  60. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/docs/High-Level-APIs.md +0 -0
  61. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/docs/Low-Level-APIs.md +0 -0
  62. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/docs/acknowledgement.md +0 -0
  63. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/docs/contributing.md +0 -0
  64. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/docs/images/banner.GIF +0 -0
  65. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/docs/images/compose.gif +0 -0
  66. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/docs/images/e2e-memory.png +0 -0
  67. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/docs/images/e2e-tps.png +0 -0
  68. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/docs/images/logo-banner.png +0 -0
  69. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/docs/images/patch.gif +0 -0
  70. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/docs/images/post-training.png +0 -0
  71. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/docs/index.md +0 -0
  72. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/docs/license.md +0 -0
  73. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/alignment/accelerate_config.yaml +0 -0
  74. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/alignment/run_orpo.py +0 -0
  75. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/huggingface/README.md +0 -0
  76. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/huggingface/callback.py +0 -0
  77. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/huggingface/config/fsdp_config.json +0 -0
  78. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/huggingface/img/gemma_7b_mem.png +0 -0
  79. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/huggingface/img/gemma_7b_tp.png +0 -0
  80. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/huggingface/img/llama_mem_alloc.png +0 -0
  81. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/huggingface/img/llama_tps.png +0 -0
  82. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/huggingface/img/qwen_mem_alloc.png +0 -0
  83. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/huggingface/img/qwen_tps.png +0 -0
  84. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/huggingface/launch_on_modal.py +0 -0
  85. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/huggingface/requirements.txt +0 -0
  86. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/huggingface/run_benchmarks.sh +0 -0
  87. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/huggingface/run_gemma.sh +0 -0
  88. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/huggingface/run_llama.sh +0 -0
  89. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/huggingface/run_qwen.sh +0 -0
  90. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/huggingface/run_qwen2_vl.sh +0 -0
  91. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/huggingface/training.py +0 -0
  92. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/huggingface/training_multimodal.py +0 -0
  93. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/lightning/README.md +0 -0
  94. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/lightning/requirements.txt +0 -0
  95. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/lightning/training.py +0 -0
  96. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/medusa/README.md +0 -0
  97. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/medusa/callback.py +0 -0
  98. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/medusa/docs/images/Memory_Stage1_num_head_3.png +0 -0
  99. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/medusa/docs/images/Memory_Stage1_num_head_5.png +0 -0
  100. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/medusa/docs/images/Memory_Stage2_num_head_3.png +0 -0
  101. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/medusa/docs/images/Memory_Stage2_num_head_5.png +0 -0
  102. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/medusa/docs/images/Throughput_Stage1_num_head_3.png +0 -0
  103. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/medusa/docs/images/Throughput_Stage1_num_head_5.png +0 -0
  104. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/medusa/docs/images/Throughput_Stage2_num_head_3.png +0 -0
  105. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/medusa/docs/images/Throughput_Stage2_num_head_5.png +0 -0
  106. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/medusa/fsdp/acc-fsdp.conf +0 -0
  107. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/medusa/medusa_util.py +0 -0
  108. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/medusa/requirements.txt +0 -0
  109. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/medusa/scripts/llama3_8b_medusa.sh +0 -0
  110. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/examples/medusa/train.py +0 -0
  111. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/licenses/LICENSE-Apache-2.0 +0 -0
  112. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/licenses/LICENSE-MIT-AutoAWQ +0 -0
  113. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/licenses/LICENSE-MIT-Efficient-Cross-Entropy +0 -0
  114. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/licenses/LICENSE-MIT-llmc +0 -0
  115. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/licenses/LICENSE-MIT-triton +0 -0
  116. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/mkdocs.yml +0 -0
  117. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/setup.cfg +0 -0
  118. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/setup.py +0 -0
  119. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/__init__.py +0 -0
  120. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/chunked_loss/README.md +0 -0
  121. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/chunked_loss/__init__.py +0 -0
  122. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/chunked_loss/cosine_similarity_loss.py +0 -0
  123. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/chunked_loss/cpo_loss.py +0 -0
  124. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/chunked_loss/dpo_loss.py +0 -0
  125. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/chunked_loss/functional.py +0 -0
  126. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/chunked_loss/fused_linear_distillation.py +0 -0
  127. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/chunked_loss/fused_linear_ppo.py +0 -0
  128. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/chunked_loss/fused_linear_preference.py +0 -0
  129. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/chunked_loss/fused_linear_unpaired_preference.py +0 -0
  130. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/chunked_loss/grpo_loss.py +0 -0
  131. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/chunked_loss/jsd_loss.py +0 -0
  132. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/chunked_loss/kto_loss.py +0 -0
  133. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/chunked_loss/orpo_loss.py +0 -0
  134. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/chunked_loss/simpo_loss.py +0 -0
  135. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/env_report.py +0 -0
  136. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/ops/__init__.py +0 -0
  137. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/ops/cross_entropy.py +0 -0
  138. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/ops/dyt.py +0 -0
  139. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/ops/experimental/embedding.py +0 -0
  140. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/ops/experimental/mm_int8int2.py +0 -0
  141. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/ops/fused_linear_cross_entropy.py +0 -0
  142. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/ops/fused_linear_jsd.py +0 -0
  143. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/ops/fused_neighborhood_attention.py +0 -0
  144. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/ops/geglu.py +0 -0
  145. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/ops/group_norm.py +0 -0
  146. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/ops/grpo_loss.py +0 -0
  147. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/ops/jsd.py +0 -0
  148. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/ops/kl_div.py +0 -0
  149. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/ops/layer_norm.py +0 -0
  150. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/ops/multi_token_attention.py +0 -0
  151. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/ops/qwen2vl_mrope.py +0 -0
  152. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/ops/rms_norm.py +0 -0
  153. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/ops/rope.py +0 -0
  154. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/ops/softmax.py +0 -0
  155. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/ops/sparsemax.py +0 -0
  156. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/ops/swiglu.py +0 -0
  157. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/ops/tvd.py +0 -0
  158. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/ops/utils.py +0 -0
  159. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/__init__.py +0 -0
  160. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/auto_model.py +0 -0
  161. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/cross_entropy.py +0 -0
  162. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/dyt.py +0 -0
  163. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/experimental/embedding.py +0 -0
  164. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/fsdp.py +0 -0
  165. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/functional.py +0 -0
  166. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/fused_linear_cross_entropy.py +0 -0
  167. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/fused_linear_jsd.py +0 -0
  168. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/fused_neighborhood_attention.py +0 -0
  169. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/geglu.py +0 -0
  170. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/group_norm.py +0 -0
  171. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/grpo_loss.py +0 -0
  172. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/jsd.py +0 -0
  173. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/kl_div.py +0 -0
  174. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/layer_norm.py +0 -0
  175. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/model/__init__.py +0 -0
  176. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/model/gemma.py +0 -0
  177. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/model/gemma2.py +0 -0
  178. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/model/gemma3.py +0 -0
  179. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/model/glm4.py +0 -0
  180. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/model/llama.py +0 -0
  181. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/model/llama4.py +0 -0
  182. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/model/llava.py +0 -0
  183. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/model/loss_utils.py +0 -0
  184. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/model/mistral.py +0 -0
  185. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/model/mixtral.py +0 -0
  186. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/model/mllama.py +0 -0
  187. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/model/olmo2.py +0 -0
  188. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/model/paligemma.py +0 -0
  189. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/model/phi3.py +0 -0
  190. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/model/qwen2.py +0 -0
  191. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/model/qwen2_5_vl.py +0 -0
  192. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/model/qwen2_vl.py +0 -0
  193. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/model/qwen3.py +0 -0
  194. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/model/qwen3_moe.py +0 -0
  195. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/multi_token_attention.py +0 -0
  196. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/qwen2vl_mrope.py +0 -0
  197. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/rms_norm.py +0 -0
  198. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/rope.py +0 -0
  199. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/softmax.py +0 -0
  200. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/sparsemax.py +0 -0
  201. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/swiglu.py +0 -0
  202. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/trainer/__init__.py +0 -0
  203. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/trainer/orpo_trainer.py +0 -0
  204. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/trainer_integration.py +0 -0
  205. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/transformers/tvd.py +0 -0
  206. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/triton/__init__.py +0 -0
  207. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/triton/monkey_patch.py +0 -0
  208. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel/utils.py +0 -0
  209. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel_nightly.egg-info/SOURCES.txt +0 -0
  210. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel_nightly.egg-info/dependency_links.txt +0 -0
  211. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel_nightly.egg-info/requires.txt +0 -0
  212. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/src/liger_kernel_nightly.egg-info/top_level.txt +0 -0
  213. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/__init__.py +0 -0
  214. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/chunked_loss/__init__.py +0 -0
  215. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/chunked_loss/test_cosine_loss.py +0 -0
  216. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/chunked_loss/test_cpo_loss.py +0 -0
  217. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/chunked_loss/test_dpo_loss.py +0 -0
  218. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/chunked_loss/test_grpo_loss.py +0 -0
  219. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/chunked_loss/test_jsd_loss.py +0 -0
  220. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/chunked_loss/test_kto_loss.py +0 -0
  221. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/chunked_loss/test_orpo_loss.py +0 -0
  222. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/chunked_loss/test_simpo_loss.py +0 -0
  223. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/conftest.py +0 -0
  224. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/convergence/__init__.py +0 -0
  225. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/convergence/bf16/__init__.py +0 -0
  226. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/convergence/bf16/test_mini_models.py +0 -0
  227. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/convergence/bf16/test_mini_models_multimodal.py +0 -0
  228. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/convergence/bf16/test_mini_models_with_logits.py +0 -0
  229. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/convergence/fp32/__init__.py +0 -0
  230. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/convergence/fp32/test_mini_models.py +0 -0
  231. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/convergence/fp32/test_mini_models_multimodal.py +0 -0
  232. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/convergence/fp32/test_mini_models_with_logits.py +0 -0
  233. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/resources/fake_configs/Google/Gemma3/gemma-3-4b-it/tokenizer_config.json +0 -0
  234. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/resources/fake_configs/Google/Paligemma/paligemma-3b-pt-224/tokenizer_config.json +0 -0
  235. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/resources/fake_configs/Llava/llava-1.5-7b-hf/preprocessor_config.json +0 -0
  236. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/resources/fake_configs/Llava/llava-1.5-7b-hf/processor_config.json +0 -0
  237. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/resources/fake_configs/Llava/llava-1.5-7b-hf/tokenizer_config.json +0 -0
  238. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/resources/fake_configs/Qwen/Qwen2-VL-7B-Instruct/tokenizer_config.json +0 -0
  239. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/resources/fake_configs/Qwen/Qwen2.5-VL-7B-Instruct/tokenizer_config.json +0 -0
  240. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/resources/fake_configs/meta-llama/Llama-3.2-11B-Vision-Instruct/tokenizer_config.json +0 -0
  241. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/resources/fake_configs/meta-llama/Llama-4-Scout-17B-16E-Instruct/tokenizer_config.json +0 -0
  242. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/resources/scripts/generate_tokenized_dataset.py +0 -0
  243. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/resources/tiny_shakespeare.txt +0 -0
  244. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/resources/tiny_shakespeare_tokenized/data-00000-of-00001.arrow +0 -0
  245. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/resources/tiny_shakespeare_tokenized/dataset_info.json +0 -0
  246. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/resources/tiny_shakespeare_tokenized/state.json +0 -0
  247. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/transformers/test_auto_model.py +0 -0
  248. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/transformers/test_cross_entropy.py +0 -0
  249. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/transformers/test_dyt.py +0 -0
  250. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/transformers/test_embedding.py +0 -0
  251. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/transformers/test_flex_attention.py +0 -0
  252. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/transformers/test_fused_linear_cross_entropy.py +0 -0
  253. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/transformers/test_fused_linear_jsd.py +0 -0
  254. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/transformers/test_fused_neighborhood_attention.py +0 -0
  255. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/transformers/test_geglu.py +0 -0
  256. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/transformers/test_group_norm.py +0 -0
  257. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/transformers/test_grpo_loss.py +0 -0
  258. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/transformers/test_jsd.py +0 -0
  259. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/transformers/test_kl_div.py +0 -0
  260. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/transformers/test_layer_norm.py +0 -0
  261. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/transformers/test_mm_int8int2.py +0 -0
  262. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/transformers/test_multi_token_attention.py +0 -0
  263. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/transformers/test_qwen2vl_mrope.py +0 -0
  264. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/transformers/test_rms_norm.py +0 -0
  265. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/transformers/test_rope.py +0 -0
  266. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/transformers/test_softmax.py +0 -0
  267. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/transformers/test_sparsemax.py +0 -0
  268. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/transformers/test_swiglu.py +0 -0
  269. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/transformers/test_trainer_integration.py +0 -0
  270. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/transformers/test_transformers.py +0 -0
  271. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/transformers/test_tvd.py +0 -0
  272. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/triton/test_triton_monkey_patch.py +0 -0
  273. {liger_kernel_nightly-0.6.0.dev20250708194445 → liger_kernel_nightly-0.6.0.dev20250709030408}/test/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: liger_kernel_nightly
3
- Version: 0.6.0.dev20250708194445
3
+ Version: 0.6.0.dev20250709030408
4
4
  Summary: Efficient Triton kernels for LLM Training
5
5
  License: BSD 2-CLAUSE LICENSE
6
6
  Copyright 2024 LinkedIn Corporation
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "liger_kernel_nightly"
7
- version = "0.6.0.dev20250708194445"
7
+ version = "0.6.0.dev20250709030408"
8
8
  description = "Efficient Triton kernels for LLM Training"
9
9
  urls = { "Homepage" = "https://github.com/linkedin/Liger-Kernel" }
10
10
  readme = { file = "README.md", content-type = "text/markdown" }
@@ -1096,7 +1096,9 @@ def apply_liger_kernel_to_paligemma(
1096
1096
  # PaliGemma submodules are ['vision_tower', 'multi_modal_projector', 'language_model']
1097
1097
 
1098
1098
  from transformers.models.gemma.modeling_gemma import GemmaForCausalLM
1099
+ from transformers.models.gemma.modeling_gemma import GemmaModel
1099
1100
  from transformers.models.gemma2.modeling_gemma2 import Gemma2ForCausalLM
1101
+ from transformers.models.gemma2.modeling_gemma2 import Gemma2Model
1100
1102
  from transformers.models.paligemma import modeling_paligemma
1101
1103
  from transformers.models.paligemma.modeling_paligemma import PaliGemmaForConditionalGeneration
1102
1104
  from transformers.models.siglip import modeling_siglip
@@ -1155,7 +1157,7 @@ def apply_liger_kernel_to_paligemma(
1155
1157
 
1156
1158
  language_model = model.language_model
1157
1159
 
1158
- if isinstance(language_model, GemmaForCausalLM):
1160
+ if isinstance(language_model, (GemmaForCausalLM, GemmaModel)):
1159
1161
  apply_liger_kernel_to_gemma(
1160
1162
  rope=rope,
1161
1163
  cross_entropy=False,
@@ -1165,7 +1167,7 @@ def apply_liger_kernel_to_paligemma(
1165
1167
  model=language_model,
1166
1168
  )
1167
1169
 
1168
- elif isinstance(language_model, Gemma2ForCausalLM):
1170
+ elif isinstance(language_model, (Gemma2ForCausalLM, Gemma2Model)):
1169
1171
  apply_liger_kernel_to_gemma2(
1170
1172
  rope=rope,
1171
1173
  cross_entropy=False,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: liger_kernel_nightly
3
- Version: 0.6.0.dev20250708194445
3
+ Version: 0.6.0.dev20250709030408
4
4
  Summary: Efficient Triton kernels for LLM Training
5
5
  License: BSD 2-CLAUSE LICENSE
6
6
  Copyright 2024 LinkedIn Corporation
@@ -38,6 +38,7 @@ if transformer_version >= version.parse(SUPPORTED_TRANSFORMER_VERSION):
38
38
  from liger_kernel.transformers.model.mistral import lce_forward as mistral_lce_forward
39
39
  from liger_kernel.transformers.model.mixtral import lce_forward as mixtral_lce_forward
40
40
  from liger_kernel.transformers.model.mllama import lce_forward as mllama_lce_forward
41
+ from liger_kernel.transformers.model.paligemma import lce_forward as paligemma_lce_forward
41
42
  from liger_kernel.transformers.model.phi3 import lce_forward as phi3_lce_forward
42
43
  from liger_kernel.transformers.model.qwen2 import lce_forward as qwen2_lce_forward
43
44
  else:
@@ -49,6 +50,7 @@ else:
49
50
  )
50
51
  from liger_kernel.transformers.model.mixtral import lce_forward_deprecated as mixtral_lce_forward
51
52
  from liger_kernel.transformers.model.mllama import lce_forward_deprecated as mllama_lce_forward
53
+ from liger_kernel.transformers.model.paligemma import lce_forward_deprecated as paligemma_lce_forward
52
54
  from liger_kernel.transformers.model.phi3 import lce_forward_deprecated as phi3_lce_forward
53
55
  from liger_kernel.transformers.model.qwen2 import lce_forward_deprecated as qwen2_lce_forward
54
56
 
@@ -126,6 +128,15 @@ def is_gemma3_available():
126
128
  return False
127
129
 
128
130
 
131
+ def is_paligemma_available():
132
+ try:
133
+ import transformers.models.paligemma # noqa: F401
134
+
135
+ return True
136
+ except ImportError:
137
+ return False
138
+
139
+
129
140
  def test_import_from_root():
130
141
  try:
131
142
  from liger_kernel.transformers import AutoLigerKernelForCausalLM # noqa: F401
@@ -793,6 +804,62 @@ def test_apply_liger_kernel_to_instance_for_gemma2():
793
804
  pytest.fail(f"An exception occured in extra_expr: {type(e).__name__} - {e}")
794
805
 
795
806
 
807
+ @pytest.mark.skipif(not is_paligemma_available(), reason="paligemma module not available")
808
+ def test_apply_liger_kernel_to_instance_for_paligemma():
809
+ # Ensure any monkey patching is cleaned up for subsequent tests
810
+ with patch("transformers.models.paligemma.modeling_paligemma"):
811
+ from transformers.models.paligemma.modeling_paligemma import PaliGemmaForConditionalGeneration
812
+
813
+ # Instantiate a dummy model
814
+ config = transformers.models.paligemma.configuration_paligemma.PaliGemmaConfig(
815
+ torch_dtype=torch.bfloat16,
816
+ text_config={
817
+ "num_hidden_layers": 2,
818
+ "rms_norm_eps": 1e-5,
819
+ "hidden_size": 32,
820
+ "intermediate_size": 64,
821
+ "hidden_act": "silu",
822
+ },
823
+ vision_config={
824
+ "num_hidden_layers": 2,
825
+ "layer_norm_eps": 1e-5,
826
+ "hidden_size": 48,
827
+ "intermediate_size": 64,
828
+ },
829
+ )
830
+
831
+ dummy_model_instance = PaliGemmaForConditionalGeneration(config)
832
+ assert isinstance(dummy_model_instance, PaliGemmaForConditionalGeneration)
833
+
834
+ # Check that model instance variables are not yet patched with Liger modules
835
+ assert inspect.getsource(dummy_model_instance.forward) != inspect.getsource(paligemma_lce_forward)
836
+ assert inspect.getsource(
837
+ dummy_model_instance.vision_tower.vision_model.post_layernorm.forward
838
+ ) != inspect.getsource(LigerLayerNorm.forward)
839
+
840
+ for layer in dummy_model_instance.vision_tower.vision_model.encoder.layers:
841
+ assert inspect.getsource(layer.layer_norm1.forward) != inspect.getsource(LigerLayerNorm.forward)
842
+ assert inspect.getsource(layer.layer_norm2.forward) != inspect.getsource(LigerLayerNorm.forward)
843
+
844
+ # Test applying kernels to the model instance
845
+ _apply_liger_kernel_to_instance(model=dummy_model_instance)
846
+
847
+ # Check that the model's instance variables were correctly patched with Liger modules
848
+ assert inspect.getsource(dummy_model_instance.forward) == inspect.getsource(paligemma_lce_forward)
849
+ assert inspect.getsource(
850
+ dummy_model_instance.vision_tower.vision_model.post_layernorm.forward
851
+ ) == inspect.getsource(LigerLayerNorm.forward)
852
+
853
+ for layer in dummy_model_instance.vision_tower.vision_model.encoder.layers:
854
+ assert inspect.getsource(layer.layer_norm1.forward) == inspect.getsource(LigerLayerNorm.forward)
855
+ assert inspect.getsource(layer.layer_norm2.forward) == inspect.getsource(LigerLayerNorm.forward)
856
+
857
+ try:
858
+ print(dummy_model_instance)
859
+ except Exception as e:
860
+ pytest.fail(f"An exception occured in extra_expr: {type(e).__name__} - {e}")
861
+
862
+
796
863
  @pytest.mark.skipif(not is_gemma3_available(), reason="gemma3 module not available")
797
864
  def test_apply_liger_kernel_to_instance_for_gemma3_text():
798
865
  # Ensure any monkey patching is cleaned up for subsequent tests