-
Notifications
You must be signed in to change notification settings - Fork 81
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
[RFC] Establish TVM Unity Connection -- A Technical Strategy #91
Conversation
This RFC summarizes an overall technical strategy on establish TVM Unity connection milestone. It supplementary to the technical RFCs about specific components.
Thanks @tqchen!!! I'm excited to see the pre-RFC become this formal RFC. The Unity Connection is a great step from multi-level lowering compilation to a flexible, unified abstraction for the end-to-end model compilation. I'd like to summarize the discuss thread here for readers who did not participate. Modularized Compilation FlowThe TVM unity uses cross-layer abstraction to represent:
Easy to customizeFast customization is critical during researching and prototyping. The modularized workflow natively enables it. Here I'd like to share two cases: Ex1: Adding new operator supportsInstead of 7-step tutorial, here are only two steps with the unity connection:
Ex2: Customizable operator fusionEach pass is decoupled, which means we are able to fuse operators (to be general, optimize the module) in multiple passes. i.e. We can have a customized pass to fuse two convs while using the internal fusor to fuse the following element-wise ops. Cross-layer optimization opportunitiesLayout optimization is a typical cross-layer optimization, that we are able to do with TVM Unity. Also, we do have some prototype results to prove it works. Additionally, I'm happy to see the community members working on different backends are all looking forward to this feature. Note that this RFC is a technical strategy, which is a bit different with the Relax Upstream RFC #89. Please turn to that thread if you have specific comments on relax itself. Love to hear ideas from the community. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've already read the pre-RFC in the discussion forum and shared some thoughts there. Here I only have some comments on the grammatical nits and typos.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me and I don't have further opinion since I have already left my comments in the discussion forum. Excited to see this happens and looking forward to those key components being landed.
opened a voting thread apache/tvm#12651 |
55b4139
to
e9ebefd
Compare
53fe95b
to
48e3e49
Compare
Thanks, everyone, for putting effort into making unity development happen. Today, we come to the one-year mark of the unity connection proposal. It is amazing to see how the landscape of AI/ML has changed and how some of the emerging needs fit right into the strategy we bought one year ago. Because of the time delays. The strategy as it is no longer timely sense as it was one year ago. So we decided to withdraw the proposal and work to come up with new ones. It is now obvious that if we took the default option of not pursuing or delaying the strategy standing at last year's point,, we would miss the opportunity to empower the community in the age of genAI. Luckily, we did not let that slip away and pushed the development of unity branch. Many of you may have seen the news lately on how they bear fruits in enabling real applications like bringing LLMs and other foundational models to various devices. The good news is that we have clarified strategy decision process to empower strategic proposals. There are also new emerging opportunities in the age of genAI and foundational models, which majority community support. Please follow the unity branch, continue participating in community discussions, and let us bring TVM to enable everyone. Thank you to many community members who supported the proposal and believed in what it can bring. Let us do our best pushing unity development. We will also collect inputs and come up with new versions of strategies that reflects the current inputs. |
Thanks everyone for the year-long discussion. I'd love to note that, in respective, we would have already missed the boat of generative AI, and Apache TVM would have lost momentum of empowering the community on the up-to-date workloads they are interested in, if we decided to follow the default option not pursuing a real solution, and to stagnate with endless debates without concrete action taken. I'm super glad to have a set of decisive PMC staff who care and a broad vibrant community who contribute and help. We work collaboratively on the Unity branch, this super valuable technical directions, catching up and empowering generative AI together! |
This RFC summarizes an overall technical strategy on establish TVM Unity connection milestone.
It is supplementary to the technical RFCs about specific components.
rendered
discuss thread