Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce new precision layout in PL #16783

Merged
merged 29 commits into from
Feb 17, 2023
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
f93e79e
adapt precision in fabric
justusschock Feb 15, 2023
682131c
adapt fabric tests to new precision
justusschock Feb 15, 2023
ff870f2
update docs
justusschock Feb 16, 2023
02591b0
fix cli
justusschock Feb 16, 2023
ad697a1
Merge branch 'master' into 2.0/precision
justusschock Feb 16, 2023
a5e4848
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 16, 2023
457b6d1
changelog
justusschock Feb 16, 2023
0299a29
cli fixes
justusschock Feb 16, 2023
2e66197
fix tests and warnings
justusschock Feb 16, 2023
af09b84
update PL docs
justusschock Feb 16, 2023
747a08c
update examples
justusschock Feb 16, 2023
de2281d
update src code
justusschock Feb 16, 2023
b4e2e01
update tests
justusschock Feb 16, 2023
b553824
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 16, 2023
8321309
Merge branch 'master' into 2.0/precision_PL
justusschock Feb 17, 2023
6976db7
update with latest fabric changes
justusschock Feb 17, 2023
a730bcc
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 17, 2023
e4eb724
fix tests
justusschock Feb 17, 2023
1ea5221
Merge branch 'master' into 2.0/precision_PL
justusschock Feb 17, 2023
84e24aa
update test to see results
justusschock Feb 17, 2023
3f8c319
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 17, 2023
cbb85ae
update tests
justusschock Feb 17, 2023
03482ce
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 17, 2023
4d19de4
update utils
justusschock Feb 17, 2023
14b06ad
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 17, 2023
01ef70e
update
justusschock Feb 17, 2023
69a46e5
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 17, 2023
4181d60
update
justusschock Feb 17, 2023
9cfbc24
revert pre-commit yet again
justusschock Feb 17, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update examples
  • Loading branch information
justusschock committed Feb 16, 2023
commit 747a08c8aa5ea26ff04d59fdee134d3ebd491ed8
2 changes: 1 addition & 1 deletion examples/app_multi_node/train_fabric.py
Original file line number Diff line number Diff line change
@@ -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()

2 changes: 1 addition & 1 deletion examples/pl_hpu/mnist_sample.py
Original file line number Diff line number Diff line change
@@ -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},