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 a315128

Browse filesBrowse files
authored
update value check for n_gpu_layers field (abetlen#826)
1 parent d989ac8 commit a315128
Copy full SHA for a315128

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+2
-2
lines changed

‎llama_cpp/server/app.py

Copy file name to clipboardExpand all lines: llama_cpp/server/app.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ class Settings(BaseSettings):
4848
)
4949
n_gpu_layers: int = Field(
5050
default=0,
51-
ge=0,
52-
description="The number of layers to put on the GPU. The rest will be on the CPU.",
51+
ge=-1,
52+
description="The number of layers to put on the GPU. The rest will be on the CPU. Set -1 to move all to GPU.",
5353
)
5454
main_gpu: int = Field(
5555
default=0,

0 commit comments

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