Skip to content

fake_quant: move observer and fake_quant flags into buffers#38368

Closed
vkuzo wants to merge 3 commits intogh/vkuzo/64/basefrom
gh/vkuzo/64/head
Closed

fake_quant: move observer and fake_quant flags into buffers#38368
vkuzo wants to merge 3 commits intogh/vkuzo/64/basefrom
gh/vkuzo/64/head

Conversation

@vkuzo
Copy link
Copy Markdown
Contributor

@vkuzo vkuzo commented May 13, 2020

Stack from ghstack:

Summary:

There is a need for some customers to enable/disable these flags
in the middle of QAT. To make it work properly with DDP,
we need to implement them using buffers so that they are replicated
properly to all the nodes.

This should solve issue #38081

Test Plan:

CI

Reviewers:

Subscribers:

Tasks:

Tags:

Differential Revision: D21537607

Summary:

There is a need for some customers to enable/disable these flags
in the middle of QAT.  To make it work properly with DDP,
we need to implement them using buffers so that they are replicated
properly to all the nodes.

This should solve issue #38081

Test Plan:

CI

Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
vkuzo added a commit that referenced this pull request May 13, 2020
Summary:

There is a need for some customers to enable/disable these flags
in the middle of QAT.  To make it work properly with DDP,
we need to implement them using buffers so that they are replicated
properly to all the nodes.

This should solve issue #38081

Test Plan:

CI

Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: a428cfd
Pull Request resolved: #38368
Copy link
Copy Markdown
Contributor

@jerryzh168 jerryzh168 left a comment

Choose a reason for hiding this comment

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

this is probably not scriptable. but we haven't make fake quant module itself scriptable yet. so changes to make this scriptable will come later

@dr-ci
Copy link
Copy Markdown

dr-ci Bot commented May 13, 2020

💊 CI failures summary and remediations

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


💚 💚 Looks good so far! There are no failures yet. 💚 💚


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions on the GitHub issue tracker.

See how this bot performed.

This comment has been revised 7 times.

Summary:

There is a need for some customers to enable/disable these flags
in the middle of QAT.  To make it work properly with DDP,
we need to implement them using buffers so that they are replicated
properly to all the nodes.

This should solve issue #38081

Test Plan:

CI

Reviewers:

Subscribers:

Tasks:

Tags:

Differential Revision: [D21537607](https://our.internmc.facebook.com/intern/diff/D21537607)

[ghstack-poisoned]
vkuzo added a commit that referenced this pull request May 13, 2020
Summary:

There is a need for some customers to enable/disable these flags
in the middle of QAT.  To make it work properly with DDP,
we need to implement them using buffers so that they are replicated
properly to all the nodes.

This should solve issue #38081

Test Plan:

CI

Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: 7c9e8d8
Pull Request resolved: #38368
Summary:

There is a need for some customers to enable/disable these flags
in the middle of QAT.  To make it work properly with DDP,
we need to implement them using buffers so that they are replicated
properly to all the nodes.

This should solve issue #38081

Test Plan:

CI

Reviewers:

Subscribers:

Tasks:

Tags:

Differential Revision: [D21537607](https://our.internmc.facebook.com/intern/diff/D21537607)

[ghstack-poisoned]
vkuzo added a commit that referenced this pull request May 15, 2020
Summary:

There is a need for some customers to enable/disable these flags
in the middle of QAT.  To make it work properly with DDP,
we need to implement them using buffers so that they are replicated
properly to all the nodes.

This should solve issue #38081

Test Plan:

CI

Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: ec46146
Pull Request resolved: #38368
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 8292742.

@facebook-github-bot facebook-github-bot deleted the gh/vkuzo/64/head branch May 22, 2020 14:16
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
…38368)

Summary:
Pull Request resolved: pytorch#38368

There is a need for some customers to enable/disable these flags
in the middle of QAT.  To make it work properly with DDP,
we need to implement them using buffers so that they are replicated
properly to all the nodes.

This should solve issue pytorch#38081

Test Plan:
CI

Imported from OSS

Differential Revision: D21537607

fbshipit-source-id: 8c9da022beb7aaa44c658268f02f99dd5aee93fd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Quantization: FakeQuant and Observers should sync enabled flags with DDP

4 participants