Skip to content

[pull] master from deepmodeling:master - #301

Merged
pull[bot] merged 1 commit into
ishandutta2007:masterfrom
deepmodeling:master
Aug 1, 2026
Merged

[pull] master from deepmodeling:master#301
pull[bot] merged 1 commit into
ishandutta2007:masterfrom
deepmodeling:master

Conversation

@pull

@pull pull Bot commented Aug 1, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

## Summary
- add Hessian prefactors directly to dpmodel `EnergyLoss` instead of
introducing a separate loss class
- add Hessian label requirements, loss/RMSE reporting, and serialization
fields
- enable Hessian outputs in the JAX trainer when the Hessian loss is
configured

## Tests
- `source venv/bin/activate && pytest
source/tests/common/dpmodel/test_loss_ener.py -q`
- `source venv/bin/activate && ruff check .`
- `source venv/bin/activate && ruff format .`

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Optional energy Hessian-loss supervision with configurable scheduled
weighting and Hessian RMSE/MAE reporting.
* Trainer and model now automatically activate Hessian outputs based on
the loss/data contract, including Hessian tensor creation for
mixed/padded batches.
* **Bug Fixes**
* Hessian activation is idempotent to prevent repeated reconfiguration.
* Clearer runtime validation for unsupported Hessian + huber
combinations.
* **Tests**
* Expanded Hessian loss, serialization (v4→v5 backward compatible),
padding/ghost handling, and MAE/L2 dispatch coverage across NumPy and
PyTorch.
* **Documentation**
* Updated Hessian training docs for JAX and clarified `ener`/legacy
`ener_hess` alias behavior.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: njzjz-bot <njzjz.bot@gmail.com>
Co-authored-by: njzjz-bot <njzjz-bot@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@pull pull Bot locked and limited conversation to collaborators Aug 1, 2026
@pull pull Bot added the ⤵️ pull label Aug 1, 2026
@pull
pull Bot merged commit cc689a7 into ishandutta2007:master Aug 1, 2026
33 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant