mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-09-04 04:26:58 +08:00
Don't default construct ModelConfig when default constructing VllmConfig (#17943)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
parent
fc4441a4ee
commit
68311891f5
@ -3954,7 +3954,9 @@ class VllmConfig:
|
|||||||
simplifies passing around the distinct configurations in the codebase.
|
simplifies passing around the distinct configurations in the codebase.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
model_config: ModelConfig = field(default_factory=ModelConfig)
|
# TODO: use default_factory once default constructing ModelConfig doesn't
|
||||||
|
# try to download a model
|
||||||
|
model_config: ModelConfig = None # type: ignore
|
||||||
"""Model configuration."""
|
"""Model configuration."""
|
||||||
cache_config: CacheConfig = field(default_factory=CacheConfig)
|
cache_config: CacheConfig = field(default_factory=CacheConfig)
|
||||||
"""Cache configuration."""
|
"""Cache configuration."""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user