Closed donglixp closed 10 months ago
possible solution: pip uninstall importlib-metadata
and then rerun the pip install .
.
cd $(mktemp -d)
git clone --recursive https://github.com/ROCmSoftwarePlatform/flash-attention.git
export GPU_ARCHS="gfx90a"
cd flash-attention
export PYTHON_SITE_PACKAGES=$(python -c 'import site; print(site.getsitepackages()[0])')
patch "${PYTHON_SITE_PACKAGES}/torch/utils/hipify/hipify_python.py" hipify_patch.patch
pip uninstall importlib-metadata
pip install .
pip install importlib-metadata==3.4.0
Hi @donglixp, is this bug fixed?
I manually uninstall importlib-metadata to resolve the issue.
I used Method I and the recommended docker to install the package (https://github.com/ROCmSoftwarePlatform/flash-attention?tab=readme-ov-file#method-1-build-from-source ). The error message is as follows: