[Feature] Add SM103 (Blackwell Ultra) Support to vLLM (#30484)
Signed-off-by: LopezCastroRoberto <robertol.c510@gmail.com> Signed-off-by: Roberto L. Castro <38211239+LopezCastroRoberto@users.noreply.github.com> Co-authored-by: youkaichao <youkaichao@gmail.com>
This commit is contained in:
co-authored by
youkaichao
parent
57e9bf1864
commit
4fa7ce46f3
@@ -301,6 +301,21 @@ class Platform:
|
||||
|
||||
return current_capability.to_int() == capability
|
||||
|
||||
@classmethod
|
||||
def is_device_capability_family(
|
||||
cls,
|
||||
capability: int,
|
||||
device_id: int = 0,
|
||||
) -> bool:
|
||||
"""
|
||||
Returns True if the device capability is any <major>.x.
|
||||
Mirrors CUDA 13 'family' architecture semantics (e.g. 10.x, 11.x, 12.x).
|
||||
"""
|
||||
current_capability = cls.get_device_capability(device_id=device_id)
|
||||
if current_capability is None:
|
||||
return False
|
||||
return (current_capability.to_int() // 10) == (capability // 10)
|
||||
|
||||
@classmethod
|
||||
def get_device_name(cls, device_id: int = 0) -> str:
|
||||
"""Get the name of a device."""
|
||||
|
||||
Reference in New Issue
Block a user