ho22joshua Claude Opus 5.5 commited on
Commit
3f1977c
·
1 Parent(s): 6285343

feat: upgrade to Python 3.14 and PyTorch 2.14; add torch.compile and bfloat16

Browse files

- Python 3.14, torch 2.14.1 (cu130 wheels), NumPy 2; frozen parity
references pass unchanged
- trainer.compile (dynamic-shape torch.compile) and trainer.precision
(bfloat16 autocast; graph sums, loss, optimizer in float32)
- CUDA graph steps use device-tensor learning rates, so one capture per
bucket follows the schedule; checkpoints store portable optimizer state
- trainer=paper_fast: compile + CUDA graphs + bfloat16, 5.9 vs 19.2 ms per
GamGam batch for float32 eager on an A100
- loader workers fork explicitly (Python 3.14 defaults to forkserver);
ONNX export keeps the TorchScript exporter

Correction to 5b73bcb: the pre-change float32 eager step was 21.3 ms per
batch (not ~29 ms; that profile used unshuffled ttH-only batches), so the
default path improved by about 1.2x and the large gains are opt-in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

22 files changed +891 -328
Files changed (22)
.python-version+1-1
CHANGELOG.md+10-2
README_PROJECT.md+2-1
docs/configuration.md+15-8
docs/migration.md+8
docs/performance.md+38-3
docs/quickstart.md+4-3
pyproject.toml+6-6
src/gnn4colliders/config/application.py+1-1
src/gnn4colliders/config/factories.py+2
src/gnn4colliders/configs/trainer/default.yaml+4
src/gnn4colliders/configs/trainer/paper.yaml+2
src/gnn4colliders/configs/trainer/paper_fast.yaml+7-3
src/gnn4colliders/data/loader.py+4
src/gnn4colliders/export/onnx.py+3
src/gnn4colliders/models/root_gnn/edge_network.py+7-4
src/gnn4colliders/training/checkpoint.py+16-1
src/gnn4colliders/training/cuda_graphs.py+28-18
src/gnn4colliders/training/trainer.py+38-3
tests/fixtures/root_gnn_dgl_reference/generate.py+1-1
tests/unit/training/test_lifecycle_policies.py+59
uv.lock
The diff for this file is too large to render. See raw diff