feat: add llama-cpp-hermes service with ROCm 6.1 + gfx906 support #54
Reference in New Issue
Block a user
No description provided.
Delete Branch "feat/hermes43-llamacpp"
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?
Summary
Add
llama-cpp-hermesservice with custom ROCm 6.1 + gfx906 Docker image to serve Hermes 4.3 on dual MI50 GPUs.Changes
ai/compose.ymlllama-cpp-hermes: Custom llama.cpp (b9596) built with ROCm 6.1 + gfx906 target. Serves Hermes 4.3-36B (GGUF Q4_K_M) on both MI50s with 160K context. ~19 t/s. Replaces the old commented-outllama_cpp_devstralconfig.ollamaservice: Removed ROCm/HSA env vars and GPU device mappings. Ollama now runs CPU-only for bge-m3 embeddings (Honcho integration).ai/llama-cpp/DockerfileMulti-stage build:
rocm/dev-ubuntu-22.04:6.1.2-complete, compiles llama.cpp b9596 with-DGGML_HIP=ON -DAMDGPU_TARGETS=gfx906:xnack-ubuntu:24.04with ROCm 6.1 runtime libs (libamdhip64, libhipblas, libdrm, libelf, libnuma)Why
Ollama's built-in ggml-hip backend (v0.23.2) puts all layers on CPU due to a bug in the old engine. The official llama.cpp Docker image ships ROCm 7.2 which dropped gfx906 support. This custom build bridges the gap.
Context
HIP_VISIBLE_DEVICES=0and--split-mode none