fix: correct default value for max_memory. (#284)
* fix: correct default value for max_memory. The other does not compile. * fix: update syntax for default value of max_memory
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ quantization = "none"
|
|||||||
device_map = "auto"
|
device_map = "auto"
|
||||||
|
|
||||||
# Maximum memory to allocate per device.
|
# Maximum memory to allocate per device.
|
||||||
# max_memory = {"0": "20GB", "cpu": "64GB"}
|
# max_memory = { "0" = "20GB", "cpu" = "64GB" }
|
||||||
|
|
||||||
# Number of input sequences to process in parallel (0 = auto).
|
# Number of input sequences to process in parallel (0 = auto).
|
||||||
batch_size = 0 # auto
|
batch_size = 0 # auto
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ class Settings(BaseSettings):
|
|||||||
|
|
||||||
max_memory: Dict[str, str] | None = Field(
|
max_memory: Dict[str, str] | None = Field(
|
||||||
default=None,
|
default=None,
|
||||||
description='Maximum memory to allocate per device (e.g., {"0": "20GB", "cpu": "64GB"}).',
|
description='Maximum memory to allocate per device (e.g., { "0" = "20GB", "cpu" = "64GB" }).',
|
||||||
)
|
)
|
||||||
|
|
||||||
trust_remote_code: bool | None = Field(
|
trust_remote_code: bool | None = Field(
|
||||||
|
|||||||
Reference in New Issue
Block a user