Skip to content

Commit e270eb1

Browse files
committed
update llama.cpp API 20250719
1 parent 575e81d commit e270eb1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llama_cpp/llama_cpp.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4041,6 +4041,7 @@ def llama_log_set(
40414041
#
40424042
# int32_t n_p_eval;
40434043
# int32_t n_eval;
4044+
# int32_t n_reused; // number of times a ggml compute graph had been reused
40444045
# };
40454046
class llama_perf_context_data(ctypes.Structure):
40464047
_fields_ = [
@@ -4050,6 +4051,7 @@ class llama_perf_context_data(ctypes.Structure):
40504051
("t_eval_ms", ctypes.c_double),
40514052
("n_p_eval", ctypes.c_int32),
40524053
("n_eval", ctypes.c_int32),
4054+
("n_reused", ctypes.c_int32),
40534055
]
40544056

40554057

0 commit comments

Comments
 (0)