update value check for n_gpu_layers field (#826)

This commit is contained in:
Xiaoyu Kevin Hu 2023-10-18 17:25:25 -05:00 committed by GitHub
parent d989ac86e6
commit a315128d66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,8 +48,8 @@ class Settings(BaseSettings):
)
n_gpu_layers: int = Field(
default=0,
ge=0,
description="The number of layers to put on the GPU. The rest will be on the CPU.",
ge=-1,
description="The number of layers to put on the GPU. The rest will be on the CPU. Set -1 to move all to GPU.",
)
main_gpu: int = Field(
default=0,