fix: force FSDP1 with string value to avoid FSDP2 gather spike
This commit is contained in:
2
train.py
2
train.py
@@ -169,7 +169,7 @@ def train(config_path):
|
||||
eval_steps=config.get("eval_steps", 100),
|
||||
bf16=True,
|
||||
gradient_checkpointing=False, # FSDP activation_checkpointing handles it
|
||||
fsdp=True,
|
||||
fsdp="full_shard", # Force FSDP1 (not FSDP2)
|
||||
fsdp_config={
|
||||
"sharding_strategy": "SHARD_GRAD_OP",
|
||||
"cpu_offload": False,
|
||||
|
||||
Reference in New Issue
Block a user