Uh oh!
There was an error while loading. Please reload this page.
[RFC] [Relay] Automatic Mixed Precision Pass - #6
Conversation
comaniac
commented
Jun 9, 2021
Thanks for the RFC. I have two questions:
|
Yep that is correct it is very similar to the layout conversion pass. This RFC has an initial PR here: apache/tvm#8069. To answer your questions:
|
comaniac
commented
Jun 9, 2021
Thanks for the answers. I'll review the PR to get more implementation details. |
AndrewZhaoLuo
commented
Jun 9, 2021
It should be trivial (hope I don't eat my words). I'm not 100% sure of the support for bfloat16 in current relay ops however. |
AndrewZhaoLuo
commented
Jun 9, 2021
I don't know Chris Sullivan's github handle so if someone could cc him too that would be great. |
tmoreau89
commented
Jun 9, 2021
CCing @csullivan |
comaniac
commented
Jun 9, 2021
TVM has limited bfloat16 support now but it's on the way, so it would be better for this RFC to also consider this case, even the initial version may not cover it. |
So the associated PR is getting closer to a mergeable state. Is this RFC ready for more comments? |
tqchen
commented
Jul 24, 2021
cc @comaniac would be great if you can help shepherd this RFC |
comaniac
left a comment
There was a problem hiding this comment.
The concept and algorithm look good to me, but it would be better to provide more implementation/design details.
| We can support automatic mixed precision retraining though that is a much, much larger future goal. It's | ||
| good to have this in the meantime. |
There was a problem hiding this comment.
The answer to this question should come with a discussion of existing mechanisms used by other frameworks, such as XLA and PyTorch.
There was a problem hiding this comment.
Done. Please let me know if this is sufficient. Don't have the best background on some of this stuff.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
AndrewZhaoLuo
commented
Jul 27, 2021
Thanks for driving this review @comaniac. I'll get to this later in the week. |
AndrewZhaoLuo
commented
Aug 4, 2021
Going to get to this tomorrow 😬. Promise 🤞 |
comaniac
commented
Aug 4, 2021
btw, according to #17, please update the RFC number on the file name to align with this PR number. |
comaniac
commented
Aug 16, 2021
Took a quick pass to the updated RFC. I think it's almost ready to merge as long as the last 3 comments are resolved. |
AndrewZhaoLuo
commented
Aug 17, 2021
PTAL @comaniac |
AndrewZhaoLuo
commented
Aug 18, 2021
@comaniac, I'll be talking about this at the TVM community meeting tomorrow so put off merging until after. |
comaniac
left a comment
There was a problem hiding this comment.
LGTM. Will merge after the community meeting if there's no objection.
AndrewZhaoLuo
commented
Aug 19, 2021
If there is not other objections, this will be merged on monday. |
comaniac
commented
Aug 24, 2021
Thanks @AndrewZhaoLuo |
MeJerry215
commented
Dec 30, 2021
@AndrewZhaoLuo will it remove cast weight to float16 from graph? and make weight as float16 when build lib. |
masahi
commented
Dec 30, 2021
@MeJerry215 Yes, casting of weight to fp16 is done at compile time by |
uma-rfc: update to questions/comments added
Relevant Links:
https://discuss.tvm.apache.org/t/rfc-relay-fp32-fp16-model-support/9994
apache/tvm#8069
cc @hogepodge@mbrookhart@anijain2305@masahi
Link to tracking issue: apache/tvm#8296