fix(mm): move variant to MainConfigBase

shoulda been here all along
This commit is contained in:
psychedelicious 2024-04-23 19:48:47 +10:00 committed by Kent Keirsey
parent 2537d260e3
commit 0aa5aadfe8

View File

@ -301,12 +301,13 @@ class MainConfigBase(ModelConfigBase):
default_settings: Optional[MainModelDefaultSettings] = Field(
description="Default settings for this model", default=None
)
variant: ModelVariantType = ModelVariantType.Normal
class MainCheckpointConfig(CheckpointConfigBase, MainConfigBase):
"""Model config for main checkpoint models."""
variant: ModelVariantType = ModelVariantType.Normal
prediction_type: SchedulerPredictionType = SchedulerPredictionType.Epsilon
upcast_attention: bool = False