[https://nvbugs/6368053][fix] (1) Broaden the assertion to is_eagle3() or is_eagle3_one_model() - #15689
[https://nvbugs/6368053][fix] (1) Broaden the assertion to is_eagle3() or is_eagle3_one_model()#15689tensorrt-cicd wants to merge 1 commit into
is_eagle3() or is_eagle3_one_model()#15689Conversation
…n, sync runtime_draft_len The static-tree branch of TrtllmAttentionMetadata.update_spec_dec_param asserted spec_metadata.spec_dec_mode.is_eagle3(), which only matches EAGLE3 (two-model). With quickstart_advanced.py defaulting use_one_model=True, eagle_choices triggers the one-model EAGLE3 path whose spec_dec_mode is EAGLE3_ONE_MODEL, so the assertion fired during warmup. Broaden the guard to accept both Eagle3 variants — they both set is_spec_dec_tree=True from eagle_choices and the downstream spec_tree_manager-based logic is the same. Also sync self.runtime_draft_len to max_total_draft_tokens in forward() for non-linear-tree configs, mirroring the update that _prepare_tp_inputs performs later. The attention-warmup path (_run_attention_warmup -> forward) bypasses _prepare_tp_inputs's update, so spec_metadata.runtime_draft_len was stale (=max_draft_len) while the draft_tokens buffer was sized for max_total_draft_tokens. This caused "shape '[1, 1]' is invalid for input of size 3" in sample_and_accept_draft_tokens once the original assertion was relaxed. Remove the two test_draft_token_tree_quickstart_advanced_eagle3* entries from waives.txt now that both tests pass. Signed-off-by: tensorrt-cicd <90828364+tensorrt-cicd@users.noreply.github.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (3)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughBroadens the static-tree spec-decoding mode assertion in ChangesEagle3OneModel spec-dec fixes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
/bot run --disable-fail-fast |
|
PR_Github #58681 [ run ] triggered by Bot. Commit: |
|
PR_Github #58681 [ run ] completed with state
|
Summary
is_eagle3() or is_eagle3_one_model(). (2) In model_engine.forward(), pre-set self.runtime_draft_len=max_total_draft_tokens for non-linear-tree spec configs before syncing spec_metadata.runtime_draft_len, mirroring _prepare_tp_inputs. (3) Remove the two now-passing waivers under nvbugs/6368053.Test plan
Links
Summary by CodeRabbit