Skip to content

Commit

Permalink
update: disable coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
kozistr committed Jul 14, 2024
1 parent 9baf82d commit 4662970
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytorch_optimizer/optimizer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@

HAS_TRANSFORMERS: bool = find_spec('transformers') is not None

if HAS_TRANSFORMERS:
if HAS_TRANSFORMERS: # pragma: no cover
try:
from transformers.integrations.deepspeed import is_deepspeed_zero3_enabled
except ImportError:
from transformers.deepspeed import is_deepspeed_zero3_enabled # pragma: no cover
from transformers.deepspeed import is_deepspeed_zero3_enabled
else:

def is_deepspeed_zero3_enabled() -> bool:
Expand Down

0 comments on commit 4662970

Please sign in to comment.