OpenSAI Documentation · v1.1.0

OpenSAI v1.0.0 · Materials v1.1.0

OpenSAI Product & Technical Overview

Distributed DAG computation offloading and bidirectional resource-application adaptation across heterogeneous edge devices.

1. Why Edge Collaboration Needs OpenSAI

Modern edge workloads—such as multi-vehicle cooperative perception, multi-camera video analytics, industrial inspection, and staged sensor processing—generate data across dispersed vehicles, roadside units, cameras, and edge servers. Processing everything on a single edge device hits compute limits, while streaming all raw data to a central cloud introduces high latency and bandwidth bottlenecks. Turning nearby CPU and GPU machines into one coordinated runtime typically runs into four engineering barriers:

OpenSAI bridges applications and heterogeneous edge resources. Package your Python workflow as a declarative manifest (app.yaml) and step classes: OpenSAI handles device discovery, data-aware placement, four-dimensional resource control, peer-to-peer QUIC artifact transport, and goal-driven parameter adaptation—accessible through a bilingual Web console, CLI, Python SDK, and MCP-compatible AI agents.

2. Key Capabilities

CapabilityHow OpenSAI WorksWhat You Gain
Declarative DAG Offloading & Fault ToleranceResolves step dependencies, runs independent branches in parallel, enforces data locality, and supports optional collaborator branchesKeep step code focused on domain logic; workflows continue gracefully even when optional cooperating nodes go offline
Bidirectional AdaptationResources → App: selects devices, CPU cores, GPUs, and bandwidth quotas; App → Resources: tunes declared knobs (resolution, sample fraction, dimensions, upload ratio) to meet deadline, fastest, or efficient QoS goalsPin business-critical settings with -k and let the coordinator balance latency, output quality, and resource efficiency
Direct & Relay-Multipath QUIC Data PlaneReads co-located artifacts locally, fetches cross-device outputs over QUIC (UDP 9999), and supports unified DELTA relay multipath (OPENSAI_MULTIPATH=1)Aggregate spare relay capacity across ordinary QUIC connections without kernel patches, MPTCP, or MPQUIC
Lightweight Isolation & Closed-Loop ProfilingWorker pools apply CPU core affinity, memory budgets, egress rate limits, and artifact TTL cleanup while feeding measured runtimes back into performance profilesRun directly on Windows, Linux, and macOS without Docker or Kubernetes, with scheduling estimates that improve over time
Unified Observability & Agent ControlShares live device state, app catalogs, job traces, and decision explanations across the Web console, CLI, Python SDK, and opensai_mcp + Usage SkillInspect why every placement and parameter choice was made—or delegate execution and analysis to an AI agent

3. Representative Scenarios & Included Applications

The release includes five runnable applications ranging from a zero-dependency standard-library template to multi-source GPU perception. Start on one laptop, then scale the exact same package across multiple machines:

Included AppScenarioCapabilities DemonstratedPreparation
number_statsStaged numeric samplingMinimal application manifest, cross-step artifact passing, sampling knobPython standard library only
cluster_analyticsDistributed shard clusteringParallel shard processing, centroid merging, dims / iters deadline tuningnumpy; generates synthetic shards locally
video_countingDual-branch video countingParallel visual pipeline, joint resolution and frame-stride selectionnumpy; built-in synthetic frame generator
coop_perceptionLightweight cooperative perceptionEgo / vehicle / RSU point-cloud locality, selective comm volume, frame replaynumpy; local scene generator script
how2comm_perception3D LiDAR cooperative detectionEdge GPU inference with How2comm, optional-participant skip, link-aware upload ratioPyTorch + GPU on edge server, How2comm source/weights, V2XSet scene

4. Launch in Three Minutes & Documentation Map

A single computer with Python 3.10+ is enough to run the coordinator hub, a worker device, and the prebuilt Web console—no GPU, Docker, or Node.js required. Clone the repository (or extract OpenSAI_Release.zip) and run:

bash
git clone https://github.com/INSAI-institute/OpenSAI.git
cd OpenSAI
bash scripts/setup.sh
bash scripts/run.sh --with-web
source .venv/bin/activate
opensai dag submit -f examples/dags/pi_pipeline.json

See the Quickstart Guide for Windows PowerShell commands and expected outputs. Open http://127.0.0.1:5000 in your browser to explore the console (switch between EN and 中 language, Paper / Ink themes, or click Run demo in the top bar).

Where to Go Next

Institution, Repository & License

OpenSAI is developed and published by Fudan University and the Institute on Networking Systems of AI (INSAI) at github.com/INSAI-institute/OpenSAI (versioned bundles and narrated demos in Releases) under the MIT License (中文概览).