Skip to content

[CI] The bundle builds Qwen3-30B-A3B's GEMMs, from the compiler's table of them - #400

Merged
YWHyuk merged 1 commit into
pytorchsim-triton-backendfrom
bundle/qwen3-gemm
Oct 21, 2026
Merged

YWHyuk merged 1 commit into
pytorchsim-triton-backendfrom
bundle/qwen3-gemm

Conversation

@YWHyuk

@YWHyuk YWHyuk commented Oct 20, 2026

Copy link
Copy Markdown
Collaborator

Adds one SUITES line to scripts/ci/bundle.py: the gemm workloads of the compiler's new table validation/gemm/tpu_v6e_qwen3moe_torchxla.csv. These are Qwen3-30B-A3B's router, q/kv/o projections and one expert's gate_up/down, 48 shapes with M 1..8192, all built with torch.matmul. They are named gemm_MxKxN_bf16, and none collides with a shape in tpu_v6e_torchxla.csv.

Companion to PSAL-POSTECH/PyTorchSim-Triton-Backend#225 (issue PSAL-POSTECH/PyTorchSim-Triton-Backend#210), which adds the table, its error-target groups and a CI cap of M <= 4096 for these rows.

Merge order: bundle.py opens every table listed in SUITES, so this needs the compiler pin at a PTB commit that contains the table, i.e. after PTB#225 merges and the pin moves. Merged before that, the bundle job fails.

Verified locally: image topk-pts:24ce740 with this branch's pytorchsim/ tests/ scripts/ configs/ mounted, and the PTB branch's validation/ as the compiler directory. In timing mode with no recorded picks, bundle.py (restricted to this table) built all 48 workloads, rc 0, one kernel each, in about 50 minutes, mostly spent on TOGSim-timed config picks. The gemm process gets that much longer on the first run; later runs take the picks from the selection record. All 44 workloads under the cap then simulated in PTB's runner. The numbers are in PTB#225.

🤖 Generated with Claude Code

https://claude.ai/code/session_011cGNfHFySFsi7feZKKvq7e

…le of them

PyTorchSim-Triton-Backend now measures Qwen3-30B-A3B's GEMMs (router, q/kv/o projections, an expert's gate_up and
down; 48 shapes, M 1 to 8192) in a gemm table of their own, validation/gemm/tpu_v6e_qwen3moe_torchxla.csv, beside
tpu_v6e_torchxla.csv rather than merged into it (PTB #210). One SUITES line makes them gemm workloads of the bundle:
torch.matmul at each shape, gemm_MxKxN_bf16 like the other table's (no shape is in both), built in the gemm process
in timing mode as before.

It needs the compiler pin at a PTB commit that holds that table: bundle.py opens every SUITES table.
@YWHyuk
YWHyuk merged commit 42e8e3b into pytorchsim-triton-backend Oct 21, 2026
@YWHyuk
YWHyuk deleted the bundle/qwen3-gemm branch October 23, 2026 03:03
student-Jungmin added a commit that referenced this pull request Nov 10, 2026
…am-trace commits the previous pin named

PyTorchSim-Triton-Backend#396-#400 landed the dram-trace tip's commits on main, so the pin moves from that branch
to main, where the images workflow publishes the base image. TOGSim comes along as main's third_party/TOGSim
submodule, 7a35ffc (TOGSim#70).
student-Jungmin added a commit that referenced this pull request Nov 11, 2026
…t with a published runtime image

2171fad6's images run never published <sha>-runtime: its simulate layer shard died on a runner with a full disk,
so the manifest job was skipped. d02b86f1 (the merge of PyTorchSim-Triton-Backend#399) has the image and pins
TOGSim at 7a35ffc. It lacks only #400 (kernel functions page-aligned, so gem5 tile cycles stop moving with the
wrapper's size); values are unaffected, tile cycles may shift until the next pin bump brings it in.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant