Skip to content

Conversation

@tqchen
Copy link
Member

@tqchen tqchen commented Feb 15, 2025

This PR starts the step 0 to phase out relay from the current development main branch. This PR focuses on the python components of relay, autotvm, auto_scheduler. To make the change manageable, we will also do followup steps on te.Schedule and c++ components in followup PRs.

To continue support community members who depends on legacy flows, the v0.19.0 branch will continue contain these components.

As noted in discussion on phasing out legacy components, this would help us to do two purposes:

  • By removing outdated or redundant elements, we can significantly reduce complexity and improve maintainability.
  • Unify our focus: Concentrating our efforts on the new unity flow will allow for more efficient development and innovation.

It is also a good opportunity for us to revisit and reduce CI time. The past relay legacy flow contains a lot of end to end tests that requires hardware resources to run and causing long CI time. Moving onwards, we can focus more on unit-tests that focuses on structural equality and runs within seconds, while be mindeful about tests that requires hardware resources (by restricting them to specific folders and CI nightly in some cases).

tqchen and others added 9 commits February 14, 2025 09:38
fix

Cleanup and fix
cpptest should only run on cpu and test most basic stuffs
Use python test for broader coverage.

NOTE for future, we can potential restructure additional tests
that links libtvm but donot rebuild libtvm if strictly needing them.
@MasterJH5574 MasterJH5574 merged commit ccaa534 into main Feb 15, 2025
15 checks passed
ShiboXing pushed a commit to ShiboXing/tvm that referenced this pull request Aug 10, 2025
This PR starts the step 0 to phase out relay from the current
development main branch.  This PR focuses on the python
components of relay, autotvm, auto_scheduler. To make the change
manageable, we will also do followup steps on te.Schedule and
c++ components in followup PRs.

To continue support community members who depends on
legacy flows, the [v0.19.0](https://github.com/apache/tvm/tree/v0.19.0)
branch will continue contain these components.


As noted in [discussion on phasing out legacy components](https://discuss.tvm.apache.org/t/phasing-out-legacy-components/17703/30),
this would help us to do two purposes:

- By removing outdated or redundant elements, we can significantly
reduce complexity and improve maintainability.
- Unify our focus: Concentrating our efforts on the new unity flow
will allow for more efficient development and innovation.

It is also a good opportunity for us to revisit and reduce CI time.
The past relay legacy flow contains a lot of end to end tests that
requires hardware resources to run and causing long CI time.
Moving onwards, we can focus more on unit-tests that focuses
on structural equality and runs within seconds, while be mindful
about tests that requires hardware resources (by restricting them
to specific folders and CI nightly in some cases).

---

Co-authored-by: Siyuan Feng <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants