Skip to content

GPU: public again — re-pin our HRX and ROCmFPX forks (revert #87) - #89

Merged
bong-water-water-bong merged 1 commit into
mainfrom
gpu/public-again
Sep 25, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
gpu/public-again

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Reverts #87. GPU kernel work is public again; only the NPU kernels stay private.

  • third_party/llama.cpp: back to 1bit-MONSTER/llama.cpp 1bit/hrx-vulkan-patched c075cc1, which has the 256-expert MoE router fix and the fused-context claims. third_party/hrx-system: back to 51b1739.
  • third_party/llama.cpp-rocmfpx: back to 1bit-MONSTER/ROCmFPX 1bit/vulkan-rocmi4 b44bf74.
  • -DONEBIT_GPU_PRIVATE is removed. 1bit serve --prefill-device hrx and the serve_e2e_vulkan_prefill_hrx test are back in the default build.
  • bump-hrx.yml and bump-rocmfpx.yml sync and rebase the forks again. The docs go back to their pre-GPU: pin AMD's HRX pair and upstream ROCmFPX; our GPU kernel work behind -DONEBIT_GPU_PRIVATE #87 text.

The fork branches were restored from the private backup, and each one was checked against its backed-up SHA.

Verified on Strix Halo (public build, -DONEBIT_HRX=ON, no private flags), tests/serve_e2e.sh:

The lean (ROCmFPX) build was not rebuilt. It pins the same b44bf74 it had before #87.

🤖 Generated with Claude Code

…work behind -DONEBIT_GPU_PRIVATE (#87)"

This reverts commit 81f042c.
@context7

context7 Bot commented Sep 25, 2026

Copy link
Copy Markdown

Docs7 for 1bit-monster/engine

Result Status Action
Deployment ➖ Not used —
Content review ➖ Did not run. This site has no agent runs available this month. Wait for the monthly reset or check your Docs7 plan. —

Commit e494bd8

@github-actions

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

87 - Partially compliant

Compliant requirements:

Non-compliant requirements:

  • None

Requires further human verification:

  • Verification that the restored public builds work correctly on Strix Halo
  • Confirmation that the bump workflows function as expected
⏱️ Estimated effort to review: 3 🔵🔵🔵⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Missing validation for --prefill-device hrx

The removal of the #ifndef ONEBIT_GPU_PRIVATE block in app/serve.cpp removes the validation that --prefill-device hrx is only available in builds with -DONEBIT_GPU_PRIVATE. While this is intended to make the feature available in the public build, it's important to ensure that the feature is properly implemented and tested in this context. Without the validation, users might attempt to use --prefill-device hrx in builds where it's not properly supported, leading to runtime errors or incorrect behavior.

if (split && (device != "vulkan" || o.prefill_device != "hrx"))
    throw std::runtime_error("--prefill-device hrx works with --device vulkan");
Hardcoded paths in CMake

The CMake files now use hardcoded paths to third_party/llama.cpp and third_party/hrx-system instead of using the variables that were previously used when -DONEBIT_GPU_PRIVATE was enabled. This change makes the build process less flexible and could lead to issues if the paths to these submodules change in the future. It's important to ensure that the build system remains robust and adaptable to changes in submodule locations.

SOURCE_DIR ${CMAKE_SOURCE_DIR}/third_party/llama.cpp
BINARY_DIR ${CMAKE_BINARY_DIR}/hrx/llama
DOWNLOAD_COMMAND ""
CMAKE_GENERATOR Ninja
CMAKE_ARGS -DCMAKE_BUILD_TYPE=Release
    -DCMAKE_C_COMPILER=${ONEBIT_HRX_TOOLCHAIN}/bin/amdclang
    -DCMAKE_CXX_COMPILER=${ONEBIT_HRX_TOOLCHAIN}/bin/amdclang++
    -DHRX_SOURCE_DIR=${CMAKE_SOURCE_DIR}/third_party/hrx-system
Hardcoded paths in CMake for ROCmFPX

Similar to the HRX CMake file, the lean CMake file now uses hardcoded paths to third_party/llama.cpp-rocmfpx instead of using variables. This reduces flexibility and maintainability of the build system. It's important to ensure that the build system remains robust and adaptable to changes in submodule locations.

    SOURCE_DIR ${CMAKE_SOURCE_DIR}/third_party/llama.cpp-rocmfpx
    BINARY_DIR ${CMAKE_BINARY_DIR}/lean/llama
    DOWNLOAD_COMMAND ""
    CMAKE_GENERATOR Ninja
    CMAKE_ARGS -DCMAKE_BUILD_TYPE=Release
        -DGGML_VULKAN=ON -DGGML_CUDA=OFF -DGGML_HIP=OFF -DGGML_NATIVE=ON -DGGML_CPU=ON
        -DLLAMA_BUILD_SERVER=ON -DLLAMA_BUILD_WEBUI=OFF -DLLAMA_CURL=OFF
    BUILD_COMMAND ${CMAKE_COMMAND} --build <BINARY_DIR> --target llama-server llama-quantize llama-bench
    BUILD_BYPRODUCTS ${ONEBIT_LEAN_SERVER} ${ONEBIT_LEAN_QUANTIZE}
    INSTALL_COMMAND ""
    BUILD_ALWAYS ON
    USES_TERMINAL_BUILD ON)

if(ONEBIT_LEAN_ROCM)
    # TheRock's amdclang++. Some installs pair it with the distribution's HIP headers
    # and fail on __ocml_*; point ONEBIT_LEAN_ROCM_TOOLCHAIN at a TheRock tree that works.
    set(ONEBIT_LEAN_ROCM_TOOLCHAIN "/opt/rocm-therock" CACHE PATH "TheRock root whose bin/amdclang++ builds the lean ROCm llama-server")
    set(ONEBIT_LEAN_ROCM_SERVER "${CMAKE_BINARY_DIR}/lean/llama-rocm/bin/llama-server")
    ExternalProject_Add(llama_lean_rocm
        SOURCE_DIR ${CMAKE_SOURCE_DIR}/third_party/llama.cpp-rocmfpx

@bong-water-water-bong
bong-water-water-bong merged commit 4b9767b into main Sep 25, 2026
5 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the gpu/public-again branch September 25, 2026 18:22
bong-water-water-bong added a commit that referenced this pull request Oct 5, 2026
…to our fork (Loom NaN backport) (#320)

* Bump HRX: llama.cpp 522dab4789ce (long-prompt fix), hrx-system to our fork 98d05d94a9f9

third_party/llama.cpp e57beb9721af -> 522dab4789ce (fork #89 runtime overhead,
#90: graph inputs never written back to host — every multi-ubatch prompt was
wrong since #82 — and the non-replay upload race).
third_party/hrx-system moves from ROCm/hrx-system 51b1739ae5fd to our fork
1bit-MONSTER/hrx-system 1bit/main 98d05d94a9f9 = the same AMD commit plus the
GFX11 wave64 lane-mask drain backport (#313 NaN) and two libhrx device knobs.
bump-hrx.yml now moves only the llama.cpp pin; hrx-system is rebased by hand.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* registry: regenerated at llama.cpp 522dab4789ce

Co-Authored-By: Claude Fable 5.1 <[email protected]>

---------

Co-authored-by: bong-water-water-bong <[email protected]>
Co-authored-by: Claude Fable 5.1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant