Skip to content

Conversation

@albertvillanova
Copy link
Member

Add missing docstrings in trainers:

This pull request adds and improves documentation for three core trainer classes in the TRL library: GKDTrainer, PPOTrainer, and RewardTrainer. The main changes involve introducing detailed docstrings that clarify the purpose, usage, and arguments to instantiate each trainer, making the codebase easier to understand and maintain.

These updates will help new contributors and users understand the trainers' roles and how to configure them properly.

@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.

@albertvillanova albertvillanova merged commit e458df6 into huggingface:main Sep 8, 2025
2 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants