Skip to content

Support Python 3.14 and PyTorch 2.9 #406

@ngoldbaum

Description

@ngoldbaum

FWIW, everything seems to work correctly on my Mac using free-threaded 3.14.0 when I build pytorch-scatter from source:

goldbaum at Nathans-MBP in ~/Documents/pytorch_sparse on master
± pytest
============================= test session starts ==============================
platform darwin -- Python 3.14.0, pytest-7.4.0, pluggy-1.6.0
rootdir: /Users/goldbaum/Documents/pytorch_sparse
configfile: setup.cfg
plugins: hypothesis-6.137.1, anyio-4.11.0, scipy_doctest-2.0.1, xdist-3.8.0, timeout-2.4.0, cov-4.1.0, run-parallel-0.7.0
collected 151 items
Collected 0 items to run in parallel

test/test_add.py ......
test/test_cat.py .
test/test_coalesce.py ...
test/test_convert.py ..
test/test_diag.py ........................
test/test_ego_sample.py .
test/test_eye.py ......
test/test_matmul.py ........................
test/test_metis.py ss
test/test_mul.py ............
test/test_neighbor_sample.py ..
test/test_overload.py .
test/test_permute.py .
test/test_saint.py .
test/test_sample.py ..
test/test_spmm.py ......
test/test_spspmm.py ........
test/test_storage.py ...............................
test/test_tensor.py ......
test/test_transpose.py ............

=============================== warnings summary ===============================
test/test_matmul.py::test_spspmm[dtype1-device1]
  /Users/goldbaum/.pyenv/versions/3.14.0t/lib/python3.14t/site-packages/torch_sparse/matmul.py:97: UserWarning: Sparse CSR tensor support is in beta state. If you miss a functionality in the sparse tensor support, please submit a feature request to https://github.com/pytorch/pytorch/issues. (Triggered internally at /Users/runner/work/pytorch/pytorch/pytorch/aten/src/ATen/SparseCsrTensorImpl.cpp:55.)
    C = torch.sparse.mm(A, B)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================== 149 passed, 2 skipped, 1 warning in 1.95s ===================

goldbaum at Nathans-MBP in ~/Documents/pytorch_sparse on master
± python -VV
Python 3.14.0 free-threading build (main, Oct  8 2025, 10:32:29) [Clang 17.0.0 (clang-1700.3.19.1)]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions