From 6061903073b2bb8999433a98ca5b2870181b6403 Mon Sep 17 00:00:00 2001 From: Nicholas Cilfone Date: Wed, 28 Jul 2021 14:37:35 -0400 Subject: [PATCH] lint --- stoke/status.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stoke/status.py b/stoke/status.py index 7b03f59..55c12c6 100644 --- a/stoke/status.py +++ b/stoke/status.py @@ -162,7 +162,9 @@ def __init__( "grad_clip": grad_clip, "gpu": gpu, "distributed": distributed, - "zero": self._configs.get("DeepspeedConfig").zero_optimization.stage if self._configs.get("DeepspeedConfig") else None, + "zero": self._configs.get("DeepspeedConfig").zero_optimization.stage + if self._configs.get("DeepspeedConfig") + else None, "oss": fairscale_oss, "sharded": fairscale_sddp, "world_size": -1,