Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

I built a 17-agent AI swarm on my phone — here's how

Описание и применение

Автор создал 17‑агентный AI‑сверм на смартфоне, используя Python, PyTorch Mobile, Kivy и SQLite, применяя квантование, обрезку и многопоточность для работы в ограниченных ресурсах.

Задача

Run a complex, distributed AI system entirely on a smartphone, achieving emergent behavior while respecting mobile constraints such as limited CPU, RAM, and battery.

Результат

The author successfully deployed a 17-agent AI swarm on a smartphone, demonstrating that distributed on-device AI is feasible with careful model optimization and system design.

Рабочий процесс

  • Define agent roles and responsibilities
  • Convert DistilBERT models to PyTorch Mobile format
  • Quantize and prune models to 8-bit
  • Implement agents in Python with Kivy UI
  • Store agent memories in SQLite
  • Set up a central message queue with tags
  • Run agents in separate threads for concurrency
  • Cache tokenization results
  • Batch processing where memory allows
  • Monitor memory and battery usage
  • Iterate on optimization techniques

Доказательства

Running 17 AI models on a phone requires serious optimization.

Источник

PyTorch Mobile allows you to quantize your models to 8-bit integers, significantly reducing their size and improving inference speed.

Источник

The agents don’t directly call each other’s methods. Instead, they communicate through a central message queue (implemented with Python lists and locks).

Источник

  • Дата записи: 2026-10-09T17:55:54.962Z