Skip to content

Commit

Permalink
update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
justusschock committed Feb 16, 2023
1 parent af09b84 commit 747a08c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/app_multi_node/train_fabric.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def run(self):
)

# 2. Create Fabric.
fabric = Fabric(strategy="ddp", precision=16)
fabric = Fabric(strategy="ddp", precision='16-mixed')
model, optimizer = fabric.setup(model, torch.optim.SGD(model.parameters(), lr=0.01))
criterion = torch.nn.MSELoss()

Expand Down
2 changes: 1 addition & 1 deletion examples/pl_hpu/mnist_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def configure_optimizers(self):
"accelerator": "hpu",
"devices": 1,
"max_epochs": 1,
"plugins": lazy_instance(HPUPrecisionPlugin, precision=16),
"plugins": lazy_instance(HPUPrecisionPlugin, precision='16-mixed'),
},
run=False,
save_config_kwargs={"overwrite": True},
Expand Down

0 comments on commit 747a08c

Please sign in to comment.