Fix temperature bug
This commit is contained in:
parent
6702d2abfd
commit
66e28eb548
1 changed files with 1 additions and 1 deletions
|
@ -287,7 +287,7 @@ class Llama:
|
||||||
candidates=llama_cpp.ctypes.pointer(candidates),
|
candidates=llama_cpp.ctypes.pointer(candidates),
|
||||||
penalty=repeat_penalty,
|
penalty=repeat_penalty,
|
||||||
)
|
)
|
||||||
if temp == 0.0:
|
if float(temp) == 0.0:
|
||||||
return llama_cpp.llama_sample_token_greedy(
|
return llama_cpp.llama_sample_token_greedy(
|
||||||
ctx=self.ctx,
|
ctx=self.ctx,
|
||||||
candidates=llama_cpp.ctypes.pointer(candidates),
|
candidates=llama_cpp.ctypes.pointer(candidates),
|
||||||
|
|
Loading…
Reference in a new issue