Merge pull request #19 from LokiMetaSmith/fix-amd-triton-reinstall

Fix AMD Triton runtime error by reinstalling pytorch-triton-rocm
This commit is contained in:
Lawrence R Kincheloe III 2025-11-22 23:22:57 -06:00 committed by GitHub
commit 23695f817d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,6 +46,9 @@ source .venv/bin/activate
# if the NVIDIA version of triton (e.g. 3.4.0) is accidentally installed.
if [ "$EXTRAS" == "amd" ]; then
uv pip uninstall -q triton || true
# Uninstalling triton may have deleted the shared 'triton' directory, breaking pytorch-triton-rocm.
# Reinstall pytorch-triton-rocm to ensure it's intact.
uv pip install --force-reinstall --index-url https://repo.amd.com/rocm/whl/gfx1151 pytorch-triton-rocm
fi
# -----------------------------------------------------------------------------