Repository navigation
fix(personaplex): align FP16 inference with Native - #1751
Merged
chaofengw-nv merged 9 commits intoOct 21, 2026
Merged
chaofengw-nv merged 9 commits into
chaofengw-nv merged 9 commits into
Conversation
This was referenced Oct 17, 2026
chaofengw-nv
force-pushed
the
fix/personaplex-reference-audio-numerics-20261016
branch
from
October 18, 2026 07:56
743d3a7 to
8f6eddc
Compare
5 of 11 tasks
This was referenced Oct 18, 2026
chaofengw-nv
force-pushed
the
fix/personaplex-reference-audio-numerics-20261016
branch
from
October 20, 2026 04:46
8ae0f44 to
93d1acb
Compare
This was referenced Oct 20, 2026
Build the Mimi decoder in FP32, matching the encoder and native codec for every language-model precision. Closes NVIDIA#1750 Signed-off-by: chaofengw <chaofengw@nvidia.com>
Create RMSNorm epsilon in FP32 so the 1e-8 value survives Half network construction. Closes NVIDIA#1779 Refs NVIDIA#1780 Signed-off-by: chaofengw <chaofengw@nvidia.com>
Sum audio embeddings before text and round each addition to Half for Half temporal engines. Closes NVIDIA#1778 Refs NVIDIA#1781 Signed-off-by: chaofengw <chaofengw@nvidia.com>
Round depth projection weights, inputs, projection output and token embedding additions at the reference Half boundaries. Closes NVIDIA#1788 Refs NVIDIA#1789 Signed-off-by: chaofengw <chaofengw@nvidia.com>
Construct RoPE angles and rotation in FP32, then restore the input dtype across the family decoder variants. Closes NVIDIA#1790 Refs NVIDIA#1791 Signed-off-by: chaofengw <chaofengw@nvidia.com>
Evaluate SiLU and its gate product in FP32, casting the combined result to the projection dtype once. Closes NVIDIA#1793 Refs NVIDIA#1794 Signed-off-by: chaofengw <chaofengw@nvidia.com>
Remove component-promotion selectors from the primary FP16 manifest. Preserve the declared BF16 E2E reference and all existing thresholds. Refs NVIDIA#1786 Refs NVIDIA#1795 Signed-off-by: chaofengw <chaofengw@nvidia.com>
Preserve rounded branch outputs before residual addition across the family decoder variants. Closes NVIDIA#1796 Refs NVIDIA#1797 Signed-off-by: chaofengw <chaofengw@nvidia.com>
Round RMSNorm scale weights to the model dtype before the FP32 normalization computation. Closes NVIDIA#1799 Refs NVIDIA#1800 Signed-off-by: chaofengw <chaofengw@nvidia.com>
chaofengw-nv
force-pushed
the
fix/personaplex-reference-audio-numerics-20261016
branch
from
October 21, 2026 05:38
93d1acb to
f2cf1ae
Compare
chaofengw-nv
marked this pull request as ready for review
October 21, 2026 06:21
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
PersonaPlex's FP16 execution differs from the Native reference at several input and arithmetic boundaries. These related fixes previously required separate PRs with overlapping decoder and runtime changes. This PR consolidates nine of them into nine DCO-signed commits, with one issue mapping per defect.
Exit Criteria
Implementation
Change categories
Changes stay within the PersonaPlex family. The only patch-composition conflict was adjacent additive CMake test declarations; both the Half embedding include path and depth-kernel test target are retained.
The input-resampling fix from #1798 is no longer part of this PR. It made the runtime dlopen the system
libsoxr(LGPL-2.1-or-later) only to reproduce the reference harness's librosa resampling, which the official PersonaPlex loader does not use. Instead, #1809 resamples each AIPerf speech suite once, so Native and TRTMC read the same 24 kHz samples. The runtime keeps its existing windowed-sinc resampler for other input rates and adds no dependency.Validation
Commands and Results
Current head
f2cf1ae596cc660005932538b357d912fe074933, rebased onto682d84862:git range-diff 06debb09e..93d1acb1b 682d84862..f2cf1ae59: all nine retained commits are unchanged; only the libsoxr resampling commit was dropped. The PersonaPlex tree equals the previous head minus that commit's six files.CUDA_VISIBLE_DEVICES='':python -m pytest tools/tests/test_architecture.py tools/tests/test_family_impact.py -q: 77 passed.python -m tools.model_ci validateandpython tools/test_impact.py --validate: valid;test_impactselectspersonaplexonly, with core tests.git diff --check: passed.Previous head
93d1acb1b(the same nine commits plus the dropped one):PYTHONPATH=core/builder:apps/benchmark:. python -m pytest families/personaplex/tests/test_fp16_decoder_norm_epsilon.py families/personaplex/tests/test_rmsnorm_weight_dtype.py families/personaplex/tests/test_rotary_precision.py families/personaplex/tests/test_swiglu_precision.py families/personaplex/tests/test_residual_precision.py families/personaplex/tests/test_e2e.py -k 'not official_checkpoint_e2e' -q, run together with the now-removed resampler test: 41 passed, one of them a resampler check. Three full-model E2E cases were deselected.ctest -R '^test_personaplex_' --output-on-failure: 7/7 passed, including the CUDA depth-input regression, on the combined model/benchmark tree.ruff check --config ruff.tomlon all changed Python files,clang-format22.1.8 on changed native files, independent runtime syntax checks on both PR heads, andgit diff --check: passed.Hardware, Environment, and Revisions
f2cf1ae596cc660005932538b357d912fe074933; base682d84862. CPU checks only.93d1acb1b049bb5e7a9d9177c48646328f715972; base06debb09eda99887580ac6264da4c31ceec8f559. Local NVIDIA A30; Python 3.12, PyTorch 2.12.0+cu130, TensorRT 10.16.1.11; CMake used CUDA 13.1 and SM80. Focused tests exercise the original FP16 rounding boundaries; this is not checkpoint-level parity evidence.Not Run / Remaining Gaps
The GPU/TRT precision tests have not been rerun on the rebased head, and the repository pins a newer TensorRT than the local run. Three full-model E2E cases were not run. Full-model FP16 acceptance, current-head premerge CI and GB300 accuracy/performance remain pending.
Contributor Self-Review
Reviewed the composed diff, family boundaries, DCO history, issue mappings and recorded validation. Full-model acceptance remains open.
Notes For Future Readers
Risk level
The arithmetic and input fixes affect generated tokens and speech; full-model parity has not yet been established.
mainwith separate commit sets; feat(personaplex): qualify spoken QA with AIPerf #1809 contains benchmark plumbing and Native timing only.Closes #1750
Closes #1779
Closes #1778
Closes #1788
Closes #1790
Closes #1793
Closes #1796
Closes #1799
Refs #1786