Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions vllm/config/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ class SchedulerConfig:
structured outputs, speculative decoding, and pipeline parallelism.
"""

split_prefill_from_chunk: bool = False
"""Whether to split the prefill request into pure prefill and chunked
prefill in a single batch."""

def compute_hash(self) -> str:
"""
WARNING: Whenever a new field is added to this config,
Expand Down
5 changes: 5 additions & 0 deletions vllm/platforms/rocm.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,11 @@ def check_and_update_config(cls, vllm_config: "VllmConfig") -> None:
and "-rms_norm" not in compilation_config.custom_ops):
compilation_config.custom_ops.append("+rms_norm")

if envs.VLLM_ROCM_USE_AITER and envs.VLLM_ROCM_USE_AITER_MHA:
# enable the request reorder if we are using AITER MHA
# for calculation
vllm_config.scheduler_config.split_prefill_from_chunk = True

@classmethod
def verify_model_arch(cls, model_arch: str) -> None:
if model_arch in _ROCM_UNSUPPORTED_MODELS:
Expand Down
Loading