13 Commits

Author SHA1 Message Date
8556c7efc4 switch hygon submission to mechanism B (xc-Token, account l11223344); update model list (2040 models) 2026-08-14 15:39:57 +08:00
a9fe1f6393 update model list
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-20 17:03:42 +08:00
9aba1595db init 2026-07-14 16:44:33 +08:00
85f41bba58 Replace main.py with GGUF download + validation submit pipeline
Port logic from continuous_pipeline_download_gguf_zhoushasha_and_submit.py
into the strategy-deployable framework (health/status HTTP server,
STRATEGY_ID env, SIGTERM handling).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-14 15:45:51 +08:00
d6b0e416db update ppu 2026-07-13 19:43:35 +08:00
4dcfed6b6d update ppu 2026-07-13 18:38:55 +08:00
1e8cfacd8e uodate 2026-06-22 19:00:46 +08:00
d6cca90496 update main.py 2026-06-22 18:44:42 +08:00
031e0dc7a8 update main.py 2026-06-19 01:48:50 +08:00
af6f501a5a update main.py 2026-06-18 15:22:29 +08:00
94da35d152 clean up Dockerfile 2026-06-14 23:55:41 +08:00
5b92f129d2 clean up Dockerfile 2026-06-14 23:54:02 +08:00
87d4ae1c18 fix: add env vars to Dockerfile 2026-06-12 21:02:56 +08:00
4 changed files with 2649 additions and 132 deletions

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
.DS_Store
__pycache__/

View File

@@ -1,11 +1,7 @@
FROM modelhubxc-4pd.tencentcloudcr.com/xc_agent_platform/python:3.11-slim
ENV PYTHONUNBUFFERED=1 \
USER_ACCOUNT="zhoushasha@4paradigm.com" \
USER_PASSWORD="4pdpassword" \
CONTEST_API_TOKEN="ef1ef82f3c9efee413d602345fbe224d" \
CONTRIBUTORS="zhoushasha" \
GPU_TYPE="Cambricon_mlu-370-x8"
ENV PYTHONUNBUFFERED=1
WORKDIR /app

View File

@@ -1,5 +1,31 @@
# xc_validation_strategy
# xc_validation_strategy_gguf
信创自动化模型适配平台 — 验证策略服务
GGUF 模型下载 + 验证任务提交流水线策略服务:批量创建 GGUF 模型下载任务(最大并发 8
每个模型下载成功后立即提交 hygon / bi150 两个验证任务,之后保持 HTTP 服务存活供平台探活。
从 HuggingFace 周期性抓取新模型,自动完成同步、下载、提交验证任务的全流程,常驻运行在 xc_agent_platform 上。
## 功能
- 自动登录 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` 信号,支持优雅停机

2739
main.py

File diff suppressed because it is too large Load Diff