Skip to main content
Ctrl+K
Monarch  documentation - Home
  • Installation
  • Getting Started
  • Examples
  • Python API
  • Internal APIs
Ctrl+K
  • X
  • GitHub
  • Discourse
  • PyPi
  • Installation
  • Getting Started
  • Examples
  • Python API
  • Internal APIs
Ctrl+K
  • X
  • GitHub
  • Discourse
  • PyPi

Section Navigation

  • monarch.actor
  • monarch
  • Python API
Rate this Page
★ ★ ★ ★ ★

Python API#

Note

This documents Monarch’s public APIs - the stable, supported interfaces.

The actor API for monarch is accessed through the monarch.actor package. The monarch package contains APIs related to computing with distributed tensors.

  • monarch.actor
  • Creating Actors
    • HostMesh
    • ProcMesh
    • get_or_spawn_controller()
  • Defining Actors
    • Actor
    • endpoint()
  • Messaging Actor
    • Endpoint
    • Future
    • ValueMesh
    • ActorError
    • Accumulator
    • send()
    • Channel
    • Port
    • PortReceiver
    • as_endpoint()
  • Context API
    • current_actor_name()
    • current_rank()
    • current_size()
    • context()
    • Point
    • Extent
  • monarch
    • Tensor
    • Stream
    • remote()
    • coalescing()
    • get_active_mesh()
    • no_mesh()
    • to_mesh()
    • slice_mesh()
    • get_active_stream()
    • reduce()
    • reduce_()
    • call_on_shard_and_fetch()
    • fetch_shard()
    • inspect()
    • show()
    • grad_function()
    • grad_generator()
Rate this Page
★ ★ ★ ★ ★

previous

Debugging Python Actors with pdb in Monarch

next

monarch.actor

Built with the PyData Sphinx Theme 0.15.4.

previous

Debugging Python Actors with pdb in Monarch

next

monarch.actor

Edit on GitHub
Show Source
PyTorch Libraries
  • torchao
  • torchrec
  • torchft
  • TorchCodec
  • torchvision
  • ExecuTorch
  • PyTorch on XLA Devices

Copyright © 2025 Meta Platforms, Inc

To analyze traffic and optimize your experience, we serve cookies on this site. By clicking or navigating, you agree to allow our usage of cookies. As the current maintainers of this site, Facebook’s Cookies Policy applies. Learn more, including about available controls: Cookies Policy.

© Copyright 2025.

Created using Sphinx 7.2.6.

Built with the PyData Sphinx Theme 0.15.4.