fix: simplify FSDP config, comment out mixed_precision
This commit is contained in:
2
train.py
2
train.py
@@ -177,7 +177,7 @@ def train(config_path):
|
|||||||
"limit_all_gathers": True,
|
"limit_all_gathers": True,
|
||||||
"sync_module_states": True,
|
"sync_module_states": True,
|
||||||
"use_orig_params": True, # Critical for LoRA/PEFT
|
"use_orig_params": True, # Critical for LoRA/PEFT
|
||||||
"mixed_precision": {"param_dtype": torch.bfloat16, "reduce_dtype": torch.float32, "buffer_dtype": torch.float32},
|
# "mixed_precision": {"param_dtype": torch.bfloat16, "reduce_dtype": torch.float32, "buffer_dtype": torch.float32},
|
||||||
"auto_wrap_policy": "TRANSFORMER_BASED_WRAP",
|
"auto_wrap_policy": "TRANSFORMER_BASED_WRAP",
|
||||||
"transformer_layer_cls_to_wrap": "Qwen3_5MoeDecoderLayer",
|
"transformer_layer_cls_to_wrap": "Qwen3_5MoeDecoderLayer",
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user