Remove deprecated Eagle3 legacy model from converter#812
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughChangesThe EAGLE-3 conversion flow now creates and validates EAGLE-3 draft conversion
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
e85513b to
8c454f4
Compare
Signed-off-by: Guan-Ming (Wesley) Chiu <105915352+guan404ming@users.noreply.github.com>
8c454f4 to
fce748e
Compare
speculatorsbot
left a comment
There was a problem hiding this comment.
LGTM. Clean removal of the deprecated legacy model, correctly replaces it with Eagle3DraftModel following the DFlash converter pattern. The side fix for multi-layer checkpoint preservation is correct and well-tested. Recommend approving.
🤖 Generated with Claude Code using the /pr-review skill
Merge Protections🔴 1 of 1 protections blocking · waiting on 👀 reviews
🔴 Require approval from approved reviewers listWaiting for any of
This rule is failing.All pull requests must have at least one approving review from a member of the approved reviewers list before merging.
|
Purpose
Part of the legacy code removal item in #781.
eagle3_legacy_model.py; itsforward()was never implemented and it only served as a weight skeleton for the Eagle3 converter.Eagle3DraftModelinstead, following the DFlash converter pattern. Net -387 lines.layers.1.*weights of multi-layer checkpoints.Eagle3DraftModelbuilds all layers, so they are now preserved.Tests
test_eagle3_converter.py: converts a tiny 2-layer checkpoint and asserts the saved state dict keeps every decoder layer, contains only source-checkpoint keys, and round-trips values exactly.tests/unit/convert/: 52 passed.make quality(ruff + mypy) passes.Checklist
I have filled in: