[Core][AMD] Migrate fully transparent sleep mode to ROCm platform (#12695)
Signed-off-by: Hollow Man <hollowman@opensuse.org> Signed-off-by: tjtanaa <tunjian.tan@embeddedllm.com> Co-authored-by: tjtanaa <tunjian.tan@embeddedllm.com> Co-authored-by: kliuae <kuanfu.liu@embeddedllm.com>
This commit is contained in:
co-authored by
tjtanaa
kliuae
parent
10f01d5a3a
commit
4ca5cd5740
@@ -18,6 +18,7 @@ if TYPE_CHECKING:
|
||||
VLLM_RINGBUFFER_WARNING_INTERVAL: int = 60
|
||||
VLLM_NCCL_SO_PATH: str | None = None
|
||||
LD_LIBRARY_PATH: str | None = None
|
||||
VLLM_ROCM_SLEEP_MEM_CHUNK_SIZE: int = 256
|
||||
VLLM_V1_USE_PREFILL_DECODE_ATTENTION: bool = False
|
||||
VLLM_FLASH_ATTN_VERSION: int | None = None
|
||||
LOCAL_RANK: int = 0
|
||||
@@ -520,6 +521,10 @@ environment_variables: dict[str, Callable[[], Any]] = {
|
||||
# when `VLLM_NCCL_SO_PATH` is not set, vllm will try to find the nccl
|
||||
# library file in the locations specified by `LD_LIBRARY_PATH`
|
||||
"LD_LIBRARY_PATH": lambda: os.environ.get("LD_LIBRARY_PATH", None),
|
||||
# flag to control the chunk size (in MB) for sleeping memory allocations under ROCm
|
||||
"VLLM_ROCM_SLEEP_MEM_CHUNK_SIZE": lambda: int(
|
||||
os.environ.get("VLLM_ROCM_SLEEP_MEM_CHUNK_SIZE", "256")
|
||||
),
|
||||
# Use separate prefill and decode kernels for V1 attention instead of
|
||||
# the unified triton kernel.
|
||||
"VLLM_V1_USE_PREFILL_DECODE_ATTENTION": lambda: (
|
||||
|
||||
Reference in New Issue
Block a user