Skip to content

[BUG] Nemotron-3-Nano-Omni definition still leaves all routed and shared experts unquantized (incomplete fix of #4174) #4355

Closed

Description

@Qubitium

Severity: high. Most of the model's weights silently stay BF16.

Status: confirmed by resolving the module plan at 842d666 against the real checkpoint's tensor names. No quantization run was needed.

Kind: incomplete fix of #4174 (5e8a247 / #4245).

Where

gptqmodel/models/definitions/nemotron_omni.py:38-56.

Description

  • 5e8a247 added these entries to NemotronHQModel only:
    • mixer.experts:moe {#: up_proj, down_proj}
    • mixer.shared_experts
    • mixer.gate:!
    • mixer.conv1d:!
    • up_proj:3:nosrc
  • NemotronOmniQModel subclasses it but overrides module_tree with the old mixer-only tuple:
    • no routed experts, shared experts, router or conv entries;
    • up_proj:3 still lacks :nosrc.
  • It still inherits dynamic_expert_index="n_routed_experts" and layer_modules_strict=False, so nothing errors.
  • The real checkpoint Nemotron-3-Nano-Omni-30B-A3B-Reasoning-BF16 has language_model.backbone.layers.N.mixer.experts.{0..127}.{up,down}_proj and shared_experts.*, i.e. 128 routed experts.

Repro

from gptqmodel.models.auto import MODEL_MAP
from gptqmodel.models.module_plan import ModulePlan
for t in ("nemotron_h", "nemotronh_nano_omni_reasoning_v3"):
    plan = ModulePlan.from_tree(MODEL_MAP[t].module_tree)
    print(t, [p for p in ("mixer.experts.0.up_proj", "mixer.experts.0.down_proj",
          "mixer.shared_experts.up_proj", "mixer.gate", "mixer.conv1d") if plan.find(p) is None])
  • Actual: nemotron_h reports []. For omni, all five paths are undeclared.
  • Expected: none undeclared.

The repo's own suite catches this. tests/module_tree/test_moe_tags.py::test_registered_moe_model_tree_marks_dynamic_expert_root[NemotronOmniQModel-…] fails at HEAD with "expected one top-level :moe root, found []".


Found during an AI-assisted review (Claude Code, round 11) of 842d666; repros were run at that commit on RTX 4090/5090 (CUDA 13) and/or Radeon AI PRO R9700 (ROCm) unless marked static/suspected.

Activity

  1. added
    bug
    on Nov 16, 2026
  2. ZX-ModelCloud commented on Nov 16, 2026

    @ZX-ModelCloud
    Collaborator

    Claimed. I'm working on this issue and will submit a fix PR. Please avoid duplicate work in the meantime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions