-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Use new inference model config / API #2208
Conversation
parent_id, | ||
work_parameters: { | ||
...params, | ||
top_k: params.top_k === null ? null : Math.floor(Math.pow(32000, params.top_k)), |
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.
Have you tested the top_k here? Andreas suggest an exponential function for this.
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.
ah nvm I see the config below
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.
Yeah just for info: this works for the custom config where the slider goes between 0 and 1, but for all the presets it computes pow(32000, 50)
or similar.
I did not find a clean way of changing this so I changed min and max. Arguably, no more than 1000 is needed, because the sampling probability is already so low it might as well be zero.
const form = useForm<WorkParametersInput>({ | ||
defaultValues: modelInfos[0].parameter_configs[0].work_parameters, | ||
|
||
console.assert(modelInfos.length > 0, "No model config was found"); |
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.
I think we can ignore this and assume the backend always returns at least 1 config.
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.
Yes, this console.assert
is there to inform other developers that we expect the array to have at least one. You and I know that, any new person who might look over this might not know this.
0739957
to
4ad687b
Compare
Blocked by #2207