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

Đang mở Phù hợp với người mới
#6,925 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 5 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
88/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
docker, shell
Lĩnh vực
devops, tooling

Hướng nghiên cứu

Mở tools/docker/entrypoint.sh và tìm guard của model_path có điều kiện là ! ls "$model_path"/*.gguf "$model_path"/*.strata >/dev/null 2>&1; chạy hai lệnh sh -c 'ls …; echo exit=$?' từ báo cáo với một thư mục chứa các shard GGUF và không có tệp .strata để thấy exit=2. Tách guard thành hai kiểm tra ls riêng để mỗi mẫu được kiểm tra độc lập, sau đó tái hiện việc khởi động container với một volume chỉ có GGUF. Hoàn tất nghĩa là entrypoint khởi động trên một thư mục gồm các shard GGUF không có gói .strata trong khi vẫn từ chối thư mục không có cả hai, khớp với đường dẫn "files you already have" trong docs/DOCKER.md.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
C++
Star
11.6k
Fork
1k
Merge trung bình
17 ngày 21 giờ
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Niko1221/Strata

Tất cả issue của Niko1221/Strata

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.