[Other] Docker entrypoint refuses a MODEL_PATH folder of GGUF files when it holds no .strata file

Aperta Adatta ai principianti
#6,925 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 5 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
88/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
docker, shell
Ambito
devops, tooling

Direzione di ricerca

Apri tools/docker/entrypoint.sh e trova il guard di model_path la cui condizione è ! ls "$model_path"/*.gguf "$model_path"/*.strata >/dev/null 2>&1; esegui i due comandi sh -c 'ls …; echo exit=$?' del report contro una cartella che contiene shard GGUF e nessun file .strata per vedere exit=2. Dividi il guard in due controlli ls separati in modo che ogni pattern venga testato da solo, poi riproduci l'avvio del container contro un volume solo GGUF. Fatto significa che l'entrypoint si avvia su una cartella di shard GGUF senza pack .strata pur continuando a rifiutare una cartella che non contiene nessuno dei due, in linea con il percorso "files you already have" in docs/DOCKER.md.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

needs-format

Area: Docker / container entrypoint (tools/docker/entrypoint.sh)
Version: 0.2.20 (engine 0.1.66), image ghcr.io/niko1221/strata:0.2.20-cuda13
Model: Qwen3.8-Flash-Next IQ3_S, two GGUF shards in one folder, no .strata pack

What happened

The container exits immediately with code 2 and stays in CrashLoopBackOff. The log says:

[X] MODEL_PATH=/data/Strata-data/models/IQ3_S has no .gguf or .strata files directly in it, but there are some in /data/Strata-data/models/IQ3_S. Set MODEL_PATH=/data/Strata-data/models/IQ3_S (the folder that holds the shards of one model). Nothing was downloaded.

The two paths in that message are the same, and the folder does contain the model files, so the advice cannot be followed.

Cause

In tools/docker/entrypoint.sh (0.2.20), the guard is:

elif [ -d "$model_path" ] && ! ls "$model_path"/*.gguf "$model_path"/*.strata >/dev/null 2>&1; then

When the folder holds .gguf files but no .strata file, the second pattern does not expand, ls receives the literal path …/*.strata, fails on it and exits 2. The negated test therefore succeeds and the launcher refuses to start.

Reproduced outside the container

With the same volume mounted and no GPU involved:

$ sh -c 'ls /data/Strata-data/models/IQ3_S/*.gguf >/dev/null 2>&1; echo exit=$?'
exit=0
$ sh -c 'ls /data/Strata-data/models/IQ3_S/*.gguf /data/Strata-data/models/IQ3_S/*.strata >/dev/null 2>&1; echo exit=$?'
exit=2

Workspace

Testing the two patterns separately keeps the intent and fixes it:

elif [ -d "$model_path" ] && ! ls "$model_path"/*.gguf >/dev/null 2>&1 && ! ls "$model_path"/*.strata >/dev/null 2>&1; then

With that one-line change the same container starts, detects engine 0.1.66, and prepares the model normally. I rebuilt from source with the patch as a workaround; it is the only reason this deployment runs.

Who this affects

Any Docker/Kubernetes install that mounts a folder of GGUF files without a .strata pack — which is the documented "files you already have" path in docs/DOCKER.md. The check is new in 0.2.20: 0.2.9 started from the same folder without complaint.

Lingua principale
C++
Stelle
11.6k
Fork
1k
Merge medio
17g 21h
PR unite (30g)
3

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Niko1221/Strata

Tutte le issue di Niko1221/Strata

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.