Skip to content

pyg-lib 0.3.0: PyTorch 2.1 support, METIS partitioning, neighbor sampler improvements

Compare
Choose a tag to compare
@rusty1s rusty1s released this 11 Oct 12:04
· 90 commits to master since this release
11840ac

pyg-lib==0.3.0 brings PyTorch 2.1 support, METIS partioning and further neighbor sampling improvements to PyG πŸŽ‰πŸŽ‰πŸŽ‰

Highlights

PyTorch 2.1 Support

pyg-lib==0.3.0 is fully compatible with PyTorch 2.1 (#256). To install for PyTorch 2.1, simply run

pip install pyg-lib -f https://data.pyg.org/whl/torch-2.1.0+${CUDA}.html

where ${CUDA} should be replaced by either cpu, cu118 or cu121

The following combinations are supported:

PyTorch 2.1 cpu cu118 cu121
Linux βœ… βœ… βœ…
macOS βœ…

Older PyTorch versions like PyTorch 1.12, 1.13 and 2.0.0 are still supported, and can be installed as described in our README.md. PyTorch 1.11 support has been dropped.

METIS partioning

pyg-lib==0.3.0 enables METIS partioning by introducing pyg_lib.partition (#229).

from pyg_lib.partition import metis

cluster = metis(rowptr, col, num_partitions)

Neighbor Sampling Improvements

pyg-lib==0.3.0 brings various improvements to our neighbor sampling routine:

Additional Features

  • Added dispatch for XPU device in index_sort (#243)
  • Updated cutlass version for speed boosts in segment_matmul and grouped_matmul (#235)

Bugfixes

  • Fixed vector-based mapping issue in Mapping (#244)
  • Fixed performance issues reported by Coverity Tool (#240)
  • Fixed TorchScript support in grouped_matmul (#220)

New Contributors

Full Changelog: 0.2.0...0.3.0