Skip to content
Merged
Show file tree
Hide file tree
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 Mar 14, 2026
1f3f225
Merge branch 'main' into geotransolver-2d-3d
coreyjadams Mar 20, 2026
036723a
Merge branch 'NVIDIA:main' into geotransolver-2d-3d
coreyjadams Mar 25, 2026
46919d6
Merge branch 'main' into geotransolver-2d-3d
coreyjadams Apr 1, 2026
15d721d
Merge branch 'main' into geotransolver-2d-3d
coreyjadams Apr 13, 2026
b498499
Merge branch 'main' into geotransolver-2d-3d
coreyjadams Apr 30, 2026
f13862b
Fix issues with the merge of context projector.
coreyjadams Apr 30, 2026
8688949
Merge branch 'main' into geotransolver-2d-3d
coreyjadams Apr 30, 2026
57981f5
Refactor physics attention and gale to consolidate implementations.
coreyjadams Apr 30, 2026
93084eb
Finish wrapping up some code movements.
coreyjadams Apr 30, 2026
2dad0b5
Merge branch 'main' into geotransolver-2d-3d
coreyjadams May 1, 2026
ea2aa99
Update transolver darcy example to use the 2Dgeotransolver or flare m…
coreyjadams May 1, 2026
81ddd6a
Update README
coreyjadams May 1, 2026
b2579d8
Add missing classes in comments
coreyjadams May 1, 2026
2f6d5bd
Merge branch 'main' into geotransolver-2d-3d
coreyjadams May 4, 2026
1350ff8
Address review comments for geotransolver 2d/3d unification with FLAR…
coreyjadams May 4, 2026
82785d7
Merge branch 'NVIDIA:main' into geotransolver-2d-3d
coreyjadams May 7, 2026
d0d6ca3
Merge branch 'NVIDIA:main' into geotransolver-2d-3d
coreyjadams May 11, 2026
beaf582
Merge branch 'NVIDIA:main' into geotransolver-2d-3d
coreyjadams May 14, 2026
021a7ed
Merge branch 'NVIDIA:main' into geotransolver-2d-3d
coreyjadams May 20, 2026
9dc61aa
Merge branch 'NVIDIA:main' into geotransolver-2d-3d
coreyjadams May 22, 2026
8bd97e0
Merge branch 'NVIDIA:main' into geotransolver-2d-3d
coreyjadams May 26, 2026
931d139
Merge branch 'NVIDIA:main' into geotransolver-2d-3d
coreyjadams May 27, 2026
e06568e
Merge branch 'main' into geotransolver-2d-3d
coreyjadams May 28, 2026
000fde6
Merge branch 'main' into geotransolver-2d-3d
coreyjadams Jun 2, 2026
b4a6d83
Merge branch 'NVIDIA:main' into geotransolver-2d-3d
coreyjadams Jun 3, 2026
71aac5b
Merge branch 'main' into geotransolver-2d-3d
coreyjadams Jun 5, 2026
3d83906
Update examples/cfd/darcy_transolver/config_fix.yaml
coreyjadams Jun 5, 2026
7421dc6
Merge branch 'main' into geotransolver-2d-3d
coreyjadams Jun 8, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions examples/cfd/darcy_transolver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,15 @@ To train Transolver on your own physics problem, modify the `dataloader` in
`train_transolver_darcy.py` to use your own pre-computed data or on-the-fly
solver.

#### Other models

You can also use GeoTransolver, Flare, or GeoTransolver with flare attention
for the darcy example with the "fixed" usage. Change the `model` parameter
to update it! Note that the inputs to geotransolver here uses the positions
and the `x` diffusivity to both the model trunk and encoder paths. For these
problems, GeoTransolver is not yet extensively tested, and your results
may vary.

## Additional Information

More components are added for convenience. `Validators` calculate the loss
Expand Down
43 changes: 21 additions & 22 deletions examples/cfd/darcy_transolver/config_fix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,33 +20,31 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

output_dir: ./output/darcy_transolver_fix
run_id: bf16_dev_r85_b8_s64
defaults:
- model: transolver # transolver | flare | geotransolver | geotransolver_fa
- _self_

hydra:
output_subdir: null
run:
dir: .

output_dir: ./output/
run_id: ${hydra:runtime.choices.model}-${optimizer.type}_${precision}_r${resolution}_b${data.batch_size}_s${model.slice_num}

resolution: 85 #421, 211, 141, 106, 85 all viable

data:
train_path: /user_data/datasets/darcy_fix/example_data/piececonst_r421_N1024_smooth1.npz
test_path: /user_data/datasets/darcy_fix/example_data/piececonst_r421_N1024_smooth2.npz
resolution: 85 #421, 211, 141, 106, 85 all viable
batch_size: 8 # This is the GLOBAL batch size
train_path: //lustre/fsw/portfolios/coreai/users/coreya/datasets/darcy_fix/example_data/piececonst_r421_N1024_smooth1.npz
test_path: //lustre/fsw/portfolios/coreai/users/coreya/datasets/darcy_fix/example_data/piececonst_r421_N1024_smooth2.npz
Comment thread
coreyjadams marked this conversation as resolved.
resolution: ${resolution}
batch_size: 64 # This is the GLOBAL batch size

model:
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
unified_pos: False
ref: 8
slice_num: 64
use_te: False
time_input: False

precision: bf16

optimizer:
type: muon # adamw | muon (muon requires PyTorch >= 2.9)

normaliser:
permeability:
mean: 1.25
Expand All @@ -69,3 +67,4 @@ training:
validation:
sample_size: 200
validation_pseudo_epochs: 1
save_plots: false
39 changes: 39 additions & 0 deletions examples/cfd/darcy_transolver/model/flare.yaml
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
40 changes: 40 additions & 0 deletions examples/cfd/darcy_transolver/model/geotransolver.yaml
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}
41 changes: 41 additions & 0 deletions examples/cfd/darcy_transolver/model/geotransolver_fa.yaml
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}
36 changes: 36 additions & 0 deletions examples/cfd/darcy_transolver/model/transolver.yaml
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
Loading
Loading