File tree Expand file tree Collapse file tree 4 files changed +3
-34
lines changed Expand file tree Collapse file tree 4 files changed +3
-34
lines changed Original file line number Diff line number Diff line change 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-
177import math
188import os
199import tempfile
Original file line number Diff line number Diff line change 88
99import torch
1010
11+ from monarch .actor import get_or_spawn_controller
12+
1113import torchstore .state_dict_utils
1214from torchstore .client import LocalClient
1315
14- from torchstore .constants import MONARCH_HOSTMESH_V1
1516from torchstore .controller import Controller
1617from torchstore .storage_volume import StorageVolume
1718from torchstore .strategy import (
2122)
2223from 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
3127DEFAULT_TORCHSTORE_NAME : str = "TorchStore"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1111
1212import 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
2116from torchstore .transport import TensorSlice
2217
You can’t perform that action at this time.
0 commit comments