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

Cleanup Quantized ShuffleNet #4854

Merged
merged 3 commits into from Nov 4, 2021

Conversation

datumbox
Copy link
Contributor

@datumbox datumbox commented Nov 4, 2021

This PR:

  • Removes the quantized model builders for variants shufflenet_v2_x1_5 and shufflenet_v2_x2_0. These two were added by mistake and they are unusable because we have neither quantized weights nor normal weights.
  • Adds quantized weights for shufflenet_v2_x0_5 variant, so that the equivalent model builder makes sense.

Verified by:

python train_quantization.py --device='cpu' --model='shufflenet_v2_x0_5' --test-only
Test:  Acc@1 57.972 Acc@5 79.780

The above builders caused problems to users and quite often on FBcode you can find code that tries to skip/ignore it. See this for example: pytorch/pytorch#67836

With the removal of the problematic methods, we can now clean up the skips non the next fbsync.

@datumbox datumbox added enhancement module: models.quantization Issues related to the quantizable/quantized models labels Nov 4, 2021
@facebook-github-bot
Copy link

facebook-github-bot commented Nov 4, 2021

💊 CI failures summary and remediations

As of commit fb92493 (more details on the Dr. CI page):


  • 1/1 failures introduced in this PR

1 failure not recognized by patterns:

Job Step Action
CircleCI binary_linux_conda_py3.8_cu111 packaging/build_conda.sh 🔁 rerun

1 job timed out:

  • binary_linux_conda_py3.8_cu111

This comment was automatically generated by Dr. CI (expand for details).

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

@datumbox datumbox requested a review from fmassa November 4, 2021 10:05
Copy link
Member

@fmassa fmassa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@datumbox
Copy link
Contributor Author

datumbox commented Nov 4, 2021

The single failed tests is unrelated and caused by network flakiness. Merging.

@datumbox datumbox merged commit 9109d8d into pytorch:main Nov 4, 2021
@datumbox datumbox deleted the models/cleanup_quantshufflenet branch November 4, 2021 11:22
@datumbox datumbox linked an issue Nov 4, 2021 that may be closed by this pull request
5 tasks
facebook-github-bot pushed a commit that referenced this pull request Nov 8, 2021
Summary:
* Clean up unnecessary quant builders and add quant weights for 0.5

* Fixing mypy.

Reviewed By: kazhang

Differential Revision: D32216668

fbshipit-source-id: 16e4c817cde3e0138685a5989b266a2936ca3f42
datumbox added a commit to pytorch/pytorch that referenced this pull request Nov 9, 2021
…67836)

Summary:
TorchVision accidentally included model builders for quantized models without weights; this was an old bug. These builders were largely unusable and caused issues to the users. Commonly they were filtered out to avoid causing issues.

We've recently fixed that (pytorch/vision#4854) by either removing those unnecessary builders or by providing quantized weights. This PR removes the no-longer necessary filtering of the methods.

**It should be merged after TorchVision is synced on FBCode.**

Pull Request resolved: #67836

Reviewed By: jerryzh168

Differential Revision: D32230658

Pulled By: datumbox

fbshipit-source-id: 797ca6d6a42474c14eeee1ad05c75e3ff05d1930
facebook-github-bot pushed a commit to pytorch/pytorch that referenced this pull request Nov 9, 2021
…67836)

Summary:
TorchVision accidentally included model builders for quantized models without weights; this was an old bug. These builders were largely unusable and caused issues to the users. Commonly they were filtered out to avoid causing issues.

We've recently fixed that (pytorch/vision#4854) by either removing those unnecessary builders or by providing quantized weights. This PR removes the no-longer necessary filtering of the methods.

**It should be merged after TorchVision is synced on FBCode.**

Pull Request resolved: #67836

Reviewed By: jerryzh168

Differential Revision: D32230658

Pulled By: datumbox

fbshipit-source-id: 01cd425b1bda3b4591a25840593b3b5dde3a0f12
cyyever pushed a commit to cyyever/vision that referenced this pull request Nov 16, 2021
* Clean up unnecessary quant builders and add quant weights for 0.5

* Fixing mypy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multi pretrained weights: Cleanups and Refactoring
3 participants