nemo_automodel.shared.tokenizer_serialization
nemo_automodel.shared.tokenizer_serialization
Serialization cleanup shared by portable tokenizer exporters.
Module Contents
Functions
API
Write tokenizer metadata as formatted JSON.
Remove training-time tokenizer state while retaining tokenizer edits.
Parameters:
original_model_path
Local source snapshot, or None to clear transient state.
hf_metadata_dir
Export directory containing the serialized tokenizer.
tokenizer
Tokenizer supplying the current padding token.