We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00d310e commit 4b86475Copy full SHA for 4b86475
src/sagemaker/estimator.py
@@ -3851,7 +3851,9 @@ def _distribution_configuration(self, distribution):
3851
# first make sure torch_distributed is enabled if instance type is p5
3852
torch_distributed_enabled = False
3853
if "torch_distributed" in distribution:
3854
- torch_distributed_enabled = distribution.get("torch_distributed").get("enabled", False)
+ torch_distributed_enabled = distribution.get("torch_distributed").get(
3855
+ "enabled", False
3856
+ )
3857
smdistributed = distribution["smdistributed"]
3858
smdataparallel_enabled = smdistributed.get("dataparallel", {}).get("enabled", False)
3859
p5_enabled = "p5.48xlarge" in self.instance_type
0 commit comments