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

Method was_step_applied

deepspeed/runtime/engine.py:2549–2557  ·  view source on GitHub ↗

Returns True if the latest ``step()`` produced in parameter updates. Note that a ``False`` return is not an error condition. Steps are frequently no-ops, such as between gradient accumulation boundaries or when overflows occur. Returns: bool: Whether the l

(self)

Source from the content-addressed store, hash-verified

2547 return self._config.dataloader_drop_last
2548
2549 def was_step_applied(self) -> bool:
2550 """Returns True if the latest ``step()`` produced in parameter updates.
2551 Note that a ``False`` return is not an error condition. Steps are frequently
2552 no-ops, such as between gradient accumulation boundaries or when overflows
2553 occur.
2554 Returns:
2555 bool: Whether the latest ``step()`` modified model parameters.
2556 """
2557 return self._step_applied
2558
2559 def deepspeed_io(self,
2560 dataset,

Calls

no outgoing calls