Compare commits
17 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 793c49aea3 | |||
| d5f576fac7 | |||
| 965783957e | |||
| cd5c7a2435 | |||
| cdbacf5a46 | |||
| 5bfc0fc53e | |||
| 606655b876 | |||
| eee9e5813c | |||
| 32122cd866 | |||
| ebc9f400e0 | |||
| b546ad980f | |||
| 54adf4f956 | |||
| 66f378bdc0 | |||
| d49bf186ae | |||
| 1b95e92f72 | |||
| dd9db6b4d2 | |||
| 5c9f5d9ad7 |
511
main.py
511
main.py
@@ -1,10 +1,19 @@
|
|||||||
"""
|
"""
|
||||||
xc_validation_strategy — 主入口
|
xc_validation_strategy — 主入口
|
||||||
|
|
||||||
启动后针对 4 张 GPU 卡(Biren_166m / Cambricon_mlu-370-x8 / MetaX_c-500 /
|
启动后针对 GPU_JOBS 中配置的 GPU 卡分别批量提交各自筛选出的模型验证任务
|
||||||
Kunlunxin_p-800)分别批量提交各自筛选出的模型验证任务(/adminApi/async/task/create-contest-task,
|
(当前仅提交 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 服务存活。
|
Bearer Token 认证),之后保持 HTTP 服务存活。
|
||||||
同时暴露 /health(K8s 探活)和 /status(运行状态)。
|
|
||||||
|
账号额度自动重试:如果某个模型提交时命中"当前等待中或运行中的异步模型验证
|
||||||
|
任务数量已达上限"(账号额度已满),不算永久失败,会被留到下一轮;额度耗尽后
|
||||||
|
本进程会原地等待 30 分钟,再自动重试所有因额度问题未提交成功的模型,如此循环,
|
||||||
|
直至全部提交成功或进程被平台关闭——不需要重新部署新策略,循环逻辑在本进程内完成。
|
||||||
|
非额度原因的失败(如模型已在验证中等)不会重试。
|
||||||
|
|
||||||
|
同时暴露 /health(K8s 探活)和 /status(运行状态,含当前轮次/待重试数/下次重试时间)。
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import json
|
import json
|
||||||
@@ -24,7 +33,7 @@ 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.eyJ1c2VyQWNjb3VudCI6Inpob3VzaGFzaGEiLCJpZCI6MTQsInVzZXJSb2xlIjoibGVhZGVyYm9hcmQiLCJleHAiOjE3ODU3NDY3NTMsImlhdCI6MTc4NTE0MTk1M30.KwUuefNAFSNwq3_Pnaw2nef8ZC6WgsECQ_LMeQnKk2c"
|
AUTH_TOKEN = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyQWNjb3VudCI6Inpob3VzaGFzaGEiLCJpZCI6MTQsInVzZXJSb2xlIjoibGVhZGVyYm9hcmQiLCJleHAiOjE3OTAwNjkxMjAsImlhdCI6MTc4OTQ2NDMyMH0.KzJac6ddaZdtLvjD6ZnoK1PNEKFoXdyDn9Hh4FxU9ic"
|
||||||
CONTEST_API_TOKEN = "ef1ef82f3c9efee413d602345fbe224d"
|
CONTEST_API_TOKEN = "ef1ef82f3c9efee413d602345fbe224d"
|
||||||
CONTRIBUTORS = "zhoushasha"
|
CONTRIBUTORS = "zhoushasha"
|
||||||
TASK_TYPE = "text-generation"
|
TASK_TYPE = "text-generation"
|
||||||
@@ -37,124 +46,257 @@ HTTP_PORT = 8080
|
|||||||
# 各 GPU 的模型列表(来自 filter_verified_models 脚本的筛选结果)
|
# 各 GPU 的模型列表(来自 filter_verified_models 脚本的筛选结果)
|
||||||
# ══════════════════════════════════════════════════════════
|
# ══════════════════════════════════════════════════════════
|
||||||
BIREN_MODELS = [
|
BIREN_MODELS = [
|
||||||
"BigRatz/LOL-AI-2026",
|
"ApolloRaines/Phi-4-mini-Instruct-Desyced",
|
||||||
"aimeri/spoomplesmaxx-cardmaker-v1",
|
"allenai/OLMo-2-0425-1B",
|
||||||
"Alibaba-DT/Logics-STEM-8B-SFT",
|
"Free2035/4QDR_4B_AD_Thinker_V1",
|
||||||
"Muneebmn123/insurance-voice-qwen25-1_5b",
|
"aifoundry-org/OLMo-7B-0424-hf-Quantized",
|
||||||
"AnkitBirGurung/NEMO-12B-SFT-Further",
|
"lugman-madhiai/Qwen3-4B-MHS-1.1",
|
||||||
"danilarudenko/editorai-mini",
|
"zypchn/BehChat-SFT-v4",
|
||||||
"EphemeralYou/Prompt-Refine-MiniCPM5-1B",
|
"NoesisLab/Kai-30B-Instruct",
|
||||||
"mtepe01/mentorx-mistral-7b-automata-merged",
|
"barandinho/Qwen3-30B-A3B-FIRST-STAGE-SFT",
|
||||||
"DarkArtsForge/Helix-SCE-12B-jh",
|
"m-a-p/OpenLLaMA-Reproduce-218.1B",
|
||||||
"rpant/iolai26-solve",
|
"xiaolesu/Qwen3-8B-Herald-SFT",
|
||||||
"NithinAI12/NithinX-Omni-LLM-v1",
|
"WhiteRabbitNeo/WhiteRabbitNeo-33B-v1.5",
|
||||||
"ConvexAI/Luminex-34B-v0.2",
|
"saleh1312/orph_3.07225",
|
||||||
"codellama/CodeLlama-34b-hf",
|
"vanta-research/atom-olmo3-7b",
|
||||||
"Lipas007/iol-ai-2026-qwen14b-awq",
|
"ZhipuAI/LongCite-glm4-9b",
|
||||||
"D-Z-W/finetuned-teacher",
|
"Xlnk/LFM2-2.6B-Exp-GGuf",
|
||||||
"huan1999/ziya-llama-13b-medical-merged",
|
"Tesslate/UIGEN-T1.1-Qwen-14B",
|
||||||
"codellama/CodeLlama-34b-Python-hf",
|
"jondurbin/bagel-dpo-34b-v0.2",
|
||||||
"ld4ad/gemma-2-9b-dunhuang",
|
"zhengr/MixTAO-7Bx2-MoE-Instruct-v5.0",
|
||||||
"harindhar10/Olmo-7b_1M_Smiles_lora",
|
"allenai/Olmo-3.1-32B-Instruct",
|
||||||
"allenai/Olmo-3-7B-Think-DPO",
|
"bjaidi/Phi-3-medium-128k-instruct-awq",
|
||||||
"allenai/Olmo-3-32B-Think-DPO",
|
"xing720310/qwen3-14b",
|
||||||
"RedHatAI/gemma-2-9b-it",
|
"IntelLabs/sqft-mistral-7b-v0.3-50-base-gptq",
|
||||||
"prashanthsura/gemma-2-2b-legal-financial-sft",
|
"hariharanv04/qwen2.5-coder-14b-metadata-merged",
|
||||||
"pfnet/plamo-2-8b",
|
"junfengzhou/qwen3-14b-rl",
|
||||||
"sail/Sailor2-20B-128K-SFT",
|
"ronnywebdevs1/Affine-P011-5CkU7wLMWXPs6TdSsMf8eEYCVAbPLyNmYg9PPx1Uds8toKra",
|
||||||
"facebook/layerskip-llama3.2-1B",
|
"kennedyantonio0301/Affine-Tensor-h3-5EkdoaCmEpFffUjDpLhDMzEDR4kptaEzpTPYCP1uL2sbct8C",
|
||||||
"Qwen/Qwen2.5-32B",
|
"julep-ai/dolphin-2.9-llama3-70b-awq",
|
||||||
"Qwen/Qwen-Image",
|
"cortexso/gemma3",
|
||||||
"KordAI/Typhoon-Gemma3-KordTranslate-EN-TH-4B",
|
"jacob-ml/jacob-24b",
|
||||||
"xiaoqingsun004/Olmo-WildChat",
|
"lyraaaa/neuralese-sft-pretrain-v2",
|
||||||
"longtermrisk/OLMo-3-7B-target-only-no-hallucination-sft",
|
"ai-sage/GigaChat-20B-A3B-instruct-bf16",
|
||||||
"vimleshiit4463/wyzer-2.0-smollm2-135m",
|
"PJMixers-Dev/gemma-3-1b-it-fixed",
|
||||||
"trl-lib/pythia-1b-deduped-tldr-sft",
|
"commotion/svara_finetune_v1",
|
||||||
|
"geoffmunn/Qwen3-14B-f16",
|
||||||
|
"geoffmunn/Qwen3-32B-f16",
|
||||||
|
"TeichAI/Nemotron-Cascade-14B-Thinking-Claude-4.5-Opus-High-Reasoning-Distill",
|
||||||
|
"prithivMLmods-llamafile/SmolLM2-1.7B-Instruct-llamafile",
|
||||||
|
"prithivMLmods-llamafile/Llama-3.2-8B-llamafile-200K",
|
||||||
|
"llamafile-club/SmolLM-135M-Instruct-Llamafile",
|
||||||
|
"prithivMLmods/Sombrero-QwQ-32B-Elite9",
|
||||||
|
"prithivMLmods-llamafile/Aya-Expanse-8B-llamafile",
|
||||||
|
"llamafile-club/SmolLM-135M-Llamafile",
|
||||||
|
"prithivMLmods/Sombrero-QwQ-32B-Elite10-Fixed",
|
||||||
|
"prithivMLmods-llamafile/Qwen2.5-Coder-1.5B-llamafile",
|
||||||
|
"TeichAI/Qwen3-14B-Polaris-Alpha-Distill",
|
||||||
|
"okwinds/MiroThinker-14B-DPO-v0.1",
|
||||||
|
"sanbuphy/tianji-wish2-14b",
|
||||||
|
"codefuse-ai/CodeFuse-StarCoder2-15B",
|
||||||
|
"AI-ModelScope/txgemma-27b-chat",
|
||||||
|
"Shanghai_AI_Laboratory/internlm3-8b-instruct-awq",
|
||||||
|
"XGenerationLab/XiYanSQL-QwenCoder-32B-2412",
|
||||||
|
"vllm-ascend/gemma-1.1-2b-it",
|
||||||
|
"OpenBuddy/openbuddy-qwen1.5-32b-v21.2-32k",
|
||||||
|
"OpenBuddy/openbuddy-thinker-32b-v26-preview",
|
||||||
|
"OpenBuddy/openbuddy-qwen1.5-32b-v21.1-32k",
|
||||||
|
"TechxGenus-MS/CodeGemma-7b",
|
||||||
|
"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",
|
||||||
|
"Shanghai_AI_Laboratory/internlm2-math-base-20b",
|
||||||
|
"Shanghai_AI_Laboratory/internlm2-math-plus-20b",
|
||||||
|
"TechxGenus-MS/starcoder2-15b-instruct",
|
||||||
|
"Shanghai_AI_Laboratory/internlm2-base-20b",
|
||||||
|
"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",
|
||||||
|
"ticoAg/Qwen-1_8B-Chat-Int4-awq",
|
||||||
|
"smirki/UIGEN-T1.1-Qwen-14B",
|
||||||
|
"prithivMLmods/Qwen2.5-32B-DeepSeek-R1-Instruct",
|
||||||
|
"sail/Sailor2-20B-128K",
|
||||||
|
"xverse/XVERSE-65B",
|
||||||
|
"Shanghai_AI_Laboratory/internlm2_5-20b-chat",
|
||||||
|
"TeleAI/TeleChat-52B",
|
||||||
|
"modelscope/Llama-2-70b-ms",
|
||||||
|
"Shanghai_AI_Laboratory/internlm2-20b",
|
||||||
|
"ai-modelscope/Llama-3_1-Nemotron-51B-Instruct",
|
||||||
|
"zhuangxialie/Phi-3-Chinese-ORPO",
|
||||||
|
"openai-mirror/gpt-oss-safeguard-20b",
|
||||||
|
"ByteDance-Seed/Seed-OSS-36B-Instruct",
|
||||||
|
"Shanghai_AI_Laboratory/internlm-chat-20b",
|
||||||
|
"TurkuNLP/bloom-finnish-176b",
|
||||||
|
"openai-mirror/gpt-oss-120b",
|
||||||
|
"vllm-ascend/QwQ-32B-W8A8",
|
||||||
|
"mistralai/Mistral-Small-24B-Instruct-2501",
|
||||||
|
"Shanghai_AI_Laboratory/internlm-20b",
|
||||||
|
"ZhipuAI/GLM-4-32B-0414",
|
||||||
]
|
]
|
||||||
|
|
||||||
CAMBRICON_MODELS = [
|
CAMBRICON_MODELS = [
|
||||||
"clear-blue-sky/evolai-reborn-tfm-008",
|
"Xlnk/LFM2-2.6B-Exp-GGuf",
|
||||||
"clear-blue-sky/evolai-reborn-tfm-010",
|
|
||||||
"BigRatz/LOL-AI-2026",
|
|
||||||
"clear-blue-sky/evolai-reborn-tfm-001",
|
|
||||||
"clear-blue-sky/evolai-reborn-tfm-019",
|
|
||||||
"clear-blue-sky/evolai-reborn-tfm-007",
|
|
||||||
"aimeri/spoomplesmaxx-cardmaker-v1",
|
|
||||||
"aipatseer/inst_ft_qwen_0.6b_summ",
|
|
||||||
"clear-blue-sky/evolai-reborn-tfm-003",
|
|
||||||
"clear-blue-sky/evolai-reborn-tfm-004",
|
|
||||||
"Alibaba-DT/Logics-STEM-8B-SFT",
|
|
||||||
"clear-blue-sky/evolai-reborn-tfm-002",
|
|
||||||
"prism-ml/Ternary-Bonsai-4B-unpacked",
|
|
||||||
"Muneebmn123/insurance-voice-qwen25-1_5b",
|
|
||||||
"AnkitBirGurung/NEMO-12B-SFT-Further",
|
|
||||||
"danilarudenko/editorai-mini",
|
|
||||||
"rpant/iolai26-solve",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
METAX_MODELS = [
|
METAX_MODELS = [
|
||||||
"Phoenix9781/evolai-tf-model-105",
|
"ApolloRaines/Phi-4-mini-Instruct-Desyced",
|
||||||
"clear-blue-sky/evolai-reborn-tfm-008",
|
"robertspumiaca1975/Qwen2.5-Coder-14B-n8n-Workflow-Generator",
|
||||||
"clear-blue-sky/evolai-reborn-tfm-010",
|
"barandinho/Qwen3-30B-A3B-FIRST-STAGE-SFT-V2",
|
||||||
"BigRatz/LOL-AI-2026",
|
"hotmailuser/QwenSlerp2-14B",
|
||||||
"clear-blue-sky/evolai-reborn-tfm-001",
|
"WhiteRabbitNeo/WhiteRabbitNeo-33B-v1.5",
|
||||||
"clear-blue-sky/evolai-reborn-tfm-019",
|
"madox81/SmolLM2-135M-cybersecurity-lora-merged",
|
||||||
"clear-blue-sky/evolai-reborn-tfm-007",
|
"Xlnk/LFM2-2.6B-Exp-GGuf",
|
||||||
"clear-blue-sky/evolai-reborn-tfm-005",
|
"Tesslate/UIGEN-T1.1-Qwen-14B",
|
||||||
"Lin2es/evolai-tfm-03o",
|
"jondurbin/bagel-dpo-34b-v0.2",
|
||||||
"clear-blue-sky/evolai-reborn-tfm-009",
|
"zhengr/MixTAO-7Bx2-MoE-Instruct-v5.0",
|
||||||
"aimeri/spoomplesmaxx-cardmaker-v1",
|
"bjaidi/Phi-3-medium-128k-instruct-awq",
|
||||||
"aipatseer/inst_ft_qwen_0.6b_summ",
|
"jacob-ml/jacob-24b",
|
||||||
"reaperdoesntknow/DualMind-TKD-Agentic-1.7B",
|
"geoffmunn/Qwen3-32B-f16",
|
||||||
"clear-blue-sky/evolai-reborn-tfm-011",
|
"TorpedoSoftware/Luau-Devstral-24B-Instruct-v0.2",
|
||||||
"clear-blue-sky/evolai-reborn-tfm-003",
|
"TeichAI/Nemotron-Cascade-14B-Thinking-Claude-4.5-Opus-High-Reasoning-Distill",
|
||||||
"clear-blue-sky/evolai-reborn-tfm-004",
|
"tongzang/Qwen2.5-7b-lora-law",
|
||||||
"clear-blue-sky/evolai-reborn-tfm-002",
|
"prithivMLmods/Sombrero-QwQ-32B-Elite9",
|
||||||
"amd/ReasonLite-0.6B",
|
"prithivMLmods/Sombrero-QwQ-32B-Elite10-Fixed",
|
||||||
"prism-ml/Ternary-Bonsai-4B-unpacked",
|
"TeichAI/Qwen3-14B-Polaris-Alpha-Distill",
|
||||||
"Muneebmn123/insurance-voice-qwen25-1_5b",
|
"okwinds/MiroThinker-14B-DPO-v0.1",
|
||||||
"danilarudenko/editorai-mini",
|
"sanbuphy/tianji-wish2-14b",
|
||||||
"rpant/iolai26-solve",
|
"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 = [
|
KUNLUNXIN_MODELS = [
|
||||||
"Patriae/patriae-cuban-dialect-model",
|
"Xlnk/LFM2-2.6B-Exp-GGuf",
|
||||||
"Phoenix9781/evolai-tf-model-105",
|
|
||||||
"clear-blue-sky/evolai-reborn-tfm-008",
|
|
||||||
"clear-blue-sky/evolai-reborn-tfm-010",
|
|
||||||
"clear-blue-sky/evolai-reborn-tfm-001",
|
|
||||||
"clear-blue-sky/evolai-reborn-tfm-019",
|
|
||||||
"clear-blue-sky/evolai-reborn-tfm-007",
|
|
||||||
"clear-blue-sky/evolai-reborn-tfm-005",
|
|
||||||
"Lin2es/evolai-tfm-03o",
|
|
||||||
"clear-blue-sky/evolai-reborn-tfm-009",
|
|
||||||
"aimeri/spoomplesmaxx-cardmaker-v1",
|
|
||||||
"aipatseer/inst_ft_qwen_0.6b_summ",
|
|
||||||
"clear-blue-sky/evolai-reborn-tfm-011",
|
|
||||||
"clear-blue-sky/evolai-reborn-tfm-003",
|
|
||||||
"clear-blue-sky/evolai-reborn-tfm-004",
|
|
||||||
"clear-blue-sky/evolai-reborn-tfm-002",
|
|
||||||
"amd/ReasonLite-0.6B",
|
|
||||||
"prism-ml/Ternary-Bonsai-4B-unpacked",
|
|
||||||
"EthanGao123/CellHermes-v1.0",
|
|
||||||
"RecursiveMAS/Mixture-Science-BioMistral-7B",
|
|
||||||
"chenyitian-shanshu/SIRL-Gurobi",
|
|
||||||
"RedHatAI/gemma-2-9b-it",
|
|
||||||
"gaunernst/gemma-3-27b-it-qat-autoawq",
|
|
||||||
"promotion/qwen3-8b-simpo-avg-b2p5-g1p0-s42",
|
|
||||||
"llamaindex/vdr-2b-multi-v1",
|
|
||||||
"KordAI/Typhoon-Gemma3-KordTranslate-EN-TH-4B",
|
|
||||||
"TheDrummer/UnslopNemo-12B-v3",
|
|
||||||
"gradients-io-tournaments/tournament-tourn_c5d86c82ce819a79_20260706-b78a01d4-0a6a-49e1-9190-5e88ae329937-5DS6XMVr",
|
|
||||||
"ArliAI/Mistral-Nemo-12B-ArliAI-RPMax-v1.1",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
# 按顺序处理:Biren → Cambricon → MetaX → Kunlunxin
|
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]]] = [
|
GPU_JOBS: List[Tuple[str, List[str]]] = [
|
||||||
("Biren_166m", BIREN_MODELS),
|
|
||||||
("Cambricon_mlu-370-x8", CAMBRICON_MODELS),
|
|
||||||
("MetaX_c-500", METAX_MODELS),
|
("MetaX_c-500", METAX_MODELS),
|
||||||
("Kunlunxin_p-800", KUNLUNXIN_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)
|
TOTAL_MODELS = sum(len(models) for _, models in GPU_JOBS)
|
||||||
|
|
||||||
@@ -163,13 +305,16 @@ TOTAL_MODELS = sum(len(models) for _, models in GPU_JOBS)
|
|||||||
# ══════════════════════════════════════════════════════════
|
# ══════════════════════════════════════════════════════════
|
||||||
_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": TOTAL_MODELS,
|
"total": TOTAL_MODELS,
|
||||||
"submitted": 0,
|
"submitted": 0,
|
||||||
"failed": 0,
|
"failed": 0,
|
||||||
"per_gpu": {gpu: 0 for gpu, _ in GPU_JOBS},
|
"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()
|
||||||
|
|
||||||
@@ -305,6 +450,74 @@ ref_config:
|
|||||||
gpu_num: 1
|
gpu_num: 1
|
||||||
values:
|
values:
|
||||||
command: [vllm, serve, /model, --port, '80', --served-model-name, llm, --max-model-len, '4096', --enforce-eager, --trust-remote-code, -tp, '1']
|
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:
|
else:
|
||||||
raise ValueError(f"未知的 GPU_TYPE: {gpu_type}")
|
raise ValueError(f"未知的 GPU_TYPE: {gpu_type}")
|
||||||
@@ -316,7 +529,14 @@ ref_config:
|
|||||||
# ══════════════════════════════════════════════════════════
|
# ══════════════════════════════════════════════════════════
|
||||||
# 业务逻辑
|
# 业务逻辑
|
||||||
# ══════════════════════════════════════════════════════════
|
# ══════════════════════════════════════════════════════════
|
||||||
def _submit_task(token: str, gpu_type: str, model_id: str) -> Tuple[bool, str]:
|
# 账号"等待中/运行中"任务数已达上限时平台返回的业务错误信息(子串匹配);
|
||||||
|
# 命中这个的模型不算永久失败,会在额度腾出空位后自动重试,不会被记作 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 = {
|
headers = {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
"Authorization": f"Bearer {token}",
|
"Authorization": f"Bearer {token}",
|
||||||
@@ -349,13 +569,14 @@ def _submit_task(token: str, gpu_type: str, model_id: str) -> Tuple[bool, str]:
|
|||||||
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} (GPU={gpu_type}) 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} (GPU={gpu_type}): {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} (GPU={gpu_type}): {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():
|
||||||
@@ -366,35 +587,69 @@ def _run_worker():
|
|||||||
token = AUTH_TOKEN
|
token = AUTH_TOKEN
|
||||||
print("[worker] 使用预设 Token,跳过登录", flush=True)
|
print("[worker] 使用预设 Token,跳过登录", flush=True)
|
||||||
|
|
||||||
for gpu_type, model_list in GPU_JOBS:
|
# 待提交队列:保持 GPU_JOBS 里原有的 (gpu_type, model_id) 顺序
|
||||||
if _shutdown.is_set():
|
pending: List[Tuple[str, str]] = [
|
||||||
break
|
(gpu_type, model_id)
|
||||||
print(f"\n{'='*60}\n🚀 开始处理 GPU={gpu_type},共 {len(model_list)} 个模型\n{'='*60}", flush=True)
|
for gpu_type, model_list in GPU_JOBS
|
||||||
|
for model_id in model_list
|
||||||
|
]
|
||||||
|
|
||||||
for model_id in model_list:
|
round_num = 0
|
||||||
|
while pending and not _shutdown.is_set():
|
||||||
|
round_num += 1
|
||||||
|
_state["round"] = round_num
|
||||||
|
_state["phase"] = "submitting"
|
||||||
|
_state["next_retry_at"] = None
|
||||||
|
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():
|
if _shutdown.is_set():
|
||||||
break
|
break
|
||||||
ok, task_id = _submit_task(token, gpu_type, model_id)
|
ok, task_id, message = _submit_task(token, gpu_type, model_id)
|
||||||
if ok:
|
if ok:
|
||||||
_state["submitted"] += 1
|
_state["submitted"] += 1
|
||||||
_state["per_gpu"][gpu_type] += 1
|
_state["per_gpu"][gpu_type] += 1
|
||||||
successful.append((task_id, gpu_type, model_id))
|
successful.append((task_id, gpu_type, model_id))
|
||||||
|
elif QUOTA_FULL_MSG in message:
|
||||||
|
# 账号额度暂时满了,不算永久失败,留到下一轮重试
|
||||||
|
quota_blocked.append((gpu_type, model_id))
|
||||||
else:
|
else:
|
||||||
|
# 非额度原因失败(如重复提交等),不再重试
|
||||||
_state["failed"] += 1
|
_state["failed"] += 1
|
||||||
|
|
||||||
# 写入结果文件
|
pending = quota_blocked
|
||||||
try:
|
_state["quota_blocked_remaining"] = len(pending)
|
||||||
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")
|
try:
|
||||||
except Exception:
|
with open("submitted_validation_tasks.txt", "w", encoding="utf-8") as f:
|
||||||
pass
|
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"total={_state['total']} per_gpu={_state['per_gpu']} "
|
||||||
|
f"仍因额度未提交(如遇shutdown中断)={len(pending)}",
|
||||||
flush=True,
|
flush=True,
|
||||||
)
|
)
|
||||||
# 提交完成后继续保持进程存活,等待平台停止
|
# 提交完成后继续保持进程存活,等待平台停止
|
||||||
|
|||||||
Reference in New Issue
Block a user