Skip to content

fix sparge on torch2.13 - #2130

Merged
yiliu30 merged 8 commits into
mainfrom
fix-sparge-torch2.13
Aug 6, 2026
Merged

fix sparge on torch2.13#2130
yiliu30 merged 8 commits into
mainfrom
fix-sparge-torch2.13

Conversation

@yiliu30

@yiliu30 yiliu30 commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Description

Please briefly describe your main changes, the motivation.

Type of Change

Bug fix

Related Issues

Fixes or relates to #

Checklist Before Submitting

  • My code has been tested locally.
  • Documentation has been updated as needed.
  • New or updated tests are included where applicable.
  • The CUDA CI has passed. You can trigger it by commenting /azp run Unit-Test-CUDA-AutoRound.

yiliu30 and others added 8 commits August 6, 2026 11:39
triton 3.7.x enables has_predicated_io for non-LTS Intel GPU drivers and emits
the SPV_INTEL_predicated_io SPIR-V extension. Some level-zero loaders (e.g.
1.13.35563) reject that extension at kernel load time, aborting every triton
kernel launch with 'InvalidModule: ... unknown extension'. Since it is not a
catchable Python exception, the torch preprocess fallback never ran and the
whole benchmark died.

Add auto_round_kernel/_xpu_triton_compat.py which patches the intel triton
backend to force has_predicated_io off (standard predicated loads instead),
and apply it when the triton preprocess module loads. The triton-xpu preprocess
backend now works and is faster than torch (seq 32768/50% e2e: 327ms -> 206ms).
tools/run_sparse_sagev1_bench.sh documents and runs the sparse SAGE v1 (fp16 /
INT8) benchmark on main: sources oneAPI, pins a GPU, uses the rebuilt extension,
and saves timestamped CSV + log under benchmarks/results/. Includes env
overrides and a note on the triton preprocess backend.
Signed-off-by: yiliu30 <yi4.liu@intel.com>
Signed-off-by: yiliu30 <yi4.liu@intel.com>
Signed-off-by: yiliu30 <yi4.liu@intel.com>
Signed-off-by: yiliu30 <yi4.liu@intel.com>
@yiliu30
yiliu30 requested a review from a32543254 August 6, 2026 05:10

@a32543254 a32543254 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@AutoRoundBot

Copy link
Copy Markdown
Collaborator

/azp run Unit-Test-CUDA-AutoRound

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@yiliu30
yiliu30 merged commit d8a3005 into main Aug 6, 2026
38 checks passed
@yiliu30
yiliu30 deleted the fix-sparge-torch2.13 branch August 6, 2026 05:43
jijiaz pushed a commit to jijiaz/auto-round that referenced this pull request Aug 8, 2026
Signed-off-by: yiliu30 <yi4.liu@intel.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
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