mirror of
https://github.com/karpathy/nanochat.git
synced 2025-12-06 04:12:13 +00:00
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:
commit
23695f817d
|
|
@ -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
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user