nemo_automodel.components.models.clef.export
nemo_automodel.components.models.clef.export
Merge CLEF adapters and typed heads into the publisher’s release layout.
Module Contents
Functions
Data
API
Write the trained CLEF release, preserving the publisher’s loader and license.
Parameters:
Hub repository ID or existing local base release directory.
Immutable Hub commit ID for remote model files.
Published native CLEF stage containing DCP head state and optional native PEFT model weights.
Destination for the merged release.
Merge LoRA pairs into state_dict in place.
Parameters:
Base weights by HF name; <module>.weight tensors have shape [out_features, in_features].
<module>.lora_A.weight of shape [rank, in_features] and <module>.lora_B.weight of shape
[out_features, rank].
LoRA scaling alpha / dim.
Returns: int
Number of merged modules.
Raises:
KeyError: If an adapter module has no matching base weight.