We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03e2947 commit b895511Copy full SHA for b895511
llama_cpp/llama.py
@@ -351,7 +351,7 @@ def _sample(
351
alpha_presence=presence_penalty,
352
)
353
if not penalize_nl:
354
- candidates.data[Llama.token_nl()].logit = nl_logit
+ candidates.data[Llama.token_nl()].logit = llama_cpp.c_float(nl_logit)
355
if temp.value == 0.0:
356
return llama_cpp.llama_sample_token_greedy(
357
ctx=self.ctx,
0 commit comments