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

Prevent sampling 2x more than requested when max_steps is set #556

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

tomaarsen
Copy link
Member

Hello!

Pull Request overview

  • Prevent sampling 2x more than requested

Details

max_pairs was used to limit pos_pairs and neg_pairs, but that results in 2 * max_pairs being created. This fixes that by placing a // 2 over max_pairs.

  • Tom Aarsen

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

@tomaarsen tomaarsen merged commit 223afb6 into huggingface:main Sep 18, 2024
22 checks passed
@tomaarsen tomaarsen deleted the fix/prevent_sampling_double branch September 18, 2024 14:22
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.

2 participants