Skip to content

Remove default random seed in query_llm #17

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

niansong1996
Copy link

Why ?

I just found an issue for sampling using matrix, because there is a default seed=42 in query_llm.py, different requests with the same prefix without setting the seeds would result in the exact same response.

This might not be an expected behavior as not setting random seed should typically mean we are getting random outputs.

How ?

Use the NOT_GIVEN as well as a random_ranom_seed

Test plan

Locally testing [WIP]

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label May 6, 2025
@niansong1996 niansong1996 requested a review from dongwang218 May 6, 2025 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants