[Hardware][Intel] OpenVINO vLLM backend (#5379)
This commit is contained in:
11
setup.py
11
setup.py
@ -233,6 +233,10 @@ def _is_cpu() -> bool:
|
||||
return VLLM_TARGET_DEVICE == "cpu"
|
||||
|
||||
|
||||
def _is_openvino() -> bool:
|
||||
return VLLM_TARGET_DEVICE == "openvino"
|
||||
|
||||
|
||||
def _is_xpu() -> bool:
|
||||
return VLLM_TARGET_DEVICE == "xpu"
|
||||
|
||||
@ -337,6 +341,8 @@ def get_vllm_version() -> str:
|
||||
if neuron_version != MAIN_CUDA_VERSION:
|
||||
neuron_version_str = neuron_version.replace(".", "")[:3]
|
||||
version += f"+neuron{neuron_version_str}"
|
||||
elif _is_openvino():
|
||||
version += "+openvino"
|
||||
elif _is_tpu():
|
||||
version += "+tpu"
|
||||
elif _is_cpu():
|
||||
@ -388,6 +394,8 @@ def get_requirements() -> List[str]:
|
||||
requirements = _read_requirements("requirements-rocm.txt")
|
||||
elif _is_neuron():
|
||||
requirements = _read_requirements("requirements-neuron.txt")
|
||||
elif _is_openvino():
|
||||
requirements = _read_requirements("requirements-openvino.txt")
|
||||
elif _is_tpu():
|
||||
requirements = _read_requirements("requirements-tpu.txt")
|
||||
elif _is_cpu():
|
||||
@ -396,7 +404,8 @@ def get_requirements() -> List[str]:
|
||||
requirements = _read_requirements("requirements-xpu.txt")
|
||||
else:
|
||||
raise ValueError(
|
||||
"Unsupported platform, please use CUDA, ROCm, Neuron, or CPU.")
|
||||
"Unsupported platform, please use CUDA, ROCm, Neuron, "
|
||||
"OpenVINO, or CPU.")
|
||||
return requirements
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user