31 Commits

Author SHA1 Message Date
793c49aea3 submit round-24 filter results on zhoushasha: MetaX_c-500(63)/Kunlunxin_p-800(1)/Cambricon_mlu-370-x8(1)/Biren_166m(95) + ppu_zw_810e(57), 217 models total
Also add a hygon_k100-ai config branch and HYGON_MODELS list (kept available but
excluded from GPU_JOBS per request). Refresh the expired AUTH_TOKEN.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-15 17:25:35 +08:00
d5f576fac7 submit MetaX_c-500(7) + Biren_166m(95) non-quantized models; refresh AUTH_TOKEN 2026-08-31 15:18:39 +08:00
965783957e add self-looping quota retry: retry quota-blocked models every 30min in-process, no redeploy needed 2026-08-19 13:59:54 +08:00
cd5c7a2435 submit entire remaining ppu_zw_810e candidate pool (5424 models); run to natural quota exhaustion 2026-08-19 11:19:18 +08:00
cdbacf5a46 submit next batch of ppu_zw_810e (200 models) 2026-08-19 01:15:33 +08:00
5bfc0fc53e submit next batch of ppu_zw_810e (200 models) 2026-08-19 01:07:58 +08:00
606655b876 submit entire remaining ppu_zw_810e candidate pool (6220 models); run to natural quota exhaustion 2026-08-18 15:55:51 +08:00
eee9e5813c submit next batch of ppu_zw_810e (250 models, matches remaining ~2000-slot quota headroom) 2026-08-18 15:43:55 +08:00
32122cd866 submit next batch of ppu_zw_810e (360 models, supersedes stuck v1.0.28 build) 2026-08-18 15:34:19 +08:00
ebc9f400e0 submit next batch of ppu_zw_810e (250 models); refresh AUTH_TOKEN 2026-08-18 11:13:33 +08:00
b546ad980f submit next batch of ppu_zw_810e (300 models) 2026-08-13 16:56:17 +08:00
54adf4f956 submit next batch of ppu_zw_810e (200 models) 2026-08-11 14:30:02 +08:00
66f378bdc0 submit next batch of ppu_zw_810e (200 models); refresh AUTH_TOKEN 2026-08-10 17:07:48 +08:00
d49bf186ae submit next batch of ppu_zw_810e (200 models) 2026-08-07 11:23:46 +08:00
1b95e92f72 add next batch of ppu_zw_810e submission (500 models, lines 601-1100 of source list) 2026-08-06 13:06:23 +08:00
dd9db6b4d2 add ppu_zw_810e submission (600 models), refresh AUTH_TOKEN; skip other 4 GPUs this run 2026-08-04 20:54:10 +08:00
5c9f5d9ad7 refresh all 4 GPU model lists with latest filter results 2026-07-29 17:36:02 +08:00
9b5087467f add Kunlunxin_p-800 as 4th GPU with filtered model list 2026-07-29 15:16:34 +08:00
7dcada5617 convert to multi-GPU submission (Biren/Cambricon/MetaX) with fresh filtered model lists 2026-07-29 14:26:16 +08:00
5958df93b0 switch to Cambricon_mlu-370-x8 with new model list, refresh AUTH_TOKEN 2026-07-27 16:46:41 +08:00
a73274e6a4 switch back to ppu_zw_810e with new model list 2026-07-23 14:27:36 +08:00
b3c577219f switch to Biren_166m GPU with new model list 2026-07-22 13:53:23 +08:00
1591b3050e refresh expired AUTH_TOKEN 2026-07-21 18:56:31 +08:00
55c77faa70 update model list 2026-07-21 18:42:47 +08:00
e51533e0bf update model list
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-16 16:58:36 +08:00
4e603b9fb0 update 2026-07-14 19:06:47 +08:00
5fe8bf27e5 update main.py
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-14 18:41:06 +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
3 changed files with 516 additions and 375 deletions

2
.gitignore vendored Normal file
View File

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

View File

@@ -1,6 +1,7 @@
FROM modelhubxc-4pd.tencentcloudcr.com/xc_agent_platform/python:3.11-slim FROM modelhubxc-4pd.tencentcloudcr.com/xc_agent_platform/python:3.11-slim
ENV PYTHONUNBUFFERED=1 ENV PYTHONUNBUFFERED=1
WORKDIR /app WORKDIR /app

886
main.py
View File

@@ -1,8 +1,19 @@
""" """
xc_validation_strategy — 主入口 xc_validation_strategy — 主入口
启动后执行一次模型验证任务批量提交,之后保持 HTTP 服务存活。 启动后针对 GPU_JOBS 中配置的 GPU 卡分别批量提交各自筛选出的模型验证任务
同时暴露 /healthK8s 探活)和 /status运行状态 (当前仅提交 ppu_zw_810e其余 4 张卡 Biren_166m/Cambricon_mlu-370-x8/MetaX_c-500/
Kunlunxin_p-800 的 config_content 模板和模型列表仍保留在代码中,未列入本次 GPU_JOBS
/adminApi/async/task/create-contest-task
Bearer Token 认证),之后保持 HTTP 服务存活。
账号额度自动重试:如果某个模型提交时命中"当前等待中或运行中的异步模型验证
任务数量已达上限"(账号额度已满),不算永久失败,会被留到下一轮;额度耗尽后
本进程会原地等待 30 分钟,再自动重试所有因额度问题未提交成功的模型,如此循环,
直至全部提交成功或进程被平台关闭——不需要重新部署新策略,循环逻辑在本进程内完成。
非额度原因的失败(如模型已在验证中等)不会重试。
同时暴露 /healthK8s 探活)和 /status运行状态含当前轮次/待重试数/下次重试时间)。
""" """
import json import json
@@ -22,10 +33,9 @@ BASE_URL = os.environ.get("BASE_URL", "https://modelhub.org.cn")
SUBMIT_ENDPOINT = "/adminApi/async/task/create-contest-task" SUBMIT_ENDPOINT = "/adminApi/async/task/create-contest-task"
# 通过 curl -X POST https://modelhub.org.cn/adminApi/user/login 获取后填入 # 通过 curl -X POST https://modelhub.org.cn/adminApi/user/login 获取后填入
AUTH_TOKEN = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyQWNjb3VudCI6Inpob3VzaGFzaGEiLCJpZCI6MTQsInVzZXJSb2xlIjoibGVhZGVyYm9hcmQiLCJleHAiOjE3ODE4NTE0NzcsImlhdCI6MTc4MTI0NjY3N30.p3uvCpG50aLNifNVVXxvzmWJahbLM5K1671FVCtj8E8" AUTH_TOKEN = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyQWNjb3VudCI6Inpob3VzaGFzaGEiLCJpZCI6MTQsInVzZXJSb2xlIjoibGVhZGVyYm9hcmQiLCJleHAiOjE3OTAwNjkxMjAsImlhdCI6MTc4OTQ2NDMyMH0.KzJac6ddaZdtLvjD6ZnoK1PNEKFoXdyDn9Hh4FxU9ic"
CONTEST_API_TOKEN = "ef1ef82f3c9efee413d602345fbe224d" CONTEST_API_TOKEN = "ef1ef82f3c9efee413d602345fbe224d"
CONTRIBUTORS = "zhoushasha" CONTRIBUTORS = "zhoushasha"
GPU_TYPE = "Cambricon_mlu-370-x8"
TASK_TYPE = "text-generation" TASK_TYPE = "text-generation"
STRATEGY_ID = os.environ.get("STRATEGY_ID", "") # 平台自动注入,无需修改 STRATEGY_ID = os.environ.get("STRATEGY_ID", "") # 平台自动注入,无需修改
@@ -33,353 +43,278 @@ HTTP_HOST = "0.0.0.0"
HTTP_PORT = 8080 HTTP_PORT = 8080
# ══════════════════════════════════════════════════════════ # ══════════════════════════════════════════════════════════
# 模型列表 # 各 GPU 的模型列表(来自 filter_verified_models 脚本的筛选结果)
# ══════════════════════════════════════════════════════════ # ══════════════════════════════════════════════════════════
ALL_MODEL_IDS = [ BIREN_MODELS = [
"UCLA-AGI/Gemma-2-9B-It-SPPO-Iter3", "ApolloRaines/Phi-4-mini-Instruct-Desyced",
"migtissera/SynthIA-7B-v1.3", "allenai/OLMo-2-0425-1B",
"TinyLlama/TinyLlama-1.1B-intermediate-step-955k-token-2T", "Free2035/4QDR_4B_AD_Thinker_V1",
"bigscience/bloomz-1b1", "aifoundry-org/OLMo-7B-0424-hf-Quantized",
"EleutherAI/pythia-6.9b-deduped", "lugman-madhiai/Qwen3-4B-MHS-1.1",
"AvitoTech/avibe", "zypchn/BehChat-SFT-v4",
"Enoch/llama-7b-hf", "NoesisLab/Kai-30B-Instruct",
"asingh15/qwen-abs-verl-sft-rephrased-lr5e6-ep1-0109", "barandinho/Qwen3-30B-A3B-FIRST-STAGE-SFT",
"PrimeIntellect/INTELLECT-1", "m-a-p/OpenLLaMA-Reproduce-218.1B",
"neuralmagic/starcoder2-3b-quantized.w8a8", "xiaolesu/Qwen3-8B-Herald-SFT",
"Saxo/Linkbricks-Horizon-AI-Korean-Gemma-2-sft-dpo-27B", "WhiteRabbitNeo/WhiteRabbitNeo-33B-v1.5",
"HuggingFaceH4/zephyr-7b-gemma-v0.1", "saleh1312/orph_3.07225",
"neuralmagic/Llama-2-7b-chat-quantized.w4a16", "vanta-research/atom-olmo3-7b",
"neuralmagic/starcoder2-15b-quantized.w8a8", "ZhipuAI/LongCite-glm4-9b",
"DAMO-NLP-SG/Qwen2.5-7B-LongPO-128K", "Xlnk/LFM2-2.6B-Exp-GGuf",
"guardrail/llama-2-7b-guanaco-instruct-sharded", "Tesslate/UIGEN-T1.1-Qwen-14B",
"shenzhi-wang/Gemma-2-27B-Chinese-Chat", "jondurbin/bagel-dpo-34b-v0.2",
"pavankumarbalijepalli/phi2-sqlcoder", "zhengr/MixTAO-7Bx2-MoE-Instruct-v5.0",
"neph1/bellman-7b-mistral-instruct", "allenai/Olmo-3.1-32B-Instruct",
"neuralmagic/Meta-Llama-3-8B-Instruct-quantized.w8a16", "bjaidi/Phi-3-medium-128k-instruct-awq",
"neuralmagic/Qwen2-7B-Instruct-quantized.w8a8", "xing720310/qwen3-14b",
"lamm-mit/BioinspiredLLM", "IntelLabs/sqft-mistral-7b-v0.3-50-base-gptq",
"neuralmagic/Qwen2-7B-Instruct-quantized.w8a16", "hariharanv04/qwen2.5-coder-14b-metadata-merged",
"dataopsnick/Qwen3-4B-Instruct-2507-zip-rc", "junfengzhou/qwen3-14b-rl",
"huihui-ai/MicroThinker-3B-Preview", "ronnywebdevs1/Affine-P011-5CkU7wLMWXPs6TdSsMf8eEYCVAbPLyNmYg9PPx1Uds8toKra",
"OrionStarAI/Orion-14B-Base", "kennedyantonio0301/Affine-Tensor-h3-5EkdoaCmEpFffUjDpLhDMzEDR4kptaEzpTPYCP1uL2sbct8C",
"georgesung/llama3_8b_chat_uncensored", "julep-ai/dolphin-2.9-llama3-70b-awq",
"FreedomIntelligence/RAG-Instruct-Llama3-3B", "cortexso/gemma3",
"Aryanne/WestSenzu-Swap-7B", "jacob-ml/jacob-24b",
"Josephgflowers/Cinder-Phi-2-Test-1", "lyraaaa/neuralese-sft-pretrain-v2",
"FreedomIntelligence/Apollo-6B", "ai-sage/GigaChat-20B-A3B-instruct-bf16",
"Josephgflowers/Tinyllama-1.3B-Cinder-Reason-Test-2", "PJMixers-Dev/gemma-3-1b-it-fixed",
"Josephgflowers/Tinyllama-1.3B-Cinder-Reason-Test", "commotion/svara_finetune_v1",
"247labs/Llama-2-7b-Verse-Bot", "geoffmunn/Qwen3-14B-f16",
"praneethposina/customer_support_bot", "geoffmunn/Qwen3-32B-f16",
"KBlueLeaf/TIPO-200M", "TeichAI/Nemotron-Cascade-14B-Thinking-Claude-4.5-Opus-High-Reasoning-Distill",
"norallm/normistral-11b-warm", "prithivMLmods-llamafile/SmolLM2-1.7B-Instruct-llamafile",
"theprint/Boptruth-Agatha-7B", "prithivMLmods-llamafile/Llama-3.2-8B-llamafile-200K",
"ericflo/Llama-3.1-8B-ContinuedTraining2-FFT", "llamafile-club/SmolLM-135M-Instruct-Llamafile",
"okwinds/OpenR1-Qwen-7B", "prithivMLmods/Sombrero-QwQ-32B-Elite9",
"ruohuaw/deepquery-3b-sft", "prithivMLmods-llamafile/Aya-Expanse-8B-llamafile",
"theprint/Boptruth-NeuralMonarch-7B", "llamafile-club/SmolLM-135M-Llamafile",
"MaziyarPanahi/calme-3.1-qwenloi-3b", "prithivMLmods/Sombrero-QwQ-32B-Elite10-Fixed",
"alperiox/trendyol-7b-base-v1-mtLoRA_entr", "prithivMLmods-llamafile/Qwen2.5-Coder-1.5B-llamafile",
"theprint/phi-3-mini-4k-python", "TeichAI/Qwen3-14B-Polaris-Alpha-Distill",
"uukuguy/speechless-nl2sql-ds-6.7b", "okwinds/MiroThinker-14B-DPO-v0.1",
"uukuguy/speechless-coder-ds-6.7b", "sanbuphy/tianji-wish2-14b",
"tybrs/llama-guard-quant", "codefuse-ai/CodeFuse-StarCoder2-15B",
"Josephgflowers/TinyLlama-3T-Cinder-v1.3", "AI-ModelScope/txgemma-27b-chat",
"mlabonne/Darewin-7B-v2", "Shanghai_AI_Laboratory/internlm3-8b-instruct-awq",
"TeichAI/Qwen3-1.7B-Gemini-2.5-Flash-Lite-Preview-Distill", "XGenerationLab/XiYanSQL-QwenCoder-32B-2412",
"TeichAI/Nemotron-Orchestrator-8B-DeepSeek-v3.2-Speciale-Distill", "vllm-ascend/gemma-1.1-2b-it",
"shadowml/BeagSake-7B", "OpenBuddy/openbuddy-qwen1.5-32b-v21.2-32k",
"lex-hue/Delexa-7b", "OpenBuddy/openbuddy-thinker-32b-v26-preview",
"h2oai/h2o-danube3-500m-chat", "OpenBuddy/openbuddy-qwen1.5-32b-v21.1-32k",
"bigcode/gpt_bigcode-santacoder", "TechxGenus-MS/CodeGemma-7b",
"openlm-research/open_llama_7b", "OpenBuddy/openbuddy-qwq-32b-v25.2q-200k",
"upstage/SOLAR-10.7B-v1.0", "unsloth/Qwen3-30B-A3B",
"prithivMLmods/Phi-3.5-Mini-Xalate", "OpenBuddy/openbuddy-qwq-32b-v25.1-200k",
"prithivMLmods/Qwen3-Bifrost-SOL-4B-GUFF", "OpenBuddy/openbuddy-r1-32b-v24.1-200k",
"prithivMLmods/Volans-Opus-14B-Exp", "iic/ERank-14B",
"prithivMLmods/Viper-OneCoder-UIGEN", "OpenBuddy/openbuddy-yi1.5-34b-v21.2-32k",
"prithivMLmods/Tucana-Opus-14B-r999", "LGAI-EXAONE/EXAONE-Deep-32B",
"prithivMLmods/Sombrero-Opus-14B-Sm5", "OpenBuddy/openbuddy-qwq-32b-v24.2-200k",
"prithivMLmods/Sombrero-Opus-14B-Sm4", "unsloth/Phi-3-mini-4k-instruct-v0",
"prithivMLmods/Reasoning-SmolLM2-135M", "argilla/notux-8x7b-v1",
"prithivMLmods/Sombrero-Opus-14B-Sm1", "voidful/qd-phi-1_5",
"prithivMLmods/LwQ-10B-Instruct", "Shanghai_AI_Laboratory/internlm2-math-base-20b",
"prithivMLmods/Sombrero-Opus-14B-Elite5", "Shanghai_AI_Laboratory/internlm2-math-plus-20b",
"prithivMLmods/Eridanus-Opus-14B-r999", "TechxGenus-MS/starcoder2-15b-instruct",
"prithivMLmods/Equuleus-Opus-14B-Exp", "Shanghai_AI_Laboratory/internlm2-base-20b",
"prithivMLmods/Epimetheus-14B-Axo", "m-a-p/OpenLLaMA-Reproduce-872.42B",
"prithivMLmods/Phi-4-Math-IO", "m-a-p/OpenLLaMA-Reproduce-973.08B",
"prithivMLmods/Omni-Reasoner4-Merged", "Shanghai_AI_Laboratory/OREAL-32B",
"prithivMLmods/Pegasus-Opus-14B-Exp", "YOYO-AI/Qwen3-30B-A3B-CoderThinking-YOYO-linear",
"prithivMLmods/Elita-1", "ticoAg/Qwen-1_8B-Chat-Int4-awq",
"prithivMLmods/Delta-Pavonis-Qwen-14B", "smirki/UIGEN-T1.1-Qwen-14B",
"prithivMLmods/Nu2-Lupi-Qwen-14B", "prithivMLmods/Qwen2.5-32B-DeepSeek-R1-Instruct",
"prithivMLmods/Coma-II-14B", "sail/Sailor2-20B-128K",
"MaziyarPanahi/calme-2.7-qwen2-7b", "xverse/XVERSE-65B",
"prithivMLmods/Monocerotis-V838-14B", "Shanghai_AI_Laboratory/internlm2_5-20b-chat",
"prithivMLmods/Calcium-Opus-14B-Merge", "TeleAI/TeleChat-52B",
"prithivMLmods/Calcium-Opus-14B-Elite3", "modelscope/Llama-2-70b-ms",
"prithivMLmods/Calcium-Opus-14B-Elite2-R1", "Shanghai_AI_Laboratory/internlm2-20b",
"prithivMLmods/Calcium-Opus-14B-Elite2", "ai-modelscope/Llama-3_1-Nemotron-51B-Instruct",
"prithivMLmods/Calcium-Opus-14B-Elite-Stock", "zhuangxialie/Phi-3-Chinese-ORPO",
"prithivMLmods/Megatron-Opus-14B-2.1", "openai-mirror/gpt-oss-safeguard-20b",
"prithivMLmods/Blaze.1-27B-Reflection", "ByteDance-Seed/Seed-OSS-36B-Instruct",
"prithivMLmods/Megatron-Corpus-14B-Exp.v2", "Shanghai_AI_Laboratory/internlm-chat-20b",
"prithivMLmods/Megatron-Corpus-14B-Exp", "TurkuNLP/bloom-finnish-176b",
"GAIR/autoj-bilingual-6b", "openai-mirror/gpt-oss-120b",
"TheBloke/airoboros-7b-gpt4-fp16", "vllm-ascend/QwQ-32B-W8A8",
"Undi95/Mistral-11B-OmniMix9", "mistralai/Mistral-Small-24B-Instruct-2501",
"PKU-Alignment/ProgressGym-HistLlama3-8B-C016-pretrain-v0.2", "Shanghai_AI_Laboratory/internlm-20b",
"PKU-Alignment/ProgressGym-HistLlama3-8B-C017-instruct-v0.2", "ZhipuAI/GLM-4-32B-0414",
"mlabonne/NeuralDarewin-7B",
"0xgr3y/Qwen2.5-Coder-0.5B-Instruct-Gensyn-Swarm-tall_tame_panther",
"openlm-research/open_llama_3b_v2",
"Nobitaxi/InternLM2-chat-7B-SQL",
"testUser/Qwen3-1.7b-Medical-R1-sft",
"mlabonne/Zebrafish-7B",
"mlabonne/NeuralPipe-7B-slerp",
"laion/openthoughts-4-code-qwen3-32b-annotated-7k_qwen3-1.7B_10k",
"Fengshenbang/Ziya-LLaMA-13B-v1.1",
"arcee-ai/Saul-Instruct-Mistral-7B-Instruct-v0.2-Slerp",
"arcee-ai/Saul-Instruct-Clown-7b",
"prithivMLmods/Megatron-Opus-7B-Exp",
"Vikhrmodels/QVikhr-3-8B-Instruction",
"TheBloke/Nous-Hermes-13B-SuperHOT-8K-fp16",
"TheBloke/UltraLM-13B-fp16",
"PocketDoc/Dans-TotSirocco-7b",
"LLM-Research/Meta-Llama-3.1-8B",
"Qwen/Qwen2.5-Coder-32B",
"Qwen/Qwen2.5-7B-Instruct-1M",
"Qwen/Qwen2-57B-A14B-Instruct",
"Qwen/Qwen2.5-14B-Instruct-1M",
"Qwen/Qwen-1_8B-Chat",
"Qwen/Qwen1.5-MoE-A2.7B-Chat",
"Qwen/Qwen1.5-MoE-A2.7B",
"Qwen/Qwen1.5-14B-Chat",
"Qwen/Qwen1.5-14B",
"Qwen/Qwen-14B",
"deepseek-ai/DeepSeek-Coder-V2-Lite-Base",
"TheBloke/tulu-13B-fp16",
"TheBloke/Kimiko-Mistral-7B-fp16",
"TheBloke/Llama-2-13B-fp16",
"mlabonne/Monarch-7B",
"TheBloke/tulu-7B-fp16",
"01ai/Yi-9B",
"TheBloke/koala-7B-HF",
"AI-ModelScope/txgemma-2b-predict",
"LLM-Research/OLMo-7B-0724-SFT-hf",
"JsonZhang02/Llama3.2-1B-PCL",
"PKU-Alignment/ProgressGym-HistLlama3-8B-C019-instruct-v0.2",
"PKU-Alignment/ProgressGym-HistLlama3-8B-C016-instruct-v0.2",
"FreedomIntelligence/AceGPT-v1.5-13B-Chat",
"MediaTek-Research/Breeze-7B-Base-v0_1",
"OpenBuddy/openbuddy-llama3-8b-v21.1-8k",
"HIT-TMG/Mixtral_13B_Chat_RAG-Reader",
"PKU-Alignment/ProgressGym-HistLlama3-8B-C014-pretrain-v0.2",
"arcee-ai/arcee-lite",
"X-D-Lab/MindChat-Qwen2-4B",
"mlabonne/NeuralMonarch-7B",
"ibm-granite/granite-3b-code-instruct-2k",
"LLM-Research/OLMo-7B-Twin-2T-hf",
"PocketDoc/Dans-AdventurousWinds-Mk2-7b",
"LLM-Research/Qwen2-Math-7B",
"MediaTek-Research/Breeze-7B-Base-v1_0",
"LLM-Research/layerskip-llama2-13B",
"prithivMLmods/TESS-QwenRe-1.5B",
"prithivMLmods/Octantis-QwenR1-1.5B",
"prithivMLmods/Qwen3-1.7B-ft-bf16",
"prithivMLmods/Theta-Crucis-0.6B-Turbo1",
"prithivMLmods/Omega-Qwen3-Atom-8B",
"prithivMLmods/Mintaka-Qwen3-1.6B-V3.1",
"NousResearch/Yarn-Llama-2-7b-64k",
"prithivMLmods/Panacea-MegaScience-Qwen3-1.7B",
"prithivMLmods/TOI-157-Phi-4-Reasoning-Mini",
"prithivMLmods/Vulpecula-4B",
"LLM-Research/OLMo-7B-0424-hf",
"LLM-Research/OLMo-7B-hf",
"LLM-Research/OLMo-7B-SFT-hf",
"AI-ModelScope/starcoder2-7b",
"LLM-Research/OLMo-7B-0724-hf",
"OpenBMB/BitCPM4-1B",
"LLM-Research/truthfulqa-truth-judge-llama2-7B",
"LLM-Research/OLMo-1B-0724-hf",
"HIT-TMG/Qwen1.5-14B-Chat_RAG-Reader",
"OpenBMB/MiniCPM4-MCP",
"AI-ModelScope/sqlcoder-7b-2",
"FuseAI/OpenChat-3.5-7B-SOLAR-v2.0",
"JsonZhang02/Llama3.2-1B-SFT",
"MaziyarPanahi/neural-chat-7b-v3-2-Mistral-7B-Instruct-v0.1",
"MaziyarPanahi/SauerkrautLM-7b-HerO-Mistral-7B-Instruct-v0.1",
"prithivMLmods/Segue-Qwen3_DeepScaleR-Preview",
"NovaSky-AI/Sky-T1-7B-Zero",
"PKU-Alignment/ProgressGym-HistLlama3-8B-C020-pretrain-v0.2",
"NovaSky-AI/Sky-T1-7B-step2",
"NousResearch/CodeLlama-7b-hf-flash",
"LLM-Research/layerskip-llama3-8B",
"LLM-Research/OLMo-1B-hf",
"PKU-Alignment/ProgressGym-HistLlama3-8B-C018-pretrain-v0.2",
"NousResearch/CodeLlama-7b-Instruct-hf-flash",
"Nexusflow/NexusRaven-V2-13B",
"AI-ModelScope/NuExtract-v1.5",
"NousResearch/Nous-Capybara-3B-V1.9",
"NousResearch/Nous-Capybara-7B-V1",
"NousResearch/Yarn-Solar-10b-32k",
"LLM-Research/Llama-Guard-4-12B",
"OpenPipe/gemma-3-4b-it-text-only-2",
"OpenPipe/Deductive-Reasoning-Qwen-14B",
"OpenPipe/gemma-3-12b-it-text-only",
"AI-MO/NuminaMath-7B-CoT",
"GAIR/Abel-7B-001",
"prithivMLmods/Novaeus-Promptist-7B-Instruct",
"SakanaAI/EvoLLM-JP-v1-7B",
"FreedomIntelligence/Apollo-1.8B",
"PKU-Alignment/ProgressGym-HistLlama3-8B-C013-instruct-v0.2",
"PKU-Alignment/ProgressGym-HistLlama3-8B-C013-pretrain-v0.2",
"PKU-Alignment/ProgressGym-HistLlama3-8B-C015-pretrain-v0.2",
"PKU-Alignment/ProgressGym-HistLlama3-8B-C014-instruct-v0.2",
"PKU-Alignment/ProgressGym-HistLlama3-8B-C021-instruct-v0.2",
"NousResearch/Meta-Llama-3.1-8B",
"OpenPipe/Qwen3-14B-Instruct",
"unsloth/OpenHermes-2.5-Mistral-7B",
"OpenBuddy/openbuddy-mistral-22b-v21.1-32k",
"FlyDutch/telechat2-7b-Cot",
"HuggingFaceH4/mistral-7b-sft-alpha",
"PAI/pai-qwen1_5-7b-doc2qa",
"PKU-Alignment/ProgressGym-HistLlama3-8B-C018-instruct-v0.2",
"Magpie-Align/Llama-3-8B-Tulu-330K",
"prithivMLmods/Blaze.1-27B-Preview",
"allenai/OLMo-7B-0424-SFT-hf",
"mlabonne/Meta-Llama-3-8B",
"LLM-Research/layerskip-codellama-7B",
"prithivMLmods/Sculptor-Qwen3_Med-Reasoning",
"prithivMLmods/SmolLM2-360M-Grpo-r999",
"prithivMLmods/SmolLM2-1.7B-Open-Thought",
"LLM-Research/open-instruct-llama2-sharegpt-7b",
"prithivMLmods/SmolLM2_135M_Grpo_Checkpoint",
"OpenBuddy/openbuddy-qwen2.5llamaify-14b-v23.1-200k",
"OpenBuddy/openbuddy-zero-3b-v21.2-32k",
"YeungNLP/firefly-llama2-7b-chat",
"OpenBuddy/openbuddy-zero-14b-v22.3-32k",
"OpenBuddy/openbuddy-yi1.5-9b-v21.1-32k",
"FuseAI/OpenChat-3.5-7B-Starling-v2.0",
"prithivMLmods/Qwen-7B-Distill-Reasoner",
"FuseAI/OpenChat-3.5-7B-InternLM-v2.0",
"prithivMLmods/Galactic-Qwen-14B-Exp1",
"prithivMLmods/Sombrero-R1-14B-Elite13",
"prithivMLmods/Sombrero-Opus-14B-Elite13",
"TheBloke/Planner-7B-fp16",
"AI-ModelScope/speed-synthesis-8b-senior",
"PocketDoc/Dans-AdventurousWinds-7b",
"MaziyarPanahi/calme-3.2-baguette-3b",
"MaziyarPanahi/calme-3.2-instruct-3b",
"IntervitensInc/intv_ai_mk11",
"prithivMLmods/Muscae-Qwen3-UI-Code-4B",
"NousResearch/Llama-2-7b-hf",
"prithivMLmods/Pocket-Llama-3.2-3B-Instruct",
"OpenBuddy/openbuddy-openllama-13b-v7-fp16",
"LLM-Research/WildLlama-7b-assistant-only",
"prithivMLmods/Raptor-X2",
"OpenBuddy/openbuddy-qwen1.5-14b-v20.1-32k",
"NaniDAO/Meta-Llama-3.1-8B-Instruct-ablated-v1",
"LLM-Research/OLMo-7B-Instruct-hf",
"OpenBuddy/openbuddy-zen-3b-v21.2-32k",
"OpenBuddy/openbuddy-qwen1.5-14b-v21.1-32k",
"LLM-Research/llama2-7b-WildJailbreak",
"JunHowie/MiniCPM4-8B",
"OpenBuddy/openbuddy-coder-15b-v10-bf16",
"JunHowie/MiniCPM4-0.5B",
"OpenDevin/CodeQwen1.5-7B-OpenDevin",
"OpenBuddy/openbuddy-mistral-10b-v17.1-32k",
"PAI/DistilQwen2.5-DS3-0324-7B",
"OpenBuddy/openbuddy-llama2-13b64k-v15",
"OpenBuddy/openbuddy-falcon-7b-v5-fp16",
"NousResearch/Hermes-2-Theta-Llama-3-8B",
"NousResearch/Hermes-2-Pro-Mistral-7B",
"OpenBuddy/openbuddy-openllama-7b-v5-fp16",
"PAI/DistillQwen-ThoughtY-8B",
"BSC-LT/salamandra-2b",
"pfnet/nekomata-7b-pfn-qfin-inst-merge",
"BSC-LT/experimental7b-rag-instruct",
"PKU-Alignment/ProgressGym-HistLlama3-8B-C019-pretrain-v0.2",
"OpenBuddy/OpenBuddy-R10528DistillQwen-14B-v27.4-200K",
"OpenBuddy/OpenBuddy-R10528DistillQwen-14B-v27.1",
"OpenBuddy/SimpleChat-4B-V1",
"AI-ModelScope/granite-8b-code-base-4k",
"mlabonne/NeuralHermes-2.5-Mistral-7B",
"BSC-LT/experimental7b-rag",
"prithivMLmods/SmolLM2_135M_Grpo_Gsm8k",
"OpenBuddy/openbuddy-zen-3b-v21.1-32k",
"PKU-Alignment/ProgressGym-HistLlama3-8B-C015-instruct-v0.2",
"prithivMLmods/QwQ-LCoT1-Merged",
"mlabonne/NeuralBeagle14-7B",
"PKU-Alignment/ProgressGym-HistLlama3-8B-C020-instruct-v0.2",
"mlabonne/NeuralMarcoro14-7B",
"PKU-Alignment/ProgressGym-HistLlama3-8B-C017-pretrain-v0.2",
"FuseAI/OpenChat-3.5-7B-Mixtral-v2.0",
"mlabonne/FrankenMonarch-7B",
"stabilityai/stablelm-tuned-alpha-3b",
"prithivMLmods/Viper-Coder-v1.5-r999",
"prithivMLmods/Galactic-Qwen-14B-Exp2",
"HuggingFaceTB/cosmo-1b",
"LLM-Research/WildLlama-7b-user-assistant",
"OpenBuddy/openbuddy-llama2-13b-v8.1-fp16",
"prithivMLmods/Regulus-Qwen3-R1-Llama-Distill-1.7B",
"LLM-Research/OLMo-7B-0424-SFT-hf",
"huihui-ai/MicroThinker-1B-Preview",
"OpenBuddy/openbuddy-openllama-3b-v10-bf16",
"LLM-Research/digital-socrates-13b",
"prithivMLmods/Viper-Coder-v1.6-r999",
"prithivMLmods/Magpie-Qwen-DiMind-1.7B",
"BAAI/CareBot_Medical_multi-llama3-8b-base",
"NousResearch/Meta-Llama-3-8B",
"OpenBuddy/openbuddy-llama2-13b-v15p1-64k",
"NousResearch/Yarn-Mistral-7b-64k",
"PrimeIntellect/DeepSeek-R1-Distill-Qwen-1.5B",
"Undi95/Meta-Llama-3-8B-Instruct-hf",
"FuseAI/OpenChat-3.5-7B-Mixtral",
"prithivMLmods/Viper-Coder-Hybrid-v1.3",
"OpenBuddy/openbuddy-qwen2.5llamaify-7b-v23.1-200k",
"LLM-Research/mistral-7b",
"OpenBuddy/openbuddy-qwen2.5llamaify-14b-v23.3-200k",
"prithivMLmods/Viper-Coder-HybridMini-v1.3",
"OpenBuddy/openbuddy-atom-13b-v9-bf16",
"OpenBuddy/openbuddy-llama3.2-3b-v23.2-131k",
"ibm-granite/granite-3b-code-instruct-128k",
"PierreZCW/Breeze-7B-Instruct-v1_0",
"mlabonne/Marcoro14-7B-slerp",
"AI-ModelScope/openbuddy-falcon-7b-v15-fp16",
"AI-ModelScope/falcon-7b",
"BAAI/AquilaChat2-7B",
"PrimeIntellect/Qwen3-0.6B",
"OuteAI/Lite-Oute-1-65M-Instruct",
"AI-ModelScope/granite-3b-code-instruct-128k",
"PrimeIntellect/Qwen3-8B",
"OpenBuddy/openbuddy-falcon-7b-v6-bf16",
"MaziyarPanahi/calme-3.1-instruct-3b",
"LLM-Research/open-instruct-llama2-sharegpt-dpo-7b",
"PocketDoc/Dans-PersonalityEngine-v1.0.0-8b",
"FuseAI/FuseChat-Llama-3.1-8B-Instruct",
"OpenBuddy/openbuddy-mixtral-7bx8-v18.1-32k",
"OpenBuddy/openbuddy-deepseekcoder-6b-v16.1-32k",
"HuggingFaceTB/SmolLM-1.7B",
"LLM-Research/Llama-4-Scout-17B-16E-Instruct",
"argilla/distilabeled-Marcoro14-7B-slerp-full",
"HuggingFaceTB/SmolLM2-1.7B",
"argilla/distilabeled-Marcoro14-7B-slerp",
"l3utterfly/open-llama-3b-v2-layla",
] ]
CAMBRICON_MODELS = [
"Xlnk/LFM2-2.6B-Exp-GGuf",
]
METAX_MODELS = [
"ApolloRaines/Phi-4-mini-Instruct-Desyced",
"robertspumiaca1975/Qwen2.5-Coder-14B-n8n-Workflow-Generator",
"barandinho/Qwen3-30B-A3B-FIRST-STAGE-SFT-V2",
"hotmailuser/QwenSlerp2-14B",
"WhiteRabbitNeo/WhiteRabbitNeo-33B-v1.5",
"madox81/SmolLM2-135M-cybersecurity-lora-merged",
"Xlnk/LFM2-2.6B-Exp-GGuf",
"Tesslate/UIGEN-T1.1-Qwen-14B",
"jondurbin/bagel-dpo-34b-v0.2",
"zhengr/MixTAO-7Bx2-MoE-Instruct-v5.0",
"bjaidi/Phi-3-medium-128k-instruct-awq",
"jacob-ml/jacob-24b",
"geoffmunn/Qwen3-32B-f16",
"TorpedoSoftware/Luau-Devstral-24B-Instruct-v0.2",
"TeichAI/Nemotron-Cascade-14B-Thinking-Claude-4.5-Opus-High-Reasoning-Distill",
"tongzang/Qwen2.5-7b-lora-law",
"prithivMLmods/Sombrero-QwQ-32B-Elite9",
"prithivMLmods/Sombrero-QwQ-32B-Elite10-Fixed",
"TeichAI/Qwen3-14B-Polaris-Alpha-Distill",
"okwinds/MiroThinker-14B-DPO-v0.1",
"sanbuphy/tianji-wish2-14b",
"YOYO-AI/YOYO-O1-14B",
"LLM-Research/Meta-Llama-3.1-405B",
"LLM-Research/Meta-Llama-3-70B",
"LLM-Research/Meta-Llama-3.1-70B",
"Qwen/Qwen-72B-Chat",
"Qwen/Qwen3-Coder-480B-A35B-Instruct",
"deepseek-ai/DeepSeek-R1-Distill-Llama-70B",
"codefuse-ai/CodeFuse-StarCoder2-15B",
"AI-ModelScope/txgemma-27b-chat",
"XGenerationLab/XiYanSQL-QwenCoder-32B-2412",
"OpenBuddy/openbuddy-qwen1.5-32b-v21.2-32k",
"OpenBuddy/openbuddy-thinker-32b-v26-preview",
"OpenBuddy/openbuddy-qwen1.5-32b-v21.1-32k",
"OpenBuddy/openbuddy-qwq-32b-v25.2q-200k",
"unsloth/Qwen3-30B-A3B",
"OpenBuddy/openbuddy-qwq-32b-v25.1-200k",
"OpenBuddy/openbuddy-r1-32b-v24.1-200k",
"iic/ERank-14B",
"OpenBuddy/openbuddy-yi1.5-34b-v21.2-32k",
"LGAI-EXAONE/EXAONE-Deep-32B",
"OpenBuddy/openbuddy-qwq-32b-v24.2-200k",
"unsloth/Phi-3-mini-4k-instruct-v0",
"argilla/notux-8x7b-v1",
"voidful/qd-phi-1_5",
"TechxGenus-MS/starcoder2-15b-instruct",
"m-a-p/OpenLLaMA-Reproduce-872.42B",
"m-a-p/OpenLLaMA-Reproduce-973.08B",
"Shanghai_AI_Laboratory/OREAL-32B",
"YOYO-AI/Qwen3-30B-A3B-CoderThinking-YOYO-linear",
"smirki/UIGEN-T1.1-Qwen-14B",
"sthenno-com/miscii-14b-0130",
"prithivMLmods/Qwen2.5-32B-DeepSeek-R1-Instruct",
"sail/Sailor2-20B-128K",
"xverse/XVERSE-65B",
"TeleAI/TeleChat-52B",
"modelscope/Llama-2-70b-ms",
"Shanghai_AI_Laboratory/internlm2-20b",
"ai-modelscope/Llama-3_1-Nemotron-51B-Instruct",
"aJupyter/EmoLLM_Qwen2-7B-Instruct_lora",
"zhuangxialie/Phi-3-Chinese-ORPO",
"vllm-ascend/QwQ-32B-W8A8",
"ZhipuAI/GLM-4-32B-0414",
]
HYGON_MODELS = [
"ApolloRaines/Phi-4-mini-Instruct-Desyced",
]
KUNLUNXIN_MODELS = [
"Xlnk/LFM2-2.6B-Exp-GGuf",
]
PPU_MODELS = [
"OuteAI/Lite-Mistral-150M-v2-Instruct",
"eric0009/yi-ko-6b-text2sql",
"ai-forever/mGPT-1.3B-bashkir",
"ApolloRaines/Phi-4-mini-Instruct-Desyced",
"eekay/Llama-3.1-8B-Instruct-noised-np0.15-emb-s48",
"eekay/Llama-3.1-8B-Instruct-noised-np0.15-emb-s49",
"cortexso/simplescaling-s1",
"BrainDelay/Siren",
"sbintuitions/sarashina2.2-3b-instruct-v0.1",
"robertspumiaca1975/Qwen2.5-Coder-14B-n8n-Workflow-Generator",
"AtAndDev/ShortKing-3b-v0.2",
"athirdpath/Iambe-RP-cDPO-20b",
"belweave/kai-2",
"unsloth/Qwen2.5-Coder-14B-Instruct",
"dphn/dolphin-2.7-mixtral-8x7b",
"adeljebali/llama3.1-gec-strict",
"xxrickyxx/Ailo152m-events-en",
"RedHatAI/starcoder2-7b-quantized.w8a8",
"RedHatAI/granite-3.1-2b-instruct-quantized.w4a16",
"julep-ai/dolphin-2.9.1-llama-3-70b-awq",
"OpenBuddy/openbuddy-deepseek-67b-v18.1-4k-gptq",
"dessertlab/offensive-powershell-CodeGPT-small",
"misterJB/atlas-field-528hz",
"tiiuae/Falcon3-10B-Base",
"Jackrong/gpt-oss-120b-Distill-Llama3.1-8B-v3",
"TheBloke/guanaco-65B-HF",
"jondurbin/airoboros-33b-gpt4-1.3",
"h2oai/h2ogpt-4096-llama2-70b",
"jondurbin/airoboros-65b-gpt4-1.3",
"jondurbin/airoboros-l2-70b-gpt4-2.0",
"ICBU-NPU/FashionGPT-70B-V1.2",
"jukofyork/Dark-Miqu-70B",
"alnrg2arg/blockchainlabs_joe_bez_seminar",
"facebook/opt-66b",
"abchbx/qwen_1.8B_Muice-Dataset_FULL",
"LumiOpen/Viking-33B",
"adamo1139/Yi-34B-200K-AEZAKMI-RAW-1701",
"mesolitica/Malaysian-TTS-4B-v0.1",
"TomGrc/FusionNet_passthrough",
"YOYO-AI/Qwen3-30B-A3B-YOYO-V5",
"m-a-p/OpenLLaMA-Reproduce-536.87B",
"m-a-p/OpenLLaMA-Reproduce-1291.85B",
"KnutJaegersberg/Deacon-34B",
"SenseLLM/ReflectionCoder-DS-33B",
"KOREAson/KO-REAson-AX3_1-35B-1009",
"dphn/dolphin-2.9.1-mixtral-1x22b",
"jondurbin/airoboros-33b-gpt4-1.4",
"TomGrc/FusionNet_passthrough_v0.1",
"Mozilla/Mistral-7B-Instruct-v0.2-llamafile",
"suayptalha/Luminis-phi-4",
"casperhansen/llama-3.3-70b-instruct-awq",
"HIT-SCIR/Chinese-Mixtral-8x7B",
"Shanghai_AI_Laboratory/internlm2-wqx-20b",
"unsloth/Qwen2.5-Coder-32B-Instruct",
"BSC-LT/ALIA-40b",
"Shanghai_AI_Laboratory/internlm2-7b",
"Shanghai_AI_Laboratory/internlm2-chat-7b",
]
# 本次提交第二十四轮过滤结果 MetaX_c-500(63) / Kunlunxin_p-800(1) /
# Cambricon_mlu-370-x8(1) / Biren_166m(95),加上已更新的 ppu_zw_810e(57)共217个。
# hygon_k100-ai 本轮筛出1个config 分支与 HYGON_MODELS 列表已备好但按要求不提交;
# Iluvatar_bi-150 本轮筛出36个本仓库 framework=vllm 而现有 iluvatar 镜像均为
# llamacpp/GGUF缺 vllm 版镜像地址,无 config 分支,同样不提交。
GPU_JOBS: List[Tuple[str, List[str]]] = [
("MetaX_c-500", METAX_MODELS),
("Kunlunxin_p-800", KUNLUNXIN_MODELS),
("Cambricon_mlu-370-x8", CAMBRICON_MODELS),
("Biren_166m", BIREN_MODELS),
("ppu_zw_810e", PPU_MODELS),
]
TOTAL_MODELS = sum(len(models) for _, models in GPU_JOBS)
# ══════════════════════════════════════════════════════════ # ══════════════════════════════════════════════════════════
# 全局状态(供 /status 展示) # 全局状态(供 /status 展示)
# ══════════════════════════════════════════════════════════ # ══════════════════════════════════════════════════════════
_state = { _state = {
"strategy_id": STRATEGY_ID, "strategy_id": STRATEGY_ID,
"phase": "starting", # starting | submitting | done | error "phase": "starting", # starting | submitting | waiting_retry | done | error
"total": len(ALL_MODEL_IDS), "total": TOTAL_MODELS,
"submitted": 0, "submitted": 0,
"failed": 0, "failed": 0,
"per_gpu": {gpu: 0 for gpu, _ in GPU_JOBS},
"started_at": None, "started_at": None,
"finished_at": None, "finished_at": None,
"round": 0, # 当前是第几轮提交
"quota_blocked_remaining": 0, # 因额度上限暂未提交成功、等待下一轮重试的模型数
"next_retry_at": None, # 下一轮重试的预计时间(额度耗尽等待期间)
} }
_shutdown = threading.Event() _shutdown = threading.Event()
@@ -417,14 +352,40 @@ def _run_http():
print("[http] 已关闭", flush=True) print("[http] 已关闭", flush=True)
# ══════════════════════════════════════════════════════════ # ══════════════════════════════════════════════════════════
# 业务逻辑 # 各 GPU 的 config_content 模板
# ══════════════════════════════════════════════════════════ # ══════════════════════════════════════════════════════════
def _submit_task(token: str, model_id: str) -> Tuple[bool, str]: def build_config_content(gpu_type: str, model_id: str) -> str:
headers = { if gpu_type == "Biren_166m":
"Content-Type": "application/json", max_model_len = 4096
"Authorization": f"Bearer {token}", return f"""docker_image: git.modelhub.org.cn:9443/enginex/xc-llm-biren166m:26.01
} nv_docker_image: harbor.4pd.io/dooke/vllm/vllm/vllm-openai:v0.11.0
config_content = f"""docker_image: harbor.4pd.io/hardcore-tech/cambricon-mlu370-pytorch:v25.01-torch2.5.0-torchmlu1.24.1-ubuntu22.04-py310 framework: vllm
lang: zh
storage: gpfs
api: completion
modelhub_options:
srcRelativePath: leaderboard/modelHubXC/{model_id}
mountPoint: /model
max_model_len: {max_model_len}
sut_config:
values:
gpu_num: 1
env:
- name: MAX_MODEL_LEN
value: {max_model_len}
command: ['/bin/bash', '-ic', 'vllm serve /model --port 8000 --served-model-name llm --max-model-len {max_model_len} --gpu-memory-utilization 0.9 --enforce-eager --trust-remote-code -tp 1 --host 0.0.0.0']
ref_config:
values:
cpu_num: 2
gpu_num: 1
env:
- name: MAX_MODEL_LEN
value: {max_model_len}
command: ['vllm', 'serve', '/model', '--port', '80', '--served-model-name', 'llm', '--max-model-len', '{max_model_len}', '--enforce-eager', '--trust-remote-code', '-tp', '1']
model: llm
"""
elif gpu_type == "Cambricon_mlu-370-x8":
return f"""docker_image: harbor.4pd.io/hardcore-tech/cambricon-mlu370-pytorch:v25.01-torch2.5.0-torchmlu1.24.1-ubuntu22.04-py310
nv_docker_image: harbor.4pd.io/dooke/vllm/vllm/vllm-openai:v0.11.0 nv_docker_image: harbor.4pd.io/dooke/vllm/vllm/vllm-openai:v0.11.0
framework: vllm framework: vllm
storage: gpfs storage: gpfs
@@ -447,21 +408,156 @@ ref_config:
value: 8192 value: 8192
command: ["vllm", "serve", "/model", "--port", "80", "--served-model-name", "llm", "--max-model-len", "8192", "--trust-remote-code", "--dtype", "float16"] command: ["vllm", "serve", "/model", "--port", "80", "--served-model-name", "llm", "--max-model-len", "8192", "--trust-remote-code", "--dtype", "float16"]
""" """
elif gpu_type == "MetaX_c-500":
return f"""docker_image: git.modelhub.org.cn:9443/enginex-metax/vllm:0.9.1
nv_docker_image: harbor.4pd.io/dooke/vllm/vllm/vllm-openai:v0.11.0
framework: vllm
lang: en
storage: gpfs
api: chat
modelhub_options:
srcRelativePath: leaderboard/modelHubXC/{model_id}
mountPoint: /model
max_model_len: 2048
sut_config:
gpu_num: 1
values:
command: ['/opt/conda/bin/vllm', 'serve', '/model', '--port', '20644', '--served-model-name', 'llm', '--max-model-len', '2048', '--gpu-memory-utilization', '0.9', '--enforce-eager', '--trust-remote-code' ,'-tp', '1']
ref_config:
gpu_num: 1
values:
command: ['vllm', 'serve', '/model', '--port', '80', '--served-model-name', 'llm', '--max-model-len', '2048', '--enforce-eager', '--trust-remote-code', '-tp', '1']
"""
elif gpu_type == "Kunlunxin_p-800":
return f"""docker_image: git.modelhub.org.cn:9443/enginex/xc-llm-kunlun
nv_docker_image: harbor.4pd.io/dooke/vllm/vllm/vllm-openai:v0.11.0
framework: vllm
lang: en
storage: gpfs
api: chat
temperature: 0.4
repetition_penalty: 1.1
top_p: 0.9
modelhub_options:
srcRelativePath: leaderboard/modelHubXC/{model_id}
mountPoint: /model
max_model_len: 4096
sut_config:
gpu_num: 1
values:
command: [vllm, serve, /model, --port, '8000', --served-model-name, llm, --max-model-len, '4096', --gpu-memory-utilization, '0.9', --enforce-eager, --trust-remote-code, -tp, '1']
ref_config:
gpu_num: 1
values:
command: [vllm, serve, /model, --port, '80', --served-model-name, llm, --max-model-len, '4096', --enforce-eager, --trust-remote-code, -tp, '1']
"""
elif gpu_type == "hygon_k100-ai":
return f"""
docker_image: harbor.4pd.io/modelhubxc/enginex-hygon/vllm:0.9.2-patch-tokenizer
nv_docker_image: harbor.4pd.io/modelhubxc/enginex-nvidia/vllm:0.11.0-patch-tokenizer
framework: vllm
storage: gpfs
max_model_len: 4096
sut_config:
gpu_num: 1
values:
command: ['vllm', 'serve', '/model', '--port', '20644', '--served-model-name', 'llm', '--max-model-len', '4096', '--enforce-eager', '--trust-remote-code' ,'-tp', '1' ]
ref_config:
gpu_num: 1
values:
command: ['vllm', 'serve', '/model', '--port', '80', '--served-model-name', 'llm', '--max-model-len', '4096', '--enforce-eager', '--trust-remote-code', '-tp', '1']
"""
elif gpu_type == "ppu_zw_810e":
return f"""gpu_type: ppu_zw_810e
framework: vllm
docker_image: harbor.4pd.io/hardcore-tech/asllm:1.10.1-pytorch2.10.0-ubuntu24.04-sail2.1.0-cuda13.0-sglang0.5.10-vllm0.19.0-py312
nv_docker_image: harbor-contest.4pd.io/sunruoxi/vllm-openai-fix-tokenizer:v0.11.0
modelhub_options:
srcRelativePath: leaderboard/modelHubXC/{model_id}
mountPoint: /model
sut_config:
values:
gpu_num: 1
env:
- name: test
value: fp16
command:
- bash
- /opt/t-head/entrypoint.sh
- python3
- -m
- asllm.entrypoints.api_server
- --model
- /model
- --port
- '30000'
- --host
- 0.0.0.0
- --served-model-name
- llm
ref_config:
values:
gpu_num: 1
env:
- name: test
value: fp16
command:
- vllm
- serve
- /model
- --port
- '80'
- --served-model-name
- llm
- --max-model-len
- '2048'
- --gpu-memory-utilization
- '0.9'
- --enforce-eager
- --trust-remote-code
- -tp
- '1'
"""
else:
raise ValueError(f"未知的 GPU_TYPE: {gpu_type}")
# ══════════════════════════════════════════════════════════
# 业务逻辑
# ══════════════════════════════════════════════════════════
# 账号"等待中/运行中"任务数已达上限时平台返回的业务错误信息(子串匹配);
# 命中这个的模型不算永久失败,会在额度腾出空位后自动重试,不会被记作 failed
QUOTA_FULL_MSG = "当前等待中或运行中的异步模型验证任务数量已达上限"
# 额度耗尽后,隔多久自动重试一次剩余(因额度问题未提交成功)的模型
RETRY_INTERVAL_SECONDS = 30 * 60 # 30 分钟
def _submit_task(token: str, gpu_type: str, model_id: str) -> Tuple[bool, str, str]:
headers = {
"Content-Type": "application/json",
"Authorization": f"Bearer {token}",
}
config_content = build_config_content(gpu_type, model_id)
payload = { payload = {
"contestApiToken": CONTEST_API_TOKEN, "contestApiToken": CONTEST_API_TOKEN,
"contributors": CONTRIBUTORS, "contributors": CONTRIBUTORS,
"gpuTypes": [GPU_TYPE], "gpuTypes": [gpu_type],
"taskType": TASK_TYPE, "taskType": TASK_TYPE,
"modelId": model_id, "modelId": model_id,
"framework": "vllm", "framework": "vllm",
"strategyId": STRATEGY_ID, # 平台要求 "strategyId": STRATEGY_ID, # 平台要求
"submissionConfig": [{ "submissionConfig": [{
"config": config_content, "config": config_content,
"gpuType": GPU_TYPE, "gpuType": gpu_type,
"taskType": TASK_TYPE, "taskType": TASK_TYPE,
}], }],
} }
print(f"[payload] {json.dumps(payload, indent=2, ensure_ascii=False)}", flush=True) print(f"[payload] gpu={gpu_type} model={model_id}", flush=True)
try: try:
resp = requests.post( resp = requests.post(
BASE_URL + SUBMIT_ENDPOINT, BASE_URL + SUBMIT_ENDPOINT,
@@ -472,46 +568,88 @@ ref_config:
result = resp.json() result = resp.json()
if result.get("code") == 0: if result.get("code") == 0:
task_id = result.get("data", {}).get("id", "") task_id = result.get("data", {}).get("id", "")
print(f"[worker] OK {model_id} task_id={task_id}", flush=True) print(f"[worker] OK {model_id} (GPU={gpu_type}) task_id={task_id}", flush=True)
return True, task_id return True, task_id, ""
else: else:
print(f"[worker] FAIL {model_id}: {result.get('message')}", flush=True) message = result.get("message") or ""
return False, "" print(f"[worker] FAIL {model_id} (GPU={gpu_type}): {message}", flush=True)
return False, "", message
except Exception as e: except Exception as e:
print(f"[worker] ERROR {model_id}: {e}", flush=True) print(f"[worker] ERROR {model_id} (GPU={gpu_type}): {e}", flush=True)
return False, "" return False, "", str(e)
def _run_worker(): def _run_worker():
_state["started_at"] = datetime.utcnow().isoformat() _state["started_at"] = datetime.utcnow().isoformat()
_state["phase"] = "submitting" _state["phase"] = "submitting"
successful: List[Tuple[str, str]] = [] successful: List[Tuple[str, str, str]] = []
token = AUTH_TOKEN token = AUTH_TOKEN
print("[worker] 使用预设 Token跳过登录", flush=True) print("[worker] 使用预设 Token跳过登录", flush=True)
for model_id in ALL_MODEL_IDS: # 待提交队列:保持 GPU_JOBS 里原有的 (gpu_type, model_id) 顺序
if _shutdown.is_set(): pending: List[Tuple[str, str]] = [
break (gpu_type, model_id)
ok, task_id = _submit_task(token, model_id) for gpu_type, model_list in GPU_JOBS
if ok: for model_id in model_list
_state["submitted"] += 1 ]
successful.append((task_id, model_id))
else:
_state["failed"] += 1
# 写入结果文件 round_num = 0
try: while pending and not _shutdown.is_set():
with open("submitted_validation_tasks.txt", "w", encoding="utf-8") as f: round_num += 1
for tid, mid in successful: _state["round"] = round_num
f.write(f"{tid}\t{mid}\n") _state["phase"] = "submitting"
except Exception: _state["next_retry_at"] = None
pass print(
f"\n{'='*60}\n🚀 第 {round_num} 轮,待提交 {len(pending)} 个模型\n{'='*60}",
flush=True,
)
quota_blocked: List[Tuple[str, str]] = []
for gpu_type, model_id in pending:
if _shutdown.is_set():
break
ok, task_id, message = _submit_task(token, gpu_type, model_id)
if ok:
_state["submitted"] += 1
_state["per_gpu"][gpu_type] += 1
successful.append((task_id, gpu_type, model_id))
elif QUOTA_FULL_MSG in message:
# 账号额度暂时满了,不算永久失败,留到下一轮重试
quota_blocked.append((gpu_type, model_id))
else:
# 非额度原因失败(如重复提交等),不再重试
_state["failed"] += 1
pending = quota_blocked
_state["quota_blocked_remaining"] = len(pending)
# 每轮结束都把已成功的结果落盘一次,避免中途重启丢失记录
try:
with open("submitted_validation_tasks.txt", "w", encoding="utf-8") as f:
for tid, gpu, mid in successful:
f.write(f"{tid}\t{gpu}\t{mid}\n")
except Exception:
pass
if pending and not _shutdown.is_set():
next_retry = datetime.utcnow().timestamp() + RETRY_INTERVAL_SECONDS
_state["next_retry_at"] = datetime.utcfromtimestamp(next_retry).isoformat()
_state["phase"] = "waiting_retry"
print(
f"[worker] 第 {round_num} 轮结束:{len(pending)} 个模型因账号额度上限暂未提交,"
f"{RETRY_INTERVAL_SECONDS // 60} 分钟后自动重试(不部署新策略,本进程内循环)...",
flush=True,
)
_shutdown.wait(RETRY_INTERVAL_SECONDS)
_state["finished_at"] = datetime.utcnow().isoformat() _state["finished_at"] = datetime.utcnow().isoformat()
_state["phase"] = "done" _state["phase"] = "done"
_state["quota_blocked_remaining"] = len(pending)
print( print(
f"[worker] 完成 submitted={_state['submitted']} failed={_state['failed']}", f"[worker] 完成 submitted={_state['submitted']} failed={_state['failed']} "
f"total={_state['total']} per_gpu={_state['per_gpu']} "
f"仍因额度未提交(如遇shutdown中断)={len(pending)}",
flush=True, flush=True,
) )
# 提交完成后继续保持进程存活,等待平台停止 # 提交完成后继续保持进程存活,等待平台停止
@@ -544,4 +682,4 @@ def main():
if __name__ == "__main__": if __name__ == "__main__":
main() main()