[CI] Resolve transformers-neuronx version conflict (#12925)

This commit is contained in:
Liangfu Chen
2025-02-08 01:41:35 -08:00
committed by GitHub
parent 011e612d92
commit c45d398e6f
4 changed files with 8 additions and 11 deletions
+1 -6
View File
@@ -374,12 +374,7 @@ def _is_hip() -> bool:
def _is_neuron() -> bool:
torch_neuronx_installed = True
try:
subprocess.run(["neuron-ls"], capture_output=True, check=True)
except (FileNotFoundError, PermissionError, subprocess.CalledProcessError):
torch_neuronx_installed = False
return torch_neuronx_installed or VLLM_TARGET_DEVICE == "neuron"
return VLLM_TARGET_DEVICE == "neuron"
def _is_tpu() -> bool: