|
| 1 | +# Release Notes: torchsparsegradutils 0.2.2 |
| 2 | + |
| 3 | +Patch release focused on JOSS review readiness, deterministic testing, CUDA test separation, packaging metadata, and refreshed PyTorch compatibility validation. |
| 4 | + |
| 5 | +## Highlights |
| 6 | + |
| 7 | +- Default pytest is now suitable for reviewers and CI on CPU or CUDA-visible machines. |
| 8 | +- CUDA memory/performance/OOM experiments are preserved but moved behind an explicit manual marker. |
| 9 | +- Stochastic tests are deterministic by default. |
| 10 | +- The `all` optional dependency extra is fixed. |
| 11 | +- CI now tests PyTorch `2.5.0`, `2.11.0`, and nightly. |
| 12 | +- README badge updated to `Tested 2.5 / 2.11 / nightly`. |
| 13 | + |
| 14 | +## Testing and CI |
| 15 | + |
| 16 | +- Added global deterministic test seeding for: |
| 17 | + - Python `random` |
| 18 | + - NumPy |
| 19 | + - PyTorch CPU RNG |
| 20 | + - PyTorch CUDA RNGs |
| 21 | +- Added seed opt-out support: |
| 22 | + - `TSGU_UNLOCK_SEED=true` |
| 23 | + - `UNLOCK_SEED=true` |
| 24 | +- Added `--run-manual-cuda` pytest option. |
| 25 | +- Added `manual_cuda` marker for CUDA memory/performance/OOM experiments. |
| 26 | +- Added shared test constants and dtype-aware tolerances in `torchsparsegradutils/tests/test_config.py`. |
| 27 | +- Removed flaky rerun markers after stabilizing seeding and tolerance behavior. |
| 28 | +- Marked pairwise sparse MVN integration tests as manual CUDA. |
| 29 | +- Marked sparse matrix multiplication memory advantage and memory stability tests as manual CUDA. |
| 30 | +- Kept small CUDA functional tests in the default suite when CUDA is available. |
| 31 | +- Updated GitHub Actions stable PyTorch matrix: |
| 32 | + - `2.5.0` |
| 33 | + - `2.11.0` |
| 34 | +- Kept nightly CPU CI on Python `3.12` with `continue-on-error`. |
| 35 | + |
| 36 | +## Packaging |
| 37 | + |
| 38 | +- Bumped version from `0.2.1` to `0.2.2`. |
| 39 | +- Fixed `torchsparsegradutils[all]`. |
| 40 | +- The `all` extra now expands directly to: |
| 41 | + - `cupy-cuda12x>=13.0` |
| 42 | + - `jax[cuda12]` |
| 43 | +- Wheel metadata now includes `Provides-Extra: all`. |
| 44 | + |
| 45 | +## Documentation |
| 46 | + |
| 47 | +- Added reviewer-oriented installation and test commands: |
| 48 | + |
| 49 | +```bash |
| 50 | +uv venv --python 3.12 --seed --managed-python |
| 51 | +pip install "torchsparsegradutils[all]==0.2.2" |
| 52 | +python -m pytest |
| 53 | +``` |
| 54 | + |
| 55 | +- Documented manual CUDA validation command: |
| 56 | + |
| 57 | +```bash |
| 58 | +python -m pytest --run-manual-cuda -m manual_cuda -s |
| 59 | +``` |
| 60 | + |
| 61 | +- Updated README badge to `Tested 2.5 / 2.11 / nightly`. |
| 62 | +- Updated docs version metadata to `0.2.2`. |
| 63 | + |
| 64 | +## Changes Since `v0.2.1` |
| 65 | + |
| 66 | +In addition to this release-readiness work, the current release includes the post-`v0.2.1` mainline changes: |
| 67 | + |
| 68 | +- JOSS paper revisions and rebuilt paper artifacts. |
| 69 | +- Installation and benchmark documentation updates from reviewer feedback. |
| 70 | +- More robust PyTorch version comparison using `packaging.version`. |
| 71 | +- Sparse matrix multiplication reshape optimization. |
| 72 | +- Sparse triangular solve reshape optimization. |
| 73 | +- `sparse_eye` optimization using the `is_coalesced` flag instead of forcing `.coalesce()`. |
| 74 | +- CuPy binding and sparse solve updates from JOSS review work. |
| 75 | + |
| 76 | +## Verification |
| 77 | + |
| 78 | +Verified in a CUDA-visible workspace: |
| 79 | + |
| 80 | +```bash |
| 81 | +black --check . |
| 82 | +isort --check-only --diff . |
| 83 | +flake8 . --count --show-source --statistics |
| 84 | +python -m pytest -q --ignore=torchsparsegradutils/tests/test_doctests.py |
| 85 | +python -m pytest -q -m manual_cuda --collect-only |
| 86 | +python -m build --wheel |
| 87 | +``` |
| 88 | + |
| 89 | +Observed results: |
| 90 | + |
| 91 | +- Default pytest excluding doctests: `4289 passed, 822 skipped, 324 warnings` |
| 92 | +- Known flaky target sweep: `242 passed, 30 warnings` |
| 93 | +- Manual CUDA collection: `676/5128 tests collected`, `4452 deselected` |
| 94 | +- Wheel build: passed |
| 95 | +- Wheel metadata includes `Provides-Extra: all` |
| 96 | + |
| 97 | +## Upgrade Notes |
| 98 | + |
| 99 | +After publication: |
| 100 | + |
| 101 | +```bash |
| 102 | +pip install --upgrade "torchsparsegradutils[all]==0.2.2" |
| 103 | +``` |
| 104 | + |
| 105 | +Users who do not need CuPy/JAX support can continue installing the base package: |
| 106 | + |
| 107 | +```bash |
| 108 | +pip install --upgrade torchsparsegradutils==0.2.2 |
| 109 | +``` |
| 110 | + |
| 111 | +The CuPy extra currently targets CUDA 12 via `cupy-cuda12x`. Users on a different CUDA runtime should install the appropriate CuPy package manually. |
0 commit comments