hmmm
This commit is contained in:
@@ -371,6 +371,7 @@ def fsdp2_prepare_model(accelerator, model: torch.nn.Module) -> torch.nn.Module:
|
|||||||
model.tie_weights()
|
model.tie_weights()
|
||||||
|
|
||||||
is_peft_model = isinstance(model, PeftModel)
|
is_peft_model = isinstance(model, PeftModel)
|
||||||
|
# TODO - this doesn't actually do anything
|
||||||
for name, module in model.named_children():
|
for name, module in model.named_children():
|
||||||
if name == "experts":
|
if name == "experts":
|
||||||
# torch.distributed.breakpoint()
|
# torch.distributed.breakpoint()
|
||||||
|
|||||||
Reference in New Issue
Block a user