8000 Fix a bug with wrong type · fabregas201307/llama-cpp-python@fd80ddf · GitHub
[go: up one dir, main page]

Skip to content

Commit fd80ddf

Browse files
committed
Fix a bug with wrong type
1 parent 996f63e commit fd80ddf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/low_level_api/low_level_api_chat_cpp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ def generate(self):
330330

331331
# Apply params.logit_bias map
332332
for key, value in self.params.logit_bias.items():
333-
logits[key] += llama_cpp.c_float(value)
333+
logits[key] += value
334334

335335
_arr = (llama_cpp.llama_token_data * n_vocab)(*[
336336
llama_cpp.llama_token_data(token_id, logits[token_id], 0.0)

0 commit comments

Comments
 (0)
0