Skip to content

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