Repository navigation
[Model] Decouple nemotron_nas from llama - #69726
vyomakesh0728 wants to merge 6 commits into
Conversation
nemotron_nas and domyn_edge from llama
deb1587 to
ec11830
Compare
3dd44eb to
6236cf2
Compare
ebfbbbd to
cf2d079
Compare
nemotron_nas and domyn_edge from llamanemotron_nas from llama
hmellor
left a comment
There was a problem hiding this comment.
LGTM. Faithful inline of LlamaMLP/LlamaAttention; the dropped branches are unreachable for DeciLM. I pushed a small commit removing the unused attn_type parameter and updated the description to drop the reverted domyn_edge changes.
This review was AI-assisted.
|
/ci run |
|
✅ Triggered Buildkite CI #105734 for commit |
Inline DeciLMMLP and DeciLMAttention in nemotron_nas.py to remove imports from llama.py, and inline DomynEdgeMLP and DomynEdgeModel (preserving hf_to_vllm_mapper and load_weights) in domyn_edge.py to remove imports from qwen3.py. Co-authored-by: Antigravity <noreply@google.com> Signed-off-by: vyomakesh0728 <dvyomkesh.vishwakarma@gmail.com>
Restore vllm/model_executor/models/domyn_edge.py to base commit so this PR only decouples nemotron_nas.py from llama.py, leaving qwen3.py untouched. Co-authored-by: Antigravity <noreply@google.com> Signed-off-by: vyomakesh0728 <dvyomkesh.vishwakarma@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Head branch was pushed to by a user without write access
6a1d0c5 to
eb917b1
Compare
|
/ci run |
|
✅ Triggered Buildkite CI #105753 for commit ℹ️ This PR is 1 commit behind upstream |
|
cc @hmellor could you enable auto-merge please |
|
Please stop merging from main. Every time you do I have to manually trigger CI. If there's only one job failing it's likely flaky and we can just do |
|
/ci run |
|
✅ Triggered Buildkite CI #105781 for commit |
Overview
Decouple
vllm/model_executor/models/nemotron_nas.pyfromllama.pyby inliningDeciLMMLPandDeciLMAttention. Part of #67937.Claims
vllm.model_executor.models.llamaimports fromnemotron_nas.py. Parameter names and weight loading are unchanged.DeciLMMLPmatchesLlamaMLP(keepsbiasandmaybe_fused_act_quant). It dropsreduce_results/disable_tp, whichnemotron_nasnever passed.DeciLMAttentionmatchesLlamaAttentionplus the previous_init_rotary_emboverride (mistral_yarn/rope_llama4→is_neox_style=False), and keepslayer_typessliding-window support. It drops the Eagle3 drafttarget_layer_countoffset, theEncoderOnlyAttentionbranch and theattn_typeparameter, none of which DeciLM can reach.gh pr list --state openfornemotron_nas,DeciLM). The open PR [Model] Support EAGLE-3 aux hidden states for EXAONE 4 and DeciLM #68289 only adds EAGLE-3 aux hidden states.Validation
Run on 2x RTX 4090 (CUDA 13.2, PyTorch
2.14.0+cu132, Python3.14.10) against base850fd21d75, before thedomyn_edge.pychanges were split out:nvidia/Llama-3_3-Nemotron-Super-49B-v1(4 layers, seeded random weights,enforce_eager=True, greedy, 16 tokens): prompt logprobs, greedy tokens and output logprobs are bitwise identical tomain.tests/models/test_pp_equivalence.py::_check_equivalent(VllmRunner, "DeciLMForCausalLM", 2): bitwise equivalent atPP=1vsPP=2.DeciLMMLP(bias=False/True)matchesLlamaMLPbit-exactly on CUDAbfloat16.Since then, the only code change is removing the unused
attn_typeparameter.Attentionalready defaults toAttentionType.DECODER, so behaviour is unchanged. Pre-commit passes.AI assistance was used during the creation of this PR.