modelzoo.common.pytorch.model_utils.checkpoint_converters.base_converter#
Functions
Converts DataLoader state files saved in release 1.9 to DataLoader checkpoint format for the new map and iterable DataLoaders in MZ in release 2.0. |
|
Classes
Converts between checkpoint state_dict formats. |
|
HF checkpoints contain model only while CS checkpoints package model, optimizer, and lr_scheduler into a single checkpoint. |
|
Converter between a set of unpacked HF checkpoints and a single packed CS checkpoint. |
|
CS packages model, optimizer, and lr_scheduler into a single config. |
|
CS packages model, optimizer, and lr_scheduler into a single config. |
|
Converter between a set of unpacked HF configs and a single packed CS configs. |
|
A dictionary converter represents a pair of two dictionary formats that can be converted between each other. |
|
ConversionRule defines a "rule" which: |
|
EquivalentSubkey defines the bidirectional relationship between subkeys of a model's checkpoint. |
|
Exceptions
Raised when a config cannot be converted |