Skip to content

feat(audio-cpp): add ROCm backend image - #11578

Open
localai-org-maint-bot wants to merge 4 commits into
masterfrom
feat/audio-cpp-rocm
Open

feat(audio-cpp): add ROCm backend image#11578
localai-org-maint-bot wants to merge 4 commits into
masterfrom
feat/audio-cpp-rocm

Conversation

@localai-org-maint-bot

Copy link
Copy Markdown
Collaborator

Description

This PR adds a Linux amd64 ROCm 7.2 image for the audio.cpp backend and connects AMD capability selection to it. The backend wrapper now accepts both backend:hip and the upstream backend:rocm alias.

The pinned audio.cpp revision introduced HIP support, but LocalAI still documented and enforced the previous no-HIP state. The matrix, gallery metadata, runtime option mapping, and user documentation now describe the same supported variant.

Closes #11577

Notes for Reviewers

Verified with:

  • g++ -std=c++17 -Wall -Wextra -Ibackend/cpp/audio-cpp backend/cpp/audio-cpp/model_options_test.cpp ...
  • go test ./core/gallery -run TestGallery -ginkgo.focus "audio.cpp ROCm image" -count=1
  • node --test scripts/lib/backend-filter_test.mjs (41 passing)
  • make -n -C backend/cpp/audio-cpp BUILD_TYPE=hipblas grpc-server and assertions for the HIP flags
  • git diff --check

I did not run the full ROCm Docker build locally. The backend matrix runs that long build in CI. The broad make test-backend-cpp harness could not fetch its nlohmann header because this environment blocked the external download; the changed standalone test was compiled and run directly.

Signed commits

  • Yes, I signed my commits.
  • Documentation updated (docs/content/) for user-facing changes, or not applicable

The pinned audio.cpp revision supports HIP, but LocalAI neither builds a ROCm image nor accepts its backend option. AMD hosts therefore fall back to the CPU image.

Build and publish the HIP variant, connect it to AMD capability selection, and accept both upstream HIP names.

Assisted-by: Codex:gpt-5
The ROCm builder lacks the CMake package metadata that ggml requires. Install the development package only for hipBLAS builds.

Assisted-by: Codex:gpt-5
audio.cpp forwards GPU_TARGETS to CMake as a semicolon-delimited list. The comma-delimited LocalAI value was treated as one invalid HIP architecture during configuration.

Assisted-by: Codex:gpt-5.6-sol
The HIP build reaches ggml configuration and requires the rocBLAS CMake package. Install its development package with the existing hipBLAS dependency.

Assisted-by: Codex:gpt-5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ROCM audio-cpp image

1 participant