-
Notifications
You must be signed in to change notification settings - Fork 40
Remove unbatched code #206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
0acd3f3
clean: move pair fn logic into batched model code
CompRhys f4fa0a9
clean: begin to remove unbatched scripts
CompRhys 9430e44
clean: update the dynamics scripts, remove old code, refactor the int…
CompRhys 7b5413e
fix: all unit tests run
CompRhys 2650dc7
fix: remove circular import
CompRhys 8e2ebd9
wip: address more issues with removing unbatched code
CompRhys 31532cb
wip: another attempt to fix examples
CompRhys 9289748
fix: mace needs the shifts? we should add a unit test that needs them…
CompRhys fcb0d37
metatensor models have been renamed to metatomic models (#205)
Luthaf b326974
Fix discrepancies between `FIRE` optimisations in `ASE` and `torch-si…
t-reents 68df187
bump pre-commit hooks and fix new errors
janosh e2330c0
fix MACE examples not using ts.io state conversion utilities
janosh ea41be2
fix unused shifts_list not torch.cat()-ed in mace.py
janosh f080b82
fix examples/scripts/3_Dynamics/3.9_MACE_NVT_staggered_stress.py usin…
janosh a753513
Merge branch 'main' into remove-unbatched
janosh f1f7b79
just calc total energy manually in nvt_langevin_invariant in torch_si…
janosh 4d388e9
fix calculate_momenta() in npt_nose_hoover_init
janosh 474ffa8
fix unpack of n_particles, dim = state.positions.shape
janosh 42b1de3
fix missing external_pressure in npt_nose_hoover call in 3.8_MACE_NPT…
janosh 2ffa79b
update cell_position in npt_nose_hoover before downstream usage
janosh c33794f
refactor (no bug fixes)
janosh 31ca9ba
fix npt_nose_hoover transposing cell that's already in column-vector …
janosh c6cbef5
feat: Add batching support to NPT Nose-Hoover integrator
janosh 66ebc89
fix: Remove cell dimension squeezing in NVT Nose-Hoover integrator
janosh 4859c8d
fix: Handle scalar kT and batched stress tensors in NPT Nose-Hoover
janosh 74cb780
fix: Handle batched cell tensors in get_fractional_coordinates
janosh 667c4c0
replace .transpose(-2, -1) with .mT everywhere
janosh c09dc17
fix nvt + npt integrators: ensure consistent batch dimensions in kine…
janosh e7ffa3b
fix transforms.py: prevent silent data corruption in get_fractional_c…
janosh 32397a5
fix nvt_langevin: handle None gamma parameter correctly
janosh a8de2e8
fix npt: missing PBC check in Nose-Hoover position update
janosh afda528
Initialize cur_deform_grad to prevent UnboundLocalError
janosh 1f64641
fix nvt: compute degrees of freedom per batch in Nose-Hoover init
janosh 334de8f
fix /5.1_a2c_silicon_batched.py: restore single-batch cell tensors su…
janosh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
|
||
# /// script | ||
# dependencies = [ | ||
# "fairchem-core", | ||
# "fairchem-core==1.10.0", | ||
# ] | ||
# /// | ||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Use a version range for the
fairchem-core
dependencyPinning to
1.10.0
ensures reproducibility, but an exact version can prevent non-critical patch updates. Consider loosening to a minor range:Also, verify that all example scripts use a consistent
fairchem-core
version:🏁 Script executed:
rg -n "fairchem-core" examples/
Length of output: 112
Loosen fairchem-core version pin
Using an exact version can block non-critical patch updates. Update to a minor-range spec that allows patch releases while staying within 1.x:
• File:
examples/scripts/1_Introduction/1.3_Fairchem.py
(line 6)No other references to
fairchem-core
were found inexamples/
, so this change keeps all examples consistent.🤖 Prompt for AI Agents