kd.ckpts.NoopCheckpointer

kd.ckpts.NoopCheckpointer#

class kauldron.checkpoints.NoopCheckpointer(
*,
_fake_refs: type[_FakeRefsUnset] | dict[str,
_FakeRootCfg] = <class 'kauldron.utils.config_util._FakeRefsUnset'>,
)[source]

Bases: kauldron.checkpoints.checkpointer.BaseCheckpointer

Does nothing.

restore(
state,
*,
step: int = -1,
noop_if_missing: bool = False,
donate: bool = True,
)[source]
should_save(step: int) bool[source]
save(
state,
*,
step: int,
force: bool = False,
metrics: Any | None = None,
) bool[source]
maybe_save(
state,
*,
step: int,
force: bool = False,
) bool[source]