mirror of
https://github.com/abetlen/llama-cpp-python.git
synced 2023-09-07 17:34:22 +03:00
Fix resize issue. Closes #330
This commit is contained in:
@@ -222,7 +222,7 @@ class Llama:
|
||||
[("id", np.intc), ("logit", np.single), ("p", np.single)], align=True
|
||||
),
|
||||
)
|
||||
self._candidates_data.resize(3, self._n_vocab)
|
||||
self._candidates_data.resize(3, self._n_vocab, refcheck=False)
|
||||
candidates = llama_cpp.llama_token_data_array(
|
||||
data=self._candidates_data.ctypes.data_as(llama_cpp.llama_token_data_p),
|
||||
size=size,
|
||||
|
||||
Reference in New Issue
Block a user