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

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

说明与用途

在中端 Android 手机上实现了 17 代理 AI 群集,展示了离线多代理 AI 的可行性。

问题

Run a multi‑agent AI swarm entirely on a mid‑range Android phone without cloud or server support.

结果

A functional 17‑agent swarm that forages resources on a mid‑range Android phone, demonstrating feasible on‑device multi‑agent AI with emergent behavior.

工作流

  • 1. Design a lightweight neural network per agent with 4 inputs and 3 outputs.
  • 2. Train a master network on a powerful machine and clone weights to 17 agents.
  • 3. Apply small random weight mutations (genetic algorithm) for behavioral diversity.
  • 4. Convert Keras model to TensorFlow Lite using tf.lite.TFLiteConverter.
  • 5. Quantize the model to 8‑bit integers to reduce size and improve inference speed.
  • 6. Load the TFLite model in a Kivy app via tflite_runtime.interpreter.
  • 7. Transform sensory data to NumPy arrays and feed to the interpreter.
  • 8. Run inference every few frames to avoid performance bottlenecks.
  • 9. Simplify collision detection with bounding boxes and proximity checks.
  • 10. Offload UI updates to separate threads to keep Kivy responsive.
  • 11. Observe emergent swarm dynamics in the 2D simulation.

证据

I built and deployed a 17‑agent AI swarm that runs entirely on my phone. No cloud connection, no server – just the processing power of a mid‑range Android device.

来源

Training 17 of these networks on the phone was a non‑starter. The Pixel 6a doesn't have the horsepower to handle that.

来源

Key steps included: Model Conversion, Quantization, Interpreter Setup.

来源

Performance Bottlenecks: Running 17 neural networks simultaneously on a phone is resource‑intensive. Quantization helped, but I also implemented a simple frame skipping mechanism.

来源

  • 记录日期: 2026-10-08T20:41:03.874Z