[Bugfix][CPU] Fall back to CpuPlatform when zentorch fails to import (#54923)
Signed-off-by: R <Ganesh.R@amd.com> Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -217,6 +217,15 @@ def cpu_platform_plugin() -> str | None:
|
||||
"AMD Zen CPU detected but zentorch not installed, "
|
||||
"falling back to CpuPlatform."
|
||||
)
|
||||
except OSError:
|
||||
# An ABI-mismatched build fails here with an undefined-symbol
|
||||
# error; other failures are not known to be safe to recover from.
|
||||
logger.warning(
|
||||
"AMD Zen CPU detected but zentorch failed to import, falling "
|
||||
"back to CpuPlatform. This usually means the zentorch build "
|
||||
"does not match the installed torch version.",
|
||||
exc_info=True,
|
||||
)
|
||||
|
||||
return "vllm.platforms.cpu.CpuPlatform"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user