Skip to content

fix: dpo trainer ds config#957

Merged
younesbelkada merged 2 commits intohuggingface:mainfrom
mengban:fix-dpo-trainer-ds-config
Nov 6, 2023
Merged

fix: dpo trainer ds config#957
younesbelkada merged 2 commits intohuggingface:mainfrom
mengban:fix-dpo-trainer-ds-config

Conversation

@mengban
Copy link
Copy Markdown
Contributor

@mengban mengban commented Nov 5, 2023

ref_model and model shouldnt share the same ds config, so we shouldnt modify the ds config directly. or else, it will cause sth wrong when init deepspeed engine

ref_model and model shouldn share the same ds config, so we shouldn modify the ds config directly. or else, it will cause sth wrong when init deepspeed engine
Copy link
Copy Markdown
Contributor

@younesbelkada younesbelkada left a comment

Choose a reason for hiding this comment

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

This should be good ! Thanks!

@younesbelkada
Copy link
Copy Markdown
Contributor

@mengban before merging can you run the styling checks ? make precommit

@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

import sort by isort
@mengban
Copy link
Copy Markdown
Contributor Author

mengban commented Nov 6, 2023

@mengban before merging can you run the styling checks ? make precommit

ok, I have submitted a new commit to solve the problem of import sorting.

@mengban mengban requested a review from younesbelkada November 6, 2023 12:38
Copy link
Copy Markdown
Contributor

@younesbelkada younesbelkada left a comment

Choose a reason for hiding this comment

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

Thanks again!

@younesbelkada younesbelkada merged commit 8e9cae8 into huggingface:main Nov 6, 2023
lapp0 pushed a commit to lapp0/trl that referenced this pull request May 10, 2024
* fix: dpo trainer ds config

ref_model and model shouldn share the same ds config, so we shouldn modify the ds config directly. or else, it will cause sth wrong when init deepspeed engine

* fix: import sort

import sort by isort
yxliu-TAMU pushed a commit to mincheolseong/ECEN743-GRPO-Project-Proposal that referenced this pull request Apr 20, 2025
* fix: dpo trainer ds config

ref_model and model shouldn share the same ds config, so we shouldn modify the ds config directly. or else, it will cause sth wrong when init deepspeed engine

* fix: import sort

import sort by isort
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