FFFF Add experimental TCP layer pipeline with per-worker weights and KV caches by chainhelen · Pull Request #4 · chainhelen/roton · GitHub
[go: up one dir, main page]

Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,19 +190,29 @@ roton startup probe (MTLDevice + NSProcessInfo)
└── macOS 13–15 (any M-series) ──▶ Metal 3 `simdgroup_matrix` universal fallback
`` 8000 `

## Experimental multi-worker inference (source build)

The source tree includes `roton cluster worker`, `run` and `verify`: contiguous
layer partitioning, per-worker weights/KV caches and persistent TCP transport.
On one M5 Pro, two worker processes running Qwen3-0.6B matched **88/88 generated
token IDs** with the single-process runner. Physical multi-Mac Thunderbolt and
RDMA have not been validated. This preview is not in the v0.6.0 release binary.

[Run the two-worker check and inspect raw results →](docs/CLUSTER.md)

## Architecture & Roadmap

```text
crates/
├── roton-core/ # GGUF v2/v3 zero-copy mmap loader, BPE/SentencePiece tokenizer, quant layouts, memory planner
├── roton-metal/ # Persistent Metal 3 & Metal 4/MPP engine, GPU kernels, GgufRunner
└── roton-cli/ # Single-binary `roton` CLI (`info`, `plan`, `bench`, `inspect`, `run`, `chat`, `serve`)
└── roton-cli/ # Single-binary `roton` CLI (`info`, `plan`, `bench`, `inspect`, `run`, `chat`, `serve`, experimental `cluster`)
```

Planned crates as milestones land:
- `roton-moe` — Top-K expert routing, hot-expert residency cache, online domain expert pruning
- `roton-server` — Extract the existing CLI HTTP server and add multi-session cache management / tool support
- `roton-cluster` — Heterogeneous multi-Mac Thunderbolt clustering (mDNS discovery + weighted sharding + TB5 RDMA)
- `roton-cluster` — Extract the experimental CLI pipeline; future discovery, weighted sharding and an independently validated TB5 RDMA backend

Read the full technical design in **[docs/ARCHITECTURE.md](docs/ARCHITECTURE.md)** and milestone plan in **[docs/ROADMAP.md](docs/ROADMAP.md)**.

Expand Down
6 changes: 6 additions & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
- **在自己的 Mac 上做实验**:比较 Metal 3 与可用的 Metal 4 / MPP 路径,再运行真实模型,观察量化权重 Decode 和分块 Prefill。
- **使用现有命令**:`run`、交互式 `chat` 和本地文本 HTTP/SSE `serve`。v0.6.0 增加了 GEMV 优化,以及聊天和服务中的内存 KV 前缀复用。

## 实验性多 worker 推理(源码构建)

源码新增 `roton cluster worker / run / verify`:按连续层切分权重与 KV 缓存,通过持久 TCP 连接传递中间向量。单台 M5 Pro 上两个独立进程运行 Qwen3-0.6B,**88/88 个生成 token ID 与单机完全一致**。尚未验证两台 Mac 的雷电链路,也没有 RDMA;v0.6.0 发布二进制尚不包含这些命令。

[双 worker 运行方法、原始数据与验证边界](docs/CLUSTER.md)。

## 快速开始

### 1. 先测 GPU,不用下载模型
Expand Down
Loading
Loading
0