Skip to content

Remove SCF implicit nonpure mode (memory leak) - #272

Merged
marvinfriede merged 17 commits into
mainfrom
scf-implicit-rewrite
Oct 5, 2026
Merged

marvinfriede merged 17 commits into
mainfrom
scf-implicit-rewrite

Conversation

@marvinfriede

Copy link
Copy Markdown
Member

No description provided.

marvinfriede and others added 12 commits October 5, 2026 12:32
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…xfail

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Forward solve detached; backward applies the implicit function theorem with an
Anderson adjoint (dense fallback) that is itself a differentiable Function
(double VJP). Parameters are the autograd leaves behind the stateless map.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… from the SCF

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…e; example docstring

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…try guard, docs, tests)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ct xfail for a borderline full cell

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…p implementation, option warnings, deprecated aliases, formatting)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ut grad, map keeps only inputs, method=None, single adjoint tolerance default); drop CHANGELOG.md, limits in docstrings

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…es, fenergy vs full, Fermi derivative modes, KNOWN_FAILURES from measured grid

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…t of the implicit SCF map, drop removed mode from charge derivative test

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comment thread test/test_scf/test_fixed_point.py Fixed
Comment thread test/test_scf/test_fixed_point.py Fixed
Comment thread test/test_scf/test_fixed_point.py Fixed
Comment thread test/test_scf/test_fixed_point.py Fixed
Comment thread test/test_scf/test_fixed_point.py Fixed
Comment thread test/test_scf/test_fixed_point.py Fixed
Comment thread test/test_scf/test_fixed_point.py Fixed
Comment thread test/test_scf/test_fixed_point.py Fixed
Comment thread test/test_scf/test_fixed_point.py Fixed
Comment thread test/test_scf/test_fixed_point.py Fixed
marvinfriede and others added 5 commits October 5, 2026 13:22
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…it); borderline full q2 cell as known failure

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…es on older torch)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…functorch wrappers in torch 2.4)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…floor)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@marvinfriede
marvinfriede merged commit 4d038a0 into main Oct 5, 2026
38 of 40 checks passed
@marvinfriede
marvinfriede deleted the scf-implicit-rewrite branch October 5, 2026 14:56
@codecov

codecov Bot commented Oct 5, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.43974% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.38%. Comparing base (a132ec8) to head (9d40863).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
src/dxtb/_src/scf/base.py 69.56% 5 Missing and 2 partials ⚠️
src/dxtb/_src/scf/implicit/fixed_point.py 97.27% 3 Missing and 3 partials ⚠️
src/dxtb/_src/scf/implicit/base.py 96.15% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #272      +/-   ##
==========================================
+ Coverage   88.18%   88.38%   +0.19%     
==========================================
  Files         216      215       -1     
  Lines       10671    10785     +114     
  Branches     1241     1241              
==========================================
+ Hits         9410     9532     +122     
  Misses        902      902              
+ Partials      359      351       -8     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

marvinfriede pushed a commit to marvinfriede/dxtb that referenced this pull request Oct 6, 2026
The implicit SCF mode is correct with autograd after grimme-lab#272 but does not run
under torch.func transforms; the derivative with respect to refocc is
wrong since grimme-lab#271; the batched eigensolver stall is fixed for the unrolled
SCF. Report sections 6 (performance), 8 (inventory) and the appendix
tables are still to be refreshed. The workload script now saves after
every workload.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4doYYUUPZf74yA4gR3NQh

This branch was successfully deployed

1 active deployment
codecov — 9d408634 Deployed Oct 5, 2026 by marvinfriede via Upload to Codecov #319
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants