diff --git a/AI/modelscope/1.8.4/23/Dockerfile b/AI/modelscope/1.8.4/23/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..6acf9196f9f82aee4f25cc377899f687622325bb --- /dev/null +++ b/AI/modelscope/1.8.4/23/Dockerfile @@ -0,0 +1,10 @@ +FROM registry.openanolis.cn/openanolis/cuda:12.1.1-23-runtime + +LABEL \ + maintainer="OpenAnolis AI SIG" \ + org.opencontainers.image.title="modelscope" \ + org.opencontainers.image.version="1.8.4-23" + +RUN dnf install python3-modelscope-1.8.4 python3-jieba http://8.131.87.1/kojifiles/repos/dist-an23-build/latest/x86_64/toplink/work/tasks/4398/734398/python3-transformers-4.34.0-1.an23.x86_64.rpm http://8.131.87.1/kojifiles/repos/dist-an23-build/latest/x86_64/toplink/work/tasks/7982/737982/pytorch-2.0.1-4.an23.x86_64.rpm http://8.131.87.1/kojifiles/repos/dist-an23-build/latest/x86_64/toplink/work/tasks/7982/737982/pytorch-devel-2.0.1-4.an23.x86_64.rpm -y + +CMD ["/bin/bash"] diff --git a/AI/modelscope/buildspec.yml b/AI/modelscope/buildspec.yml new file mode 100644 index 0000000000000000000000000000000000000000..2da1fad23dd0a3ecd5ef352563a7c659a82186c0 --- /dev/null +++ b/AI/modelscope/buildspec.yml @@ -0,0 +1,35 @@ +name: &NAME +version: &VERSION +image_type: &IMAGE_TYPE +baseos_version: &BASEOS_VERSION + +# 定义镜像仓库信息 +repository_info: + dockerhub: &DOCKERHUB_PROD + acr: &ACR_PROD anolis-registry.cn-zhangjiakou.cr.aliyuncs.com/openanolis + +# 定义镜像测试信息 +t-one: + # 配置测试信息 workspace 和模版 + workspace: &WORKSPACE container_ci_test + project: &PROJECT default_container_ci_test + test_suite: &TEST_SUITE image-ci-test + # 执行测试 case, 多个用数组表示 + test_conf: &TEST_CONF group=ai_container + test_case: &TEST_CASE pytorch_ai_container + cloud_server_tag: &CLOUD_SERVER_TAG [anolis-container-ci-x86, anolis-container-ci-arm] + +# 构建镜像配置 +images: + # 分组名称,支持自定义 + BuildModelscopeDockerImage: + # 定义是否构建参数 + build: true + docker_file: + path: AI/modelscope/1.8.4/23/Dockerfile + scene: + args: [] + tags: [1.8.4-23] + registry: [*ACR_PROD] + # 测试配置 + test_config: [*WORKSPACE, *PROJECT, *TEST_SUITE, *TEST_CONF, *TEST_CASE, *CLOUD_SERVER_TAG[0], ''] diff --git a/AI/modelscope/version.yml b/AI/modelscope/version.yml new file mode 100644 index 0000000000000000000000000000000000000000..30a33dc6871a58c678b7ff30a973e40c8cd4773d --- /dev/null +++ b/AI/modelscope/version.yml @@ -0,0 +1,14 @@ +# 版本关系依赖表,默认继承 version-base.yml 配置,可重写覆盖 +BaseDependency: ../version-base.yml +Dependency: + name: modelscope + # training 训练类, inference 推理类 + image_type: inference + versions: + 1.8.4: + # 对 AI 框架版本对 python 版本的要求 + python_version: [] + # gpu 对 cuda 版本的要求 + cuda_version: [] + # 对 baseos 的要求,*AnolisOS8.6 表示 Anolis8.6 + baseos_version: [*AnolisOS23] \ No newline at end of file