Skip to content

Commit 5cdf0d2

Browse files
authored
Remove v1 references (#61)
* remove v0 references * flake
1 parent 2a59413 commit 5cdf0d2

File tree

4 files changed

+3
-34
lines changed

4 files changed

+3
-34
lines changed

tests/test_models.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,6 @@
44
# This source code is licensed under the BSD-style license found in the
55
# LICENSE file in the root directory of this source tree.
66

7-
from torchstore.constants import MONARCH_HOSTMESH_V1
8-
9-
if MONARCH_HOSTMESH_V1:
10-
from monarch._rust_bindings.monarch_hyperactor.channel import ChannelTransport
11-
from monarch._rust_bindings.monarch_hyperactor.config import configure
12-
13-
configure(
14-
default_transport=ChannelTransport.MetaTlsWithHostname,
15-
)
16-
177
import math
188
import os
199
import tempfile

torchstore/api.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88

99
import torch
1010

11+
from monarch.actor import get_or_spawn_controller
12+
1113
import torchstore.state_dict_utils
1214
from torchstore.client import LocalClient
1315

14-
from torchstore.constants import MONARCH_HOSTMESH_V1
1516
from torchstore.controller import Controller
1617
from torchstore.storage_volume import StorageVolume
1718
from torchstore.strategy import (
@@ -21,11 +22,6 @@
2122
)
2223
from torchstore.transport.pipe import TensorSlice
2324

24-
if MONARCH_HOSTMESH_V1:
25-
from monarch._src.actor.v1.proc_mesh import get_or_spawn_controller
26-
else:
27-
from monarch.actor import get_or_spawn_controller
28-
2925

3026
# I need to keep this somewhere, so here we go
3127
DEFAULT_TORCHSTORE_NAME: str = "TorchStore"

torchstore/constants.py

Lines changed: 0 additions & 12 deletions
This file was deleted.

torchstore/utils.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@
1111

1212
import torch
1313

14-
from torchstore.constants import MONARCH_HOSTMESH_V1
15-
16-
if MONARCH_HOSTMESH_V1:
17-
from monarch._src.actor.v1.host_mesh import this_host
18-
else:
19-
from monarch.actor import this_host
14+
from monarch.actor import this_host
2015

2116
from torchstore.transport import TensorSlice
2217

0 commit comments

Comments
 (0)