Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4a85442

Browse filesBrowse files
committed
Update llama.cpp
1 parent 2f03fb0 commit 4a85442
Copy full SHA for 4a85442

File tree

Expand file treeCollapse file tree

2 files changed

+8
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+8
-2
lines changed

‎llama_cpp/llama_cpp.py

Copy file name to clipboardExpand all lines: llama_cpp/llama_cpp.py
+7-1Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,8 +733,14 @@ def llama_n_ctx(ctx: llama_context_p) -> int:
733733

734734

735735
_lib.llama_n_ctx.argtypes = [llama_context_p]
736-
_lib.llama_n_ctx.restype = c_int
736+
_lib.llama_n_ctx.restype = c_uint32
737737

738+
# LLAMA_API uint32_t llama_n_batch (const struct llama_context * ctx);
739+
def llama_n_batch(ctx: llama_context_p) -> int:
740+
return _lib.llama_n_batch(ctx)
741+
742+
_lib.llama_n_batch.argtypes = [llama_context_p]
743+
_lib.llama_n_batch.restype = c_uint32
738744

739745
# LLAMA_API enum llama_vocab_type llama_vocab_type(const struct llama_model * model);
740746
def llama_vocab_type(model: llama_model_p) -> int:

‎vendor/llama.cpp

Copy file name to clipboard

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.