Skip to main content

SHARK Tuner

SHARK Tuner automates the dispatch-level and model-level tuning for the IREE (Intermediate Representation Execution Environment) ML Compiler on AMD GPUs.

Installation

Install SHARK Tuner from PyPI:

pip install sharktuner

This will install all required dependencies including IREE compiler and runtime.

You can use the latest nightly IREE python bindings:

pip install --upgrade --pre \
    iree-base-compiler \
    iree-base-runtime \
    --find-links https://iree.dev/pip-release-links.html

Verify that the environment is set up correctly:

python -m model_tuner --help

or

python -m dispatch_tuner --help

Model Tuner

Use the Model Tuner to tune a dispatch and a model:

python -m model_tuner double_mmt.mlir mmt_benchmark.mlir \
    --compile-flags-file=compile_flags.txt \
    --model-benchmark-flags-file=model_benchmark_flags.txt \
    --devices=hip://0 \
    --num-candidates=30 \
    --model-tuner-num-dispatch-candidates=5 \
    --model-tuner-num-model-candidates=3`

Refer to Mode Tuner README for detailed information on flags and MLIR files.

Dispatch Tuner

Use the Dispatch Tuner to tune a dispatch:

python -m dispatch_tuner dispatch_sample.mlir dispatch_sample_benchmark.mlir \
    --compile-flags-file=compile_flags.txt
    --devices=hip://0 \
    --num-candidates=30

Refer to Dispatch Tuner README for detailed information on flags and MLIR files.

Metadata

Release files for sharktuner 3.8.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for sharktuner 3.8.1
File Interpreter ABI Platform
sharktuner-3.8.1-py3-none-any.whl Python 3 none any Details

Release files / sharktuner-3.8.1-py3-none-any.whl

Download URL sharktuner-3.8.1-py3-none-any.whl
Size 44.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
77ae6510de8158d1d8a756d9f0239dce6034abe1fb9c6dd787ec14ba3623effd
BLAKE2b-256 checksum
How to use checksums
dbd65fa030def473874c55ee4a8d157da0694a4938ed066a3b5aa3e3a60ab21e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.1

Release history Release notifications | RSS feed

This release

3.8.1 This release

1 release file

3.8.0

1 release file

3.7.0

1 release file

3.6.0

1 release file

3.5.0

1 release file

3.4.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page