test: Vorlage der Einheit umbenannt (überschrieb sich selbst), prepare wiederholbar (#1198)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@ -17,11 +17,12 @@ prepare)
|
||||
[ -x "$N" ] || { echo "Binary fehlt: $N"; exit 1; }
|
||||
mkdir -p "$DIR/data"
|
||||
sed -e "s|@DIR@|$DIR|g" -e "s|@NEXUS_PORT@|$NEXUS_PORT|g" -e "s|@STUDIO_PORT@|$STUDIO_PORT|g" "$DIR/config.toml.in" > "$CFG"
|
||||
sed -e "s|@DIR@|$DIR|g" -e "s|@PORT@|$STUDIO_PORT|g" "$DIR/nexus-test-studio.service" > "$DIR/$UNIT"
|
||||
sed -e "s|@DIR@|$DIR|g" -e "s|@PORT@|$STUDIO_PORT|g" "$DIR/nexus-test-studio.service.in" > "$DIR/$UNIT"
|
||||
[ -s "$DIR/$UNIT" ] || { echo "Einheit ist leer: $DIR/$UNIT"; exit 1; }
|
||||
systemctl --user link "$DIR/$UNIT" && systemctl --user daemon-reload
|
||||
"$N" selftest --config "$CFG" | tail -2
|
||||
# Modelle: Bonsai (klein) auf GPU 0 mit kleinem Kontext, freigegeben
|
||||
"$N" model add --name bonsai --path /srv/models/gguf/Bonsai-1.7B-Q1_0.gguf --gpus 0 --context 2048 --config "$CFG" | tail -1
|
||||
"$N" model list --config "$CFG" 2>/dev/null | grep -q '^bonsai' || "$N" model add --name bonsai --path /srv/models/gguf/Bonsai-1.7B-Q1_0.gguf --gpus 0 --context 2048 --config "$CFG" | tail -1
|
||||
"$N" model enable --name bonsai --config "$CFG" | tail -1
|
||||
# Benutzer für die Oberfläche: Passwort nur in eine Datei (0600), nie in die Ausgabe
|
||||
if ! "$N" user list --config "$CFG" 2>/dev/null | grep -q '^testadmin'; then
|
||||
|
||||
Reference in New Issue
Block a user