Skip to content
Closed
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
11 changes: 11 additions & 0 deletions python/monarch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@

if TYPE_CHECKING:
from monarch import timer
from monarch._rust_bindings.monarch_hyperactor.alloc import (
AllocConstraints,
AllocSpec,
)
from monarch._src.actor.allocator import LocalAllocator, ProcessAllocator
from monarch._src.actor.shape import NDSlice, Shape
from monarch.common._coalescing import coalescing
Expand Down Expand Up @@ -76,6 +80,11 @@


_public_api = {
"AllocConstraints": (
"monarch._rust_bindings.monarch_hyperactor.alloc",
"AllocConstraints",
),
"AllocSpec": ("monarch._rust_bindings.monarch_hyperactor.alloc", "AllocSpec"),
"coalescing": ("monarch.common._coalescing", "coalescing"),
"remote": ("monarch.common.remote", "remote"),
"DeviceMesh": ("monarch.common.device_mesh", "DeviceMesh"),
Expand Down Expand Up @@ -146,6 +155,8 @@ def __getattr__(name):
# we have to explicitly list this rather than just take the keys of the _public_api
# otherwise tools think the imports are unused
__all__ = [
"AllocConstraints",
"AllocSpec",
"coalescing",
"DeviceMesh",
"get_active_mesh",
Expand Down