To start a new instance to share:
# Start a new instance to share with --federated and a TOKEN
export TOKEN="{{.P2PToken}}"
local-ai run --federated --p2p
Note: If you don't have a token do not specify it and use the generated one that you can find in this page.
To start a new federated load balancer:
export TOKEN="{{.P2PToken}}"
local-ai federated
Note: Token is needed when starting the federated server.
For all the options available, please refer to the documentation.
To start a new federated instance:
docker run -ti --net host -e TOKEN="{{.P2PToken}}" --name local-ai -p 8080:8080 localai/localai:latest-cpu run --federated --p2p
To start a new federated server (port to 9090):
docker run -ti --net host -e TOKEN="{{.P2PToken}}" --name local-ai -p 9090:8080 localai/localai:latest-cpu federated
For all the options available and see what image to use, please refer to the Container images documentation and CLI parameters documentation.