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

オープン 初心者向け
#6,925 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 5 日以内に返信

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
88/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
docker, shell
領域
devops, tooling

調査の方向性

tools/docker/entrypoint.sh を開き、条件が ! ls "$model_path"/*.gguf "$model_path"/*.strata >/dev/null 2>&1 である model_path ガードを見つけてください。レポートにある 2 つの sh -c 'ls …; echo exit=$?' コマンドを、GGUF シャードを含み .strata ファイルを含まないフォルダに対して実行し、exit=2 を確認します。ガードを 2 つの別々の ls チェックに分割して各パターンが単独でテストされるようにし、その後、GGUF のみのボリュームに対してコンテナ起動を再現します。完了とは、entrypoint が .strata パックのない GGUF シャードのフォルダで起動しつつ、どちらも含まないフォルダは引き続き拒否することであり、docs/DOCKER.md の "files you already have" パスと一致します。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
C++
スター
11.6k
フォーク
1k
平均マージ
17日 21時間
マージ済み PR(30日)
3

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Niko1221/Strata のほかの issue

Niko1221/Strata の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。