Rate this Page

Internal APIs#

Internally monarch is implemented using a Rust library for actors called hyperactor.

This book provides more details about its design.

This page provides access to the Rust API documentation for Monarch.

The Monarch project consists of several Rust crates, each with specialized functionality:

Core Framework#

CUDA and GPU Computing#

RDMA and High-Performance Networking#

  • monarch_rdma - Remote Direct Memory Access (RDMA) support for high-speed networking

  • rdmaxcel-sys - Low-level RDMA acceleration bindings

Monarch Python Integration#

System and Utilities#

  • hyper - Mesh admin CLI and HTTP utilities

  • ndslice - N-dimensional array slicing and manipulation

  • typeuri - Type URI system for message serialization

  • wirevalue - Wire-level value serialization for actor messages

  • serde_multipart - Zero-copy multipart serialization

Architecture Overview#

The Rust implementation provides a comprehensive framework for distributed computing with GPU acceleration:

  • Actor Model: Built on the hyperactor framework for concurrent, distributed processing

  • GPU Integration: Native CUDA support for high-performance computing workloads

  • Mesh Networking: Efficient communication between distributed nodes

  • Tensor Operations: Optimized tensor processing with PyTorch integration

  • Multi-dimensional Arrays: Advanced slicing and manipulation of n-dimensional data

For complete technical details, API references, and usage examples, explore the individual crate documentation above.