[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
80d84a5b5f
commit
7202f81985
1 changed files with 14 additions and 7 deletions
|
|
@ -344,13 +344,20 @@ class LlamaCppBackend:
|
|||
|
||||
cmd = [
|
||||
binary,
|
||||
"-m", model_path,
|
||||
"--port", str(self._port),
|
||||
"-c", str(n_ctx),
|
||||
"-ngl", str(n_gpu_layers),
|
||||
"--parallel", "1", # Single-user studio, saves VRAM
|
||||
"--flash-attn", "on", # Force flash attention for speed
|
||||
"--fit", "on", # Auto-fit to available device memory
|
||||
"-m",
|
||||
model_path,
|
||||
"--port",
|
||||
str(self._port),
|
||||
"-c",
|
||||
str(n_ctx),
|
||||
"-ngl",
|
||||
str(n_gpu_layers),
|
||||
"--parallel",
|
||||
"1", # Single-user studio, saves VRAM
|
||||
"--flash-attn",
|
||||
"on", # Force flash attention for speed
|
||||
"--fit",
|
||||
"on", # Auto-fit to available device memory
|
||||
]
|
||||
|
||||
if n_threads is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue