ROCm / ROCm/aiter

[Issue]: Some AITER Operators are not compatible with torch.compile

Open
#244 8 comments 0 reactions 3 assignees View on GitHub

@zhiding512 is already working on this.

Since May 22, 2025.

Dominant language
Python
Stars
565
Forks
585
Avg merge
3d 4h
Merged PRs (30d)
366

Description

Problem Description

Torch compile is not able to convert some of the built-in python functions into graph. e.g. highlighted in green

ERROR 03-24 02:09:11 [core.py:343]     ck_config = get_CKGEMM_config(m, n, k)
ERROR 03-24 02:09:11 [core.py:343]   File "/usr/local/lib/python3.10/dist-packages/torch/_dynamo/polyfills/__init__.py", line 135, in getattr_and_trace
ERROR 03-24 02:09:11 [core.py:343]     return fn(*args[2:], **kwargs)
ERROR 03-24 02:09:11 [core.py:343]   File "/app/Quark/aiter/aiter/ops/gemm_op_a8w8.py", line 84, in get_CKGEMM_config
+ ERROR 03-24 02:09:11 [core.py:343]     if not hasattr(get_CKGEMM_config, "ckgemm_dict"):
ERROR 03-24 02:09:11 [core.py:343] 
ERROR 03-24 02:09:11 [core.py:343] Set TORCH_LOGS="+dynamo" and TORCHDYNAMO_VERBOSE=1 for more information

The full logs can be found in the attachment.

llama_fp8-int8aiterck-v1.txt

Operating System

Ubuntu 22.04.4 LTS (Jammy Jellyfish)

CPU

AMD EPYC 9654 96-Core Processor

GPU

AMD Instinct MI300X

ROCm Version

ROCm 6.3.1

ROCm Component

No response

Steps to Reproduce

Setup vLLM

git clone https://github.com/EmbeddedLLM/vllm.git --branch aiter-int8-linear  aiter-int8-linear
cd  aiter-int8-linear
# if you have installed vllm before
python3 -m pip uninstall -y vllm
export PYTORCH_ROCM_ARCH=gfx942
python3 setup.py develop

Run with V1 engine
VLLM_USE_V1=1 VLLM_ROCM_USE_AITER=1 vllm serve neuralmagic/Meta-Llama-3.1-8B-Instruct-quantized.w8a8

(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support

No response

Additional Information

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.