[V1][Bugfix] Fix oracle for device checking (#15104)

Signed-off-by: Roger Wang <ywang@roblox.com>
This commit is contained in:
Roger Wang 2025-03-19 03:35:32 -07:00 committed by GitHub
parent 68cf1601d3
commit dafb4e504a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1578,6 +1578,13 @@ class EngineArgs:
_raise_or_fallback(feature_name=name, recommend_to_remove=True)
return False
# No support for device type other than CUDA, AMD (experiemntal) or
# TPU (experimental) so far.
if not (current_platform.is_cuda_alike() or current_platform.is_tpu()):
_raise_or_fallback(
feature_name=f"device type={current_platform.device_type}",
recommend_to_remove=False)
return False
#############################################################
# Experimental Features - allow users to opt in.