Skip to content

When posting a request to the server, what is the format for specifying logit biases? #4392

Answered by KerfuffleV2
phasiclabs asked this question in Q&A
Discussion options

You must be logged in to vote

I checked the code. It looks like it want an array of token id/bias pairs or instead of bias you can use a bool and false is the same as setting negative infinity as the bias. So that would be [[TOKEN_ID, BIAS], [TOKEN_ID, BIAS]] or more specifically [[123,1.1], [345,-1.0]].

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@phasiclabs
Comment options

@phasiclabs
Comment options

Answer selected by phasiclabs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants