amdshark Tuner
amdshark Tuner automates the dispatch-level and model-level tuning for the IREE (Intermediate Representation Execution Environment) ML Compiler on AMD GPUs.
Installation
Install amdshark Tuner from PyPI:
pip install amdsharktuner
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 amdsharktuner 3.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| amdsharktuner-3.9.0-py3-none-any.whl | Python 3 | none | any | Details for amdsharktuner-3.9.0-py3-none-any.whl |
Release files / amdsharktuner-3.9.0-py3-none-any.whl
| Download URL | amdsharktuner-3.9.0-py3-none-any.whl |
|---|---|
| Size | 62.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4a1f7284fc0cc68bb5fd0f84c70a382cbfa60cc1ca45ac0b2a24b84b49166e76
|
|
BLAKE2b-256 checksum How to use checksums |
be9085e09ab91d758333e1df312e58a68a07d91a42e77d66eb2ca9f304207b22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Security for amdsharktuner 3.9.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.