Skip to content

Conversation

@MasterJH5574
Copy link
Contributor

This PR sets up the initial relax backend pipeline, as per thread in https://discuss.tvm.apache.org/t/relax-target-default-pipeline.

Particularly, we organized default list of passes in the default pipeline into four stages:

  • library dispatch passes,
  • legalize passes,
  • dataflow lower passes,
  • finalize passes.

The expectation is to have the default pipeline work out of the box, while users can still choose to customize the pipeline by importing these lists and combining them together, with customized passes inserted at proper locations.

In this PR, we set up the initial pipelines for CUDA and LLVM backends. The pipelines for both backends will be enhanced and completed in the near future, and meanwhile the default pipeline for more backends (e.g., generic GPUs) will be added.

The existing pipeline registry system in python/tvm/relax/pipeline.py will be gradually deprecated after the establishment of the new relax backend pipeline.

@tqchen
Copy link
Member

tqchen commented Feb 5, 2025

cc @Hzfengsy

This PR sets up the initial relax backend pipeline, as per thread
in https://discuss.tvm.apache.org/t/relax-target-default-pipeline.

Particularly, we organized default list of passes in the default
pipeline into four stages:
* library dispatch passes,
* legalize passes,
* dataflow lower passes,
* finalize passes.

The expectation is to have the default pipeline work out of the box,
while users can still choose to customize the pipeline by importing
these lists and combining them together, with customized passes
inserted at proper locations.

In this PR, we set up the initial pipelines for CUDA and LLVM backends.
The pipelines for both backends will be enhanced and completed in the
near future, and meanwhile the default pipeline for more backends
(e.g., generic GPUs) will be added.

The existing pipeline registry system in python/tvm/relax/pipeline.py
will be gradually deprecated after the establishment of the new
relax backend pipeline.
@MasterJH5574 MasterJH5574 force-pushed the tvm-dev/2025-02-05-init-relax-pipeline branch from 32680de to f66dd7c Compare February 5, 2025 21:58
@tqchen
Copy link
Member

tqchen commented Feb 6, 2025

@tvm-bot rerun

1 similar comment
@tqchen
Copy link
Member

tqchen commented Feb 7, 2025

@tvm-bot rerun

@tqchen tqchen merged commit 4fdf4ae into apache:main Feb 8, 2025
19 checks passed
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.

2 participants