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 91d05ab

Browse filesBrowse files
committed
fix: adjust kv_override member names to match llama.cpp
1 parent df45a4b commit 91d05ab
Copy full SHA for 91d05ab

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+8
-8
lines changed

‎llama_cpp/llama_cpp.py

Copy file name to clipboardExpand all lines: llama_cpp/llama_cpp.py
+8-8Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -613,17 +613,17 @@ class llama_batch(ctypes.Structure):
613613
# };
614614
class llama_model_kv_override_value(ctypes.Union):
615615
_fields_ = [
616-
("int_value", ctypes.c_int64),
617-
("float_value", ctypes.c_double),
618-
("bool_value", ctypes.c_bool),
619-
("str_value", ctypes.c_char * 128),
616+
("val_i64", ctypes.c_int64),
617+
("val_f64", ctypes.c_double),
618+
("val_bool", ctypes.c_bool),
619+
("val_str", ctypes.c_char * 128),
620620
]
621621

622622
if TYPE_CHECKING:
623-
int_value: int
624-
float_value: float
625-
bool_value: bool
626-
str_value: bytes
623+
val_i64: int
624+
val_f64: float
625+
val_bool: bool
626+
val_str: bytes
627627

628628

629629
class llama_model_kv_override(ctypes.Structure):

0 commit comments

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