From fb2e39e0203edf4d727ea00685e7781327c633bc Mon Sep 17 00:00:00 2001 From: Marcel Langer Date: Fri, 23 Jan 2026 11:25:16 +0100 Subject: [PATCH 1/2] Add support for torch 2.10 Co-Authored-By: Claude Opus 4.5 --- .github/workflows/build-wheels.yml | 3 ++- .github/workflows/torch-tests.yml | 8 ++++---- featomic-torch/CHANGELOG.md | 4 ++++ featomic-torch/tests/utils/mod.rs | 2 +- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-wheels.yml b/.github/workflows/build-wheels.yml index 42340aa70..7e42bd2d5 100644 --- a/.github/workflows/build-wheels.yml +++ b/.github/workflows/build-wheels.yml @@ -99,7 +99,7 @@ jobs: name: ${{ matrix.name }} (torch v${{ matrix.torch-version }}) strategy: matrix: - torch-version: ['2.3', '2.4', '2.5', '2.6', '2.7', '2.8', '2.9'] + torch-version: ['2.3', '2.4', '2.5', '2.6', '2.7', '2.8', '2.9', '2.10'] arch: ['arm64', 'x86_64'] os: ['ubuntu-24.04', 'ubuntu-24.04-arm', 'macos-15', 'windows-2022'] exclude: @@ -138,6 +138,7 @@ jobs: - {torch-version: '2.7', cibw-python: 'cp312-*'} - {torch-version: '2.8', cibw-python: 'cp312-*'} - {torch-version: '2.9', cibw-python: 'cp312-*'} + - {torch-version: '2.10', cibw-python: 'cp313-*'} steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/torch-tests.yml b/.github/workflows/torch-tests.yml index 4b066b590..1a395bd52 100644 --- a/.github/workflows/torch-tests.yml +++ b/.github/workflows/torch-tests.yml @@ -24,7 +24,7 @@ jobs: cargo-test-flags: --release - os: ubuntu-24.04 - torch-version: "2.9" + torch-version: "2.10" python-version: "3.13" cargo-test-flags: --release do-valgrind: true @@ -33,18 +33,18 @@ jobs: - os: ubuntu-24.04 container: ubuntu:22.04 extra-name: ", cmake 3.22" - torch-version: "2.9" + torch-version: "2.10" python-version: "3.13" cargo-test-flags: "" cxx-flags: -fsanitize=undefined -fsanitize=address -fno-omit-frame-pointer -g - os: macos-15 - torch-version: "2.9" + torch-version: "2.10" python-version: "3.13" cargo-test-flags: --release - os: windows-2022 - torch-version: "2.9" + torch-version: "2.10" python-version: "3.13" cargo-test-flags: --release diff --git a/featomic-torch/CHANGELOG.md b/featomic-torch/CHANGELOG.md index f2478cac6..5dd8da3ed 100644 --- a/featomic-torch/CHANGELOG.md +++ b/featomic-torch/CHANGELOG.md @@ -17,6 +17,10 @@ a changelog](https://keepachangelog.com/en/1.1.0/) format. This project follows ### Removed --> +### Changed + +- Added support for torch v2.10 + ## [Version 0.7.2](https://github.com/metatensor/featomic/releases/tag/featomic-torch-v0.7.2) - 2025-12-04 - We now require Python >= 3.10 diff --git a/featomic-torch/tests/utils/mod.rs b/featomic-torch/tests/utils/mod.rs index 62d21840a..3c662b3a2 100644 --- a/featomic-torch/tests/utils/mod.rs +++ b/featomic-torch/tests/utils/mod.rs @@ -84,7 +84,7 @@ pub fn setup_pytorch(build_dir: PathBuf) -> PathBuf { .expect("failed to run python"); assert!(status.success(), "failed to run `python -m pip install --upgrade pip`"); - let torch_version = std::env::var("FEATOMIC_TORCH_TEST_VERSION").unwrap_or("2.9.*".into()); + let torch_version = std::env::var("FEATOMIC_TORCH_TEST_VERSION").unwrap_or("2.10.*".into()); let status = Command::new(&python) .arg("-m") .arg("pip") From ab4a7746ee7f9effaaaa50cb25063e6f855f4344 Mon Sep 17 00:00:00 2001 From: Marcel Langer Date: Wed, 28 Jan 2026 15:51:18 +0100 Subject: [PATCH 2/2] Trigger CI