-
Notifications
You must be signed in to change notification settings - Fork 227
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
Flags for varying NIM seed and temperature every call #808
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefer initializing seed in __init__
even if set to None
as the value would be filtered from create_args
before sending with the request.
Using _config.run
values as shared state
seems prone to issues and has been discussed.
Signed-off-by: Jeffrey Martin <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor change pushed in 2779ede, another idea is also proposed to defer to Configurable
pattern a bit more.
Signed-off-by: Jeffrey Martin <[email protected]>
NIMs tend to always give the same response for a given config. This breaks the method of using
generations > 1
for stochastic testing. This PR adds two options to make sure the random seed or temperature are varied every call. Not all existing NIMs respect the values in these fields, so the options are both setTrue
by default, to give the best chances ofgenerations > 1
working as expected (i.e. generating multiple potentially different responses).