Initial commit: LocalAI P2P addons
This commit is contained in:
11
localai-p2p-worker/run.sh
Normal file
11
localai-p2p-worker/run.sh
Normal 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"
|
||||
Reference in New Issue
Block a user