API Reference
Complete API documentation for ray-zerocopy.
Quick Links
Main Wrappers
ModelWrapper- nn.Module with Ray tasks or actorsJITModelWrapper- TorchScript with Ray tasks or actors
Overview
ray-zerocopy provides wrapper classes for zero-copy model sharing:
ModelWrapper - Primary API for nn.Module models (supports both task and actor modes)
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