We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 64409eb + 6e1a975 commit 1eb7a46Copy full SHA for 1eb7a46
llama-cpp-2/src/model.rs
@@ -454,7 +454,7 @@ impl LlamaModel {
454
let message_length = chat.iter().fold(0, |acc, c| {
455
acc + c.role.to_bytes().len() + c.content.to_bytes().len()
456
});
457
- let mut buff: Vec<i8> = vec![0_i8; message_length * 2];
+ let mut buff: Vec<i8> = vec![0_i8; message_length * 4];
458
459
// Build our llama_cpp_sys_2 chat messages
460
let chat: Vec<llama_cpp_sys_2::llama_chat_message> = chat
0 commit comments