[BugFix] Add env variable to control PDL in LoRA (#32836)
Signed-off-by: Jee Jee Li <pandaleefree@gmail.com>
This commit is contained in:
@@ -310,4 +310,9 @@ def supports_pdl(device: torch.device | None = None) -> bool:
|
||||
Refer to: https://github.com/triton-lang/triton/blob/v3.5.0/python/tutorials/11-programmatic-dependent-launch.py
|
||||
"""
|
||||
# PDL requires compute capability SM90 or above
|
||||
return current_platform.is_cuda() and current_platform.has_device_capability(90)
|
||||
|
||||
return (
|
||||
current_platform.is_cuda()
|
||||
and current_platform.has_device_capability(90)
|
||||
and not envs.VLLM_LORA_DISABLE_PDL
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user