Skip to content

bundle: a layer suite for Qwen3-30B-A3B's decoder layer (PTB #210 step 2) #397

Closed

Description

@YWHyuk

In progress (@YWHyuk). This is step 2 of PSAL-POSTECH/PyTorchSim-Triton-Backend#210.

Add a layer suite to scripts/ci/bundle.py for the rows of PTB's validation/layer/tpu_v6e_qwen3moe_layer_torchxla.csv (PTB #211). There are two kinds of workload:

  • The layer: one workload per layer row. The module is built as the TPU harness (qwen_moe_layer_v1.py) builds it:
    • RMSNorm → q/k/v proj → q/k_norm → RoPE → GQA SDPA 32/4 → o proj → residual → RMSNorm → router → top-8 → MoE (128 experts, intermediate 768) → residual.
    • Routing is fixed uniform, as the harness fixes it.
    • Decode does not write K/V into the cache.
  • The ops: one workload per op row, for the 12 ops at the layer's shapes.

The CI cap is S ≤ 4096.

Open: whether PyTorchSim emits the MoE dispatch, gmm and combine in the form the harness measures has not been checked yet. It is the first thing this work checks.

🤖 Generated with Claude Code

https://claude.ai/code/session_011cGNfHFySFsi7feZKKvq7e

Activity

  1. self-assigned this
    on Oct 20, 2026
  2. YWHyuk commented on Oct 20, 2026

    @YWHyuk
    CollaboratorAuthor

    Plan update (maintainer decisions, 2026-10-21): the layer bundle (branch bundle/layer-suite) skips rows over the CI cap (4096) and builds the layer rows in several processes; extern calls (F.grouped_mm, aten.sort.stable) are recorded in the manifest as not simulated. Separate issues will track Triton routes for grouped_mm and sort. Qwen3 GEMM rows reach the gemm suite through the compiler's measured CSV, no bundle change needed.

    🤖 Generated with Claude Code

    https://claude.ai/code/session_011cGNfHFySFsi7feZKKvq7e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions