NullCheckpointer
A checkpointer that saves absolutely nothing
__init__(self, checkpoint_file=None, allowed_keys=None, omitted_keys=None):
LLM Docstring
Initialize a checkpointer that deliberately stores no values.
checkpoint_file:objectpath or file-like checkpoint target
allowed_keys:objectoptional whitelist of permitted top-level keys
omitted_keys:objectoptional blacklist of top-level keys
:returns:NoneNo explicit value; the method mutates state or performs I/O.
open_checkpoint_file(self, chk):
Opens the passed checkpoint_file (if not already open)
chk:str | file-like:returns:_
close_checkpoint_file(self, stream):
Opens the passed checkpoint_file (if not already open)
chk:Any:returns:_
save_parameter(self, key, value):
Saves a parameter to the checkpoint file
key:Anyvalue:Any:returns:_
load_parameter(self, key):
Loads a parameter from the checkpoint file
key:Any:returns:_
delete_parameter(self, key):
Loads a parameter from the checkpoint file
key:Any:returns:_
keys(self):
LLM Docstring
Return an empty key list because the null backend never retains data.
:returns:collections.abc.KeysView | collections.abc.ItemsView | collections.abc.ValuesView | listA view or list of the requested registry, cache, checkpoint, or mapping entries.