This guide explains how to manually test the Bee2Bee network using the CLI.
- Python 3.9+
- Virtual environment activated (
source .venv/bin/activate) - Dependencies installed (
pip install -e .)
The API server acts as the entry point and bootstrap node.
bee2bee api --host 127.0.0.1 --port 4002Keep this terminal open.
Deploy a Hugging Face model on the network.
bee2bee deploy-hf --model distilgpt2 --host 127.0.0.1 --port 0 --bootstrap-link http://127.0.0.1:4002Keep this terminal open.
Request a generation from the network.
bee2bee p2p-request "Hello, world!" --model distilgpt2 --bootstrap-link http://127.0.0.1:4002You can view or set configuration values:
bee2bee config
bee2bee config bootstrap_url http://127.0.0.1:4002