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

4
numba == 0.61.2; platform_machine != "s390x" # Required for N-gram speculative decoding
5

6
# Dependencies for CPUs
汪志鹏's avatar
汪志鹏 committed
7
packaging>=24.2
8
setuptools>=77.0.3,<81.0.0
Huy Do's avatar
Huy Do committed
9
--extra-index-url https://download.pytorch.org/whl/cpu
10
torch==2.8.0+cpu; platform_machine == "x86_64" or platform_machine == "s390x"
Huy Do's avatar
Huy Do committed
11
12
torch==2.8.0; platform_system == "Darwin"
torch==2.8.0; platform_machine == "ppc64le" or platform_machine == "aarch64"
13
14

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

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

23
# Intel Extension for PyTorch, only for x86_64 CPUs
24
intel-openmp==2024.2.1; platform_machine == "x86_64"
25
intel_extension_for_pytorch==2.8.0; platform_machine == "x86_64"
26
triton==3.2.0; platform_machine == "x86_64" # Triton is required for torch 2.6+cpu, as it is imported in torch.compile.
27
28
29

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