Skip to content

Commit

Permalink
Add dummy torch.hpu
Browse files Browse the repository at this point in the history
  • Loading branch information
jmaksymczuk committed Sep 3, 2024
1 parent c9babcc commit b5b6f8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vllm/cpu_migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
import habana_frameworks.torch as htorch
import torch

# torch.hpu = sys.modules['torch.hpu'] = types.ModuleType('torch.hpu')
# torch.hpu.synchronize = lambda: print('calling synchronize')
torch.hpu = sys.modules['torch.hpu'] = types.ModuleType('torch.hpu')
torch.hpu.synchronize = lambda: print('calling synchronize')

class CpuMigration:
def __init__(self):
Expand Down

0 comments on commit b5b6f8c

Please sign in to comment.