@@ -24,12 +24,76 @@ ci_image: harbor.baai.ac.cn/flagos/flagscale:cuda12.8.1-cudnn9.7.1-python3.12-to
2424ci_train_image : harbor.baai.ac.cn/flagscale/flagscale-train:dev-cu128-py3.12-20260228210721
2525ci_inference_image : harbor.baai.ac.cn/flagscale/flagscale-inference:dev-cu128-py3.12-20260302102033
2626
27- # Directory to store image tar files (shared between build and push workflows)
28- tar_dir : /mnt/airs-business/cicd/image_tar
29-
3027# Runner labels for this hardware
3128runner_labels : ['flagscale-nvidia-a100-gpu2-32c-128g']
3229
30+ # Image build contract consumed by the generic image-build workflow.
31+ image_build :
32+ enabled : true
33+ registry : harbor.baai.ac.cn
34+ target : dev
35+ network : default
36+ max_parallel : 1
37+ registry_login : false
38+ runner_labels : [self-hosted, Linux, X64, nvidia-0, gpus-8]
39+ validation_script : tools/install/cuda/validate_image_build.sh
40+ tasks :
41+ train :
42+ dockerfile : docker/cuda/Dockerfile.train
43+ image : flagos-dev/flagscale-train
44+ base_image : nvidia/cuda:12.8.1-devel-ubuntu22.04
45+ test_roles : [train]
46+ build_args :
47+ CUDA_VERSION : ' 12.8.1'
48+ UBUNTU_VERSION : ' 22.04'
49+ PYTHON_VERSION : ' 3.12'
50+ UV_VERSION : ' 0.7.2'
51+ PKG_MGR : conda
52+ PYTORCH_INDEX : https://download.pytorch.org/whl/cu128
53+ source_refs :
54+ FLAGSCALE_MEGATRON_REF : megatron_lm_fl
55+ FLAGSCALE_TE_REF : transformer_engine_fl
56+ inference :
57+ dockerfile : docker/cuda/Dockerfile.inference
58+ image : flagos-dev/flagscale-inference
59+ base_image : nvidia/cuda:12.8.1-devel-ubuntu22.04
60+ test_roles : [inference]
61+ build_args :
62+ CUDA_VERSION : ' 12.8.1'
63+ UBUNTU_VERSION : ' 22.04'
64+ PYTHON_VERSION : ' 3.12'
65+ UV_VERSION : ' 0.7.2'
66+ PKG_MGR : conda
67+ PYTORCH_INDEX : https://download.pytorch.org/whl/cu128
68+ all :
69+ dockerfile : docker/cuda/Dockerfile.all
70+ image : flagos-dev/flagscale-all
71+ base_image : nvidia/cuda:12.8.1-devel-ubuntu22.04
72+ test_roles : [train, inference]
73+ test_environments :
74+ train :
75+ pkg_mgr : conda
76+ env_name : flagscale-all
77+ env_path : /opt/flagscale/miniconda3
78+ inference :
79+ pkg_mgr : conda
80+ env_name : flagscale-all
81+ env_path : /opt/flagscale/miniconda3
82+ serve :
83+ pkg_mgr : conda
84+ env_name : flagscale-all
85+ env_path : /opt/flagscale/miniconda3
86+ build_args :
87+ CUDA_VERSION : ' 12.8.1'
88+ UBUNTU_VERSION : ' 22.04'
89+ PYTHON_VERSION : ' 3.12'
90+ UV_VERSION : ' 0.7.2'
91+ PKG_MGR : conda
92+ PYTORCH_INDEX : https://download.pytorch.org/whl/cu128
93+ source_refs :
94+ FLAGSCALE_MEGATRON_REF : megatron_lm_fl
95+ FLAGSCALE_TE_REF : transformer_engine_fl
96+
3397# Container volumes (hardware-specific paths)
3498container_volumes :
3599 - /mnt/airs-business/cicd/baai_datasets:/home/gitlab-runner/data
@@ -76,4 +140,5 @@ env_names:
76140 train : " flagscale-train"
77141 hetero_train : " flagscale-train"
78142 inference : " flagscale-inference"
143+ serve : " flagscale-inference"
79144 rl : " flagscale-rl"
0 commit comments