We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent add0841 commit 85f9049Copy full SHA for 85f9049
examples/llama_cpp.py
@@ -260,7 +260,7 @@ def llama_get_state_size(ctx: llama_context_p) -> c_size_t:
260
# Returns the number of bytes copied
261
def llama_copy_state_data(
262
ctx: llama_context_p, dest # type: Array[c_uint8]
263
-) -> c_size_t:
+) -> int:
264
return _lib.llama_copy_state_data(ctx, dest)
265
266
@@ -272,7 +272,7 @@ def llama_copy_state_data(
272
# Returns the number of bytes read
273
def llama_set_state_data(
274
ctx: llama_context_p, src # type: Array[c_uint8]
275
276
return _lib.llama_set_state_data(ctx, src)
277
278
0 commit comments