Skip to content

[Bugfix][Kernel][Hardware][AMD] Add gfx1201 RDNA4 architecture to allowed_archs in aiter_meta - #4535

Open
lowbob84 wants to merge 1 commit into
ROCm:mainfrom
lowbob84:fix/aiter-meta-gfx1201-allowed-archs
Open

lowbob84 wants to merge 1 commit into
ROCm:mainfrom
lowbob84:fix/aiter-meta-gfx1201-allowed-archs

Conversation

@lowbob84

@lowbob84 lowbob84 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Purpose

Fixes an engine initialization crash (AssertionError: One of GPU archs of ['gfx1201'] is invalid or not supported) during sampling setup when running vLLM with AITER enabled on AMD RDNA4 GPUs (gfx1201, e.g., Radeon AI PRO R9700).

Root Cause

When vLLM executes AITER sampling kernels (top_k_top_p_sampling_from_probs), aiter_meta invokes validate_and_update_archs() to validate GPU_ARCHS against an allowed_archs whitelist.
In csrc/cpp_itfs/utils.py, allowed_archs listed gfx90a, gfx940-950, gfx1151, but missed gfx1201. As a result, running sampling on gfx1201 threw an unhandled assertion failure and failed vLLM's EngineCore startup.

Fix

  • Added "gfx1201" architecture to allowed_archs in csrc/cpp_itfs/utils.py.

Test Plan

  1. Unit Verification:
    Tested validate_and_update_archs() under Python with GPU_ARCHS="gfx1201":

    python -c "import aiter_meta.csrc.cpp_itfs.utils as u; print(u.validate_and_update_archs())"

    Output: ['gfx1201']

  2. Integration / E2E Test on AMD GPU (gfx1201):
    Launched louismuk/gemma-4-26B-A4B-heretic-AWQ with AITER sampling enabled:

    vllm serve louismuk/gemma-4-26B-A4B-heretic-AWQ --quantization compressed-tensors --port 8888

Test Result

  • Sampling JIT Compile: AITER top-k / top-p sampling template compiled cleanly without assertion errors.
  • Engine Initialization: EngineCore initialized and started serving HTTP requests.

AI Assistance Disclosure

This pull request includes code modifications refined with assistance from an AI assistant (Gemini). All changes have been manually reviewed, validated, and verified end-to-end on hardware (gfx1201).

Co-authored-by: Gemini
Signed-off-by: Christopher Lange [email protected]

@lowbob84
lowbob84 requested a review from a team August 3, 2026 15:09
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

🏷️ CI Guide

Runs automatically on every PR:

  • ✅ Pre-checks (submodule verification, code formatting)
  • ✅ Aiter op tests (gfx942 + gfx950)
  • ✅ Triton tests on MI35X (only when aiter/ops/triton/** or related paths are changed)

Extended tests (opt-in via labels):

Label Tests
ci:triton-300x Run an additional Triton test job on MI300X in PRs; main branch always runs both MI35X and MI300X
ci:sglang SGLang integration tests: DeepSeek-R1-MXFP4 accuracy, Qwen 3.5 accuracy
ci:atom ATOM benchmark: DeepSeek-R1-0528, GPT-OSS-120B
ci:atom_full ATOM accuracy suite for PR and main models from ATOM models_accuracy.json
ci:vllm vLLM benchmark: GPT-OSS-120B, DeepSeek-R1-0528, Kimi-K2.5
ci:all All standard extended tests (excludes ci:atom_full)

Only add ci:atom_full for FlyDSL or Triton upgrades.
Add labels via the sidebar or gh pr edit 4535 --add-label <label>

@zufayu
zufayu requested a review from valarLip August 4, 2026 01:26
@zufayu
zufayu requested review from amd-ruitang3, valarLip and zufayu and removed request for amd-ruitang3, valarLip and zufayu August 26, 2026 01:14
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

No activity for 15 days, so this is now labelled stale. A push or a comment clears it; keep-open exempts it.

This branch has not been deployed

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

Labels

stale The PR hasn't been updated in 2 weeks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant