@@ -28,8 +28,6 @@ def __init__(
2828 category : ModelCategory ,
2929 state : ModelStates ,
3030 model_type : str = "" ,
31- config_cls : str = "" ,
32- model_cls : str = "" ,
3331 pipeline_cls : str = "" ,
3432 repo_id : str = "" ,
3533 auto_map : Optional [Dict ] = None ,
@@ -39,8 +37,6 @@ def __init__(
3937 self .model_type = model_type
4038 self .category = category
4139 self .state = state
42- self .config_cls = config_cls
43- self .model_cls = model_cls
4440 self .pipeline_cls = pipeline_cls
4541 self .repo_id = repo_id
4642 self .auto_map = auto_map # If exists, indicates it's a Transformers model
@@ -114,19 +110,23 @@ def __repr__(self):
114110 category = ModelCategory .BUILTIN ,
115111 state = ModelStates .INACTIVE ,
116112 model_type = "timer" ,
117- config_cls = "configuration_timer.TimerConfig" ,
118- model_cls = "modeling_timer.TimerForPrediction" ,
119113 pipeline_cls = "pipeline_timer.TimerPipeline" ,
120114 repo_id = "thuml/timer-base-84m" ,
115+ auto_map = {
116+ "AutoConfig" : "configuration_timer.TimerConfig" ,
117+ "AutoModelForCausalLM" : "modeling_timer.TimerForPrediction" ,
118+ },
121119 ),
122120 "sundial" : ModelInfo (
123121 model_id = "sundial" ,
124122 category = ModelCategory .BUILTIN ,
125123 state = ModelStates .INACTIVE ,
126124 model_type = "sundial" ,
127- config_cls = "configuration_sundial.SundialConfig" ,
128- model_cls = "modeling_sundial.SundialForPrediction" ,
129125 pipeline_cls = "pipeline_sundial.SundialPipeline" ,
130126 repo_id = "thuml/sundial-base-128m" ,
127+ auto_map = {
128+ "AutoConfig" : "configuration_sundial.SundialConfig" ,
129+ "AutoModelForCausalLM" : "modeling_sundial.SundialForPrediction" ,
130+ },
131131 ),
132132}
0 commit comments