Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion python/sglang/srt/layers/attention/aiter_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,11 @@ class ForwardMetadata:

global_workspace_buffer = None

_AITER_PARTITION_SIZE_ROCM = 256
import os
p = os.getenv("USE_PA")

_AITER_PARTITION_SIZE_ROCM = 256 * 4 if p is None or p.startswith("1") else 256



class AiterAttnBackend(AttentionBackend):
Expand Down