mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-01-16 15:34:30 +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.
|
||||
"""
|
||||
|
||||
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."""
|
||||
cache_config: CacheConfig = field(default_factory=CacheConfig)
|
||||
"""Cache configuration."""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user