-
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 <[email protected]> * add transformers models Signed-off-by: jcwchen <[email protected]> * remove gpt1 and gpt2 for now Signed-off-by: jcwchen <[email protected]> * config Signed-off-by: jcwchen <[email protected]> * get model name from build_dir Signed-off-by: jcwchen <[email protected]> * find_model_hash_name Signed-off-by: jcwchen <[email protected]> * subprocess.PIPE Signed-off-by: jcwchen <[email protected]> * new models Signed-off-by: jcwchen <[email protected]> * 7 models Signed-off-by: jcwchen <[email protected]> * only keep 4 Signed-off-by: jcwchen <[email protected]> * remove 4 Signed-off-by: jcwchen <[email protected]> * remove albert-base-v2 Signed-off-by: jcwchen <[email protected]> * del model and sess Signed-off-by: jcwchen <[email protected]> * check_path Signed-off-by: jcwchen <[email protected]> * drop models in CI Signed-off-by: jcwchen <[email protected]> * add bert_generation Signed-off-by: jcwchen <[email protected]> * --binary Signed-off-by: jcwchen <[email protected]> * disable bert_generation.py Signed-off-by: jcwchen <[email protected]> * no binary Signed-off-by: jcwchen <[email protected]> * cancel in progress Signed-off-by: jcwchen <[email protected]> * binary Signed-off-by: jcwchen <[email protected]> * minimal Signed-off-by: jcwchen <[email protected]> * --mini Signed-off-by: jcwchen <[email protected]> * manually check Signed-off-by: jcwchen <[email protected]> * only keep Signed-off-by: jcwchen <[email protected]> * run_test_dir Signed-off-by: jcwchen <[email protected]> * coma Signed-off-by: jcwchen <[email protected]> * cache_converted_dir = "~/.cache" Signed-off-by: jcwchen <[email protected]> * delete and clean cache Signed-off-by: jcwchen <[email protected]> * clean Signed-off-by: jcwchen <[email protected]> * clean all Signed-off-by: jcwchen <[email protected]> * only clean Signed-off-by: jcwchen <[email protected]> * --cache-dir", cache_converted_dir Signed-off-by: jcwchen <[email protected]> * disable openai_clip-vit-large-patch14 Signed-off-by: jcwchen <[email protected]> * disable Signed-off-by: jcwchen <[email protected]> * only keep 4 Signed-off-by: jcwchen <[email protected]> * comma Signed-off-by: jcwchen <[email protected]> * runs-on: macos-latest Signed-off-by: jcwchen <[email protected]> * not using conda Signed-off-by: jcwchen <[email protected]> * final_model_path Signed-off-by: jcwchen <[email protected]> * git-lfst pull dir Signed-off-by: jcwchen <[email protected]> * git diff Signed-off-by: jcwchen <[email protected]> * use onnx.load to compare Signed-off-by: jcwchen <[email protected]> * test_utils.pull_lfs_file(final_model_path) Signed-off-by: jcwchen <[email protected]> * only test changed models Signed-off-by: jcwchen <[email protected]> * test_utils Signed-off-by: jcwchen <[email protected]> * get_cpu_info Signed-off-by: jcwchen <[email protected]> * ext names Signed-off-by: jcwchen <[email protected]> * test_utils.get_changed_models() Signed-off-by: jcwchen <[email protected]> * compare 2 Signed-off-by: jcwchen <[email protected]> * fix init Signed-off-by: jcwchen <[email protected]> * transformers==4.29.2 Signed-off-by: jcwchen <[email protected]> * test Signed-off-by: jcwchen <[email protected]> * initializer Signed-off-by: jcwchen <[email protected]> * update bert-generation Signed-off-by: jcwchen <[email protected]> * fixed numpy Signed-off-by: jcwchen <[email protected]> * print(f"initializer {k}") Signed-off-by: jcwchen <[email protected]> * update bert from mac Signed-off-by: Chun-Wei Chen <[email protected]> * remove bert-generation Signed-off-by: jcwchen <[email protected]> * mlagility_subdir_count number Signed-off-by: jcwchen <[email protected]> * remove unused onnx Signed-off-by: jcwchen <[email protected]> --------- Signed-off-by: jcwchen <[email protected]> Signed-off-by: Chun-Wei Chen <[email protected]>
- 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