fix: remove sync_module_states=True (model is on CPU)
This commit is contained in:
2
train.py
2
train.py
@@ -201,7 +201,7 @@ def train(config_path):
|
|||||||
auto_wrap_policy=get_auto_wrap_policy(model),
|
auto_wrap_policy=get_auto_wrap_policy(model),
|
||||||
device_id=None, # Keep on CPU initially
|
device_id=None, # Keep on CPU initially
|
||||||
mixed_precision=None,
|
mixed_precision=None,
|
||||||
sync_module_states=True,
|
sync_module_states=False, # Model is on CPU, no sync needed
|
||||||
use_orig_params=True,
|
use_orig_params=True,
|
||||||
)
|
)
|
||||||
print("✓ Model wrapped with FSDP (will be sharded across GPUs during training)")
|
print("✓ Model wrapped with FSDP (will be sharded across GPUs during training)")
|
||||||
|
|||||||
Reference in New Issue
Block a user