We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 996f63e commit fd80ddfCopy full SHA for fd80ddf
1 file changed
examples/low_level_api/low_level_api_chat_cpp.py
@@ -330,7 +330,7 @@ def generate(self):
330
331
# Apply params.logit_bias map
332
for key, value in self.params.logit_bias.items():
333
- logits[key] += llama_cpp.c_float(value)
+ logits[key] += value
334
335
_arr = (llama_cpp.llama_token_data * n_vocab)(*[
336
llama_cpp.llama_token_data(token_id, logits[token_id], 0.0)
0 commit comments