Skip to content

test: sync qwen3 samples to pypto main#799

Draft
HecreReed wants to merge 2 commits into
hw-native-sys:mainfrom
HecreReed:codex/sync-pypto-cases
Draft

test: sync qwen3 samples to pypto main#799
HecreReed wants to merge 2 commits into
hw-native-sys:mainfrom
HecreReed:codex/sync-pypto-cases

Conversation

@HecreReed

Copy link
Copy Markdown
Collaborator

Summary

  • sync test/samples/Qwen3DecodeA3 and test/samples/Qwen3DecodeA5 to the current pypto-lib/main models/qwen3/32b/qwen3_32b_decode.py output at ccbdc4fa5cafd1eda7784c9585f9dc876791778b
  • keep the existing PTOAS sample case filenames and golden helpers, but refresh the vendored raw .pto payloads from the latest upstream raw kernel names
  • update the sample README pins to the exact upstream commit

Validation

  • re-exported Qwen3 decode raw kernels for both a2a3 and a5 from pypto-lib/main
  • compiled all updated sample .pto files with local ptoas using --pto-level=level3
    • A3: --pto-arch=a3
    • A5: --pto-arch=a5

Scope note

  • this PR intentionally does not update DeepseekV4DecodeA3/A5
  • the current pypto-lib/main DeepSeek V4 decode flow now exports a much finer-grained kernel set than the 7 vendored PTOAS sample cases, so syncing it cleanly needs a separate sample/golden/board-validation migration instead of a straight file refresh

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the Qwen3 decode PTO kernels for both A3 and A5 targets. The generic @qwen3_decode_incore_* function names have been remapped to descriptive kernel names (such as @q_proj, @gate_proj, and @softmax) to align with the current pypto-lib/main raw kernel names. Additionally, minor adjustments were made to tile buffer allocation addresses and constants in qwen3_decode_incore_5.pto and rope_kv_cache.pto, and the README files were updated accordingly. There are no review comments provided, and I have no additional feedback on these changes.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@reedhecre

reedhecre commented Jun 11, 2026

Copy link
Copy Markdown

Codex Review

该评论由 review 机器人自动更新。

  • PR: test: sync qwen3 samples to pypto main #799 test: sync qwen3 samples to pypto main
  • Author: HecreReed
  • Base/Head: main / codex/sync-pypto-cases
  • Head SHA: 60b7e87ba8b5
  • Trigger: PR 有新提交
  • Generated At: 2026-06-11T08:56:19Z
  • Previous Head SHA: ff74e2697b3f
  • Status: failed at codex-review (exit=1)

Summary

Review failed at stage codex-review: exit=1

Findings

未生成结构化 findings,因为 review 过程提前失败。

Log Tail

 .../Qwen3DecodeA3/qwen3_decode_incore_10.pto       |   2 +-
 .../Qwen3DecodeA3/qwen3_decode_incore_11.pto       |   2 +-
 .../Qwen3DecodeA3/qwen3_decode_incore_12.pto       |   2 +-
 .../Qwen3DecodeA3/qwen3_decode_incore_2.pto        |   2 +-
 .../Qwen3DecodeA3/qwen3_decode_incore_4.pto        |   2 +-
 .../Qwen3DecodeA3/qwen3_decode_incore_5.pto        |  21 +-
 .../Qwen3DecodeA3/qwen3_decode_incore_6.pto        |   2 +-
 .../Qwen3DecodeA3/qwen3_decode_incore_7.pto        |   2 +-
 test/samples/Qwen3DecodeA3/rope_kv_cache.pto       | 142 ----------
 test/samples/Qwen3DecodeA3/rope_kv_cache_golden.py |  14 -
 test/samples/Qwen3DecodeA5/README.md               |   4 +-
 .../Qwen3DecodeA5/qwen3_decode_incore_1.pto        |   2 +-
 .../Qwen3DecodeA5/qwen3_decode_incore_10.pto       |   2 +-
 .../Qwen3DecodeA5/qwen3_decode_incore_11.pto       |   2 +-
 .../Qwen3DecodeA5/qwen3_decode_incore_12.pto       |   2 +-
 .../Qwen3DecodeA5/qwen3_decode_incore_2.pto        |   2 +-
 .../Qwen3DecodeA5/qwen3_decode_incore_4.pto        |   2 +-
 .../Qwen3DecodeA5/qwen3_decode_incore_5.pto        |  21 +-
 .../Qwen3DecodeA5/qwen3_decode_incore_6.pto        |   2 +-
 .../Qwen3DecodeA5/qwen3_decode_incore_7.pto        |   2 +-
 test/samples/Qwen3DecodeA5/rope_kv_cache.pto       |   7 +-
 162 files changed, 6888 insertions(+), 1314 deletions(-)
===== END STAGE clone rc=0 @ 2026-06-11 16:55:37 =====

===== STAGE codex-review @ 2026-06-11 16:55:37 =====
set -euo pipefail
cd '/tmp/ptoas-pr-review-monitor/runs/20260611_165530_pr799/repo'
'codex' exec -C '/tmp/ptoas-pr-review-monitor/runs/20260611_165530_pr799/repo' -s read-only -c 'model_provider="codereview"' -c 'model="gpt-5.4"' -c 'model_reasoning_effort="xhigh"' --output-schema '/tmp/ptoas-pr-review-monitor/runs/20260611_165530_pr799/review_schema.json' -o '/tmp/ptoas-pr-review-monitor/runs/20260611_165530_pr799/codex_last_message.json' --color never - < '/tmp/ptoas-pr-review-monitor/runs/20260611_165530_pr799/review_prompt.txt'
OpenAI Codex v0.115.0 (research preview)
--------
workdir: /tmp/ptoas-pr-review-monitor/runs/20260611_165530_pr799/repo
model: gpt-5.4
provider: codereview
approval: never
sandbox: read-only
reasoning effort: xhigh
reasoning summaries: none
session id: 019eb5e4-e8b8-7293-8706-1fd3be48ec1f
--------
user
你现在在审查 GitHub PR。

仓库:hw-native-sys/PTOAS
PR:#799 test: sync qwen3 samples to pypto main
作者:HecreReed
base branch:origin/main
head branch:HEAD(当前已 checkout 到 PR head)

要求:
1. 只审查这个 PR 相对 origin/main 的改动,必要时可以看上下文文件。
2. 重点找真实的 correctness / regression / contract mismatch / CI / runtime / compatibility 问题。
3. 不要提纯风格建议,不要提低价值猜测。
4. 严格按优先级输出:
   - P1:高概率会导致错误结果、编译/运行失败、严重回归、发布阻断
   - P2:重要缺陷、行为回归、遗漏校验/测试、较大兼容性问题
   - P3:次要但明确可改的问题
5. 如果没有问题,summary 直接写:未检查到 PR #799 存在问题,并返回 findings=[]。
6. 如果有问题,summary 简洁概括,findings 里每条都要给出:
   - severity
   - title
   - body(说明为什么是问题,尽量具体)
   - file(尽量给相对路径)
   - line(能确定就填整数,否则 null)

建议先查看:
- git status --short
- git diff --stat origin/main...HEAD
- git diff --unified=80 origin/main...HEAD

最终输出必须严格匹配 JSON schema。

mcp startup: no servers
Reconnecting... 1/5 (unexpected status 502 Bad Gateway: Upstream service temporarily unavailable, url: https://codex.0u0o.com/responses, request id: 44270d2e-10a8-4096-aef2-c58628e6b071)
Reconnecting... 2/5 (unexpected status 502 Bad Gateway: Upstream service temporarily unavailable, url: https://codex.0u0o.com/responses, request id: a72019cf-0b8e-4456-8246-7628961a2321)
Reconnecting... 3/5 (unexpected status 502 Bad Gateway: Upstream service temporarily unavailable, url: https://codex.0u0o.com/responses, request id: a41acbfa-bd9f-463d-beed-268b0d5aaa75)
Reconnecting... 4/5 (unexpected status 502 Bad Gateway: Upstream service temporarily unavailable, url: https://codex.0u0o.com/responses, request id: 81a46840-786d-4317-8f74-6694dfb01e56)
Reconnecting... 5/5 (unexpected status 502 Bad Gateway: Upstream service temporarily unavailable, url: https://codex.0u0o.com/responses, request id: 4ad1c296-96a3-42d6-a6c9-e4459fcb305f)
ERROR: unexpected status 502 Bad Gateway: Upstream service temporarily unavailable, url: https://codex.0u0o.com/responses, request id: 2e939817-daf4-4fa9-ae1e-28b75229cc82
Warning: no last agent message; wrote empty content to /tmp/ptoas-pr-review-monitor/runs/20260611_165530_pr799/codex_last_message.json
===== END STAGE codex-review rc=1 @ 2026-06-11 16:56:19 =====

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.

2 participants