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

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

说明与用途

在手机上完全本地运行的17个AI代理群,使用4位TinyLlama模型和轻量级内存队列,展示了无需云端的本地AI协同。

问题

Running a swarm of 17 independent AI agents entirely on a mobile device without cloud offloading, while managing thermal, memory, and latency constraints.

结果

A 17‑agent swarm that runs entirely on a phone, demonstrating that local, quantized LLMs can coordinate complex tasks without cloud support, albeit with careful resource management.

工作流

  • 1. Select minimal tools: Python, llama-cpp-python, TinyLlama-1.1B-Chat-v1.0 quantized to 4‑bit.
  • 2. Define 17 agent roles (Brain, Data Collectors, Analysis, Action Proposal, Evaluation, Execution, Reporting).
  • 3. Implement each agent as a Python thread with its own queue interfaces.
  • 4. Use in‑memory pub/sub queues for inter‑agent communication.
  • 5. Run agents concurrently, monitoring CPU, memory, and temperature.
  • 6. Apply throttling to prevent thermal throttling, garbage collection to manage memory, and batching to reduce latency.
  • 7. Perform prompt engineering to ensure agents understand roles and cooperate.
  • 8. Simulate a market‑prediction scenario to validate swarm behavior.

证据

Running 17 concurrent processes, even with a small LLM, is intensive. I had to implement throttling mechanisms to prevent the phone from overheating and shutting down.

来源

I quantized it down to 4‑bit using llama.cpp to further reduce its footprint.

来源

Each agent has its own thread to allow for concurrent operation.

来源

  • 记录日期: 2026-10-07T14:55:47.841Z