Skip to content

Conversation

@behroozazarkhalili
Copy link
Collaborator

Summary

Improves the Liger Kernel integration guide by clearly listing all supported trainers and providing examples for each.

Resolves #4386

Changes

File Modified:

  • docs/source/liger_kernel_integration.md

Improvements:

  1. Added "Supported Trainers" section listing all 5 trainers that support Liger:

    • SFT (Supervised Fine-Tuning)
    • DPO (Direct Preference Optimization)
    • GRPO (Group Relative Policy Optimization)
    • KTO (Kahneman-Tversky Optimization)
    • GKD (Generalized Knowledge Distillation)
  2. Enhanced examples with hfoptions tabs showing usage for all 5 trainers instead of just SFT

  3. Removed "under construction" warning as the guide is now comprehensive

  4. Improved consistency by following the same format as reducing_memory_usage.md

Verification

  • ✅ Verified trainer support by searching codebase for use_liger_kernel implementation
  • ✅ Confirmed all 5 trainers have config support and implementation
  • ✅ Format matches existing documentation patterns (hfoptions with multiple tabs)
  • ✅ All trainer names spelled correctly with proper expansions

Before this PR, only SFT was shown as an example, making it unclear which other trainers support Liger. Now users can easily see all supported trainers and find the example for their specific use case.

Resolves #4386

- Add "Supported Trainers" section listing SFT, DPO, GRPO, KTO, and GKD
- Replace single SFT example with hfoptions showing all 5 supported trainers
- Remove "under construction" warning as guide is now complete
- Follow same format as reducing_memory_usage.md for consistency
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Member

@qgallouedec qgallouedec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@behroozazarkhalili behroozazarkhalili merged commit 8d64144 into main Nov 3, 2025
3 checks passed
@behroozazarkhalili behroozazarkhalili deleted the docs/list-liger-supported-trainers branch November 3, 2025 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reference supported trainers in Liger Kernel integration guide

4 participants