Skip to content

Commit 9dc60e2

Browse files
authored
bionemo-recipes folder restructure (#1151)
Moves bionemo-recipes content, including the models/ and recipes/ directories, into a top-level `bionemo-recipes/` folder <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - THD (Flash Attention) input support for ESM2 TE models. - New MLM data collator that packs sequences and provides FlashAttention metadata. - **Documentation** - BioNeMo Recipes README link updated to the repository subdirectory. - **Tests** - Added THD parity and end-to-end tests; enhanced fixtures and an autouse debug fixture. - **Chores** - CI/workflows and local test scripts updated to use bionemo-recipes paths. - Lint configuration refinements. - **Refactor** - Removed deprecated contact-prediction public API. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Peter St. John <pstjohn@nvidia.com>
1 parent 7b37b34 commit 9dc60e2

179 files changed

Lines changed: 11 additions & 11 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/unit-tests-framework.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ jobs:
4444
base_sha: ${{ steps.merge-base.outputs.merge-base }}
4545
files: |
4646
**
47-
!models/**
48-
!recipes/**
47+
!bionemo-recipes/**
4948
!**.md
5049
!.github/**
5150
!.gitignore

.github/workflows/unit-tests-recipes.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ jobs:
5151
matrix: true
5252
base_sha: ${{ steps.merge-base.outputs.merge-base }}
5353
dir_names: true
54-
dir_names_max_depth: 2
54+
dir_names_max_depth: 3
5555
files: |
56-
models/**
57-
recipes/**
56+
bionemo-recipes/models/**
57+
bionemo-recipes/recipes/**
5858
5959
- id: set-dirs
6060
name: Determine which directories to run
@@ -64,7 +64,7 @@ jobs:
6464
CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
6565
run: |
6666
# Get all recipe and model directories
67-
ALL_DIRS=$(ls -d recipes/*/ models/*/ 2>/dev/null | jq -R -s -c 'split("\n")[:-1] | map(rtrimstr("/"))')
67+
ALL_DIRS=$(ls -d bionemo-recipes/models/*/ bionemo-recipes/recipes/*/ 2>/dev/null | jq -R -s -c 'split("\n")[:-1] | map(rtrimstr("/"))')
6868
6969
# Determine which directories to run: all for schedule, filtered for other events
7070
if [[ "$EVENT_NAME" == "schedule" ]]; then
@@ -102,8 +102,9 @@ jobs:
102102
DIRS_WITH_IMAGES=$(echo "$DIRS" | jq -c '
103103
map({
104104
dir: .,
105+
name: (. | sub("^bionemo-recipes/"; "")),
105106
image: (
106-
if . == "models/amplify" then
107+
if . == "bionemo-recipes/models/amplify" then
107108
"svcbionemo023/bionemo-framework:amplify-model-devcontainer-082025"
108109
else
109110
"svcbionemo023/bionemo-framework:pytorch25.06-py3-squashed-zstd"
@@ -129,6 +130,7 @@ jobs:
129130
needs: changed-dirs
130131
runs-on: linux-amd64-gpu-l4-latest-1
131132
if: ${{ needs.changed-dirs.outputs.dirs != '[]' }}
133+
name: "unit-tests (${{ matrix.recipe.name }})"
132134
container:
133135
image: ${{ matrix.recipe.image }}
134136
options: --shm-size=16G
@@ -138,7 +140,6 @@ jobs:
138140
fail-fast: false
139141

140142
steps:
141-
142143
- name: Show GPU info
143144
run: nvidia-smi
144145
- name: Setup proxy cache

README.md

Lines changed: 1 addition & 1 deletion
File renamed without changes.

models/amplify/.devcontainer/devcontainer.json renamed to bionemo-recipes/models/amplify/.devcontainer/devcontainer.json

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)