File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
torchtitan/experiments/qwen3 Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1313from torchtitan .components .validate import build_validator
1414from torchtitan .datasets .hf_datasets import build_hf_dataloader
1515from torchtitan .models .moe import MoEArgs
16- from torchtitan .protocols .train_spec import register_train_spec , TrainSpec
16+ from torchtitan .protocols .train_spec import TrainSpec
1717
1818from .infra .parallelize import parallelize_qwen3
1919from .model .args import Qwen3ModelArgs
178178}
179179
180180
181- register_train_spec (
182- TrainSpec (
181+ def get_train_spec () -> TrainSpec :
182+ return TrainSpec (
183183 name = "qwen3" ,
184184 model_cls = Qwen3Model ,
185185 model_args = qwen3_configs , # Change from dict to Mapping
193193 build_validator_fn = build_validator ,
194194 state_dict_adapter = Qwen3StateDictAdapter ,
195195 )
196- )
You can’t perform that action at this time.
0 commit comments