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

[Judges] use the pair-judges in online-preference trainers #2243

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

kashif
Copy link
Collaborator

@kashif kashif commented Oct 16, 2024

What does this PR do?

add support for judges API in online-pref methods

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

@qgallouedec
Copy link
Member

@kashif can you also add an example in the online dpo documentation? And a test?

@kashif
Copy link
Collaborator Author

kashif commented Oct 17, 2024

working on test thanks!

Comment on lines +427 to +429
self.processing_class.decode(ids[:context_length], skip_special_tokens=True)
for ids in prompt_completion_ids[:num_examples]
]
Copy link
Member

Choose a reason for hiding this comment

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

can we use batch_decode here?

Comment on lines +389 to +398
# self._log_statistics(
# model_data,
# mixture_data,
# model_logprobs_model_data.detach(),
# ref_logprobs_model_data,
# probability,
# score.detach(),
# kl_div.detach(),
# context_length,
# )
Copy link
Member

Choose a reason for hiding this comment

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

wip?

kashif and others added 3 commits October 18, 2024 16:12
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