Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fd80ddf

Browse filesBrowse files
committed
Fix a bug with wrong type
1 parent 996f63e commit fd80ddf
Copy full SHA for fd80ddf

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎examples/low_level_api/low_level_api_chat_cpp.py

Copy file name to clipboardExpand all lines: examples/low_level_api/low_level_api_chat_cpp.py
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.