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: object

    path or file-like checkpoint target

  • allowed_keys: object

    optional whitelist of permitted top-level keys

  • omitted_keys: object

    optional blacklist of top-level keys

  • :returns: None

    No 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: Any
  • value: 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 | list

    A view or list of the requested registry, cache, checkpoint, or mapping entries.


Feedback

Examples

Templates

Documentation