Skip to content

Tell Us: What Would Make Trainer Better? #43595

@SunMarc

Description

@SunMarc

RFC: Trainer improvements

The Trainer class is a core component of the Transformers library, and we're looking to make it even better.
We're gathering inputs on potential improvements, new features, and pain points you've experienced with the Trainer class.

We're particularly interested in feedback on:

  • Training Performance: Speed optimizations, memory efficiency, distributed training improvements
  • API & Usability: API design, documentation, ease of use, common pain points
  • Features & Functionality: Missing features, callbacks, logging, evaluation, checkpointing
  • Integration: Better integration with other libraries or tools
  • Debugging & Monitoring: Better error messages, debugging tools, training diagnostics
  • Developer Experience: Contributing to Trainer, extending functionality, custom trainers

💭 Questions to Guide Your Feedback

For Users

  • What's the most frustrating aspect of using Trainer?
  • What feature would save you the most time?
  • Are there any workarounds you regularly implement that should be built-in?
  • What use cases does Trainer not support well?
  • How could the documentation be improved?

For Developers

  • What would make it easier to extend or customize Trainer?
  • Are there architectural changes that would improve maintainability?
  • What integration points with other libraries should we prioritize?
  • Where do you see technical debt or areas needing refactoring?

📝 How to Contribute Your Ideas

Please share your thoughts by:

  1. Commenting below with your feature requests or improvement ideas
  2. Describing your use case - help us understand the problem you're trying to solve
  3. Being specific - concrete examples and scenarios are extremely helpful
  4. Upvoting ideas from others that you'd also find valuable

🤝 What Happens Next

  • We'll review all suggestions and feedback
  • Popular and high-impact ideas will be prioritized
  • Contributors interested in implementing features are welcome to volunteer!

🙏 Thank You

Your feedback drives the evolution of the Transformers library. Every perspective helps us build better tools for the ML community. Special thanks to @stas00 for getting this conversation started !

List of PRs created thanks to this thread

Surface-Level Unbloat

Methods

Initialization

Reroder

Refactor tests

Priority List

  • soon

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions