| feat: add Docker image build scripts and documentation
Co-authored-by: zhangxubin<1656631289@qq.com>
# message auto-generated for no-merge-commit merge:
!2406 merge master into master
feat: add Docker image build scripts and documentation
Created-by: MoCuishle-M
Commit-by: zhangxubin;MoCuishle-M
Merged-by: ascend-robot
Description: ## What this PR does / why we need it?
MindSpeed MM增加docker 镜像构建相关代码与文档。
支持构建A2、A3、X86、ARM、openEuler、ubuntu组合的镜像。python版本为3.11
MM镜像定位:提供基础CANN、torch、torchnpu、decord(arm上难安装)4个基础环境。
因为verl环境安装涉及源码编译,耗时长,所以预装verl qwen3vl环境。
遵循如下规则:
1.
在项目根目录创建以“docker”命名的独立目录,多个Dockerfile可按需创建二级目录
2.
Dockerfile的命名遵循模板:Dockerfile[.{芯片信息}.{操作系统}.{其他字段}],中括号内为可选字段(字段顺序可调整),字段间连接符使用“.”,字段内连接符使用“-”;
参考: Dockerfile.a3.openEuler/Dockerfile.310p.openEuler
3.
镜像tag的命名推荐遵循模板:{版本号}[-{芯片信息}-{操作系统}-{Python版本}-{架构类型}-{其他字段}],中括号内为可选字段(字段顺序可调整),字段内、字段间连接符均使用“-”;
2.3.0-800I-A2-py311-openeuler24.03-lts/9.0.0-beta.2-910-openeuler24.03-py3.11
单独提供用于后续镜像分发时生成镜像概述的OVERVIEW.md/OVERVIEW.zh.md,与Dockerfile同步归档至业务代码仓根目录下以“docker”命名的独立目录或独立代码仓;
a) 快速参考(Quick Reference)
b) 镜像tag中关键字段描述
c) Dockerfile归档路径
d) 快速开始(Quick Start):运行/本地构建/二次开发
e) 其他自定义章节:硬件支持信息/兼容性变更说明
f) 许可证/免责声明
参考:https://quay.io/repository/ascend/cann
## Does this PR introduce any user-facing change?
首页readme后续需要进行修改。但当前下一个CANN、torch npu正式版本未发布,暂时不呈现。
## How was this patch tested?
Please explain how to verify the correctness and effectiveness of this feature, as well as its usage constraints and limitations.
See merge request: Ascend/MindSpeed-MM!2406 | 1 个月前 |