We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8386fa commit a928424Copy full SHA for a928424
vllm/platforms/interface.py
@@ -406,12 +406,12 @@ def validate_request(
406
"""Raises if this request is unsupported on this platform"""
407
408
def __getattr__(self, key: str):
409
- device = getattr(torch, self.device_name, None)
+ device = getattr(torch, self.device_type, None)
410
if device is not None and hasattr(device, key):
411
return getattr(device, key)
412
else:
413
logger.warning("Current platform %s does not have '%s'" \
414
- " attribute.", self.device_name, key)
+ " attribute.", self.device_type, key)
415
return None
416
417
@classmethod
0 commit comments