-
Notifications
You must be signed in to change notification settings - Fork 192
fix(test_cases): replace hardcoded user paths with overridable env vars #1092
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
Open
Zhenye-Na
wants to merge
1
commit into
awslabs:main
Choose a base branch
from
Zhenye-Na:fix/portable-data-paths
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,10 @@ | ||
| #!/bin/bash | ||
| # Override ESM2_DATA_DIR if your shared filesystem mount differs. | ||
| : "${ESM2_DATA_DIR:=/fsxl/${USER}/esm2}" | ||
|
|
||
| file_name=/fsxl/awsankur/esm2/esm.sqsh | ||
| [ -f $file_name ] && rm $file_name | ||
| mkdir -p "${ESM2_DATA_DIR}" | ||
|
|
||
| enroot import -o $file_name dockerd://esm:aws | ||
| file_name="${ESM2_DATA_DIR}/esm.sqsh" | ||
| [ -f "$file_name" ] && rm "$file_name" | ||
|
|
||
| enroot import -o "$file_name" dockerd://esm:aws |
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 |
|---|---|---|
| @@ -1,5 +1,11 @@ | ||
| #!/bin/bash | ||
| # Override DATA_HOME_DIR if your shared filesystem mount differs. | ||
| : "${DATA_HOME_DIR:=/fsxl/${USER}/bionemo}" | ||
|
|
||
| rm /fsxl/awsankur/bionemo.sqsh | ||
| mkdir -p "${DATA_HOME_DIR}" | ||
|
|
||
| enroot import -o /fsxl/awsankur/bionemo/bionemo.sqsh dockerd://bionemo:aws | ||
| # Remove any prior squash image so the import below can write fresh. | ||
| # Path matches the IMAGE default used by train-esm.sbatch. | ||
| rm -f "${DATA_HOME_DIR}/bionemo.sqsh" | ||
|
|
||
| enroot import -o "${DATA_HOME_DIR}/bionemo.sqsh" dockerd://bionemo:aws |
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 |
|---|---|---|
| @@ -1,3 +1,7 @@ | ||
| #!/bin/bash | ||
| # Override DATA_HOME_DIR if your shared filesystem mount differs. | ||
| : "${DATA_HOME_DIR:=/fsxl/${USER}/bionemo}" | ||
|
|
||
| docker run --rm -v /fsxl/awsankur/bionemo:/root/.cache/bionemo bionemo:aws download_bionemo_data esm2/testdata_esm2_pretrain:2.0 | ||
| mkdir -p "${DATA_HOME_DIR}" | ||
| docker run --rm -v "${DATA_HOME_DIR}:/root/.cache/bionemo" bionemo:aws \ | ||
| download_bionemo_data esm2/testdata_esm2_pretrain:2.0 |
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
9 changes: 7 additions & 2 deletions
9
4.validation_and_observability/5.nsight/nemotron/nemotron-slurm-exec.sh
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shebang change silently drops
set -xtracingI noticed the shebang changed from
#! /bin/bash -xto#!/bin/bash. Normalizing the stray space after#!is a good cleanup, but the same edit also removes the-xflag, which was turning on execution tracing for the whole script. For an Nsight profiling helper, that trace is often deliberately there so the exactnsys profile ...invocation shows up in the Slurm logs — losing it makes failed profiling runs harder to debug. Could you confirm dropping-xis intentional? If the trace was load-bearing, I'd keep it as#!/bin/bash -x(or add an explicitset -xafter the shebang) so the normalization doesn't change observable behavior.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the detailed explanation. I will send out a second revision to get this comment resolved