Skip to content

Commit e53f754

Browse files
authored
Merge branch 'main' into dev/ba/BIONEMO-2473-add-evo2-lora-tests
2 parents f5cbdd6 + c59d333 commit e53f754

185 files changed

Lines changed: 40271 additions & 124 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.
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "BioNeMo2 Development Container",
2+
"name": "BioNeMo2 Framework Dev Container",
33
"runArgs": [
44
"--gpus=all",
55
"--shm-size=4g"
@@ -23,8 +23,8 @@
2323
"TMPDIR": "/tmp",
2424
"NUMBA_CACHE_DIR": "/tmp/"
2525
},
26-
"postCreateCommand": "./.devcontainer/postCreateCommand.sh",
27-
"initializeCommand": "./.devcontainer/initializeCommand.sh",
26+
"postCreateCommand": "./.devcontainer/framework/postCreateCommand.sh",
27+
"initializeCommand": "./.devcontainer/framework/initializeCommand.sh",
2828
"remoteUser": "ubuntu",
2929
"customizations": {
3030
"vscode": {
@@ -55,8 +55,7 @@
5555
"python.defaultInterpreterPath": "/usr/bin/python",
5656
"python.testing.pytestEnabled": true,
5757
"python.testing.pytestArgs": [
58-
"sub-packages/",
59-
"scripts/"
58+
"sub-packages/"
6059
],
6160
"python.analysis.typeCheckingMode": "standard"
6261
}
File renamed without changes.
File renamed without changes.

.devcontainer/recipes/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FROM nvcr.io/nvidia/pytorch:25.06-py3
2+
RUN --mount=type=cache,target=/root/.cache/pip \
3+
--mount=type=bind,source=requirements.txt,target=/workspace/requirements.txt \
4+
PIP_CONSTRAINT= pip install -r /workspace/requirements.txt

.devcontainer/recipes/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Dev Container Setup
2+
3+
General-purpose dev container for local recipe development.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile
3+
{
4+
"name": "BioNeMo Recipes Dev Container",
5+
"build": {
6+
"dockerfile": "Dockerfile"
7+
},
8+
"mounts": [
9+
"source=${localEnv:HOME}/.cache,target=/home/ubuntu/.cache,type=bind,consistency=cached",
10+
"source=${localEnv:HOME}/.netrc,target=/home/ubuntu/.netrc,type=bind,consistency=cached",
11+
"source=${localEnv:HOME}/.bash_history_devcontainer,target=/home/ubuntu/.bash_history,type=bind,consistency=cached"
12+
],
13+
"postCreateCommand": ".devcontainer/recipes/postCreateCommand.sh",
14+
"remoteUser": "ubuntu",
15+
"runArgs": [
16+
"--gpus=all",
17+
"--shm-size=4g"
18+
],
19+
"customizations": {
20+
"vscode": {
21+
"extensions": [
22+
"ms-python.python",
23+
"charliermarsh.ruff",
24+
"redhat.vscode-yaml",
25+
"ms-toolsai.jupyter",
26+
"eamodio.gitlens",
27+
"tamasfe.even-better-toml",
28+
"streetsidesoftware.code-spell-checker"
29+
]
30+
}
31+
}
32+
}

.devcontainer/recipes/postCreateCommand.sh

Whitespace-only changes.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
accelerate
2+
datasets
3+
deepspeed
4+
hydra-core
5+
torch
6+
megatron-fsdp==0.1.0rc0
7+
torchmetrics
8+
tqdm
9+
transformer_engine
10+
transformers @ git+https://github.com/huggingface/transformers.git
11+
typer
12+
wandb
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: "BioNeMo Model Convergence Tests"
2+
3+
on:
4+
workflow_dispatch:
5+
6+
# run lepton tests
7+
# update dashboard
8+
9+
jobs:
10+
submit-lepton-jobs:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Submit Lepton Jobs
17+
run: |
18+
python ci/lepton/model_convergence/scripts/launch_job.py --config-name "evo2_finetune_lora"

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,27 @@ concurrency:
2121

2222
jobs:
2323
changed-files:
24-
if: github.event_name != 'schedule'
2524
runs-on: ubuntu-latest
2625
outputs:
2726
any_changed: ${{ steps.changed-files.outputs.any_changed }}
2827
steps:
2928
- uses: actions/checkout@v4
3029
with:
3130
fetch-depth: 0
31+
submodules: "recursive"
3232

3333
- uses: step-security/changed-files@v46
3434
id: changed-files
3535
with:
3636
base_sha: main
3737
files: |
38+
**
3839
!models/**
3940
!recipes/**
4041
!**.md
4142
!.github/**
43+
!.gitignore
44+
!.devcontainer/**
4245
.github/workflows/unit-tests-framework.yml
4346
4447
- name: Show output
@@ -100,7 +103,7 @@ jobs:
100103
- get-pr-labels
101104
- changed-files
102105
runs-on: linux-amd64-cpu16
103-
# We want this to run
106+
# We want this to run on schedule events even if no files have changed
104107
if: ${{ github.event_name == 'schedule' || (!contains(fromJSON(needs.get-pr-labels.outputs.labels || '[]'), 'SKIP_CI') && needs.changed-files.outputs.any_changed == 'true') }}
105108
steps:
106109
- name: Login to Docker Hub
@@ -112,7 +115,7 @@ jobs:
112115
- name: Checkout repository
113116
uses: actions/checkout@v4
114117
with:
115-
submodules: "recursive"
118+
submodules: true
116119

117120
- name: Set up Docker Buildx
118121
uses: docker/setup-buildx-action@v3
@@ -236,8 +239,6 @@ jobs:
236239
- name: Run notebook tests
237240
env:
238241
BIONEMO_DATA_SOURCE: ngc
239-
# this variable should be used in the notebooks to run a subset of the model layers or a smaller model/dataset
240-
FAST_CI_MODE: true
241242
run: |
242243
chmod +x ./ci/scripts/run_pytest_notebooks.sh
243244
./ci/scripts/run_pytest_notebooks.sh

0 commit comments

Comments
 (0)