Open Said-Akbar opened 1 day ago
it looks like it is failing to compile paged attention from above logs:
FAILED: CMakeFiles/_C.dir/kernels/attention/attention_kernels.hip.o
It's actually issue with ROCM. There's a fix though. Also aphrodite doesn't work on amd right now anyway
Your current environment
How did you install Aphrodite?
I have 2x AMD MI60 and 1xRTX 3060 for video output. I want to install aphrodite-engine to use with those 2x AMD GPUs. I installed rocm and pytorch with all the dependencies. I spent a few hours to find out that I needed to change setup.py line 20 to APHRODITE_TARGET_DEVICE = os.getenv("APHRODITE_TARGET_DEVICE", "rocm"). After that, I struggled with thrust library being incorrect. cmake was using NVIDIA's thrust from my NVIDIA GPUs. Then I figured out where AMD's thrust folder was and replaced Nvidias thrust with AMDs.
At last, the engine was compiling but at the end it failed with multiple warnings and errors. I tried both ROCm 6.1 and 6.2. Both failed with the same error. The error text is around 6k lines, so attaching as txt file here. errors6_2_w_thrust.txt Sharing some warning and error messages below from that text file:
Please, let me know if this is a version mismatch issue or a bug in the engine. Looking forward to a fix.
Thank you!