Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NeuronORPOTrainer #719

Merged
merged 12 commits into from
Nov 4, 2024
Merged

NeuronORPOTrainer #719

merged 12 commits into from
Nov 4, 2024

Conversation

michaelbenayoun
Copy link
Member

@michaelbenayoun michaelbenayoun commented Oct 17, 2024

What does this PR do?

Adds initial support for the ORPOTRainer but without parallelism support.

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

@michaelbenayoun michaelbenayoun marked this pull request as ready for review October 17, 2024 13:36
@dacorvo
Copy link
Collaborator

dacorvo commented Oct 25, 2024

@michaelbenayoun the CI is failing with your changes: can you check what went wrong so that we can start reviewing the pull-request ?

@michaelbenayoun
Copy link
Member Author

I did not add tests so I do not think it is related. I will still check. For now I am debugging NaN loss when bf16=True.

Copy link
Collaborator

@dacorvo dacorvo left a comment

Choose a reason for hiding this comment

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

Thanks for the pull-request ! LGTM, but I would like the changes to the original trl code to appear more clearly.

optimum/neuron/trainers.py Show resolved Hide resolved
optimum/neuron/trainers.py Outdated Show resolved Hide resolved
@michaelbenayoun
Copy link
Member Author

Can I merge?

Copy link
Collaborator

@dacorvo dacorvo left a comment

Choose a reason for hiding this comment

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

LGTM, thanks !

@michaelbenayoun michaelbenayoun merged commit 02c331d into main Nov 4, 2024
9 of 11 checks passed
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.

3 participants