[Platform] Move get_punica_wrapper() function to Platform (#11516)

Signed-off-by: Shanshan Shen <467638484@qq.com>
This commit is contained in:
Shanshan Shen
2025-01-13 13:12:10 +00:00
committed by GitHub
parent 458e63a2c6
commit a7d59688fb
6 changed files with 32 additions and 17 deletions
+4
View File
@@ -109,3 +109,7 @@ class CpuPlatform(Platform):
def is_pin_memory_available(cls) -> bool:
logger.warning("Pin memory is not supported on CPU.")
return False
@classmethod
def get_punica_wrapper(cls) -> str:
return "vllm.lora.punica_wrapper.punica_cpu.PunicaWrapperCPU"