mirror of
https://github.com/abetlen/llama-cpp-python.git
synced 2023-09-07 17:34:22 +03:00
Fix penalize_nl
This commit is contained in:
@@ -351,7 +351,7 @@ class Llama:
|
||||
alpha_presence=presence_penalty,
|
||||
)
|
||||
if not penalize_nl:
|
||||
candidates.data[Llama.token_nl()].logit = nl_logit
|
||||
candidates.data[Llama.token_nl()].logit = llama_cpp.c_float(nl_logit)
|
||||
if temp.value == 0.0:
|
||||
return llama_cpp.llama_sample_token_greedy(
|
||||
ctx=self.ctx,
|
||||
|
||||
Reference in New Issue
Block a user