Compare commits

...

112 Commits

Author SHA1 Message Date
fc9f863b16 Update
[ghstack-poisoned]
2025-11-10 14:24:09 +08:00
cfdc597b32 Update (base update)
[ghstack-poisoned]
2025-11-10 14:24:09 +08:00
82a17eea81 Update
[ghstack-poisoned]
2025-11-04 12:35:58 +08:00
45306b5b58 Update (base update)
[ghstack-poisoned]
2025-11-04 12:35:58 +08:00
068284180a Update
[ghstack-poisoned]
2025-10-29 20:11:13 +08:00
55a0b8e5c2 Update (base update)
[ghstack-poisoned]
2025-10-29 20:11:13 +08:00
21dd75fd1e Update
[ghstack-poisoned]
2025-10-11 21:36:25 +08:00
3d7b40f528 Update (base update)
[ghstack-poisoned]
2025-10-11 21:36:25 +08:00
66b9284bcb Update
[ghstack-poisoned]
2025-10-08 22:45:44 +08:00
2777881500 Update (base update)
[ghstack-poisoned]
2025-10-08 22:45:44 +08:00
7d8c951127 Update
[ghstack-poisoned]
2025-09-26 23:24:17 +08:00
2e5d375801 Update (base update)
[ghstack-poisoned]
2025-09-26 23:24:17 +08:00
e89238b1dc Update
[ghstack-poisoned]
2025-09-19 18:09:21 +08:00
d34017272f Update (base update)
[ghstack-poisoned]
2025-09-19 18:09:21 +08:00
2d9d634e87 Update
[ghstack-poisoned]
2025-09-06 16:07:37 +08:00
9bb1ee9e41 Update (base update)
[ghstack-poisoned]
2025-09-06 16:07:37 +08:00
ce1ce99d48 Update
[ghstack-poisoned]
2025-09-05 23:44:27 +08:00
35f4c06a22 Update (base update)
[ghstack-poisoned]
2025-09-05 23:44:27 +08:00
1482e83baf Update
[ghstack-poisoned]
2025-08-31 22:45:34 +08:00
cba0df699e Update (base update)
[ghstack-poisoned]
2025-08-31 22:45:34 +08:00
1ae6e765ed Update
[ghstack-poisoned]
2025-08-22 12:41:15 +08:00
2e0c07bc23 Update (base update)
[ghstack-poisoned]
2025-08-22 12:41:15 +08:00
89f701666d Update
[ghstack-poisoned]
2025-08-22 00:42:48 +08:00
62b1439cd3 Update (base update)
[ghstack-poisoned]
2025-08-22 00:42:48 +08:00
080aa9f636 Update
[ghstack-poisoned]
2025-08-18 11:04:54 +08:00
1c22f052b7 Update (base update)
[ghstack-poisoned]
2025-08-18 11:04:54 +08:00
83983fdecf Update
[ghstack-poisoned]
2025-08-17 16:12:12 +08:00
483e00d458 Update (base update)
[ghstack-poisoned]
2025-08-17 11:44:07 +08:00
d5ffbf5d0c Update
[ghstack-poisoned]
2025-08-17 11:44:07 +08:00
633778d2e9 Update (base update)
[ghstack-poisoned]
2025-08-16 19:58:04 +08:00
998751f89d Update
[ghstack-poisoned]
2025-08-16 19:58:04 +08:00
25971bdfa7 Update (base update)
[ghstack-poisoned]
2025-08-16 19:55:41 +08:00
b38cecea2b Update
[ghstack-poisoned]
2025-08-16 19:55:41 +08:00
54900f2e01 Update (base update)
[ghstack-poisoned]
2025-08-16 19:41:10 +08:00
93670f48de Update
[ghstack-poisoned]
2025-08-16 19:41:10 +08:00
a4d28fd42c Update (base update)
[ghstack-poisoned]
2025-08-14 21:24:21 +08:00
d30e643933 Update
[ghstack-poisoned]
2025-08-14 21:24:21 +08:00
b80a340766 Update (base update)
[ghstack-poisoned]
2025-08-14 00:32:59 +08:00
f269224392 Update
[ghstack-poisoned]
2025-08-14 00:32:59 +08:00
8c31b959c1 Update
[ghstack-poisoned]
2025-08-13 17:58:56 +08:00
4566053c39 Update (base update)
[ghstack-poisoned]
2025-08-13 17:12:05 +08:00
d1e914f203 Update
[ghstack-poisoned]
2025-08-13 17:12:05 +08:00
4c87f3c6ae Update (base update)
[ghstack-poisoned]
2025-08-12 23:53:13 +08:00
75c8c6ce29 Update
[ghstack-poisoned]
2025-08-12 23:53:13 +08:00
7827f45f04 Update (base update)
[ghstack-poisoned]
2025-08-12 23:52:30 +08:00
2a4285edd5 Update
[ghstack-poisoned]
2025-08-12 23:52:30 +08:00
ba8bd94b88 Update
[ghstack-poisoned]
2025-08-12 23:38:40 +08:00
649ed29475 Update (base update)
[ghstack-poisoned]
2025-08-12 23:07:34 +08:00
278099c918 Update
[ghstack-poisoned]
2025-08-12 23:07:34 +08:00
dde688d166 Update
[ghstack-poisoned]
2025-08-12 18:40:58 +08:00
35b9d6068a Update (base update)
[ghstack-poisoned]
2025-08-12 18:38:31 +08:00
c310400058 Update
[ghstack-poisoned]
2025-08-12 18:38:31 +08:00
7f7d9052c2 Update (base update)
[ghstack-poisoned]
2025-08-11 21:27:42 +08:00
0516a502a4 Update
[ghstack-poisoned]
2025-08-11 21:27:42 +08:00
e90f476619 Update (base update)
[ghstack-poisoned]
2025-08-10 13:47:28 +08:00
5bfce27905 Update
[ghstack-poisoned]
2025-08-10 13:47:28 +08:00
456440d751 Update (base update)
[ghstack-poisoned]
2025-08-06 23:36:23 +08:00
a3b8ea2db2 Update
[ghstack-poisoned]
2025-08-06 23:36:23 +08:00
3edd5000cb Update (base update)
[ghstack-poisoned]
2025-08-05 13:31:02 +08:00
26f0c1a990 Update
[ghstack-poisoned]
2025-08-05 13:31:02 +08:00
5a41aa8ac5 Update (base update)
[ghstack-poisoned]
2025-07-31 15:57:00 +08:00
b9780390c9 Update
[ghstack-poisoned]
2025-07-31 15:57:00 +08:00
590e74581a Update (base update)
[ghstack-poisoned]
2025-07-28 14:22:43 +08:00
77e8efc95e Update
[ghstack-poisoned]
2025-07-28 14:22:43 +08:00
5824f7ddee Update (base update)
[ghstack-poisoned]
2025-07-28 13:34:15 +08:00
94a275410f Update
[ghstack-poisoned]
2025-07-28 13:34:15 +08:00
0ada67d0b4 Update (base update)
[ghstack-poisoned]
2025-07-27 02:19:37 +08:00
9e3ae7336f Update
[ghstack-poisoned]
2025-07-27 02:19:37 +08:00
d58f7d9828 Update (base update)
[ghstack-poisoned]
2025-07-23 13:49:17 +08:00
cfef0b8449 Update
[ghstack-poisoned]
2025-07-23 13:49:17 +08:00
03917156ef Update
[ghstack-poisoned]
2025-07-22 21:22:52 +08:00
f0c0fab5a2 Update (base update)
[ghstack-poisoned]
2025-07-22 20:30:35 +08:00
2f7c27343e Update
[ghstack-poisoned]
2025-07-22 20:30:35 +08:00
4fdcfc5cab Update
[ghstack-poisoned]
2025-07-22 17:44:51 +08:00
a649544118 Update (base update)
[ghstack-poisoned]
2025-07-22 16:55:23 +08:00
81d9b59544 Update
[ghstack-poisoned]
2025-07-22 16:55:23 +08:00
c6ab1c714b Update
[ghstack-poisoned]
2025-07-21 14:26:45 +08:00
ee85d69013 Update (base update)
[ghstack-poisoned]
2025-07-21 13:16:35 +08:00
142044d133 Update
[ghstack-poisoned]
2025-07-21 13:16:35 +08:00
544f794bba Update (base update)
[ghstack-poisoned]
2025-07-18 13:23:09 +08:00
dc2d2d0424 Update
[ghstack-poisoned]
2025-07-18 13:23:09 +08:00
f5dd6d3c79 Update (base update)
[ghstack-poisoned]
2025-07-18 10:50:13 +08:00
1722b336b1 Update
[ghstack-poisoned]
2025-07-18 10:50:13 +08:00
fa90ace2fc Update
[ghstack-poisoned]
2025-07-18 01:35:52 +08:00
794b722f0a Update (base update)
[ghstack-poisoned]
2025-07-17 20:13:48 +08:00
731ea3f295 Update
[ghstack-poisoned]
2025-07-17 20:13:48 +08:00
b59c209378 Update
[ghstack-poisoned]
2025-07-17 17:40:05 +08:00
0ae2a3337b Update
[ghstack-poisoned]
2025-07-17 15:40:50 +08:00
a8fb783975 Update (base update)
[ghstack-poisoned]
2025-07-17 15:40:49 +08:00
845a8df6b0 Update
[ghstack-poisoned]
2025-07-16 13:22:10 +08:00
f6c8169abc Update (base update)
[ghstack-poisoned]
2025-07-16 13:22:10 +08:00
6976aa5028 Update
[ghstack-poisoned]
2025-07-15 13:05:19 +08:00
c87b3d4539 Update (base update)
[ghstack-poisoned]
2025-07-15 13:05:19 +08:00
8164bf5120 Update
[ghstack-poisoned]
2025-07-13 18:59:56 +08:00
50a9de5827 Update
[ghstack-poisoned]
2025-07-13 18:02:16 +08:00
f78e7cd140 Update
[ghstack-poisoned]
2025-07-13 15:08:01 +08:00
b1fae84e65 Update (base update)
[ghstack-poisoned]
2025-07-13 11:30:49 +08:00
e590c9e4e1 Update
[ghstack-poisoned]
2025-07-13 11:30:49 +08:00
c61bc5474e Update
[ghstack-poisoned]
2025-07-12 20:20:07 +08:00
50634100fb Update
[ghstack-poisoned]
2025-07-12 20:12:12 +08:00
13979ae828 Update
[ghstack-poisoned]
2025-07-12 20:10:06 +08:00
514e0d6ee7 Update (base update)
[ghstack-poisoned]
2025-07-12 19:29:06 +08:00
c1f5ba5843 Update
[ghstack-poisoned]
2025-07-12 19:29:06 +08:00
62b09c2e37 Update
[ghstack-poisoned]
2025-07-11 20:09:38 +08:00
e060ff548b Update
[ghstack-poisoned]
2025-07-11 18:16:50 +08:00
e097bfa49e Update
[ghstack-poisoned]
2025-07-11 17:04:24 +08:00
e51f1b83ff Update
[ghstack-poisoned]
2025-07-11 16:58:51 +08:00
3902856354 Update
[ghstack-poisoned]
2025-07-11 16:44:59 +08:00
e7f979c6e3 Update (base update)
[ghstack-poisoned]
2025-07-11 15:43:34 +08:00
9684ee0276 Update
[ghstack-poisoned]
2025-07-11 15:43:34 +08:00
8953c57db8 Update (base update)
[ghstack-poisoned]
2025-07-11 13:53:30 +08:00
ed7683d973 Update
[ghstack-poisoned]
2025-07-11 13:53:30 +08:00
8 changed files with 53 additions and 24 deletions

View File

@ -365,11 +365,11 @@ pwlf==2.2.1
#Pinned versions: 2.2.1
#test that import: test_sac_estimator.py
# To build PyTorch itself
# To build PyTorch itself (see also pyproject.toml)
pyyaml==6.0.3
pyzstd
setuptools==78.1.1
packaging==23.1
packaging==25.0
six
scons==4.5.2 ; platform_machine == "aarch64"

View File

@ -275,6 +275,10 @@ if [[ "$BUILD_ENVIRONMENT" == *-bazel-* ]]; then
tools/bazel build --config=no-tty "${BAZEL_MEM_LIMIT}" "${BAZEL_CPU_LIMIT}" //...
fi
else
# Install build-system requirements before running setup.py commands
# We need to manage the build environment manually because we are not using build isolation
python -m pip install -r requirements-build.txt
# check that setup.py would fail with bad arguments
echo "The next three invocations are expected to fail with invalid command error messages."
( ! get_exit_code python setup.py bad_argument )

View File

@ -33,6 +33,10 @@ if which sccache > /dev/null; then
export PATH="${tmp_dir}:$PATH"
fi
# Install build-system requirements before running setup.py commands
# We need to manage the build environment manually because we are not using build isolation
python -m pip install -r requirements-build.txt
print_cmake_info
if [[ ${BUILD_ENVIRONMENT} == *"distributed"* ]]; then
# Needed for inductor benchmarks, as lots of HF networks make `torch.distribtued` calls

View File

@ -16,17 +16,32 @@ popd
# enable debug asserts in serialization
export TORCH_SERIALIZATION_DEBUG=1
__TEST_PYTHON_HAS_SETUP='' # marker for `setup_test_python`
setup_test_python() {
if [[ -n "${__TEST_PYTHON_HAS_SETUP}" ]]; then
# Already set up, skip.
return
fi
# The CircleCI worker hostname doesn't resolve to an address.
# This environment variable makes ProcessGroupGloo default to
# using the address associated with the loopback interface.
export GLOO_SOCKET_IFNAME=lo0
echo "Ninja version: $(ninja --version)"
echo "Python version: $(which python) ($(python --version))"
python -m pip install -qr requirements-build.txt
echo "CMake version: $(cmake --version)"
echo "Ninja version: $(ninja --version)"
echo "Python packages:"
python -m pip freeze
# Set the limit on open file handles to 16384
# might help with intermittent compiler test failures
ulimit -n 16384
__TEST_PYTHON_HAS_SETUP=1 # marker
}
test_python_all() {
@ -186,6 +201,8 @@ checkout_install_torchbench() {
}
torchbench_setup_macos() {
setup_test_python
git clone --recursive https://github.com/pytorch/vision torchvision
git clone --recursive https://github.com/pytorch/audio torchaudio
brew install jpeg-turbo libpng

View File

@ -129,6 +129,12 @@ if "%USE_CUDA%"=="1" (
set CMAKE_CUDA_COMPILER_LAUNCHER=%TMP_DIR%/bin/randomtemp.exe;%TMP_DIR%\bin\sccache.exe
)
:: Install build-system requirements before running setup.py commands
:: We need to manage the build environment manually because we are not using build isolation
python -m pip install -r requirements-build.txt
if errorlevel 1 goto fail
if not errorlevel 0 goto fail
:: Print all existing environment variable for debugging
set

View File

@ -7,18 +7,20 @@ call "internal\install_python.bat"
%PYTHON_EXEC% --version
set "PATH=%CD%\Python\Lib\site-packages\cmake\data\bin;%CD%\Python\Scripts;%CD%\Python;%PATH%"
if "%DESIRED_PYTHON%" == "3.14t" %PYTHON_EXEC% -m pip install numpy==2.3.2 cmake
if "%DESIRED_PYTHON%" == "3.14" %PYTHON_EXEC% -m pip install numpy==2.3.2 cmake
if "%DESIRED_PYTHON%" == "3.13t" %PYTHON_EXEC% -m pip install numpy==2.2.1 cmake
if "%DESIRED_PYTHON%" == "3.13" %PYTHON_EXEC% -m pip install numpy==2.1.2 cmake
if "%DESIRED_PYTHON%" == "3.12" %PYTHON_EXEC% -m pip install numpy==2.0.2 cmake
if "%DESIRED_PYTHON%" == "3.11" %PYTHON_EXEC% -m pip install numpy==2.0.2 cmake
if "%DESIRED_PYTHON%" == "3.10" %PYTHON_EXEC% -m pip install numpy==2.0.2 cmake
if "%DESIRED_PYTHON%" == "3.9" %PYTHON_EXEC% -m pip install numpy==2.0.2 cmake
%PYTHON_EXEC% -m pip install pyyaml
set NUMPY_PINNED_VERSION=""
if "%DESIRED_PYTHON%" == "3.14t" set NUMPY_PINNED_VERSION="==2.3.2"
if "%DESIRED_PYTHON%" == "3.14" set NUMPY_PINNED_VERSION="==2.3.2"
if "%DESIRED_PYTHON%" == "3.13t" set NUMPY_PINNED_VERSION="==2.2.1"
if "%DESIRED_PYTHON%" == "3.13" set NUMPY_PINNED_VERSION="==2.1.2"
if "%DESIRED_PYTHON%" == "3.12" set NUMPY_PINNED_VERSION="==2.0.2"
if "%DESIRED_PYTHON%" == "3.11" set NUMPY_PINNED_VERSION="==2.0.2"
if "%DESIRED_PYTHON%" == "3.10" set NUMPY_PINNED_VERSION="==2.0.2"
if "%DESIRED_PYTHON%" == "3.9" set NUMPY_PINNED_VERSION="==2.0.2"
%PYTHON_EXEC% -m pip install "numpy%NUMPY_PINNED_VERSION%" -r "%PYTORCH_ROOT%\requirements-build.txt"
%PYTHON_EXEC% -m pip install mkl-include mkl-static
%PYTHON_EXEC% -m pip install boto3 requests ninja typing_extensions setuptools==72.1.0
%PYTHON_EXEC% -m pip install boto3
where cmake.exe

View File

@ -2,13 +2,13 @@
[build-system]
requires = [
# 70.1.0: min version for integrated bdist_wheel command from wheel package
# 77.0.0: min version for SPDX expression support for project.license
"setuptools>=70.1.0",
"setuptools>=77.0.0",
"cmake>=3.27",
"ninja",
"numpy",
"packaging",
# 24.2: min version required by setuptools for SPDX expression support
"packaging>=24.2",
"pyyaml",
"requests",
"six", # dependency chain: NNPACK -> PeachPy -> six
@ -54,11 +54,7 @@ name = "torch"
description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
readme = "README.md"
requires-python = ">=3.10"
# TODO: change to `license = "BSD-3-Clause"` and enable PEP 639 after pinning setuptools>=77
# FIXME: As of 2025.06.20, it is hard to ensure the minimum version of setuptools in our CI environment.
# TOML-table-based license deprecated in setuptools>=77, and the deprecation warning will be changed
# to an error on 2026.02.18. See also: https://github.com/pypa/setuptools/issues/4903
license = { text = "BSD-3-Clause" }
license = "BSD-3-Clause"
authors = [{ name = "PyTorch Team", email = "packages@pytorch.org" }]
keywords = ["pytorch", "machine learning"]
classifiers = [

View File

@ -1,9 +1,9 @@
# Build System requirements
setuptools>=70.1.0
# Build System requirements (see also: pyproject.toml)
setuptools>=77.0.0
cmake>=3.27
ninja
numpy
packaging
packaging>=24.2
pyyaml
requests
six # dependency chain: NNPACK -> PeachPy -> six