Skip to content
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

Support --outdirname for ml models, partially fixed #63 #71

Merged
merged 2 commits into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions script/get-ml-model-3d-unet-kits19/_cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ variations:
extra_cache_tags: 3d-unet,medical-imaging
force-cache: true
tags: download,file,download-file,_wget
force_env_keys:
- CM_OUTDIRNAME
env:
CM_ML_MODEL_ACCURACY: '0.86170'
CM_ML_MODEL_FILE: 3dunet_kits19_128x128x128_dynbatch.onnx
Expand All @@ -60,6 +62,8 @@ variations:
extra_cache_tags: 3d-unet,medical-imaging
force-cache: true
tags: download,file,download-file,_wget
force_env_keys:
- CM_OUTDIRNAME
env:
CM_ML_MODEL_ACCURACY: '0.86170'
CM_ML_MODEL_FILE: 3dunet_kits19_pytorch.ptc
Expand All @@ -73,6 +77,8 @@ variations:
extra_cache_tags: 3d-unet,medical-imaging
force-cache: true
tags: download-and-extract,_wget,_extract
force_env_keys:
- CM_OUTDIRNAME
env:
CM_ML_MODEL_ACCURACY: '0.86170'
CM_ML_MODEL_FILE: 3dunet_kits19_pytorch_checkpoint.pth
Expand All @@ -92,6 +98,8 @@ variations:
extra_cache_tags: 3d-unet,medical-imaging
force-cache: true
tags: download-and-extract,_wget,_extract
force_env_keys:
- CM_OUTDIRNAME
env:
CM_ML_MODEL_ACCURACY: '0.86170'
CM_ML_MODEL_FILE: 3dunet_kits19_128x128x128.tf
Expand Down
4 changes: 4 additions & 0 deletions script/get-ml-model-bert-large-squad/_cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ new_env_keys:
- CM_ML_MODEL*
post_deps:
- tags: get,dataset-aux,squad-vocab
force_env_keys:
- CM_OUTDIRNAME
prehook_deps:
- env:
CM_DOWNLOAD_FINAL_ENV_NAME: CM_ML_MODEL_FILE_WITH_PATH
Expand All @@ -25,6 +27,8 @@ prehook_deps:
CM_ML_MODEL_BERT_PACKED:
- 'yes'
tags: download-and-extract
force_env_keys:
- CM_OUTDIRNAME
update_tags_from_env_with_prefix:
_url.:
- CM_PACKAGE_URL
Expand Down
2 changes: 2 additions & 0 deletions script/get-ml-model-dlrm-terabyte/_cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ prehook_deps:
names:
- dae
tags: download-and-extract
force_env_keys:
- CM_OUTDIRNAME
update_tags_from_env_with_prefix:
_url.:
- CM_PACKAGE_URL
Expand Down
2 changes: 2 additions & 0 deletions script/get-ml-model-gptj/_cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ prehook_deps:
names:
- dae
tags: download-and-extract
force_env_keys:
- CM_OUTDIRNAME
update_tags_from_env_with_prefix:
_url.:
- CM_DOWNLOAD_URL
Expand Down
2 changes: 2 additions & 0 deletions script/get-ml-model-huggingface-zoo/_cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ variations:
- env:
CM_GIT_CHECKOUT_PATH_ENV_NAME: CM_ML_MODEL_PATH
tags: get,git,repo,_lfs
force_env_keys:
- CM_OUTDIRNAME
update_tags_from_env_with_prefix:
_repo.https://huggingface.co/:
- CM_MODEL_ZOO_STUB
Expand Down
2 changes: 2 additions & 0 deletions script/get-ml-model-llama2/_cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ prehook_deps:
names:
- hf-zoo
tags: get,ml-model,huggingface,zoo,_clone-repo
force_env_keys:
- CM_OUTDIRNAME
print_env_at_the_end:
LLAMA2_CHECKPOINT_PATH: LLAMA2 checkpoint path
tags:
Expand Down
2 changes: 2 additions & 0 deletions script/get-ml-model-mixtral/_cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ prehook_deps:
names:
- hf-zoo
tags: get,ml-model,huggingface,zoo,_clone-repo
force_env_keys:
- CM_OUTDIRNAME
print_env_at_the_end:
MIXTRAL_CHECKPOINT_PATH: MIXTRAL checkpoint path
tags:
Expand Down
2 changes: 2 additions & 0 deletions script/get-ml-model-retinanet-nvidia/_cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ deps:
- tags: get,mlperf,training,src,_nvidia-retinanet
- tags: get,mlperf,inference,src
- tags: get,ml-model,retinanet,_pytorch,_fp32,_weights
force_env_keys:
- CM_OUTDIRNAME
- enable_if_env:
CM_TORCH_DEVICE: cpu
tags: get,generic-python-lib,_torch
Expand Down
4 changes: 4 additions & 0 deletions script/get-ml-model-retinanet/_cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ prehook_deps:
CM_TMP_ML_MODEL_RETINANET_NO_NMS:
- 'yes'
tags: download-and-extract
force_env_keys:
- CM_OUTDIRNAME
update_tags_from_env_with_prefix:
_url.:
- CM_PACKAGE_URL
Expand Down Expand Up @@ -80,6 +82,8 @@ variations:
extra_cache_tags: retinanet,training,patch,file
force_cache: true
tags: download,file,_url.https://raw.githubusercontent.com/arjunsuresh/ck-qaic/main/package/model-onnx-mlperf-retinanet-no-nms/remove-nms-and-extract-priors.patch
force_env_keys:
- CM_OUTDIRNAME
- env:
CM_GIT_CHECKOUT_PATH_ENV_NAME: CM_MLPERF_TRAINING_REPO_PATCHED_PATH
CM_GIT_PATCH_FILEPATHS: <<<CM_RETINANET_NO_NMS_PATCH_FILE_PATH>>>
Expand Down
2 changes: 2 additions & 0 deletions script/get-ml-model-stable-diffusion/_cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ prehook_deps:
names:
- hf-zoo
tags: get,ml-model,huggingface,zoo,_clone-repo,_model-stub.stabilityai/stable-diffusion-xl-base-1.0
force_env_keys:
- CM_OUTDIRNAME
- enable_if_env:
CM_DOWNLOAD_TOOL:
- rclone
Expand Down
2 changes: 2 additions & 0 deletions script/get-ml-model-tiny-resnet/_cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ prehook_deps:
env:
CM_EXTRACT_EXTRACTED_FILENAME: <<<CM_ML_MODEL_FILE>>>
tags: download-and-extract
force_env_keys:
- CM_OUTDIRNAME
update_tags_from_env_with_prefix:
_url.:
- CM_PACKAGE_URL
Expand Down
Loading