mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-17 08:21:12 -05:00
[PR #1439] [MERGED] Add AMD Docker Compose config file #7468
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/1439
Author: @justinh-rahb
Created: 4/6/2024
Status: ✅ Merged
Merged: 4/6/2024
Merged by: @tjbck
Base:
dev← Head:rocm-compose📝 Commits (3)
075dddfAdd AMD docker compose file8db03f3Add variablesf34b973Add Docker tag variables📊 Changes
2 files changed (+10 additions, -2 deletions)
View changed files
➕
docker-compose.amdgpu.yaml(+8 -0)📝
docker-compose.yaml(+2 -2)📄 Description
This Docker Compose will setup Ollama to run with AMD GPU support using the
:rocmtagged image. Some GPUs seem to require this environment variable:HSA_OVERRIDE_GFX_VERSIONWhich could require different values:
https://github.com/ollama/ollama/issues/2637
For AMD GPU Support: Some AMD GPUs require setting an environment variable for proper functionality:
AMD GPU Support with HSA_OVERRIDE_GFX_VERSION
For AMD GPU users encountering compatibility issues, setting the
HSA_OVERRIDE_GFX_VERSIONenvironment variable is crucial. This variable instructs the ROCm platform to emulate a specific GPU architecture, ensuring compatibility with various AMD GPUs not officially supported. Depending on your GPU model, adjust theHSA_OVERRIDE_GFX_VERSIONas follows:HSA_OVERRIDE_GFX_VERSION=10.3.0.HSA_OVERRIDE_GFX_VERSION=11.0.0.ROC_ENABLE_PRE_VEGA=1for GCN4, orHSA_OVERRIDE_GFX_VERSION=9.0.0for Vega (GCN5.0) emulation.Ensure to replace
<version>with the appropriate version number based on your GPU model and the guidelines above. For a detailed list of compatible versions and more in-depth instructions, refer to the ROCm documentation and the openSUSE Wiki on AMD GPGPU.Example command for RDNA1 & RDNA2 GPUs:
Pull Request Checklist
Description: This pull request adds an AMD GPU Docker Compose file to the project. The file is configured to run the
ollama/ollama:rocmDocker container, which should improve performance on systems with AMD GPUs.Changelog:
Added
Changed
Please review the changes and let me know if you have any questions or suggestions. Thank you!
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.