Skip to content

Commit 8b4968e

Browse files
committed
Fix resize issue. Closes ggml-org#330
1 parent cc8858a commit 8b4968e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llama_cpp/llama.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def __init__(
222222
[("id", np.intc), ("logit", np.single), ("p", np.single)], align=True
223223
),
224224
)
225-
self._candidates_data.resize(3, self._n_vocab)
225+
self._candidates_data.resize(3, self._n_vocab, refcheck=False)
226226
candidates = llama_cpp.llama_token_data_array(
227227
data=self._candidates_data.ctypes.data_as(llama_cpp.llama_token_data_p),
228228
size=size,

0 commit comments

Comments
 (0)