nemo_automodel.components.models.qwen3.state_dict_adapter
nemo_automodel.components.models.qwen3.state_dict_adapter
Passthrough state-dict adapter for dense Qwen3 checkpoints.
Module Contents
Classes
API
Convert dense Qwen3 checkpoints whose HuggingFace and NeMo keys match.
Copy a HuggingFace state dict and materialize a tied LM head if needed.
Parameters:
Mapping from parameter names to checkpoint tensors. Tensor shapes, dtypes, devices, and storage aliases are preserved.
Compatibility arguments accepted by the checkpoint adapter interface; they do not alter dense Qwen3 tensors.
Returns: dict[str, torch.Tensor]
A new mapping with the same tensor values and arbitrary parameter
Copy a NeMo state dict, optionally excluding matching keys.
Parameters:
Mapping from parameter names to checkpoint tensors with arbitrary parameter shapes; values are returned without mutation.
Optional regular expression selecting keys to omit.
Compatibility arguments accepted by the checkpoint adapter interface; they do not alter dense Qwen3 tensors.
Returns: dict[str, torch.Tensor]
A new HuggingFace-format mapping whose tensor shapes, dtypes,