fix dir
Some checks failed
Builder / Build addons (localai-p2p-master, amd64) (push) Failing after 15s
Builder / Build addons (localai-p2p-worker, amd64) (push) Failing after 14s
Validate / validate (push) Failing after 2s
Builder / Create release (push) Has been skipped

This commit is contained in:
2025-05-30 12:26:09 +02:00
parent 1bba7de3de
commit 1e52ce65d1
4 changed files with 14 additions and 4 deletions

View File

@@ -18,8 +18,10 @@ environment:
LOCALAI_FEDERATED: "true" LOCALAI_FEDERATED: "true"
LOCALAI_MODELS_PATH: "/share/localai/models" LOCALAI_MODELS_PATH: "/share/localai/models"
map: map:
- share:/share - type: share
- config:/data read_only: false
- type: addon_config
read_only: false
privileged: privileged:
- SYS_ADMIN - SYS_ADMIN
options: options:

View File

@@ -8,4 +8,7 @@ if [ ! -z "$TOKEN" ]; then
export LOCALAI_P2P_TOKEN="$TOKEN" export LOCALAI_P2P_TOKEN="$TOKEN"
fi fi
# Créer le répertoire des modèles s'il n'existe pas
mkdir -p /share/localai/models
exec /build/local-ai run --models-path=/share/localai/models --gpu-layers="$GPU_LAYERS" exec /build/local-ai run --models-path=/share/localai/models --gpu-layers="$GPU_LAYERS"

View File

@@ -17,8 +17,10 @@ environment:
THREADS: "8" # Utiliser tous les cœurs du 5800U THREADS: "8" # Utiliser tous les cœurs du 5800U
OMP_NUM_THREADS: "8" OMP_NUM_THREADS: "8"
map: map:
- share:/share - type: share
- config:/data read_only: false
- type: addon_config
read_only: false
options: options:
master_token: "" master_token: ""
gpu_layers: 0 gpu_layers: 0

View File

@@ -8,4 +8,7 @@ if [ ! -z "$TOKEN" ]; then
export LOCALAI_P2P_TOKEN="$TOKEN" export LOCALAI_P2P_TOKEN="$TOKEN"
fi fi
# Créer le répertoire des modèles s'il n'existe pas
mkdir -p /share/localai/models
exec /build/local-ai run --models-path=/share/localai/models --gpu-layers="$GPU_LAYERS" exec /build/local-ai run --models-path=/share/localai/models --gpu-layers="$GPU_LAYERS"