Repository navigation
serve: the HRX RAG servers get IREE_HAL_AMDGPU_LIBHSA_PATH like the chat server - #289
Merged
Merged
Conversation
…hat server rag_launch (engine #281) started the --embed/--rerank llama-server on HRX0 without the ROCr path the chat backend gets, so they exited with "invalid device: HRX0" and took 1bit serve down unless the user had exported IREE_HAL_AMDGPU_LIBHSA_PATH. Found by the power-engineering RAG demo. Co-Authored-By: Claude Opus 5.5 <[email protected]>
| else | ||
| // the same ROCr the chat server gets, or the RAG server cannot open HRX0 ("invalid device: HRX0") | ||
| if (const std::string hsa = hrx_libhsa(o.hrx_libhsa); !hsa.empty()) | ||
| l.env.push_back("IREE_HAL_AMDGPU_LIBHSA_PATH=" + hsa); |
Collaborator
Author
There was a problem hiding this comment.
Cleanup: this is now the third copy of the identical if (const std::string hsa = hrx_libhsa(o.hrx_libhsa); !hsa.empty()) env.push_back("IREE_HAL_AMDGPU_LIBHSA_PATH=" + hsa); pattern in this file (also launch_for around line 744 and the Laya GGML scorer launch around line 1287). Worth a small helper, e.g. void add_hrx_libhsa_env(std::vector<std::string>& env, const Options& o), so the lookup logic (and its filesystem walk under /opt/rocm-therock) lives in one place instead of three call sites that can drift.
This was referenced Nov 10, 2026
Closed
bong-water-water-bong
added a commit
that referenced
this pull request
Nov 10, 2026
… context (fixes #1989) (#2033) Five fork commits past 50d28600a: - 139ccd741 (#289) + 2293f95ea (#291): a spread pitch for the transposed V and 256-token attention launches from 4,096 keys; the pitch is derived in the kernel, so no per-key-count recompile (#1989) - cf5febf04 (#288): activations kept inside the f16 range in the two small-batch Q6_K kernels (#1962) - 69aac7fa2 (#287), 7cc3187b5 (#290): known-answer MUL_MAT cases and failed-compute reporting in the backend comparison (#1997) Measured at the exact tree on gfx1151: Qwen3-4B pp24576 warm 813-822 -> 980-1074 tok/s; cold 9,230-token prompt 8.80 s vs 8.85 s, text identical; test-hrx-fa-transposed-value 8/8; FLASH_ATTN_EXT ops 388/388. registry/architectures.json: the recorded source pin only. docs/hrx.md: the #1989 section. Co-authored-by: bong-water-water-bong <[email protected]> Co-authored-by: Claude Fable 5.2 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
rag_launch (#281) started the --embed/--rerank llama-server on HRX0 without the ROCr path the chat backend gets (hrx_libhsa), so without an exported IREE_HAL_AMDGPU_LIBHSA_PATH they exited with "invalid device: HRX0" and took
1bit servedown. Found by the power-engineering RAG demo.Checked on strixhalo with the variable unset:
1bit serve -m Qwen3-4B-Q4_K_M.gguf --device hrx --embed Qwen3-Embedding-0.6B-Q8_0.gguf --rerank bge-reranker-v2-m3-Q8_0.ggufstarts. /v1/embeddings returns 2 x 1024-dim vectors, /v1/rerank scores the right document first (2.244 vs -11.01), and /v1/models lists all three on hrx. ctest 19/19.🤖 Generated with Claude Code