API Reference

Complete API documentation for ray-zerocopy.

Overview

ray-zerocopy provides wrapper classes for zero-copy model sharing:

  1. ModelWrapper - Primary API for nn.Module models (supports both task and actor modes)

  2. JITModelWrapper - Unified API for TorchScript (compiled) models (supports both task and actor modes)

Importing

# Primary API for nn.Module
from ray_zerocopy import ModelWrapper

# For TorchScript models
from ray_zerocopy import JITModelWrapper