Repository navigation
Conversation
Signed-off-by: JiaxinD <djx2048@gmail.com>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Comment |
5 tasks
Signed-off-by: JiaxinD <djx2048@gmail.com>
Signed-off-by: JiaxinD <djx2048@gmail.com>
Contributor
Author
|
@yifeif-nv Community CPU, Stable and Dev checks passed for 7367609. Please trigger protected CI for this head. |
Signed-off-by: JiaxinD <djx2048@gmail.com>
Signed-off-by: JiaxinD <djx2048@gmail.com>
Contributor
Author
|
@yifeif-nv Community CPU passed for 1704790. Please trigger protected CI for this head. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
BERT, MPNet, DistilBERT, Electra and DPR map both
geluandgelu_newto the tanh approximation. Hugging Face definesgeluas exact erf GELU. Official BGE/MiniLM/BERT, all-mpnet-base-v2, DistilBERT, Electra-base and DPR context/question checkpoints selectgelu. Sampled CPU output differs from exact GELU by up to approximately 0.00041246 before repair.Exit Criteria
Honor both activation definitions in these five families. Preserve existing E2E references and thresholds. This extends the original correction in the same PR.
Implementation
geluto TensorRTGELU_ERF, following upstream RoBERTa.gelu_new.All ten changed files belong to these families. No shared helper, cross-family import, API/ABI, dependency or bundle-format change. Current upstream is merged without rewriting published history.
Change categories
Validation
Commands and Results
pytest families/electra/tests/test_activation_contract.py families/dpr/tests/test_activation_contract.py -qbefore this repairpytest families/{bert,mpnet,distilbert,electra,dpr}/tests -qwith paths expandedpytest tools/tests/test_{architecture,family_impact,public_source_hygiene,pr_metadata}.py -qwith paths expandedHardware, Environment, and Revisions
Windows CPU, Python 3.13, NumPy float32. Upstream
a9cae5db; head170479073e713112af9865d76b4a344624721b66. Official configs: Electra1ae76a97c7e84a4e640876a07453fccd636f0667, DPR questiond04a52f6d2f96c60117a925e8c24c4043a75f265, DPR contextbb21a3c2b1656d60c6a8e920283bc40dabddadb8. Prior BGE/MiniLM/BERT, MPNet, DistilBERT configs and Transformers v5.2.0 definitions retained. No weights downloaded.Not Run / Remaining Gaps
Fifteen E2E cases skipped without model selectors. TensorRT/GPU execution, FP16/BF16, checkpoint/config-route integration, TP and performance are unrun locally; Radix authentication expired. The CPU double proves dispatch and sampled math, not TensorRT dtype or fusion. Previous-head CPU/Stable/Dev passes do not qualify this head; current public/protected results are pending.
Contributor Self-Review
Reviewed definitions, both builder call paths, scope and regression failures. Independent read-only review reran the family suites; its result is recorded with this revision.
Notes For Future Readers
Rebuild bundles selecting
gelu. These graph fixes are independent of assigned Task SDK migrations, including #1584, and #1763's capability removal. Review each family independently. No reference, threshold or family-count guard is relaxed.Risk level
Exact-GELU checkpoints intentionally build a different graph. Target-hardware parity and performance remain qualification work.