mirror of
https://github.com/open-webui/desktop.git
synced 2026-11-05 01:27:46 +00:00
[PR #214] feat: Add ROCm detection and rocm variant support #228
Labels
No labels
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/desktop#228
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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/desktop/pull/214
Author: @leonardopereira10
Created: 5/25/2026
Status: 🔄 Open
Base:
main← Head:main📝 Commits (1)
38c3659Add ROCm detection and rocm variant support📊 Changes
2 files changed (+52 additions, -13 deletions)
View changed files
📝
src/main/utils/llamacpp.ts(+50 -12)📝
src/renderer/src/lib/components/Main/Settings/InferenceRuntime.svelte(+2 -1)📄 Description
#208 Detect AMD/ROCm GPUs and expose a rocm variant. On Linux, detection checks for /opt/rocm or /usr/lib/rocm. On Windows, dxdiag is invoked and parsed for Adapter Family gfx identifiers (supported gfx list added) to identify AMD GPUs; temporary dxdiag_output.txt is cleaned up and protected with try/catch. Also added a Windows rocm asset name in getAssetPattern and added the 'rocm' option to the inference runtime UI.
Description
I included the autodetect implementation, but I should at least keep the option to choose ROCm as the backend, as it offers better stability in contexts with more than 20,000 tokens.
Autodetect is based on a parsing of Windows DxDiag to identify the supported GPU for ROCm (as per the list provided in the HIP documentation).
The download and extraction of HIP versions from llama.cpp has been adjusted by adding the item to the dictionary.
An option has been added to the backend configuration screen to allow selecting llama.cpp HIP/ROCm.
Related Issues
Closes #208
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.