Initial commit: LocalAI P2P addons
Some checks failed
Builder / Build addons (localai-p2p-master, amd64) (push) Failing after 1m49s
Builder / Build addons (localai-p2p-worker, amd64) (push) Failing after 9s
Validate / validate (push) Failing after 2s
Builder / Create release (push) Has been skipped

This commit is contained in:
2025-05-30 11:20:00 +02:00
commit 367b814058
14 changed files with 321 additions and 0 deletions

11
localai-p2p-master/run.sh Normal file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/with-contenv bashio
CONFIG_PATH=/data/options.json
GPU_LAYERS="$(bashio::config 'gpu_layers')"
TOKEN="$(bashio::config 'master_token' || echo '')"
if [ ! -z "$TOKEN" ]; then
export LOCALAI_P2P_TOKEN="$TOKEN"
fi
exec /build/local-ai run --models-path=/share/localai/models --gpu-layers="$GPU_LAYERS"