Make local inference limits and workstation setup reproducible
This commit is contained in:
1 parent
7006991843
commit
8544abd2d4
28 files changed
+1022
-21
No files matched your search
+18
-2
@@ -9,6 +9,8 @@ INSTALL_LLAMA=0
|
||||
LLAMA_REF=""
|
||||
ENABLE_TIMERS=0
|
||||
SKIP_BROWSER=1
|
||||
USER_BIN_ON_PATH=0
|
||||
[[ ":$PATH:" != *":$HOME/.local/bin:"* ]] || USER_BIN_ON_PATH=1
|
||||
|
||||
usage() {
|
||||
sed -n '/^## Installationsoptionen/,/^## /p' "$ROOT_DIR/README.md" |
|
||||
@@ -43,7 +45,7 @@ export PATH="$HOME/.local/bin:$PATH"
|
||||
if ((INSTALL_PACKAGES)); then
|
||||
# Vollständige Aktualisierung statt partieller Arch-Aktualisierung.
|
||||
packages=(
|
||||
bash git curl xz jq zstd tar ripgrep ffmpeg coreutils util-linux \
|
||||
bash git curl xz jq zstd tar ripgrep ffmpeg coreutils util-linux python python-yaml \
|
||||
jre-openjdk-headless
|
||||
)
|
||||
if ((INSTALL_LLAMA)); then
|
||||
@@ -83,9 +85,19 @@ for file in "$ROOT_DIR"/systemd/user/*; do
|
||||
done
|
||||
printf 'Vorherige Deployment-Dateien: %s\n' "$deploy_backup"
|
||||
|
||||
# Public command entry point; never depend on adding libexec to PATH.
|
||||
mkdir -p "$HOME/.local/bin" "$deploy_backup/bin"
|
||||
command_target="$HOME/.local/bin/hermes-stack-model"
|
||||
if [[ -e "$command_target" || -L "$command_target" ]]; then
|
||||
cp -a -- "$command_target" "$deploy_backup/bin/"
|
||||
fi
|
||||
ln -sfn -- ../libexec/hermes-stack-model "$command_target"
|
||||
|
||||
for file in "$ROOT_DIR"/libexec/*; do
|
||||
install -m 0755 "$file" "$libexec_dir/$(basename "$file")"
|
||||
done
|
||||
install -d -m 0755 "$HOME/.local/lib/hermes-stack"
|
||||
install -m 0644 "$ROOT_DIR/scripts/llama_watchdog.py" "$HOME/.local/lib/hermes-stack/llama_watchdog.py"
|
||||
|
||||
for file in "$ROOT_DIR"/systemd/user/*; do
|
||||
install -m 0644 "$file" "$unit_dir/$(basename "$file")"
|
||||
@@ -121,7 +133,7 @@ systemctl --user daemon-reload
|
||||
if command -v hermes >/dev/null 2>&1 && [[ ! -e "$unit_dir/hermes-gateway.service" ]]; then
|
||||
if [[ -d "$HOME/.hermes/hermes-agent/.git" ]]; then
|
||||
hermes gateway install ||
|
||||
printf 'Gateway-Unit konnte noch nicht erzeugt werden; nach `hermes setup` erneut ausführen.\n' >&2
|
||||
printf 'Gateway-Unit konnte noch nicht erzeugt werden; nach hermes setup erneut ausführen.\n' >&2
|
||||
fi
|
||||
fi
|
||||
|
||||
@@ -129,9 +141,13 @@ if ((ENABLE_TIMERS)); then
|
||||
systemctl --user enable --now \
|
||||
hermes-stack-hermes-update.timer \
|
||||
hermes-stack-health.timer \
|
||||
hermes-stack-llama-watchdog.timer \
|
||||
hermes-stack-signal-health.timer \
|
||||
hermes-stack-signal-update-check.timer
|
||||
fi
|
||||
|
||||
printf '\nDeployment installiert. Nächster Schritt:\n %s\n' \
|
||||
"$libexec_dir/hermes-stack-doctor"
|
||||
if ((USER_BIN_ON_PATH == 0)); then
|
||||
printf 'Für Befehle ohne Pfad ~/.local/bin in den Shell-PATH aufnehmen.\n'
|
||||
fi
|
||||
Reference in new issue
Block a user