AMDMIGraphX icon indicating copy to clipboard operation
AMDMIGraphX copied to clipboard

Convert MIGX IR to ONNX

Open causten opened this issue 1 year ago • 1 comments

Desciption

As a MIGraphX performance developer I want to break down models in to fused portions and run the single fusion in isolation using different graph optimizers.

Now that the MIGX IR can be extracted in to files PR (https://github.com/ROCm/AMDMIGraphX/pull/3550) , the next step is to convert the IR back to ONNX. This is very important as it allows for the performance comparison with other ONNX accepting optimizers. Comparing MIGX on a per ONNX operator basis is not as interesting as comparing on a per fusion basis

The ONNX community should have tools to build an ONNX model that will likely come in handy.
It may become easier to create a MIGX api to generate the ONNX Operators but feel free to use the newly generated mlir solutions as your starting point.

Success

Convert each .mlir file to ONNX and run perf results for both migraphx-driver and trtexec

causten avatar Nov 19 '24 21:11 causten

Would this allow models to work with something like deepcache?

thenightterorx avatar Nov 22 '24 18:11 thenightterorx

https://github.com/ROCm/AMDMIGraphX/pull/3682

richagadgil avatar Apr 24 '25 02:04 richagadgil