We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52753b7 commit 34c505eCopy full SHA for 34c505e
llama_cpp/llama.py
@@ -537,7 +537,7 @@ def _sample(
537
mirostat_mu = llama_cpp.c_float(2.0 * mirostat_tau.value)
538
llama_cpp.llama_sample_temperature(
539
ctx=self.ctx,
540
- candidates=llama_cpp.ctypes.pointer(candidates),
+ candidates=llama_cpp.ctypes.byref(candidates), # type: ignore
541
temp=temp,
542
)
543
return llama_cpp.llama_sample_token_mirostat_v2(
0 commit comments