Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion tpu_sync/api/torch/kv_cache_manager_mpmd_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@
import torch.multiprocessing as mp

from google3.pyglib.contrib.g3_multiprocessing import g3_multiprocessing
from tpu_sync.frameworks.torch import _tpu_raiden_torch as _kv_cache_manager
# pylint: disable=g-import-not-at-top
try:
from tpu_sync.frameworks.torch import _tpu_raiden_torch as _kv_cache_manager
except ImportError:
from tpu_sync.frameworks.torch import _tpu_raiden_torch as _kv_cache_manager
# pylint: enable=g-import-not-at-top

_GOOGLE_PCI_VENDOR_ID = "0x1ae0"
_TOPOLOGY_BY_TPU_PCI_DEVICE_ID = {
Expand Down
Loading
Loading