cpu.txt 1.64 KB
Newer Older
1
# Common dependencies
2
-r common.txt
3

4
5
6
numba == 0.60.0; python_version == '3.9' # v0.61 doesn't support Python 3.9. Required for N-gram speculative decoding
numba == 0.61.2; python_version > '3.9'

7
# Dependencies for CPUs
汪志鹏's avatar
汪志鹏 committed
8
9
packaging>=24.2
setuptools>=77.0.3,<80.0.0
Huy Do's avatar
Huy Do committed
10
--extra-index-url https://download.pytorch.org/whl/cpu
11
torch==2.6.0+cpu; platform_machine == "x86_64" # torch>2.6.0+cpu has performance regression on x86 platform, see https://github.com/pytorch/pytorch/pull/151218
Huy Do's avatar
Huy Do committed
12
torch==2.7.0; platform_system == "Darwin"
13
14
torch==2.7.0; platform_machine == "ppc64le"
torch==2.6.0; platform_machine == "aarch64" # for arm64 CPUs, torch 2.7.0 has a issue: https://github.com/vllm-project/vllm/issues/17960
15
16

# required for the image processor of minicpm-o-2_6, this must be updated alongside torch
17
torchaudio; platform_machine != "ppc64le" and platform_machine != "s390x"
Huy Do's avatar
Huy Do committed
18
torchaudio==2.7.0; platform_machine == "ppc64le"
19
20

# required for the image processor of phi3v, this must be updated alongside torch
21
torchvision; platform_machine != "ppc64le" and platform_machine != "s390x"
Huy Do's avatar
Huy Do committed
22
torchvision==0.22.0; platform_machine == "ppc64le"
23
datasets # for benchmark scripts
24

25
# Intel Extension for PyTorch, only for x86_64 CPUs
26
intel-openmp==2024.2.1; platform_machine == "x86_64"
27
28
intel_extension_for_pytorch==2.6.0; platform_machine == "x86_64" # torch>2.6.0+cpu has performance regression on x86 platform, see https://github.com/pytorch/pytorch/pull/151218
triton==3.2.0; platform_machine == "x86_64" # Triton is required for torch 2.6+cpu, as it is imported in torch.compile.
29
30
31

# Use this to gather CPU info and optimize based on ARM Neoverse cores
py-cpuinfo; platform_machine == "aarch64"