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

Method _fall_back

deepspeed/runtime/hybrid_engine_graph.py:138–148  ·  view source on GitHub ↗

Give up on graphs for good and run eagerly. Only safe before any replay has happened in the current sequence, which is why this is reachable only from the capture path.

(self, reason, args, kwargs)

Source from the content-addressed store, hash-verified

136 return all(captured[name].shape == kwargs[name].shape for name in captured)
137
138 def _fall_back(self, reason, args, kwargs):
139 """Give up on graphs for good and run eagerly.
140
141 Only safe before any replay has happened in the current sequence, which
142 is why this is reachable only from the capture path.
143 """
144 logger.warning(f"HybridEngine graph capture disabled: {reason}")
145 self.invalidate()
146 self._disabled = True
147 self._use_graphs = False
148 return self._forward(*args, **kwargs)
149
150 def __call__(self, *args, **kwargs):
151 input_ids = kwargs.get("input_ids")

Callers 1

__call__Method · 0.95

Calls 3

invalidateMethod · 0.95
warningMethod · 0.80
_forwardMethod · 0.45

Tested by

no test coverage detected