Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

Docker: start line names the model files when only MODEL_PATH is set; the stop text no longer promises a download

Niko1221d61a443eb8ea
diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh
index 79fca4a13..7299034cf 100755
--- a/docker/entrypoint.sh
+++ b/docker/entrypoint.sh
@@ -250,7 +250,10 @@ trap on_term TERM INT
RESET_INT='import os, signal, sys; signal.signal(signal.SIGINT, signal.SIG_DFL); os.execv(sys.argv[1], sys.argv[1:])'
phase preparing
-say "Starting Strata: ${MODEL:-recommended model}${model_path:+ from $model_path} (preset '$PRESET')."
+if [ -n "${MODEL:-}" ]; then what="$MODEL${model_path:+ from $model_path}"
+elif [ -n "$model_path" ]; then what="the model files in $model_path"
+else what="the recommended model"; fi
+say "Starting Strata: $what (preset '$PRESET')."
if [ -n "$key" ]; then
STRATA_LAUNCH_KEY="$key" "$PYBIN" -c "$RESET_INT" "$STRATA" "$@" &
else
@@ -263,7 +266,7 @@ launch_pid=""
[ -n "$stopping" ] && exit 0
if [ "$rc" -ne 0 ]; then
phase failed
- die "strata launch stopped with code $rc (the lines above say why). The container ends; a restart continues where it stopped (downloads resume)." "$rc"
+ die "strata launch stopped with code $rc (the lines above say why). The container ends. Fix that and start it again: finished steps are not repeated, and an interrupted download continues where it stopped." "$rc"
fi
# keep the key where `docker exec ... strata monitor` and the health check can read it (private file on the volume)
diff --git a/tools/test_docker_entrypoint.py b/tools/test_docker_entrypoint.py
index 7cfb5f531..78af88f17 100644
--- a/tools/test_docker_entrypoint.py
+++ b/tools/test_docker_entrypoint.py
@@ -255,6 +255,14 @@ class Entrypoint(unittest.TestCase):
self.assertIn("Set MODEL_PATH=" + str(empty / "IQ3_XXS"), r.stderr)
self.assertNotIn("launch --no-tui", self.log.read_text() if self.log.exists() else "")
+ def test_own_files_without_a_model_name_do_not_say_recommended_model(self):
+ (self.tmp / "g").mkdir()
+ (self.tmp / "g" / "m-00001-of-00001.gguf").write_text("x")
+ p = self.start(MODEL_PATH=str(self.tmp / "g"))
+ self.wait_for("--show-key")
+ code, out, err = self.stop(p)
+ self.assertIn("Starting Strata: the model files in " + str(self.tmp / "g"), out)
+
def test_other_commands_run_instead_of_the_server(self):
r = subprocess.run([SH, str(self.script), "strata", "launch", "--plan", "--model", "q2_0"], env=self.env(), capture_output=True,
text=True, timeout=30)