Conversation
Signed-off-by: wj <126436871+WenJing95@users.noreply.github.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: NVIDIA/TensorRT-Model-Connect/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review. 📝 SummarySummaryUpdates the BART tokenizer to honor
Architecture impact
StatusHUMAN REVIEW REQUIRED The supplied context reports passing CPU and validation checks. No current review findings or severity counts were supplied. Full cross-backend validation remains incomplete. WalkthroughThe BART tokenizer now honors ChangesBART added-token whitespace handling
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~15 minutes Change: Bug fix 🚥 Pre-merge checks | ✅ 8 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (8 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 5 functions across 2 files. (1 skipped: 1 unsupported.) Comment |
Background
BART tokenizer ignores
lstrip: trueon<mask>, leaving an extra whitespace token.Exit Criteria
Strip preceding whitespace for flagged added tokens without affecting normal tokens.
Implementation
Track flagged IDs, trim preceding text, and add a CPU regression test target. No API/ABI changes.
Change categories
Validation
Commands and Results
bart_added_token_whitespace).python -m tools.model_ci validateandpython tools/test_impact.py --validatepassed.Hardware, Environment, and Revisions
Windows x86_64 CPU (GCC 14.2.0 / Python 3.12.3).
Not Run / Remaining Gaps
Tested on CPU harness only; full GPU/TensorRT builds and inference left to CI.
Contributor Self-Review
Notes For Future Readers
Rebuild the BART runtime.
Risk level