Skip to content

[ExecuTorch][WebGPU] Test coverage for the f16-accumulate steel GEMM#20826

Merged
JCNTH merged 1 commit into
gh/JCNTH/15/origfrom
gh/JCNTH/16/orig
Jul 9, 2026
Merged

[ExecuTorch][WebGPU] Test coverage for the f16-accumulate steel GEMM#20826
JCNTH merged 1 commit into
gh/JCNTH/15/origfrom
gh/JCNTH/16/orig

Conversation

@pytorchbot

Copy link
Copy Markdown
Collaborator

This PR was created by the merge bot to help merge the original PR into the main branch.
ghstack PR number: #20801 by @JCNTH
^ Please use this as the source of truth for the PR details, comments, and reviews
ghstack PR base: https://github.com/pytorch/executorch/tree/gh/JCNTH/16/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/JCNTH/16/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/gh/JCNTH/15/orig
Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/JCNTH/16/orig

@diff-train-skip-merge

Pull Request resolved: #20801

Adds golden coverage for the f16-accumulate (`pwdqf16acc`) steel GEMM, which runs under `WGPU_BACKEND_STEEL_F16ACC` when `group_size % BK == 0`.

Key changes:
- `test_quantized_linear.py` / `test_webgpu_native.cpp` — add `pwdqf16acc` (96x2048x256, K=2048) and `pwdqf16acc_down` (128x8192x2048, deep-K worst case) under `#ifdef WGPU_BACKEND_STEEL_F16ACC`, goldened against the fp64 dequant-matmul truth. f16 accumulation error grows with K, so the tolerances are wider than the f16-multiply `steel_f16` (2.3e-4) and the deep-K shape gets the loosest gate; perplexity (the kernel diff) is the primary quality bar and this catches gross bit/index bugs.

Co-authored-with: Claude Code.
ghstack-source-id: 401515200
@exported-using-ghexport

Differential Revision: [D111163651](https://our.internmc.facebook.com/intern/diff/D111163651/)
@pytorch-bot

pytorch-bot Bot commented Jul 9, 2026

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/20826

Note: Links to docs will display an error until the docs builds have been completed.

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@JCNTH JCNTH merged commit e78229d into gh/JCNTH/15/orig Jul 9, 2026
158 of 165 checks passed
@JCNTH JCNTH deleted the gh/JCNTH/16/orig branch July 9, 2026 21:43
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants