refactor _inner_training_loop to smaller methods#44041
refactor _inner_training_loop to smaller methods#44041winglian merged 21 commits intohuggingface:mainfrom
Conversation
|
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. |
SunMarc
left a comment
There was a problem hiding this comment.
I saw that you mostly split the _inner_training_loop into three separate private methods. I was thinking maybe it could the chance to try simplifying and reorganizing _inner_training_loop ? Like move things that feel out of place somewhere else and simplify a logic that feels a bit strange/complicated.
|
/trl-ci |
6396335 to
b37736d
Compare
|
I've tried to simplify/reorganize a bunch of things to make things a bit clearer. I tweaked a bit with the internals but I will probably stop there and first get this merged before it gets too complicated to follow all the changes. |
|
/trl-ci |
|
Some FSDPv2 tests are not passing on trl , investigating. The issue was the following: The crash only happens when |
|
is it something that is done wrong in grpo/rloo? |
|
/trl-ci |
|
trl tests look good: https://github.com/huggingface/trl/actions/runs/22246318776 (distributed smoke test is in queue, I don't know why it doesn't start) |
winglian
left a comment
There was a problem hiding this comment.
Latest changes all look good. I can't approve the PR since I opened it.
SunMarc
left a comment
There was a problem hiding this comment.
Let's get this merged ! thanks !
No it was just something that I deleted |
What does this PR do?
Alternate PR to #43985 to be a reorder only PR.
Fixes # (issue)
Before submitting
Pull Request section?
to it if that's the case.
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.