-
Notifications
You must be signed in to change notification settings - Fork 562
Diffusion preconditioners refactor #1317
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
Open
CharlelieLrt
wants to merge
239
commits into
NVIDIA:main
Choose a base branch
from
CharlelieLrt:diffusion-preconditioners-refactor
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 225 commits
Commits
Show all changes
239 commits
Select commit
Hold shift + click to select a range
46d2880
Move filesystems and version_check to core
coreyjadams c6d04ad
Fix version check tests
coreyjadams 6f36f03
Reorganize distributed, domain_parallel, and begin nn / utils cleanup.
coreyjadams 7824091
Move modules and meta to core. Move registry to core.
coreyjadams f753573
Add missing init files
coreyjadams 2ef835e
Update build system and specify some deps.
coreyjadams 1603067
Merge branch 'main' into refactor
coreyjadams 1e8df52
Reorganize tests.
coreyjadams 2e1195c
Update init files
coreyjadams a698685
Clean up neighbor tools.
coreyjadams 258d988
Update testing
coreyjadams 0638b97
Fix compat tests
coreyjadams b6327cb
Move core model tests to tests/core/
coreyjadams 3ce049a
Add import lint config
coreyjadams 95fa450
Relocate layers
coreyjadams ba6813d
Move graphcast utils into model directory
coreyjadams 3f10463
Relocating util functionalities.
coreyjadams 339b484
Further clean up and organize tests.
coreyjadams 18df402
Merge branch 'NVIDIA:main' into refactor
coreyjadams d6946d9
utils tests are passing now
coreyjadams 66f8d15
Cleaning up distributed tests
coreyjadams 2ee76db
Patching tests working again in nn
coreyjadams 33d525d
Fix sdf test
coreyjadams a06ad0a
Fix zenith angle tests
coreyjadams 4c845cc
Some organization of tests. Checkpoints is moved into utils.
coreyjadams 3bb64f4
Remove launch.utils and launch.config. Checkpointing is moved to
coreyjadams 4aa332e
Most nn tests are passing
coreyjadams 45686cc
Further cleanup. Getting there!
coreyjadams bbc54f6
Remove constants file
coreyjadams 8453fea
Add import linting to pre-commit.
coreyjadams 7ff2a2a
Refactor (#1208)
coreyjadams f850488
Merge branch 'main' into refactor
coreyjadams 1c5f91c
Merge branch 'main' into v2.0-refactor
coreyjadams 21343f5
Unmigrate the insolation utils (#1211)
pzharrington 337c91e
Merge branch 'v2.0-refactor' into refactor
coreyjadams 4583c42
Move gnn layers and start to fix several model tests.
coreyjadams e326d4a
AFNO is now passing.
coreyjadams b95097d
Rnn models passing.
coreyjadams d8bc6f9
Fix improt
coreyjadams 314f1b2
Healpix tests are working
coreyjadams 9c7d287
Domino and unet working
coreyjadams 0012209
Refactor (#1216)
coreyjadams 32e1dce
Update activations path in dlwp tests (#1217)
pzharrington afa903f
Updating to address some test issues
coreyjadams 91ceb0a
Merge branch 'v2.0-refactor' into refactor
coreyjadams f9130a6
Merge branch 'main' into v2.0-refactor
coreyjadams ceb1eb8
Merge branch 'main' into refactor
coreyjadams 0592d80
MGN tests passing again
coreyjadams 857b3db
Most graphcast tests passing again
coreyjadams f89a2fb
Move nd conv layers.
coreyjadams 409200d
update fengwu and pangu
coreyjadams 14b51fd
Update sfno and pix2pix test
coreyjadams 27fd304
update tests for figconvnet, swinrnn, superresnet
coreyjadams 0d22d11
updating more models to pass
coreyjadams 60ba0ce
Update distributed tests, now passing.
coreyjadams 7ec2251
Domain parallel tests now passing.
coreyjadams d9fe7a4
Merge branch 'v2.0-refactor' into refactor
coreyjadams af9e359
Fix active learning imports so tests pass in refactor
coreyjadams e3b7849
Fix some metric imports
coreyjadams b1f2ef9
Remove deploy package
coreyjadams f46ff8c
Remove unused test file
coreyjadams edd2224
unmigrate these files ... again?
coreyjadams 1c769e3
Update import linter.
coreyjadams b9aa3dd
Refactor (#1224)
coreyjadams 8d8255a
Merge branch 'main' into refactor
coreyjadams 8b266b0
Cleaning up diffusion models. Not quite done yet.
coreyjadams 8a8a05a
Merge branch 'main' into refactor
coreyjadams 9b0d40d
Merge branch 'v2.0-refactor' into refactor
coreyjadams ff0aacf
Restore deleted files
coreyjadams f11fcd7
Updating more tests.
coreyjadams 9e32712
Further updates to tests. Datapipes almost working.
coreyjadams 4fe41b9
Refactor (#1231)
coreyjadams 0b78d6c
Merge branch 'NVIDIA:main' into refactor
coreyjadams ac1fcef
update import paths
coreyjadams d81ee43
Starting to clean up dependency tree.
coreyjadams dff27b3
Merge branch 'v2.0-refactor' into refactor
coreyjadams 8a0a3a5
Refactor (#1233)
coreyjadams 3cb9a02
Added coding standards for model implementations as a custom context …
CharlelieLrt d7bcd0d
Fixing and adjusting a broad suite of tests.
coreyjadams d32879d
Merge branch 'NVIDIA:main' into refactor
coreyjadams c4ef437
Merge branch 'v2.0-refactor' into refactor
coreyjadams b3b7786
Update test/domain_parallel/conftest.py
coreyjadams af41fdf
Minor fix
coreyjadams 611a029
Refactor (#1234)
coreyjadams 58c909c
Merge branch 'main' into v2.0-refactor
coreyjadams 17ff6de
Merge branch 'v2.0-refactor' into refactor
coreyjadams e83ea99
Not seeing any errors in testing ...
coreyjadams ec163e1
Breakdown of rules into smaller rules (#1236)
CharlelieLrt 15a04f1
Merge branch 'NVIDIA:main' into refactor
coreyjadams 42e4b40
Refactor (#1240)
coreyjadams ff8ddac
Merge branch 'main' into v2.0-refactor
coreyjadams 51c0ccb
Merge branch 'main' into refactor
coreyjadams e16f9f2
Refactor (#1247)
coreyjadams 60ccc72
Enable import linting on internal imports.
coreyjadams 9b62b7d
Remove ensure_available function, it's confusing
coreyjadams f05150f
Add logging imports to utils, and fix imports in examples.
coreyjadams 64d731f
Update imports in minimal examples
coreyjadams 725ecfe
Update structural mechanics examples
coreyjadams d8e5f05
Update import paths: reservoir_sim
coreyjadams 666be4b
Update import paths: additive manufacturing
coreyjadams 19b8afd
Update import paths: topodiff
coreyjadams 824c76a
Update import paths: weather part 1
coreyjadams 641c110
Update import paths: weather part 2
coreyjadams 2e056db
Update import paths: molecular dynamics
coreyjadams 6a9f6e6
Update import paths: geophysics
coreyjadams b874e4e
Update import paths: cfd + external_aero 1
coreyjadams 23f2955
Update import paths: cfd + external_aero 2
coreyjadams 581c79a
Remove more DGL examples
coreyjadams 6d780d7
Remove more DGL examples
coreyjadams 7763d96
cfd examples 3
coreyjadams 53fa1cb
Last batch of example import fixes!
coreyjadams 1cd3ada
Merge branch 'v2.0-refactor' into refactor
coreyjadams 5fdcf0f
Enforce and protect external deps in utils.
coreyjadams b5842e3
Remove DGL. :party:
coreyjadams da742e7
Don't force models yet
coreyjadams 6c872a0
Refactor (#1249)
coreyjadams 363126a
Automated model registry (#1252)
CharlelieLrt 76a29ef
Metadata name deprecation (#1257)
CharlelieLrt 942c375
Merge main into local refactor
coreyjadams 8d8939d
Refactor (#1258)
coreyjadams cbc2dd3
Merge branch 'main' into v2.0-refactor
coreyjadams 170efa7
Merge branch 'v2.0-refactor' into refactor
coreyjadams 8898450
Remove IPDB
coreyjadams 8aa8dd9
Few more dep fixes.
coreyjadams 70d9135
Merge branch 'main' into refactor
coreyjadams ec69852
Refactor (#1261)
coreyjadams 17788b0
Merge branch 'main' into v2.0-refactor
coreyjadams 3c03b08
Add external import coding standards.
coreyjadams a842398
Update external import standards.
coreyjadams dae0942
Ensure vtk functions are protected.
coreyjadams 042f7ea
Protect pyvista import
coreyjadams 5bb0e6f
Closing more import gaps
coreyjadams d35d5c7
Remove DGL from meshgraphkan
coreyjadams 12b98d8
All models now comply with external import linting.
coreyjadams a879e8d
Remove DGL datapipes
coreyjadams b200b50
cae datapipes in compliance
coreyjadams cb1766c
Update pyproject.toml
coreyjadams d339e1f
Add version numbers to deps
coreyjadams aad176c
Refactor (#1261)
coreyjadams 6c9cebd
Merge branch 'refactor' into v2.0-refactor
coreyjadams 7422e4c
fix import error from wandb
coreyjadams 75490ea
remove instance check
coreyjadams ddf6ea9
Initial restructure
CharlelieLrt 8e634f9
Completed restructure of diffusion package
CharlelieLrt 1f66eb6
UV <---> Pip must stay in sync. (#1264)
coreyjadams ab46322
Fix broken imports
coreyjadams c8c4da6
Fix README links in transolver and domino examples (#1259)
dran-dev 9132858
Merge branch 'main' into v2.0-refactor
coreyjadams 770589b
Add xarray, timm to core deps
coreyjadams e07fbd2
update import
coreyjadams 6f92470
Somehow, a number of import protections got broken
coreyjadams de56395
Automatically select CPU or CPU+CUDA instead of decorating every test.
coreyjadams 281e90c
ensure te installed for serialization test
coreyjadams 289c11d
All CPU tests are passing
coreyjadams d07eab2
Remove DGL/PyG equivalency tests (#1273)
Alexey-Kamenev c6d6525
Install ci (#1274)
coreyjadams ea5ab3a
Remove TensorFlow dependency in Vortex Shedding and Lagrangian MGN ex…
Alexey-Kamenev 18f5872
Change registry behavior and list all models as entry points (#1278)
CharlelieLrt 1c2fa2f
Renamed LearnedSimulator into VGFNLearnedSimulator
CharlelieLrt c2464d3
Fix tests + improve docs for new register arg in from_torch
CharlelieLrt 6305bb8
Remove physicsnemo.model.Module remaining items
coreyjadams d1ca859
Remove incorrect meta import
coreyjadams 7753a55
Remove incorrect comment
coreyjadams 8c7c08a
Fix linting errors
coreyjadams c4b71ea
Merge branch 'main' into v2.0-refactor
coreyjadams 8e55518
Merge branch 'main' into v2.0-refactor
coreyjadams 28d1871
Fixing some linting errors
coreyjadams 35235fe
More linter errors
coreyjadams 7f10726
One more.
coreyjadams b770b23
Update knn tests
coreyjadams 5667675
Purge pylib cugraphops
coreyjadams ec6e35b
Remove more cugraphops paths.
coreyjadams e028a59
Trying to close some CI errors.
coreyjadams d83168c
Fixing more CI issues
coreyjadams 5bf2fb8
Merge branch 'main' into v2.0-refactor
coreyjadams b371bba
Fix MGN tests (#1281)
Alexey-Kamenev b860fcd
Fix apex issues on CPU with a diffusion-specific device fixture.
coreyjadams bfb9d43
Fixing shard tensor import; adjusting pytorch geometric import point …
coreyjadams b577342
Fixing more imports.
coreyjadams 85c56e0
fix one or two more
coreyjadams cd0fb4c
Merge branch 'v2.0-refactor' into restructure-diffusion-subpackage
CharlelieLrt 496b17e
Fix MGK, HMGN tests (#1282)
Alexey-Kamenev f390748
Fix import error
coreyjadams 6a9f5cb
Remove cugraphops
coreyjadams 76c6bd5
Fix many tests
coreyjadams 6aa5c22
Add migration guide early draft. Update external imports.
coreyjadams 020d928
Attempting to fix the last failing tests.
coreyjadams 23ae40e
Add pre-commit action. (#1286)
coreyjadams d5fc130
Tweak the CI install and testing of imports / docstrings
coreyjadams 8441672
Wow, the tests were not tied to ANY timezone. It only passes in UTC....
coreyjadams 05f839b
Merge branch 'main' into v2.0-refactor
coreyjadams 3a74e58
fix all but 2 docstring tests
coreyjadams 25f8b56
Merge branch 'main' into v2.0-refactor
coreyjadams dc03aab
Resolve circular import + fix linting errors.
coreyjadams bdded65
Fixed broken Group Norm
CharlelieLrt f431779
Merge branch 'v2.0-refactor' into restructure-diffusion-subpackage
CharlelieLrt ea2314e
Merge branch 'main' into restructure-diffusion-subpackage
CharlelieLrt ea3c105
Added diffusion.generate
CharlelieLrt 5bb7a49
Added future feature and deprecation warnings for diffusion module
CharlelieLrt 7388bd3
Defined import-linter contracts for physicsnemo.diffusion
CharlelieLrt 2bea331
Updated PR template with missing item
CharlelieLrt b3518d0
Added missing diffusion.generate
CharlelieLrt dae4fbc
Fixed a few remaining paths physicsnemo.models.diffusion that does no…
CharlelieLrt 1969383
CI tests fixes
CharlelieLrt b452e5b
mmiranda nvidia style guide Updates diffusion.rst
megnvidia 55fee4b
mmiranda smol style guide Updates physicsnemo.utils.rst
megnvidia cdd92cf
Fixed checklist in PR template
CharlelieLrt 071a7e3
Deleted comment in .importlinter
CharlelieLrt 707e0d2
Fixed references in diffusion.rst
CharlelieLrt 0bd74ef
Merge branch 'restructure-diffusion-subpackage' of https://github.com…
CharlelieLrt 4aa1f7b
Merge branch 'main' into restructure-diffusion-subpackage
CharlelieLrt fca12d1
Fix checkpoint loading with Module subclass when known
CharlelieLrt 8f38564
Deleted physicsnemo/compat
CharlelieLrt 08e89f2
Deleted useless comments in flow_reconstruction_diffusion example
CharlelieLrt df3ad90
Renamed Attantion into UNetAttention
CharlelieLrt 205aa97
Merge branch 'main' into restructure-diffusion-subpackage
CharlelieLrt 6ff908e
Implemented BasePreconditioner
CharlelieLrt f08a686
Improvements to BaseConditioner docs
CharlelieLrt dc733a9
Implemented new preconditioners based on BasePerconditioner
CharlelieLrt fa02d48
Migrated legacy preconditioners to reuse new preconditioners
CharlelieLrt f7b8494
Initial implementation of tests for preconditioners
CharlelieLrt 047ca44
Added reference data for non-regression CI tests of preconditioners
CharlelieLrt 2866c10
Improvements to preconditioners CI tests
CharlelieLrt 5f9a309
Adedd a few details in BasePreconditioner doctrsing
CharlelieLrt 5af0aff
Merge branch 'main' into diffusion-preconditioners-refactor
CharlelieLrt 17ee57e
Updated CHANGELOG.md
CharlelieLrt 1e2d2a7
Improved documentation of signature requirement in BasePreconditioner
CharlelieLrt ffcb026
Renamed BasePreconditioner into BaseAffinePreconditioner
CharlelieLrt 5d5c66a
Added DiffusionModel protocol to specify diffusion models signature
CharlelieLrt 993db63
Changed condition argument to TensorDict instead of Dict of tensors
CharlelieLrt 22dac49
Moved all preconditioners scalar attributes to pytorch buffers instea…
CharlelieLrt 9c5f53b
Improvements to make precondtioners tests more robust on GPU
CharlelieLrt f561aa6
Removed deterministic setting for tests
CharlelieLrt b53de49
Added examples in docstrings of all precondtioners
CharlelieLrt edf00f3
Fix bug in docstring examples
CharlelieLrt 3e6daa6
Made condition argument optional in the DiffusionModel protocol
CharlelieLrt 8d0b29c
Merge branch 'main' into diffusion-preconditioners-refactor
CharlelieLrt f05af26
Added torch.Tensor as possible condition type in the DiffusionModel p…
CharlelieLrt a7ca51a
Added an example for conditional preconditioner in BaseAffinePrecondi…
CharlelieLrt 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
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.
Uh oh!
There was an error while loading. Please reload this page.