> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rotastellar.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Distributed Compute Overview

> Coordinate AI workloads across Earth and orbital infrastructure

# Distributed Compute

<Warning>
  **Coming Q1 2026** — Distributed Compute is currently in development.
  This documentation is a design preview. [Request early access](https://rotastellar.com/developers)
  to be notified when it's available.
</Warning>

## Overview

Distributed Compute enables AI training and inference across hybrid Earth-space infrastructure. Coordinate federated learning, partition models optimally, and synchronize through bandwidth-constrained orbital links.

<CardGroup cols={2}>
  <Card title="Federated Learning" icon="network-wired" href="/distributed/federated-learning">
    Train models across Earth and orbital nodes with gradient compression
  </Card>

  <Card title="Model Partitioning" icon="scissors" href="/distributed/model-partitioning">
    Optimal layer placement across Earth and space infrastructure
  </Card>

  <Card title="Sync Scheduler" icon="clock" href="/distributed/sync-scheduler">
    Ground station pass planning and priority-based queuing
  </Card>

  <Card title="Space Mesh" icon="diagram-project" href="/distributed/space-mesh">
    ISL routing for orbital node communication
  </Card>
</CardGroup>

## Why Earth-Space Distributed Compute?

Large AI models don't fit on any single node. Training and inference must span infrastructure. But space introduces unique constraints:

| Challenge                                   | Solution                                             |
| ------------------------------------------- | ---------------------------------------------------- |
| Bandwidth is scarce (limited ground passes) | 100x gradient compression with TopK + quantization   |
| Latency varies wildly (5ms to 500ms+)       | Async aggregation and intelligent model partitioning |
| Connectivity is intermittent                | Priority-based sync scheduling across passes         |
| Topology is dynamic                         | ISL mesh routing adapts to orbital geometry          |

## Architecture

Your training job connects to RotaStellar Distributed Compute, which coordinates workloads across ground and orbital infrastructure:

<Steps>
  <Step title="Distributed Compute Layer">
    The core coordination layer includes **Federated Learning** (gradient compression and aggregation), **Model Partitioning** (optimal layer placement), and **Sync Scheduler** (ground pass planning).
  </Step>

  <Step title="Space Mesh">
    Inter-Satellite Link (ISL) routing enables orbital nodes to communicate with each other and relay data to ground stations.
  </Step>

  <Step title="Infrastructure">
    **Ground Nodes** provide high-bandwidth terrestrial compute. **LEO Nodes** run solar-powered orbital compute, connected via ISL and synchronized during ground passes.
  </Step>
</Steps>

## Key Capabilities

### Gradient Compression

Reduce bandwidth by 100x with minimal accuracy loss:

```python theme={null}
from rotastellar_distributed import CompressionConfig

compression = CompressionConfig(
    method="topk_quantized",
    k_ratio=0.01,           # Keep top 1% of gradients
    quantization_bits=8,    # 8-bit quantization
    error_feedback=True     # Accumulate compression error
)
# 4.2 MB gradient → 42 KB compressed
# Under 0.5% accuracy loss
```

### Async Aggregation

Handle intermittent connectivity with async federated averaging:

* Nodes train independently during eclipse/no-contact periods
* Gradients sync during ground station passes
* Central aggregator handles out-of-order updates
* Convergence guaranteed despite variable latency

### Intelligent Partitioning

Split models optimally across Earth and orbital nodes:

* Minimize data transfer at cut points
* Account for per-node compute capacity
* Adapt to changing orbital geometry
* Balance latency vs throughput

## Quick Start

<CodeGroup>
  ```python Python theme={null}
  from rotastellar_distributed import FederatedClient, CompressionConfig

  # Configure compression
  compression = CompressionConfig(
      method="topk_quantized",
      k_ratio=0.01,
      quantization_bits=8
  )

  # Initialize federated client
  client = FederatedClient(
      api_key="rs_...",
      node_id="orbital-3",
      node_type="orbital",
      compression=compression
  )

  # Train locally
  gradients = client.train_step(model, batch)

  # Sync during ground pass
  client.sync(gradients, priority="high")
  ```

  ```typescript Node.js theme={null}
  import { FederatedClient, CompressionConfig } from '@rotastellar/distributed';

  const compression = new CompressionConfig({
    method: 'topk_quantized',
    kRatio: 0.01,
    quantizationBits: 8
  });

  const client = new FederatedClient({
    apiKey: 'rs_...',
    nodeId: 'orbital-3',
    nodeType: 'orbital',
    compression
  });

  const gradients = client.trainStep(model, batch);
  client.sync(gradients, { priority: 'high' });
  ```

  ```rust Rust theme={null}
  use rotastellar_distributed::{FederatedClient, CompressionConfig, CompressionMethod};

  let compression = CompressionConfig::new()
      .method(CompressionMethod::TopKQuantized)
      .k_ratio(0.01)
      .quantization_bits(8);

  let client = FederatedClient::new("orbital-3", compression);

  let gradients = client.train_step(&model, &batch);
  client.sync(gradients, Priority::High);
  ```
</CodeGroup>

## Performance

| Metric               | Value                       |
| -------------------- | --------------------------- |
| Gradient compression | 100x (4.2 MB → 42 KB)       |
| Accuracy loss        | Under 0.5% vs uncompressed  |
| Sync efficiency      | +45% bandwidth utilization  |
| Training overhead    | +15-20% time vs centralized |
| Energy savings       | 35-45% vs terrestrial-only  |

## Timeline

| Milestone                 | Target  |
| ------------------------- | ------- |
| Design preview (this doc) | Now     |
| SDK with simulators       | Q1 2026 |
| Beta with partners        | Q2 2026 |
| General availability      | Q3 2026 |

## Get Notified

<Card title="Request Early Access" icon="bell" href="https://rotastellar.com/developers">
  Be the first to know when Distributed Compute is available.
</Card>
