MCPcopy Create free account
hub / github.com/AIS-SNU/Smart-Infinity / was_step_applied

Method was_step_applied

deepspeed/runtime/engine.py:1579–1587  ·  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

1577 return self._config.dataloader_drop_last
1578
1579 def was_step_applied(self) -> bool:
1580 """Returns True if the latest ``step()`` produced in parameter updates.
1581 Note that a ``False`` return is not an error condition. Steps are frequently
1582 no-ops, such as between gradient accumulation boundaries or when overflows
1583 occur.
1584 Returns:
1585 bool: Whether the latest ``step()`` modified model parameters.
1586 """
1587 return self._step_applied
1588
1589 def deepspeed_io(self,
1590 dataset,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected