-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add models from Hugging Face/transformers from MLAgility (#615)
* popular_on_huggingface/bert-base-uncased.py Signed-off-by: jcwchen <jacky82226@gmail.com> * add transformers models Signed-off-by: jcwchen <jacky82226@gmail.com> * remove gpt1 and gpt2 for now Signed-off-by: jcwchen <jacky82226@gmail.com> * config Signed-off-by: jcwchen <jacky82226@gmail.com> * get model name from build_dir Signed-off-by: jcwchen <jacky82226@gmail.com> * find_model_hash_name Signed-off-by: jcwchen <jacky82226@gmail.com> * subprocess.PIPE Signed-off-by: jcwchen <jacky82226@gmail.com> * new models Signed-off-by: jcwchen <jacky82226@gmail.com> * 7 models Signed-off-by: jcwchen <jacky82226@gmail.com> * only keep 4 Signed-off-by: jcwchen <jacky82226@gmail.com> * remove 4 Signed-off-by: jcwchen <jacky82226@gmail.com> * remove albert-base-v2 Signed-off-by: jcwchen <jacky82226@gmail.com> * del model and sess Signed-off-by: jcwchen <jacky82226@gmail.com> * check_path Signed-off-by: jcwchen <jacky82226@gmail.com> * drop models in CI Signed-off-by: jcwchen <jacky82226@gmail.com> * add bert_generation Signed-off-by: jcwchen <jacky82226@gmail.com> * --binary Signed-off-by: jcwchen <jacky82226@gmail.com> * disable bert_generation.py Signed-off-by: jcwchen <jacky82226@gmail.com> * no binary Signed-off-by: jcwchen <jacky82226@gmail.com> * cancel in progress Signed-off-by: jcwchen <jacky82226@gmail.com> * binary Signed-off-by: jcwchen <jacky82226@gmail.com> * minimal Signed-off-by: jcwchen <jacky82226@gmail.com> * --mini Signed-off-by: jcwchen <jacky82226@gmail.com> * manually check Signed-off-by: jcwchen <jacky82226@gmail.com> * only keep Signed-off-by: jcwchen <jacky82226@gmail.com> * run_test_dir Signed-off-by: jcwchen <jacky82226@gmail.com> * coma Signed-off-by: jcwchen <jacky82226@gmail.com> * cache_converted_dir = "~/.cache" Signed-off-by: jcwchen <jacky82226@gmail.com> * delete and clean cache Signed-off-by: jcwchen <jacky82226@gmail.com> * clean Signed-off-by: jcwchen <jacky82226@gmail.com> * clean all Signed-off-by: jcwchen <jacky82226@gmail.com> * only clean Signed-off-by: jcwchen <jacky82226@gmail.com> * --cache-dir", cache_converted_dir Signed-off-by: jcwchen <jacky82226@gmail.com> * disable openai_clip-vit-large-patch14 Signed-off-by: jcwchen <jacky82226@gmail.com> * disable Signed-off-by: jcwchen <jacky82226@gmail.com> * only keep 4 Signed-off-by: jcwchen <jacky82226@gmail.com> * comma Signed-off-by: jcwchen <jacky82226@gmail.com> * runs-on: macos-latest Signed-off-by: jcwchen <jacky82226@gmail.com> * not using conda Signed-off-by: jcwchen <jacky82226@gmail.com> * final_model_path Signed-off-by: jcwchen <jacky82226@gmail.com> * git-lfst pull dir Signed-off-by: jcwchen <jacky82226@gmail.com> * git diff Signed-off-by: jcwchen <jacky82226@gmail.com> * use onnx.load to compare Signed-off-by: jcwchen <jacky82226@gmail.com> * test_utils.pull_lfs_file(final_model_path) Signed-off-by: jcwchen <jacky82226@gmail.com> * only test changed models Signed-off-by: jcwchen <jacky82226@gmail.com> * test_utils Signed-off-by: jcwchen <jacky82226@gmail.com> * get_cpu_info Signed-off-by: jcwchen <jacky82226@gmail.com> * ext names Signed-off-by: jcwchen <jacky82226@gmail.com> * test_utils.get_changed_models() Signed-off-by: jcwchen <jacky82226@gmail.com> * compare 2 Signed-off-by: jcwchen <jacky82226@gmail.com> * fix init Signed-off-by: jcwchen <jacky82226@gmail.com> * transformers==4.29.2 Signed-off-by: jcwchen <jacky82226@gmail.com> * test Signed-off-by: jcwchen <jacky82226@gmail.com> * initializer Signed-off-by: jcwchen <jacky82226@gmail.com> * update bert-generation Signed-off-by: jcwchen <jacky82226@gmail.com> * fixed numpy Signed-off-by: jcwchen <jacky82226@gmail.com> * print(f"initializer {k}") Signed-off-by: jcwchen <jacky82226@gmail.com> * update bert from mac Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com> * remove bert-generation Signed-off-by: jcwchen <jacky82226@gmail.com> * mlagility_subdir_count number Signed-off-by: jcwchen <jacky82226@gmail.com> * remove unused onnx Signed-off-by: jcwchen <jacky82226@gmail.com> --------- Signed-off-by: jcwchen <jacky82226@gmail.com> Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>
- Loading branch information
Showing
31 changed files
with
170 additions
and
56 deletions.
There are no files selected for viewing
This file contains 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 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 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 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
3 changes: 3 additions & 0 deletions
3
...s/mlagility/distilbert-base-multilingual-cased/distilbert-base-multilingual-cased-16.onnx
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
models/mlagility/distilbert-base-multilingual-cased/test_data_set_0/input_0.pb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
models/mlagility/distilbert-base-multilingual-cased/test_data_set_0/input_1.pb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
models/mlagility/distilbert-base-multilingual-cased/test_data_set_0/output_0.pb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
models/mlagility/distilbert-base-uncased/distilbert-base-uncased-16.onnx
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
models/mlagility/distilbert-base-uncased/test_data_set_0/input_0.pb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
models/mlagility/distilbert-base-uncased/test_data_set_0/input_1.pb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
models/mlagility/distilbert-base-uncased/test_data_set_0/output_0.pb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
models/mlagility/openai_clip-vit-large-patch14/openai_clip-vit-large-patch14-16.onnx
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
models/mlagility/openai_clip-vit-large-patch14/test_data_set_0/input_0.pb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
models/mlagility/openai_clip-vit-large-patch14/test_data_set_0/input_1.pb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
models/mlagility/openai_clip-vit-large-patch14/test_data_set_0/input_2.pb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
models/mlagility/openai_clip-vit-large-patch14/test_data_set_0/output_0.pb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
models/mlagility/openai_clip-vit-large-patch14/test_data_set_0/output_1.pb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
models/mlagility/openai_clip-vit-large-patch14/test_data_set_0/output_2.pb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
models/mlagility/openai_clip-vit-large-patch14/test_data_set_0/output_3.pb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
models/mlagility/openai_clip-vit-large-patch14/test_data_set_0/output_4.pb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
models/mlagility/openai_clip-vit-large-patch14/test_data_set_0/output_5.pb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
models/mlagility/openai_clip-vit-large-patch14/test_data_set_0/output_6.pb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
models/mlagility/openai_clip-vit-large-patch14/test_data_set_0/output_7.pb
Git LFS file not shown
This file contains 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,2 +1,4 @@ | ||
numpy==1.24.4 | ||
torch==2.0.1 | ||
torchvision==0.15.2 | ||
transformers==4.29.2 |
This file contains 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 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 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 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 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 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