Skip to content

Commit 79e0b68

Browse files
Min-HuaMin-Hua Chen
andauthored
llama: add LLAMA_API to deprecated llama_kv_self_seq_div (ggml-org#14708)
Add LLAMA_API to fix the run-time error with llama-cpp-python in Windows env: attributeError: function 'llama_kv_self_seq_div' not found. Did you mean: 'llama_kv_self_seq_add'? Although llama_kv_self_seq_div() has been marked deprecated but it is necessary to export it to make llama-cpp-python happy. Observed software version: OS: windows compiler: MSVC llama-cpp-python: tag: v0.3.12-cu124 llama.cpp: tag: b5833 Signed-off-by: Min-Hua Chen <[email protected]> Co-authored-by: Min-Hua Chen <[email protected]>
1 parent c81f419 commit 79e0b68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/llama.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ extern "C" {
725725
// - lazily on next llama_decode()
726726
// p0 < 0 : [0, p1]
727727
// p1 < 0 : [p0, inf)
728-
DEPRECATED(void llama_kv_self_seq_div(
728+
DEPRECATED(LLAMA_API void llama_kv_self_seq_div(
729729
struct llama_context * ctx,
730730
llama_seq_id seq_id,
731731
llama_pos p0,

0 commit comments

Comments
 (0)