Worker onboarding — connect your machine to the decentralized inference grid.
Workers perform real local LLM inference and earn MLC when their output matches network consensus. Setup takes about five minutes on a machine with Python 3.10+ and Ollama installed.
Required to run the worker process and socket protocol client.
Local LLM runtime. Install from ollama.com and pull a model.
Default host 127.0.0.1, port 9600. Adjust for remote coordinators.
Small models (1B params) run on CPU. Larger models benefit from GPU acceleration.
Starts the coordinator, workers, and a live network graph in one command.
cd connection-layer pip install -r requirements.txt python3 web.py --workers 10
Open http://127.0.0.1:5051 to watch workers connect and submit test prompts.
Run your own worker process and connect to an existing coordinator.
ollama serve ollama pull llama3.2:1b
In a separate terminal, from the connection-layer/ directory:
python3 coordinator.py
Choose a unique worker ID and connect:
cd connection-layer python3 worker.py --id worker-01
Additional flags: --host, --port, --model, --ollama-url
You should see connected to coordinator at 127.0.0.1:9600. Submit a prompt from the dashboard or CLI:
python3 client.py "What is decentralized inference?"
Workers communicate with the coordinator using JSON-line messages over TCP.
| Message | Direction | Purpose |
|---|---|---|
register | worker → coordinator | Join the network |
registered | coordinator → worker | Acknowledge worker |
task | coordinator → worker | Inference assignment |
result | worker → coordinator | Inference output + timing |
prompt | client → coordinator | User request |
task_complete | coordinator → client | Consensus response + rewards |
| Flag / env | Default | Description |
|---|---|---|
--host | 127.0.0.1 | Coordinator host |
--port | 9600 | Coordinator port |
--model | llama3.2:1b | Ollama model per worker |
--reward | 10.0 | Base reward pool per task |
WORKERS | 10 | Workers started by run_demo.sh |
ollama serve ollama pull llama3.2:1b
Start workers before submitting prompts, or use ./run_demo.sh in connection-layer.
First inference loads the model into memory. Subsequent tasks are faster.
Check the live network graph to see your node online and earning MLC.
Open dashboard