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

[test] added timm models to test model zoo #3129

Merged
merged 6 commits into from
Mar 14, 2023

Conversation

FrankLeeeee
Copy link
Contributor

📌 Checklist before creating the PR

  • I have created an issue for this PR for traceability
  • The title follows the standard format: [doc/gemini/tensor/...]: A concise description
  • I have added relevant tags if possible for us to better distinguish different PRs

🚨 Issue number

Link this PR to your issue with words like fixed to automatically close the linked issue upon merge

e.g. fixed #1234, closed #1234, resolved #1234

part of efforts for #3049

📝 What does this PR do?

Summarize your work here.
if you have any plots/diagrams/screenshots/tables, please attach them here.

This PR added the model zoo for testing and documented the specifications. As a simple test, I have transformed the tracer testing on TIMM models so that it uses the latest kit.

💥 Checklist before requesting a review

  • I have linked my PR to an issue (instruction)
  • My issue clearly describes the problem/feature/proposal, with diagrams/charts/table/code if possible
  • I have performed a self-review of my code
  • I have added thorough tests.
  • I have added docstrings for all the functions/methods I implemented

⭐️ Do you enjoy contributing to Colossal-AI?

  • 🌝 Yes, I do.
  • 🌚 No, I don't.

Tell us more if you don't enjoy contributing to Colossal-AI.

@1SAA
Copy link
Contributor

1SAA commented Mar 14, 2023

Hi @FrankLeeeee

Could you use this model list instead? It seems it has more models. They are used by @super-dainiu in the latest testing code.

        tmm.beit_base_patch16_224,
        tmm.beitv2_base_patch16_224,
        tmm.cait_s24_224,
        tmm.coat_lite_mini,
        tmm.convit_base,
        tmm.deit3_base_patch16_224,
        tmm.dm_nfnet_f0,
        tmm.eca_nfnet_l0,
        tmm.efficientformer_l1,
        tmm.ese_vovnet19b_dw,
        tmm.gmixer_12_224,
        tmm.gmlp_b16_224,
        tmm.hardcorenas_a,
        tmm.hrnet_w18_small,
        tmm.inception_v3,
        tmm.mixer_b16_224,
        tmm.nf_ecaresnet101,
        tmm.nf_regnet_b0,
        tmm.regnetv_040,
        tmm.skresnet18,
        tmm.swin_base_patch4_window7_224,
        tmm.tnt_b_patch16_224,
        tmm.vgg11,
        tmm.vit_base_patch16_18x2_224,
        tmm.wide_resnet50_2,

@github-actions
Copy link
Contributor

The code coverage for the changed files is 95%.

Click me to view the complete report
Name                                                           Stmts   Miss  Cover
----------------------------------------------------------------------------------
tests/kit/__init__.py                                              0      0   100%
tests/kit/model_zoo/__init__.py                                    3      0   100%
tests/kit/model_zoo/registry.py                                   16      0   100%
tests/kit/model_zoo/timm/__init__.py                               1      0   100%
tests/kit/model_zoo/timm/timm.py                                  18      0   100%
tests/test_fx/test_tracer/test_timm_model/test_timm_model.py      27      3    89%
----------------------------------------------------------------------------------
TOTAL                                                             65      3    95%

@FrankLeeeee
Copy link
Contributor Author

Hi @FrankLeeeee

Could you use this model list instead? It seems it has more models. They used by @super-dainiu in the latest testing code.

        tmm.beit_base_patch16_224,
        tmm.beitv2_base_patch16_224,
        tmm.cait_s24_224,
        tmm.coat_lite_mini,
        tmm.convit_base,
        tmm.deit3_base_patch16_224,
        tmm.dm_nfnet_f0,
        tmm.eca_nfnet_l0,
        tmm.efficientformer_l1,
        tmm.ese_vovnet19b_dw,
        tmm.gmixer_12_224,
        tmm.gmlp_b16_224,
        tmm.hardcorenas_a,
        tmm.hrnet_w18_small,
        tmm.inception_v3,
        tmm.mixer_b16_224,
        tmm.nf_ecaresnet101,
        tmm.nf_regnet_b0,
        tmm.regnetv_040,
        tmm.skresnet18,
        tmm.swin_base_patch4_window7_224,
        tmm.tnt_b_patch16_224,
        tmm.vgg11,
        tmm.vit_base_patch16_18x2_224,
        tmm.wide_resnet50_2,

Ok cool.

@github-actions
Copy link
Contributor

The code coverage for the changed files is 95%.

Click me to view the complete report
Name                                                           Stmts   Miss  Cover
----------------------------------------------------------------------------------
tests/kit/__init__.py                                              0      0   100%
tests/kit/model_zoo/__init__.py                                    3      0   100%
tests/kit/model_zoo/registry.py                                   16      0   100%
tests/kit/model_zoo/timm/__init__.py                               1      0   100%
tests/kit/model_zoo/timm/timm.py                                  18      0   100%
tests/test_fx/test_tracer/test_timm_model/test_timm_model.py      27      3    89%
----------------------------------------------------------------------------------
TOTAL                                                             65      3    95%

@github-actions
Copy link
Contributor

The code coverage for the changed files is 99%.

Click me to view the complete report
Name                                                           Stmts   Miss  Cover
----------------------------------------------------------------------------------
tests/kit/__init__.py                                              0      0   100%
tests/kit/model_zoo/__init__.py                                    3      0   100%
tests/kit/model_zoo/registry.py                                   16      0   100%
tests/kit/model_zoo/timm/__init__.py                               1      0   100%
tests/kit/model_zoo/timm/timm.py                                  39      0   100%
tests/test_fx/test_tracer/test_timm_model/test_timm_model.py      32      1    97%
----------------------------------------------------------------------------------
TOTAL                                                             91      1    99%

@github-actions
Copy link
Contributor

The code coverage for the changed files is 99%.

Click me to view the complete report
Name                                                           Stmts   Miss  Cover
----------------------------------------------------------------------------------
tests/kit/__init__.py                                              0      0   100%
tests/kit/model_zoo/__init__.py                                    3      0   100%
tests/kit/model_zoo/registry.py                                   16      0   100%
tests/kit/model_zoo/timm/__init__.py                               1      0   100%
tests/kit/model_zoo/timm/timm.py                                  39      0   100%
tests/test_fx/test_tracer/test_timm_model/test_timm_model.py      32      1    97%
----------------------------------------------------------------------------------
TOTAL                                                             91      1    99%

@FrankLeeeee FrankLeeeee merged commit 86ac782 into hpcaitech:main Mar 14, 2023
@FrankLeeeee FrankLeeeee deleted the feature/test-timm-model-zoo branch March 14, 2023 06:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants