zhousha 251f21ac8f add DOWNLOAD_ONLY mode: run zhoushasha downloads without submitting any validation task
All 498 models in the current list already had their hygon and bi150 slots
reserved in earlier rounds, so this round only needs the downloads. Without a
switch the download list would be empty, since phase 2 only downloads models
reserved in the same run.

DOWNLOAD_ONLY skips the reservation phase entirely and downloads all of
ALL_MODEL_IDS. Also splits the worker into _reserve_phase / _download_phase and
gates bi150 behind ENABLE_BI150_SUBMIT for symmetry with hygon.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-18 15:56:45 +08:00
2026-06-22 19:00:46 +08:00
2026-06-12 14:24:27 +08:00

xc_validation_strategy_gguf

GGUF 模型下载 + 验证任务提交流水线策略服务:批量创建 GGUF 模型下载任务(最大并发 8 每个模型下载成功后立即提交 hygon / bi150 两个验证任务,之后保持 HTTP 服务存活供平台探活。

功能

  • 自动登录 ModelHub 获取 Token失败时回退到预设 Token
  • 按流水线批量创建 GGUF 模型下载任务HuggingFace 源,最大并发 8
  • 每个模型下载成功后,立即提交 hygon_k100-ai 与 Iluvatar_bi-150 两个验证任务llamacpp 框架)
  • 下载成功的模型 ID 写入 downloaded_success_models.txt
  • 暴露 /health/status 接口满足平台运行时契约

项目结构

.
├── main.py            # 主入口HTTP 服务 + 下载/提交流水线
├── Dockerfile         # 平台镜像构建配置
├── requirements.txt   # Python 依赖
└── downloaded_success_models.txt   # 运行后自动生成,记录下载成功的模型

平台契约说明

本项目满足平台对策略镜像的全部必要约束:

  • Dockerfile 位于仓库根目录,基于官方轻量基础镜像
  • 暴露 8080 端口并实现 GET /health
  • 通过环境变量 STRATEGY_ID 获取策略 ID
  • 正确处理 SIGTERM 信号,支持优雅停机
Description
No description provided
Readme 688 KiB
Languages
Python 99.8%
Dockerfile 0.2%