8000 Add missing n_seq_id to llama_batch · NickAlgra/llama-cpp-python@65bcd14 · GitHub
[go: up one dir, main page]

Skip to content

Commit 65bcd14

Browse files
authored
Add missing n_seq_id to llama_batch
1 parent acf50f1 commit 65bcd14

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
@@ -243,6 +243,7 @@ class llama_token_data_array(Structure):
243243
# llama_token * token;
244244
# float * embd;
245245
# llama_pos * pos;
246+
# int32_t * n_seq_id;
246247
# llama_seq_id ** seq_id;
247248
# int8_t * logits;
248249

@@ -262,6 +263,7 @@ class llama_batch(Structure):
262263
("token", POINTER(llama_token)),
263264
("embd", c_float_p),
264265
("pos", POINTER(llama_pos)),
266+
("n_seq_id", POINTER(c_int32)),
265267
("seq_id", POINTER(POINTER(llama_seq_id))),
266268
("logits", POINTER(c_int8)),
267269
("all_pos_0", llama_pos),

0 commit comments

Comments
 (0)
0