MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / backward

Method backward

deepspeed/runtime/pipe/engine.py:1307–1309  ·  view source on GitHub ↗

Disabled for pipeline parallel training. See ``train_batch()``.

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

1305 raise PipelineError("Only train_batch() is accessible in pipeline mode.")
1306
1307 def backward(self, *args, **kwargs):
1308 """Disabled for pipeline parallel training. See ``train_batch()``. """
1309 raise PipelineError("Only train_batch() is accessible in pipeline mode.")
1310
1311 def step(self, *args, **kwargs):
1312 """Disabled for pipeline parallel training. See ``train_batch()``. """

Callers 1

_exec_backward_passMethod · 0.45

Calls 1

PipelineErrorClass · 0.85

Tested by

no test coverage detected