Skip to content

Add esm2 checkpoint export#918

Merged
pstjohn merged 2 commits into
NVIDIA-BioNeMo:mainfrom
pstjohn:pstjohn/export-esm2
Jun 4, 2025
Merged

Add esm2 checkpoint export#918
pstjohn merged 2 commits into
NVIDIA-BioNeMo:mainfrom
pstjohn:pstjohn/export-esm2

Conversation

@pstjohn
Copy link
Copy Markdown
Collaborator

@pstjohn pstjohn commented Jun 3, 2025

Adds the option to export ESM2 checkpoints to a huggingface-compatible format, and adds golden value tests to ensure we get the same outputs before and after round-tripping nemo.

Signed-off-by: Peter St. John <pstjohn@nvidia.com>
Signed-off-by: Peter St. John <pstjohn@nvidia.com>
@pstjohn pstjohn added this pull request to the merge queue Jun 4, 2025
Merged via the queue into NVIDIA-BioNeMo:main with commit 2efeba6 Jun 4, 2025
14 checks passed
@pstjohn pstjohn deleted the pstjohn/export-esm2 branch June 4, 2025 04:45
github-merge-queue Bot pushed a commit that referenced this pull request Jun 5, 2025
Follow-up to #918 with some minor improvements, additional testing, and
the addition of a typer CLI command to initiate checkpoint conversions

You can now convert checkpoints to huggingface with
```
convert_esm2 convert-nemo-to-hf /path/to/existing/nemo/checkpoint /path/to/new/hf/checkpoint
```

---------

Signed-off-by: Peter St. John <pstjohn@nvidia.com>
camirr-nv pushed a commit that referenced this pull request Jun 26, 2025
Adds the option to export ESM2 checkpoints to a huggingface-compatible
format, and adds golden value tests to ensure we get the same outputs
before and after round-tripping nemo.

---------

Signed-off-by: Peter St. John <pstjohn@nvidia.com>
Signed-off-by: Ubuntu <camirr@nvidia.com>
camirr-nv pushed a commit that referenced this pull request Jun 26, 2025
Follow-up to #918 with some minor improvements, additional testing, and
the addition of a typer CLI command to initiate checkpoint conversions

You can now convert checkpoints to huggingface with
```
convert_esm2 convert-nemo-to-hf /path/to/existing/nemo/checkpoint /path/to/new/hf/checkpoint
```

---------

Signed-off-by: Peter St. John <pstjohn@nvidia.com>
Signed-off-by: Ubuntu <camirr@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants