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:
Harry Mellor 2025-05-10 14:23:00 +01:00 committed by GitHub
parent fc4441a4ee
commit 68311891f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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."""