-
Notifications
You must be signed in to change notification settings - Fork 0
Create benchmark from datasets and models JSON files #117
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
Merged
Merged
Changes from 16 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
a355064
Add new pgdata format
tintinrevient 5070dd2
Update models pls
tintinrevient 3c8c542
Use datasets.json and models.json for dvc.yaml
tintinrevient d2b98dc
Update ESM model
tintinrevient 6f6906b
Update ranganathan with variables
tintinrevient 07ca12b
Use datasets.json and models.json for zero-shot game
tintinrevient 227c2ec
Add temp dist for esm and pls
tintinrevient fcd3a26
Remove private repo token
tintinrevient a1d952a
Delete fixe JSON
tintinrevient 94d4435
Use proteingym-base to list models and datasets
tintinrevient 695a4d7
Only use proteingym-base for models
tintinrevient 0399a23
Add proteingym-base distribution
tintinrevient 65332a0
Add placeholder datasets and models json
tintinrevient 2dc1ee5
Remove placeholder json
tintinrevient e098ca9
Generate datasets and models in CI
tintinrevient fe30015
Update cml.yaml to used generated datasets and models
tintinrevient a323868
Rename output folders and shorten the jq query
tintinrevient 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 |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| target: | ||
| output_path: output | ||
| metric_path: metric | ||
|
tintinrevient marked this conversation as resolved.
Outdated
|
||
This file was deleted.
Oops, something went wrong.
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,57 +1,42 @@ | ||
| vars: | ||
| - params.yaml | ||
|
|
||
| - datasets: | ||
| - name: charge_ladder | ||
| container_path: /datasets/dummy/dataset.zip | ||
| local_path: ../../../datasets/dummy/dataset.zip | ||
|
|
||
| - name: neime | ||
| container_path: /datasets/neime/dataset.zip | ||
| local_path: ../../../datasets/neime/dataset.zip | ||
|
|
||
| - models: | ||
| - name: pls | ||
| container_path: /models/pls/README.md | ||
| local_path: ../../../models/pls/README.md | ||
| dockerfile: ../../../models/pls/Dockerfile | ||
| - default.yaml | ||
| - datasets.json | ||
| - models.json | ||
|
|
||
| stages: | ||
|
|
||
| setup: | ||
| cmd: | ||
| - mkdir -p logs ${destination.output_dir} ${destination.metric_dir} | ||
| cmd: | ||
| - mkdir -p logs ${target.output_path} ${target.metric_path} | ||
| - echo "Created local directories" > logs/setup.txt | ||
| outs: | ||
| - logs/setup.txt | ||
|
|
||
| create_training_job: | ||
| matrix: | ||
| matrix: | ||
| dataset: ${datasets} | ||
| model: ${models} | ||
|
|
||
| cmd: | ||
| - docker build --build-arg GIT_CACHE_BUST=${git.git_cache_bust} --secret id=git_auth,src=../git-auth.txt -f ${item.model.dockerfile} -t ${item.model.name}:latest ../../.. | ||
| - docker run --rm -v $(realpath ${source.datasets_dir}):/datasets -v $(realpath ${source.models_dir}):/models -v $(realpath ${destination.output_dir}):/opt/ml/model ${item.model.name}:latest train --dataset-file ${item.dataset.container_path} --model-card-file ${item.model.container_path} | ||
| cmd: | ||
| - docker build -f $(dirname ${item.model.input_filename})/Dockerfile -t ${item.model.name}:latest $(dirname ${item.model.input_filename}) | ||
| - docker run --rm -v $(realpath ${item.dataset.input_filename}):/$(basename ${item.dataset.input_filename}) -v $(realpath ${item.model.input_filename}):/$(basename ${item.model.input_filename}) -v $(realpath ${target.output_path}):/opt/ml/model ${item.model.name}:latest train --dataset-file /$(basename ${item.dataset.input_filename}) --model-card-file /$(basename ${item.model.input_filename}) | ||
| - docker image prune -a -f | ||
|
|
||
| deps: | ||
| - logs/setup.txt | ||
| - ${item.dataset.local_path} | ||
| - ${item.model.local_path} | ||
| - ${item.model.dockerfile} | ||
| - ${item.dataset.input_filename} | ||
| - ${item.model.input_filename} | ||
| outs: | ||
| - ${destination.output_dir}/${item.dataset.name}_${item.model.name}.csv: | ||
| - ${target.output_path}/${item.dataset.name}_${item.model.name}.csv: | ||
| cache: true | ||
|
|
||
| calculate_metric: | ||
| matrix: | ||
| dataset: ${datasets} | ||
| model: ${models} | ||
|
|
||
| cmd: uv run proteingym-benchmark metric calc --output-path ${destination.output_dir}/${item.dataset.name}_${item.model.name}.csv --metric-path ${destination.metric_dir}/${item.dataset.name}_${item.model.name}.csv | ||
| cmd: uv run proteingym-benchmark metric calc --output-path ${target.output_path}/${item.dataset.name}_${item.model.name}.csv --metric-path ${target.metric_path}/${item.dataset.name}_${item.model.name}.csv | ||
| deps: | ||
| - ${destination.output_dir}/${item.dataset.name}_${item.model.name}.csv | ||
| - ${target.output_path}/${item.dataset.name}_${item.model.name}.csv | ||
| outs: | ||
| - ${destination.metric_dir}/${item.dataset.name}_${item.model.name}.csv: | ||
| cache: true | ||
| - ${target.metric_path}/${item.dataset.name}_${item.model.name}.csv: | ||
| cache: true |
This file was deleted.
Oops, something went wrong.
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 |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| target: | ||
| output_path: output | ||
| metric_path: metric |
This file was deleted.
Oops, something went wrong.
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,53 +1,42 @@ | ||
| vars: | ||
| - params.yaml | ||
|
|
||
| - datasets: | ||
| - name: ranganathan | ||
| container_path: /datasets/ranganathan/dataset.zip | ||
| local_path: ../../../datasets/ranganathan/dataset.zip | ||
|
|
||
| - models: | ||
| - name: esm | ||
| container_path: /models/esm/README.md | ||
| local_path: ../../../models/esm/README.md | ||
| dockerfile: ../../../models/esm/Dockerfile | ||
| - default.yaml | ||
| - datasets.json | ||
| - models.json | ||
|
|
||
| stages: | ||
|
|
||
| setup: | ||
| cmd: | ||
| - mkdir -p logs ${destination.output_dir} ${destination.metric_dir} | ||
| cmd: | ||
| - mkdir -p logs ${target.output_path} ${target.metric_path} | ||
| - echo "Created local directories" > logs/setup.txt | ||
| outs: | ||
| - logs/setup.txt | ||
|
|
||
| create_training_job: | ||
| matrix: | ||
| matrix: | ||
| dataset: ${datasets} | ||
| model: ${models} | ||
|
|
||
| cmd: | ||
| - docker build --build-arg GIT_CACHE_BUST=${git.git_cache_bust} --secret id=git_auth,src=../git-auth.txt -f ${item.model.dockerfile} -t ${item.model.name}:latest ../../.. | ||
| - docker run --rm -v $(realpath ${source.datasets_dir}):/datasets -v $(realpath ${source.models_dir}):/models -v $(realpath ${destination.output_dir}):/opt/ml/model ${item.model.name}:latest train --dataset-file ${item.dataset.container_path} --model-card-file ${item.model.container_path} | ||
| - docker image prune -a -f | ||
|
|
||
| cmd: | ||
| - docker build -f $(dirname ${item.model.input_filename})/Dockerfile -t ${item.model.name}:latest $(dirname ${item.model.input_filename}) | ||
| - docker run --rm -v $(realpath ${item.dataset.input_filename}):/$(basename ${item.dataset.input_filename}) -v $(realpath ${item.model.input_filename}):/$(basename ${item.model.input_filename}) -v $(realpath ${target.output_path}):/opt/ml/model ${item.model.name}:latest train --dataset-file /$(basename ${item.dataset.input_filename}) --model-card-file /$(basename ${item.model.input_filename}) | ||
| - docker image prune -a -f | ||
| deps: | ||
| - logs/setup.txt | ||
| - ${item.dataset.local_path} | ||
| - ${item.model.local_path} | ||
| - ${item.model.dockerfile} | ||
| - ${item.dataset.input_filename} | ||
| - ${item.model.input_filename} | ||
| outs: | ||
| - ${destination.output_dir}/${item.dataset.name}_${item.model.name}.csv: | ||
| - ${target.output_path}/${item.dataset.name}_${item.model.name}.csv: | ||
| cache: true | ||
|
|
||
| calculate_metric: | ||
| matrix: | ||
| dataset: ${datasets} | ||
| model: ${models} | ||
| cmd: uv run proteingym-benchmark metric calc --output-path ${destination.output_dir}/${item.dataset.name}_${item.model.name}.csv --metric-path ${destination.metric_dir}/${item.dataset.name}_${item.model.name}.csv | ||
|
|
||
| cmd: uv run proteingym-benchmark metric calc --output-path ${target.output_path}/${item.dataset.name}_${item.model.name}.csv --metric-path ${target.metric_path}/${item.dataset.name}_${item.model.name}.csv | ||
| deps: | ||
| - ${destination.output_dir}/${item.dataset.name}_${item.model.name}.csv | ||
| - ${target.output_path}/${item.dataset.name}_${item.model.name}.csv | ||
| outs: | ||
| - ${destination.metric_dir}/${item.dataset.name}_${item.model.name}.csv: | ||
| cache: true | ||
| - ${target.metric_path}/${item.dataset.name}_${item.model.name}.csv: | ||
| cache: true |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| * |
Binary file not shown.
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 |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| * |
Binary file not shown.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.