Skip to content

[2026秋季][Task05] jinger861-git - #154

Merged
zhaochaoxing merged 1 commit into
DeepLink-org:mainfrom
jinger861-git:QY2026_Autumn_jinger861-git_Task05TriAttentionFallback_MLU
Aug 24, 2026
Merged

zhaochaoxing merged 1 commit into
DeepLink-org:mainfrom
jinger861-git:QY2026_Autumn_jinger861-git_Task05TriAttentionFallback_MLU

Conversation

@jinger861-git

@jinger861-git jinger861-git commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Optimize Task05 TriAttentionFallback for Cambricon MLU.
  • Fuse QK^T, fp32 stable softmax, and PV into one Triton kernel.
  • Read Q/K/V directly from [B, N, S, H, D] strides, avoiding v0 permutation/reshape copies.
  • Tune MLU Union1 execution with num_warps=4 and num_stages=4.

Accuracy

PASS with the official KS benchmark.

  • atol: 1e-2
  • rtol: 1e-2
  • Additional shape regression passed for S=64/100/128; worst max absolute difference was 1.44e-3.

Performance

Official benchmark median over three complete runs:

  • v0: 0.141894 ms
  • v1: 0.013620 ms
  • speedup: 10.418x

Changed file

  • dlblas/kernels/ks_competition/QY2026_Autumn_jinger861-git_Task05TriAttentionFallback_MLU.py

@CLAassistant

CLAassistant commented Jul 10, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@jinger861-git
jinger861-git force-pushed the QY2026_Autumn_jinger861-git_Task05TriAttentionFallback_MLU branch from 18d7de0 to 77bd46f Compare July 10, 2026 08:54
@zhaochaoxing
zhaochaoxing merged commit 204434c into DeepLink-org:main Aug 24, 2026
4 checks passed
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.

3 participants