Repository navigation
v2.4.0
What's Changed
Here's a summary of the torchgfn changes heading into v2.4.0:
Major Features
- Relative Trajectory Balance (#457, @josephdviviano) — new loss objective added to the library.
- Conditional GFlowNets refactor (#431, @hyeok9855) — reworked how conditioning works end-to-end, including renaming
conditioning→conditions(#430) and placing conditions withinStates(#445). torch.compileutility & benchmark harness (#443, #460, #481, @josephdviviano) — deterministic-mode toggle (#444), debug-mode fast paths for states/actions (#449), and a benchmark suite for tracking performance.- Local replay buffer accumulation (#446, @chirayuharyan).
- Optimized loss computation (#451, @josephdviviano) — restructured the GFlowNet loss path for efficiency.
Minor Features & Fixes
- Detailed Balance refactor (#432) and validation_info cleanup (#434) by @hyeok9855.
- Discrete mask caching (#465), score-dict accumulation (#469), and validate_environment flag (#466) by @younik.
- Box environment simplification (#480), log-prob bugfix (#484), simplified uniform module (#485) by @josephdviviano.
- L1 distance fix (mean→sum, #488), MLP noisy-layers bound tightening (#482), OUTPUT_DIR constant extraction (#459) by @Copilot.
- Dummy/exit actions for graph building (#442, #450), device handling tweaks (#437, #439) by @josephdviviano.
- Assertion moved out of hot path into tests (#438, @ali-m07).
- Logging uniformization (#462, #464, #490), print removal (#462) by @younik.
- Coverage reporting and Codecov CI integration (#452–#458, @josephdviviano + @Copilot).
- Pre-commit as separate CI job, Python version bump (#474, @younik).
- Tutorial/test
n_hidden_layersbump to match refactored MLP semantics (#486). - Heatmap and plotting helpers (#477 @younik, #463 @josephdviviano).
Contributors
- @josephdviviano — broadest footprint: compile/benchmark infra, RTB loss, loss optimization, box env, device handling, coverage, docs.
- @younik — logging, mask caching, CI.
- @hyeok9855 — conditional GFlowNet redesign, DB refactor, container tests, discrete env fixes.
- @chirayuharyan — replay buffer accumulation.
- @ali-m07 — assertion refactor.
- @Copilot — automated fixes (L1 distance, MLP bounds, codecov config, OUTPUT_DIR).
Full Changelog: v2.3.1...v2.4.0