Add Float64 Oracle Audit and Three Questions Framework to XProf Numerical Parity. - #3338
Open
copybara-service[bot] wants to merge 1 commit into
Open
Add Float64 Oracle Audit and Three Questions Framework to XProf Numerical Parity.#3338copybara-service[bot] wants to merge 1 commit into
copybara-service[bot] wants to merge 1 commit into
Conversation
copybara-service
Bot
force-pushed
the
test_975592711
branch
10 times, most recently
from
September 6, 2026 10:16
6973ba6 to
e225592
Compare
…ical Parity.
- Implements `kernel_oracle` in `numerical_validator.py` supporting automatic float64 promotion (`kernel_oracle="auto"`) and explicit float64 analytical callables.
- Adds `OracleAudit` dataclass reporting reference and candidate ULP distances and maximum absolute deviations from the oracle.
- Surfaces `correctness_basis` ("AGREEMENT_AND_ORACLE" vs "AGREEMENT_ONLY") and `run_config` in validation report payloads.
- Introduces `UlpContext` reporting median (`p50`) ULP, 99.9th percentile, and regime reliability flags.
- Implements dual gating with `np.allclose` alongside ULP distance checks.
- Dispatches test regimes based on criterion: Q3 and discrete types execute full procedural distributions; continuous parity defaults to normal regime with automated diagnostic triage fallback.
- Adds `chunk_callable` utility for memory-constrained oracle validation.
- Adds B3 0-ULP false green auto-probe on batch 0.
- Adds pin-inert reference detection probing accelerator precision sensitivity.
- Updates CLI tool `verify_numerical_parity` to accept and serialize `--kernel_oracle` and `--regimes`.
- Synchronizes `numerical_correctness.md` reference documentation and `SKILL.md` across 1P and 3P mirrors.
PiperOrigin-RevId: 975592711
copybara-service
Bot
force-pushed
the
test_975592711
branch
from
September 6, 2026 10:19
e225592 to
44a363e
Compare
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 Float64 Oracle Audit and Three Questions Framework to XProf Numerical Parity.
kernel_oracleinnumerical_validator.pysupporting automatic float64 promotion (kernel_oracle="auto") and explicit float64 analytical callables.OracleAuditdataclass reporting reference and candidate ULP distances and maximum absolute deviations from the oracle.correctness_basis("AGREEMENT_AND_ORACLE" vs "AGREEMENT_ONLY") andrun_configin validation report payloads.UlpContextreporting median (p50) ULP, 99.9th percentile, and regime reliability flags.np.allclosealongside ULP distance checks.chunk_callableutility for memory-constrained oracle validation.verify_numerical_parityto accept and serialize--kernel_oracleand--regimes.numerical_correctness.mdreference documentation andSKILL.mdacross 1P and 3P mirrors.