2024-04-05 00:39:17 -07:00
# Common dependencies
2025-03-08 17:44:35 +01:00
-r common.txt
2024-04-05 00:39:17 -07:00
2025-08-19 10:10:37 +05:30
numba == 0.60.0; python_version == '3.9' and platform_machine != "s390x" # v0.61 doesn't support Python 3.9. Required for N-gram speculative decoding
numba == 0.61.2; python_version > '3.9' and platform_machine != "s390x"
2025-06-04 09:43:01 +08:00
2024-11-26 08:02:39 +05:30
# Dependencies for CPUs
2025-05-20 18:53:23 +08:00
packaging>=24.2
setuptools>=77.0.3,<80.0.0
2025-04-29 19:08:04 -07:00
--extra-index-url https://download.pytorch.org/whl/cpu
2025-06-26 18:34:47 +08:00
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
2025-08-29 03:57:35 -07:00
torch==2.8.0; platform_system == "Darwin"
torch==2.8.0; platform_machine == "ppc64le" or platform_machine == "aarch64"
2025-01-31 02:59:39 +05:30
# required for the image processor of minicpm-o-2_6, this must be updated alongside torch
2025-03-06 22:10:53 +05:30
torchaudio; platform_machine != "ppc64le" and platform_machine != "s390x"
2025-08-29 03:57:35 -07:00
torchaudio==2.8.0; platform_machine == "ppc64le"
2025-01-31 02:59:39 +05:30
# required for the image processor of phi3v, this must be updated alongside torch
2025-04-14 18:06:01 +01:00
torchvision; platform_machine != "ppc64le" and platform_machine != "s390x"
2025-08-29 03:57:35 -07:00
torchvision==0.23.0; platform_machine == "ppc64le"
2025-01-08 05:35:49 -03:00
datasets # for benchmark scripts
2025-04-09 21:35:00 -07:00
2025-05-23 19:38:42 +08:00
# Intel Extension for PyTorch, only for x86_64 CPUs
2025-05-27 16:03:56 +08:00
intel-openmp==2024.2.1; platform_machine == "x86_64"
2025-06-26 18:34:47 +08:00
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.
2025-07-25 22:33:56 +08:00
# Use this to gather CPU info and optimize based on ARM Neoverse cores
py-cpuinfo; platform_machine == "aarch64"