-
Notifications
You must be signed in to change notification settings - Fork 689
Geotransolver 2d 3d #1676
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
+1,748
−757
Merged
Geotransolver 2d 3d #1676
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
a0cd8b0
Update geotransolver for 2d and 3d use cases
coreyjadams 1f3f225
Merge branch 'main' into geotransolver-2d-3d
coreyjadams 036723a
Merge branch 'NVIDIA:main' into geotransolver-2d-3d
coreyjadams 46919d6
Merge branch 'main' into geotransolver-2d-3d
coreyjadams 15d721d
Merge branch 'main' into geotransolver-2d-3d
coreyjadams b498499
Merge branch 'main' into geotransolver-2d-3d
coreyjadams f13862b
Fix issues with the merge of context projector.
coreyjadams 8688949
Merge branch 'main' into geotransolver-2d-3d
coreyjadams 57981f5
Refactor physics attention and gale to consolidate implementations.
coreyjadams 93084eb
Finish wrapping up some code movements.
coreyjadams 2dad0b5
Merge branch 'main' into geotransolver-2d-3d
coreyjadams ea2aa99
Update transolver darcy example to use the 2Dgeotransolver or flare m…
coreyjadams 81ddd6a
Update README
coreyjadams b2579d8
Add missing classes in comments
coreyjadams 2f6d5bd
Merge branch 'main' into geotransolver-2d-3d
coreyjadams 1350ff8
Address review comments for geotransolver 2d/3d unification with FLAR…
coreyjadams 82785d7
Merge branch 'NVIDIA:main' into geotransolver-2d-3d
coreyjadams d0d6ca3
Merge branch 'NVIDIA:main' into geotransolver-2d-3d
coreyjadams beaf582
Merge branch 'NVIDIA:main' into geotransolver-2d-3d
coreyjadams 021a7ed
Merge branch 'NVIDIA:main' into geotransolver-2d-3d
coreyjadams 9dc61aa
Merge branch 'NVIDIA:main' into geotransolver-2d-3d
coreyjadams 8bd97e0
Merge branch 'NVIDIA:main' into geotransolver-2d-3d
coreyjadams 931d139
Merge branch 'NVIDIA:main' into geotransolver-2d-3d
coreyjadams e06568e
Merge branch 'main' into geotransolver-2d-3d
coreyjadams 000fde6
Merge branch 'main' into geotransolver-2d-3d
coreyjadams b4a6d83
Merge branch 'NVIDIA:main' into geotransolver-2d-3d
coreyjadams 71aac5b
Merge branch 'main' into geotransolver-2d-3d
coreyjadams 3d83906
Update examples/cfd/darcy_transolver/config_fix.yaml
coreyjadams 7421dc6
Merge branch 'main' into geotransolver-2d-3d
coreyjadams 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| # SPDX-FileCopyrightText: Copyright (c) 2023 - 2026 NVIDIA CORPORATION & AFFILIATES. | ||
| # SPDX-FileCopyrightText: All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| # FLARE inherits from Transolver and replaces physics attention blocks with | ||
| # FLARE (Fast Low-rank Attention Routing Engine) blocks. | ||
| # use_te and plus are forced off internally by FLARE. | ||
|
|
||
| _target_: physicsnemo.experimental.models.flare.FLARE | ||
| _convert_: all | ||
|
|
||
| functional_dim: 1 | ||
| out_dim: 1 | ||
| embedding_dim: 2 | ||
| n_layers: 4 | ||
| n_hidden: 128 | ||
| dropout: 0.0 | ||
| n_head: 4 | ||
| act: gelu | ||
| mlp_ratio: 4 | ||
| slice_num: 64 | ||
| unified_pos: False | ||
| ref: 8 | ||
| structured_shape: | ||
| - ${resolution} | ||
| - ${resolution} | ||
| time_input: False |
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 |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| # SPDX-FileCopyrightText: Copyright (c) 2023 - 2026 NVIDIA CORPORATION & AFFILIATES. | ||
| # SPDX-FileCopyrightText: All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| # GeoTransolver with GALE attention (default). | ||
| # Uses geometry-aware cross-attention instead of Transolver's structured grid. | ||
|
|
||
| _target_: physicsnemo.experimental.models.geotransolver.GeoTransolver | ||
| _convert_: all | ||
|
|
||
| functional_dim: 3 | ||
| out_dim: 1 | ||
| geometry_dim: 3 | ||
| n_layers: 4 | ||
| n_hidden: 128 | ||
| dropout: 0.0 | ||
| n_head: 4 | ||
| act: gelu | ||
| mlp_ratio: 4 | ||
| slice_num: 64 | ||
| use_te: False | ||
| time_input: False | ||
| attention_type: GALE | ||
| include_local_features: False | ||
| state_mixing_mode: weighted | ||
| structured_shape: | ||
| - ${resolution} | ||
| - ${resolution} |
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 |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| # SPDX-FileCopyrightText: Copyright (c) 2023 - 2026 NVIDIA CORPORATION & AFFILIATES. | ||
| # SPDX-FileCopyrightText: All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| # GeoTransolver with GALE_FA (FLARE attention backend). | ||
| # Combines FLARE-style global-query self-attention with GALE geometry/context | ||
| # cross-attention. use_te must be False for GALE_FA. | ||
|
|
||
| _target_: physicsnemo.experimental.models.geotransolver.GeoTransolver | ||
| _convert_: all | ||
|
|
||
| functional_dim: 3 | ||
| out_dim: 1 | ||
| geometry_dim: 3 | ||
| n_layers: 4 | ||
| n_hidden: 128 | ||
| dropout: 0.0 | ||
| n_head: 4 | ||
| act: gelu | ||
| mlp_ratio: 4 | ||
| slice_num: 64 | ||
| use_te: False | ||
| time_input: False | ||
| attention_type: GALE_FA | ||
| include_local_features: False | ||
| state_mixing_mode: concat_project | ||
| structured_shape: | ||
| - ${resolution} | ||
| - ${resolution} |
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 |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| # SPDX-FileCopyrightText: Copyright (c) 2023 - 2026 NVIDIA CORPORATION & AFFILIATES. | ||
| # SPDX-FileCopyrightText: All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| _target_: physicsnemo.models.transolver.Transolver | ||
| _convert_: all | ||
|
|
||
| functional_dim: 1 | ||
| out_dim: 1 | ||
| embedding_dim: 2 | ||
| n_layers: 4 | ||
| n_hidden: 128 | ||
| dropout: 0.0 | ||
| n_head: 4 | ||
| act: gelu | ||
| mlp_ratio: 4 | ||
| slice_num: 64 | ||
| unified_pos: False | ||
| ref: 8 | ||
| structured_shape: | ||
| - ${resolution} | ||
| - ${resolution} | ||
| use_te: False | ||
| time_input: False |
Oops, something went wrong.
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.