nemo_automodel.components.models.qwen3_8_flash_next.state_dict_adapter
nemo_automodel.components.models.qwen3_8_flash_next.state_dict_adapter
State-dict conversion for Qwen3.8-Flash-Next and its owner-sharded Engram table.
Dense, grouped-MoE, shared-expert, and GatedDeltaNet parameters reuse the
Qwen3.5-MoE checkpoint layouts. The PLE table is special: the checkpoint
stores split_ngram_parts physical shard tensors while the native module
registers one contiguous rank-local row range. to_hf exposes the local
range as narrow views of the native parameter, so the checkpoint reader writes
directly into final model storage and the 51.2B-parameter global table is
never materialized. MTP checkpoint keys are ignored in both directions
because the SFT target does not construct MTP.
Module Contents
Classes
API
Bases: Qwen3_5MoeStateDictAdapter
Convert Qwen3.8-Flash-Next checkpoints without gathering the global PLE table.
Return native parameters already populated through checkpoint views.
Convert one native tensor, specializing the PLE and MTP entries.
Drop PLE and MTP checkpoint keys; the table was written through views.
The PLE entries returned by :meth:to_hf alias the native parameter,
so by the time DCP hands them back the table is already populated.
view_loaded_native_keys records the native key as loaded.
Return the rank-independent global HF key set without gathering PLE.
Consolidated checkpoint planning requires the same global key list on
every rank, so the one local PLE weight is replaced by all
split_ngram_parts physical shard names. No data is touched.