10000 Update llama.py · lidanger/llama-cpp-python@aa12d8a · GitHub
[go: up one dir, main page]

Skip to content

Commit aa12d8a

Browse files
author
eiery
authored
Update llama.py
update n_batch default to 512 to match upstream llama.cpp
1 parent e99caed commit aa12d8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llama_cpp/llama.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def __init__(
3737
use_mlock: bool = False,
3838
embedding: bool = False,
3939
n_threads: Optional[int] = None,
40-
n_batch: int = 8,
40+
n_batch: int = 512,
4141
last_n_tokens_size: int = 64,
4242
lora_base: Optional[str] = None,
4343
lora_path: Optional[str] = None,

0 commit comments

Comments
 (0)
0