exo-distributed
БесплатноБез исполняемых скриптовНе проверенDistributed LLM inference across Apple Silicon clusters with exo. Run models across Mac Studios via Thunderbolt RDMA, auto peer discovery, and MLX sharding…
от plurigrid★ 73 звезды на GitHubОб этом скилле
exo-distributed Skill
"Run models across heterogeneous devices by forming GPU clusters with zero configuration."
Trit: 0 (ERGODIC - coordination/orchestration) Color: Neutral (60-180° hues) Source: Random walk fusion over DuckLake interactions + DeepWiki exo-explore/exo
Overview
exo enables distributed LLM inference across multiple Apple Silicon devices:
- Auto Peer Discovery: Devices find each other automatically
- RDMA over Thunderbolt 5: Low-latency direct memory access
- MLX Backend: Native Apple Silicon acceleration via mlx.distributed
- Pipeline + Tensor Parallelism: Shard models across devices
Quick Start
# Install exo
pip install exo-explore
# Start on first device (becomes master if elected)
exo
# Start on additional devices (auto-discovers peers)
exo
# Devices automatically form a cluster and expose OpenAI-compatible API
# Default: http://localhost:8080
Architecture
┌─────────────────────────────────────────────────────────────────┐
│ EXO CLUSTER │
├─────────────────────────────────────────────────────────────────┤
│ │
│ ┌────────────┐ Thunderbolt 5 ┌────────────┐ │
│ │ Mac Studio │◄───── RDMA ────►│ Mac Studio │ │
│ │ M4 Max │ │ M4 Max │ │
│ │ Layers 0-15│ │Layers 16-31│ │
│ └──────┬─────┘ └──────┬─────┘ │
│ │ │ │
│ └──────────────┬───────────────┘ │
│ │ │
│ ┌────▼────┐ │
│ │ Master │ │
│ │ (Elected)│ │
│ └────┬────┘ │
│ │ │
│ ┌─────────▼─────────┐ │
│ │ REST API :8080 │ │
│ │ OpenAI Compatible │ │
│ └───────────────────┘ │
└─────────────────────────────────────────────────────────────────┘
Core Components
1. Peer Discovery (Gossipsub/libp2p)
# Automatic discovery via mDNS/UDP broadcast
# Builds Topology graph of connected nodes
# No manual configuration required
# View discovered peers
exo --list-peers
2. MLX Backend
from exo.worker.engines.mlx.utils_mlx import mlx_distributed_init
# Initializes mlx.distributed group
# Backends:
# - MlxRing: TCP/IP (fallback)
# - MlxJaccl: RDMA over Thunderbolt (preferred)
mlx_distributed_init(
rank=0, # This device's rank
world_size=4, # Total devices
backend="jaccl" # RDMA backend
)
3. Shard Distribution
from exo.master.placement import place_instance
# Determines model sharding across devices
# Filters by available memory
# Prioritizes Thunderbolt cycles
shard_assignments = place_instance(
model="llama-3.3-70b",
topology=discovered_topology,
strategy="pipeline" # or "tensor"
)
4. RDMA over Thunderbolt 5
# IBV device matrix: N×N connectivity
# matrix[i][j] = interface on device i connecting to device j
# Environment variables for Jaccl backend:
# MLX_IBV_DEVICES=<matrix>
# MLX_RANK=<rank>
# MLX_IBV_COORDINATOR=<coordinator_addr>
# MLX_METAL_FAST_SYNCH=1
Sharding Strategies
Pipeline Parallelism
Device 0: Layers 0-15 → embeddings + early layers
Device 1: Layers 16-31 → middle layers
Device 2: Layers 32-47 → late layers
Device 3: Layers 48-63 → final layers + head
Data flows: D0 → D1 → D2 → D3 → output
from exo.master.placement import get_shard_assignments_for_pipeline_parallel
# Inserts PipelineFirstLayer and PipelineLastLayer
# for inter-device communication
assignments = get_shard_assignments_for_pipeline_parallel(
model="llama-3.3-70b",
num_devices=4
)
Tensor Parallelism
All devices: All layers (replicated)
But: Attention heads partitioned across devices
MLP tensors partitioned across devices
Each device computes partial results → all-reduce → combined output
from exo.master.placement import get_shard_assignments_for_tensor_parallel
# Specific sharding for:
# - LlamaModel
# - DeepseekV3Model
# - Qwen3MoeModel
assignments = get_shard_assignments_for_tensor_parallel(
model="deepseek-r1",
num_devices=4
)
Supported Models
| Model | Size | Min Devices | Strategy |
|---|---|---|---|
| Llama 3.3 | 70B | 2 × M4 Max | Pipeline |
| DeepSeek R1 |
Установить exo-distributed в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл exo-distributed?
Distributed LLM inference across Apple Silicon clusters with exo. Run models across Mac Studios via Thunderbolt RDMA, auto peer discovery, and MLX sharding. Use for multi-device inference, model parallelism, or building LLM clusters.
Как установить скилл exo-distributed?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл exo-distributed запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic