nemo_automodel.components.models.inkling2.config
nemo_automodel.components.models.inkling2.config
Configuration for the inspected Inkling2 checkpoint and text reference.
Module Contents
Classes
Functions
Data
API
Bases: PretrainedConfig
Released image/text model configuration and optional source quantization.
Serialize both levels; a stripped source declaration is stripped from the text config too.
The shared floating export removes quantization_config from this configuration
after dequantization. The text configuration carries the same declaration, and a
reload would otherwise promote it back to the root and request packed tensors.
Bases: typing.TypedDict
Expert storage of a released checkpoint: NVFP4 for the first layers, MXFP8 after them.
Bases: typing.TypedDict
quantization_config of a released config.json: the format name only.
The expert layout is in hf_quant_config.json; building a model replaces this label with it.
Bases: PretrainedConfig
Text configuration; defaults follow the inspected checkpoint, not serving defaults.
Bases: PretrainedConfig
Released image encoder dimensions, including the spatial merge projector.
Bases: typing.TypedDict
One hf_quant_config.json group; only the keys the loader reads.
Read the released hf_quant_config.json stored next to config.json.
Parameters:
Local checkpoint directory or Hub repository id.
Decoder depth the expert declaration must cover.
Hub revision the weights are loaded from; None reads the repository’s default branch. Ignored for a local directory.
Returns: Inkling2QuantizationConfig | None
The expert storage layout, or None for a checkpoint without the sidecar,
Fill quantization_config from the checkpoint sidecar for a config loaded from a checkpoint.
Parameters:
Text or image/text configuration; both levels receive the declaration. A released
config.json label is replaced by the layout the sidecar declares.
Resolved Hub revision of the checkpoint, so the sidecar comes from the same snapshot as the weights.
Raises:
ValueError: Ifconfig.jsonnames a quantized format and the sidecar cannot be found.