Repository navigation
Conversation
Build ERNIE with interleaved rotary pairs, routing bias, shared experts and its tied output head. Stream the large fp32 plan directly into its bundle section and preserve fixed KV state through the native text continuation Task API. Validate pinned checkpoint tokenization and exact generated token sequences for English code completion and Chinese text against the official fp32 reference on CUDA. Signed-off-by: Will Guo <willg@nvidia.com>
Signed-off-by: Will Guo <willg@nvidia.com>
…runtime contracts Signed-off-by: Will Guo <willg@nvidia.com>
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait...
|
2 tasks done
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.

Add native FP32 text continuation for
baidu/ERNIE-4.5-21B-A3B-Thinkingthrough theernie4_5_moefamily.Background
Related to #2667. The initial scope is one sequence with greedy decoding and a fixed KV-cache profile.
Exit Criteria
Implementation
This adds family-specific bundles and dependencies without changing shared public API/ABI layouts or the shared bundle container format. Family dependencies are declared in requirements.txt.
Change categories
Validation
Commands and Results
The E2E test checks native tokenization against Hugging Face and requires exact generated token IDs and decoded text for both prompts. These describe tests added in the diff, not an execution result.
Reproduction after preparing the pinned checkpoint, family dependencies, and native runtime required by the test:
These commands were not rerun for this description-only update. No build, inference, accuracy, performance, or full-premerge pass is asserted here; see the PR checks for public execution results.
Hardware, Environment, and Revisions
PR head:
95b704cf1e1f6ba3c009cb5682060c091b1d5c68. The committed recipe pinsbaidu/ERNIE-4.5-21B-A3B-Thinkingat4341bb42644d5422859509fa25d41544c57181f8. FP32, one sequence and one device; the committed recipe uses a 128-token KV profile and up to 16 generated tokens. Transformers is pinned by the family requirements. Execution requires a CUDA-capable GPU and TensorRT. A tested GPU/OS/CUDA/TensorRT matrix is not asserted by this description.Not Run / Remaining Gaps
Sampling, quantization, reduced precision, dynamic KV cache, and distributed execution are outside this implementation. Broader architecture/regression checks, longer-context validation, and performance qualification remain required before a full readiness claim.
Contributor Self-Review
Notes For Future Readers
Review routed-expert weight handling and KV-cache boundaries alongside the tokenizer and generation tests. The short continuation recipe does not establish reasoning benchmark quality or support for other ERNIE variants.
Public model reference: baidu/ERNIE-4.5-21B-A3B-Thinking.
Risk level
This introduces a large MoE decoder, tokenizer, and incremental cache management with strict output-parity requirements.