Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
tlrmchlsmth committed May 10, 2024
1 parent 62cde18 commit bdf6378
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vllm/_custom_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
try:
from vllm._C import cache_ops as vllm_cache_ops
from vllm._C import ops as vllm_ops

capability = torch.cuda.get_device_capability()
capability = capability[0] * 10 + capability[1]
except ImportError:
pass

capability = torch.cuda.get_device_capability()
capability = capability[0] * 10 + capability[1]


# activation ops
Expand Down

0 comments on commit bdf6378

Please sign in to comment.