TorrAi
Torrent-style distribution and local execution of AI models. Распределённое хранение и запуск локальных ИИ-моделей в стиле BitTorrent.
TorrAi stores, verifies, seeds and runs AI models like torrents. A model is split into layers; each layer can live locally or be requested from other nodes. The UI follows uTorrent, and a local OpenAI-compatible API exposes the same models to external clients.
TorrAi хранит, проверяет, раздаёт и запускает ИИ-модели как торренты. Модель нарезается на слои, каждый слой можно держать локально или запрашивать у других узлов. Интерфейс повторяет uTorrent, а локальный OpenAI-совместимый API открывает те же модели внешним клиентам.
Highlights · Возможности
- uTorrent-like UI — releases, peers, layer map, speeds, seeding, streaming chat.
- BitTorrent storage — sparse files, quotas, hardlink seeding, libtorrent 2.1 or simulation.
- Trust — Ed25519 signatures, SHA-256 verification, quarantine, reputation, credits, R1–R33.
- Distributed inference — local/remote layer planning, TLS + HMAC RPC, KV cache on the owner.
- Hybrid networking and onboarding — LAN + DHT + web-seeds together, automatic rerouting and first-launch consent.
- RAM + HDD and tokens — verified-layer cycle, “Ready OK” status, request/serve token counters.
- Bundles — a model plus agent code in one signed release with component hashes.
- Local API —
/v1/models,/v1/status,/v1/chat/completions(SSE), images and audio.
Quick start · Быстрый старт
python -m pip install -r requirements.txt
python run.py
Python 3.10+. A synthetic demo release is created automatically, so no weights are required to explore the UI and API.
Documentation · Документация
| Русский | English | |
|---|---|---|
| Краткий обзор / Overview | README | README |
| Подробно / Detailed | docs/README.ru.md | docs/README.en.md |
| Архитектура / Architecture | ARCHITECTURE.ru.md | ARCHITECTURE.en.md |
| Правила / Rules R1–R33 | RULES.md | RULES.en.md |
| Contributing | CONTRIBUTING.md | CONTRIBUTING.md |
| Security | SECURITY.md | SECURITY.md |
Source code · Исходный код
github.com/verabykova201504-maker/TorrAi
Licensed under the MIT License.