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:
- Commenting below with your feature requests or improvement ideas
- Describing your use case - help us understand the problem you're trying to solve
- Being specific - concrete examples and scenarios are extremely helpful
- 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
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:
💭 Questions to Guide Your Feedback
For Users
For Developers
📝 How to Contribute Your Ideas
Please share your thoughts by:
🤝 What Happens Next
🙏 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