Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 13, 2024
1 parent 5965f8b commit f99fc6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion colossalai/pipeline/schedule/zero_bubble_pp.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from colossalai.pipeline.p2p import PipelineP2PCommunication
from colossalai.pipeline.schedule.v_schedule import ScheduledNode
from colossalai.pipeline.stage_manager import PipelineStageManager

from ._utils import detach, get_batch_size, get_micro_batch, merge_batch, model_forward, retain_grad, to_device
from .base import PipelineSchedule

Expand Down Expand Up @@ -489,7 +490,7 @@ def backward_b_step(
# Attempt to disable gradient synchronization when using the LowLevelZeroPlugin.
try:
ctx = optimizer.no_sync()
except Exception as e:
except Exception:
ctx = nullcontext()

with ctx:
Expand Down

0 comments on commit f99fc6d

Please sign in to comment.