support docker-npu-[amd64|arm64] build

Former-commit-id: 25f16f5e299c94175e62bac9f0da5b47a2bb31b7
This commit is contained in:
fanjunliang
2024-06-27 15:21:55 +08:00
parent d82d86e16d
commit 31fcd03f3c
4 changed files with 13 additions and 6 deletions

View File

@@ -35,7 +35,8 @@ def get_requires():
extra_require = {
"torch": ["torch>=1.13.1"],
"torch-npu": ["torch==2.1.0+cpu", "torch-npu==2.1.0.post3", "decorator"],
"torch-npu-arm64": ["torch==2.1.0", "torch-npu==2.1.0.post3", "decorator"],
"torch-npu-amd64": ["torch==2.1.0+cpu", "torch-npu==2.1.0.post3", "decorator"],
"metrics": ["nltk", "jieba", "rouge-chinese"],
"deepspeed": ["deepspeed>=0.10.0"],
"bitsandbytes": ["bitsandbytes>=0.39.0"],