Skip to content

Fusilli <> tuner v1: Add IREE tuner integration via Python wrapper script#339

Open
bangtianliu wants to merge 1 commit into
iree-org:mainfrom
bangtianliu:add-tuner-integration
Open

Fusilli <> tuner v1: Add IREE tuner integration via Python wrapper script#339
bangtianliu wants to merge 1 commit into
iree-org:mainfrom
bangtianliu:add-tuner-integration

Conversation

@bangtianliu
Copy link
Copy Markdown
Contributor

@bangtianliu bangtianliu commented Apr 14, 2026

This PR adds benchmarks/run_tuner.py, a Python wrapper around amdsharktuner.libtuner that lets non-expert users invoke the IREE tuner directly from Fusilli.

Issue: #255

Assisted-by: Claude Code

@bangtianliu bangtianliu marked this pull request as draft April 14, 2026 20:11
@bangtianliu bangtianliu force-pushed the add-tuner-integration branch 7 times, most recently from eb36257 to 73a7040 Compare April 14, 2026 22:23
@bangtianliu bangtianliu force-pushed the add-tuner-integration branch 5 times, most recently from 6cef352 to 53ddb1f Compare April 24, 2026 23:19
@bangtianliu bangtianliu marked this pull request as ready for review April 24, 2026 23:25
@bangtianliu bangtianliu force-pushed the add-tuner-integration branch 3 times, most recently from 81509d0 to 09dee93 Compare April 27, 2026 20:32
@sjain-stanford
Copy link
Copy Markdown
Member

I think this is a useful next step but I am pretty confused why you'd want to integrate it at the fusilli core layer when all the direct consumers of this will be at the fusilli provider layer. That's the main user facing interface for fusilli (via hipdnn) and this fits there. @AaronStGeorge could you share what would be a good interface point and next steps to get this integrated properly?

@bangtianliu
Copy link
Copy Markdown
Contributor Author

I think this is a useful next step but I am pretty confused why you'd want to integrate it at the fusilli core layer when all the direct consumers of this will be at the fusilli provider layer. That's the main user facing interface for fusilli (via hipdnn) and this fits there. @AaronStGeorge could you share what would be a good interface point and next steps to get this integrated properly?

Thanks for the pointer, that link is helpful. You're right, the mistake on my end came from a lack of context about where fusilli is actually used.

Adds `benchmarks/run_tuner.py`, a Python wrapper around `amdsharktuner.libtuner`
that allows non-expert users to invoke the IREE tuner directly from Fusilli.
The script runs the full tuning pipeline: generate MLIR via the benchmark driver,
extract cached artifacts, generate/compile/benchmark tuning candidates, and
output an optimized tuning spec. Supports single-command and multi-command
(spec-chaining) workflows.

Signed-off-by: Bangtian Liu <liubangtian@gmail.com>
@bangtianliu bangtianliu force-pushed the add-tuner-integration branch from 09dee93 to 0d241e3 Compare May 4, 2026 23:02
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