fix dir
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user