cpu.txt 1.5 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
13
torch==2.7.0; platform_system == "Darwin"
torch==2.7.0; platform_machine == "ppc64le" or platform_machine == "aarch64"
14
15

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

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

24
# Intel Extension for PyTorch, only for x86_64 CPUs
25
intel-openmp==2024.2.1; platform_machine == "x86_64"
26
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
27
28
py-libnuma; platform_system != "Darwin"
psutil; platform_system != "Darwin"
29
triton==3.2.0; platform_machine == "x86_64" # Triton is required for torch 2.6+cpu, as it is imported in torch.compile.