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
-
Beta Was this translation helpful? Give feedback.
Answered by
KerfuffleV2
Dec 9, 2023
Replies: 1 comment 2 replies
-
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 |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
phasiclabs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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]]
.