Skip to main content

Distributed compute worker for Ants at Work colony

Project description

Ants Worker

Join the colony. Share your compute.

pip install ants-worker
ants-worker join

That's it. You're now part of the swarm.

Commands

ants-worker join           # Register and start working
ants-worker join -t wild   # Run as wild kangaroo (default: tame)
ants-worker status         # Check connection and worker ID
ants-worker leave          # Unregister (delete ~/.ants/config.json)
ants-worker info           # System/GPU info
ants-worker benchmark      # Test performance

Hardware Acceleration

AMD Ryzen AI (NPU)

# Auto-detects Ryzen AI and optimizes
ants-worker join

# Check detected hardware
ants-worker info --detailed

# Force specific backend
ants-worker join -b amd_npu
ants-worker join -b amd_rocm
ants-worker join -b parallel_cpu --workers 16

NVIDIA GPU

pip install ants-worker[cuda]
ants-worker join

High Performance Binary

# Linux with NVIDIA GPU
git clone https://github.com/JeanLucPons/Kangaroo.git
cd Kangaroo && make gpu=1 && cd ..
export KANGAROO_BIN=$(pwd)/Kangaroo/kangaroo

ants-worker join

Run in Background

Screen/tmux

screen -S ants
ants-worker join
# Ctrl+A, D to detach

Systemd (Linux)

sudo tee /etc/systemd/system/ants-worker.service << 'EOF'
[Unit]
Description=Ants Worker
After=network.target

[Service]
Type=simple
ExecStart=/usr/local/bin/ants-worker join
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target
EOF

sudo systemctl enable --now ants-worker

FAQ

Is this safe? Yes. You get a unique token that can only submit work results.

Resources? Minimal bandwidth (~KB/min). CPU/GPU usage configurable. Stop with Ctrl+C.

Where's my config? ~/.ants/config.json - contains your token and worker ID.

Tame vs Wild? Both needed. Run one of each for maximum contribution:

ants-worker join -t tame &
ants-worker join -t wild &

Development

git clone https://github.com/ants-at-work/worker
cd worker
pip install -e ".[dev]"
pytest

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ants_worker-0.2.2.tar.gz (41.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ants_worker-0.2.2-py3-none-any.whl (50.0 kB view details)

Uploaded Python 3

File details

Details for the file ants_worker-0.2.2.tar.gz.

File metadata

  • Download URL: ants_worker-0.2.2.tar.gz
  • Upload date:
  • Size: 41.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for ants_worker-0.2.2.tar.gz
Algorithm Hash digest
SHA256 be25a55fa22bee6810798c9107e7a547749c47bbbd95dadf1522368c24313da1
MD5 494ea7c0ca8cd2efdc85eaae78dc5e4c
BLAKE2b-256 6ecc7e6a8187eadafb3c7a0dcdd13b9f08b25e7e8faf25f181712749f24b8dbd

See more details on using hashes here.

File details

Details for the file ants_worker-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: ants_worker-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 50.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for ants_worker-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e6f9c810fd16d28216d7d8f1d930fff79231ac717263c7bab78353213c78b217
MD5 8d1729fa4b1b37f301676c86b8df6462
BLAKE2b-256 fc1f31f63bcaab3c58ed0198099eab461f4b9edf0d6da8545591400d6c76a833

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page