Solve this issue
- User
Solve this issue
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Solve this issue
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
The user is experiencing a RuntimeError: CUDA error: operation not supported when using Applio on an AMD RX 580 GPU with the PyTorch version 3.2.6. The root cause is incompatibility between the older AMD GPU architecture (GFx803) and the PyTorch CUDA version (cu121) used by Applio. The RX 580 likely doesn't support the FP16 precision required by the cu121 build.
Several solutions and workarounds have been suggested in the issue thread:
1. Downgrading PyTorch:
The most effective solution is downgrading PyTorch to a version compatible with the RX 580's capabilities. Specifically, using a CUDA version like cu118 is recommended. This involves uninstalling the current PyTorch installation and installing PyTorch 2.2.1 with cu118 support. The commands provided in the issue thread are:
env\python -m pip uninstall torch torchvision torchaudio
env\python -m pip install torch==2.2.1 torchvision==0.17.1 torchaudio==2.2.1 --index-url https://download.pytorch.org/whl/cu118
Important Note: This requires properly activating the Applio virtual environment (env\Scripts\activate on Windows) before executing these commands. The env\ prefix assumes your virtual environment is named env.
2. Zluda Patch:
After downgrading PyTorch, applying the Zluda patch is crucial. The issue thread mentions that Zluda doesn't work with cu121, highlighting the importance of this step. The specifics of applying the Zluda patch aren't detailed in the provided context, but further information should be available within the Applio documentation or repository.
3. ROCm Path Variable (Windows Specific):
For Windows users, adding the ROCm bin address to the system's PATH environment variable might resolve the issue. This suggests that even if ROCm is installed, it needs to be explicitly added to the PATH for Applio to correctly utilize it.
4. Check for Incorrect Installation:
The run-install.sh script contains a check for an existing .venv directory. If it exists, it prompts the user whether to run run-applio.sh directly. If the virtual environment was improperly set up, this could lead to issues. If the user answered "no", the .venv directory was removed and recreated. It's crucial to ensure a clean and correct virtual environment setup. The run-install.sh script also includes checks to ensure FFmpeg is installed. Failure to install correctly will also lead to issues.
5. Audio Length:
One user reported a similar error when inferencing a long audio file. Try using shorter audio files to isolate this as a possible cause.
In summary: The primary solution is downgrading PyTorch to a version compatible with the AMD RX 580 GPU. Following this, applying the Zluda patch is necessary. Windows users should also verify their ROCm path settings. Ensure the installation process (using either the .bat or .sh script) has been completed correctly and that the virtual environment is properly activated. Finally, test with shorter audio files to rule out length-related issues. If problems persist after these steps, consult the Applio documentation for further troubleshooting.