Skip to content

Commit 90d4330

Browse files
Merge branch 'main' into patch-5
2 parents 44b1b03 + 2e55187 commit 90d4330

33 files changed

Lines changed: 3727 additions & 180 deletions
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
include-paths:
2+
- src/fairchem/data/odac
3+
- packages/fairchem-data-odac
4+
tag-prefix: fairchem_data_odac
5+
tag-template: 'fairchem_data_odac-$RESOLVED_VERSION'
6+
name-template: 'fairchem_data_odac-$RESOLVED_VERSION'
7+
exclude-contributors: [github-actions]
8+
categories:
9+
- title: New Features / Enhancements
10+
labels: [enhancement]
11+
- title: Bug Fixes
12+
labels: [bug]
13+
- title: Documentation
14+
labels: [documentation]
15+
- title: Tests
16+
labels: [test]
17+
- title: Deprecations
18+
labels: [deprecation]
19+
- title: Dependencies
20+
labels: [dependencies]
21+
- title: Other Changes
22+
labels: ["*"]
23+
version-resolver:
24+
major:
25+
labels:
26+
- 'major'
27+
minor:
28+
labels:
29+
- 'minor'
30+
patch:
31+
labels:
32+
- 'patch'
33+
default: patch
34+
template: |
35+
## What's Changed
36+
37+
$CHANGES

.github/workflows/build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Build
2727
run: |
2828
# add packages that are supposed to be built to this list
29-
for package in fairchem-core fairchem-data-oc fairchem-demo-ocpapi fairchem-applications-cattsunami fairchem-data-omol fairchem-data-omat fairchem-data-omc fairchem-lammps
29+
for package in fairchem-core fairchem-data-oc fairchem-demo-ocpapi fairchem-applications-cattsunami fairchem-data-omol fairchem-data-omat fairchem-data-omc fairchem-data-odac fairchem-lammps
3030
do
3131
pushd packages/$package
3232
hatch build
@@ -76,3 +76,9 @@ jobs:
7676
with:
7777
name: dist-data-omc
7878
path: dist-data-omc/*
79+
80+
- name: Upload odac artifact
81+
uses: actions/upload-artifact@v7
82+
with:
83+
name: dist-data-odac
84+
path: dist-data-odac/*
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Release Drafter - fairchem-data-odac
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'src/fairchem/data/odac/**'
9+
- 'packages/fairchem-data-odac/**'
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
update_release_draft:
17+
permissions:
18+
# write permission is required to create a github release
19+
contents: write
20+
pull-requests: read
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: release-drafter/release-drafter@v7
24+
with:
25+
disable-autolabeler: true
26+
config-name: release-drafter-data-odac.yml
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,3 +228,28 @@ jobs:
228228
verbose: true
229229
packages-dir: dist-data-omc/
230230
skip-existing: true
231+
232+
release-data-odac:
233+
needs: [ build ]
234+
runs-on: ubuntu-latest
235+
if: |
236+
( github.event.inputs.release-pypi == 'true' && startsWith(github.ref_name, 'fairchem_data_odac-') ) || startsWith(github.event.release.tag_name, 'fairchem_data_odac-')
237+
238+
environment:
239+
name: pypi
240+
url: https://pypi.org/p/fairchem-data-odac/
241+
242+
permissions:
243+
id-token: write
244+
245+
steps:
246+
- uses: actions/download-artifact@v8
247+
with:
248+
name: dist-data-odac
249+
path: dist-data-odac
250+
251+
- uses: pypa/gh-action-pypi-publish@release/v1
252+
with:
253+
verbose: true
254+
packages-dir: dist-data-odac/
255+
skip-existing: true
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
model: fairchem.core.models.uma.escn_moe.eSCNMDMoeBackbone
2+
moe_dropout: 0.05
3+
moe_layer_type: ${moe_layer_type}
4+
num_experts: ${num_experts}
5+
use_composition_embedding: true
6+
use_global_embedding: false
7+
8+
max_num_elements: 100
9+
sphere_channels: 128
10+
lmax: 2
11+
mmax: 2
12+
13+
otf_graph: True
14+
max_neighbors: ${max_neighbors}
15+
use_pbc: True
16+
use_pbc_single: True
17+
18+
cutoff: ${cutoff_radius}
19+
edge_channels: 128
20+
distance_function: gaussian
21+
num_distance_basis: 64
22+
23+
regress_forces: True
24+
regress_stress: ${regress_stress}
25+
direct_forces: ${direct_forces}
26+
27+
num_layers: 4
28+
hidden_channels: 128
29+
norm_type: rms_norm_sh
30+
act_type: ${act_type}
31+
ff_type: ${ff_type}
32+
33+
chg_spin_emb_type: "rand_emb"
34+
cs_emb_grad: True
35+
dataset_list: ["oc20", "omol"]
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Benchmark a single inference config against fp64 baseline
2+
#
3+
# Usage:
4+
# fairchem -c configs/uma/benchmark/perf_check/benchmark.yaml
5+
#
6+
# Override any setting from the command line:
7+
# fairchem -c configs/uma/benchmark/perf_check/benchmark.yaml \
8+
# runner.inference_settings.execution_mode=umas_fast_gpu
9+
# fairchem -c configs/uma/benchmark/perf_check/benchmark.yaml \
10+
# runner.inference_settings.tf32=True runner.inference_settings.compile=True
11+
# fairchem -c configs/uma/benchmark/perf_check/benchmark.yaml runner.device=cpu
12+
# fairchem -c configs/uma/benchmark/perf_check/benchmark.yaml runner.warmup_iters=20
13+
14+
defaults:
15+
- job: local
16+
- _self_
17+
18+
checkpoint:
19+
_target_: fairchem.core.calculate.pretrained_mlip.pretrained_checkpoint_path_from_name
20+
model_name: "uma-s-1p2"
21+
22+
runner:
23+
_target_: fairchem.core.components.benchmark.perf_check.PerfCheckRunner
24+
checkpoint: ${checkpoint}
25+
device: "cuda"
26+
warmup_iters: 10
27+
timed_iters: 50
28+
inference_settings:
29+
_target_: fairchem.core.units.mlip_unit.api.inference.InferenceSettings
30+
tf32: False
31+
activation_checkpointing: True
32+
merge_mole: False
33+
compile: False
34+
execution_mode: "general"

0 commit comments

Comments
 (0)