koboldcpp/.github/workflows
Jim Wu a1f96d4fc2
ci : onboard AMD ROCm CI with gfx1151 fixes (#26544)
* ci: prepare for amd rocm ci

Signed-off-by: Aaron Teo <aaron.teo1@ibm.com>

* ci: fix editorconfig-checker

Signed-off-by: Aaron Teo <aaron.teo1@ibm.com>

* ci: fix device not recognised

Signed-off-by: Aaron Teo <aaron.teo1@ibm.com>

* ci: rename gpu-amd to gpu-hip

Signed-off-by: Aaron Teo <aaron.teo1@ibm.com>

* ci: gpu-hip to gpu-rocm

haha

Signed-off-by: Aaron Teo <aaron.teo1@ibm.com>

* CUDA: allow integrated-GPU host output buffer in debug assert

On integrated GPUs (APUs), the scheduler can legitimately place a graph
node's output on the host-visible buffer, which ggml_cuda_compute_forward
already handles. The debug assert in ggml_cuda_graph_evaluate_and_capture
required every node output to be on the device buffer, so a debug build
aborts on such a node (e.g. attn_residual ADD -> ROCm_Host on RDNA3.5).
The source-tensor assert directly below already permits this via the
integrated + cuda_host exception; apply the same exception to the node's
own output buffer. Debug-only; no effect on release/compute.

Fixes test-recurrent-state-rollback on gfx1151 (Strix Halo).

* ci: enable unified memory for ROCm gfx1151 job

Work around a coherence issue on integrated RDNA3.5 (gfx1151) where GPU
kernels reading mmap-loaded weights can return incorrect output, which
makes test-llama-archs (and real inference) intermittently wrong.
GGML_CUDA_ENABLE_UNIFIED_MEMORY=1 uses managed memory, which restores
coherence. Remove once the underlying ROCm/HIP issue is fixed.

* test-llama-archs: skip jamba on HIP backend

jamba produces incorrect output (~0.55 NMSE vs CPU) on the HIP backend on
RDNA3.5 (gfx1151); the SSM kernels need separate investigation. Skip it
for now, matching the existing per-backend carve-outs (WebGPU), so the
ROCm CI can run the test for the remaining architectures.

* ci: use HIP_LAUNCH_BLOCKING for ROCm gfx1151 job

The gfx1151 ROCm CI job produced incorrect inference output (qwen3 perplexity ~88 vs ~9.4) due to an async-execution correctness issue in the HIP path. Serializing kernel launches with HIP_LAUNCH_BLOCKING=1 restores correctness. This replaces the earlier GGML_CUDA_ENABLE_UNIFIED_MEMORY workaround, which did not fix batched inference.

* test-backend-sampler: skip top-k subtests on HIP backend

The ROCm backend does not support the TOP_K/ARGSORT op at vocab scale (no CUB; bitonic argsort is capped at ncols <= 1024), so top-k/top-p backend samplers cannot be offloaded. The penalties, set_sampler, mixed, and top_p subtests assert that offload happened, so they fail on HIP. Skip them until TOP_K is supported on the ROCm backend.

* Update tests/test-backend-sampler.cpp

Co-authored-by: Aaron Teo <taronaeo@gmail.com>

* Update tests/test-backend-sampler.cpp

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>

---------

Signed-off-by: Aaron Teo <aaron.teo1@ibm.com>
Co-authored-by: Aaron Teo <aaron.teo1@ibm.com>
Co-authored-by: Jim Wu <ywu@xilinx.com>
Co-authored-by: Aaron Teo <taronaeo@gmail.com>
Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
2026-08-06 10:43:26 +02:00
..
ai-issues.yml ai : update gh permissions (#20895) 2026-03-23 13:21:41 +02:00
bench.yml.disabled llama : move end-user examples to tools directory (#13249) 2025-05-02 20:27:13 +02:00
build-3rd-party.yml common : fix env names to all have LLAMA_ARG_ prefix (#23778) 2026-05-27 14:52:47 +03:00
build-and-test-snapdragon.yml snapdragon: bump toolchain docker to v0.7 to fix ui build issues (#23680) 2026-05-25 10:57:43 -07:00
build-android.yml ci : refactor (#23789) 2026-05-28 09:44:25 +03:00
build-apple.yml build : remove GGML_METAL_USE_BF16 from all build scripts (#26604) 2026-08-05 10:44:34 +02:00
build-cache.yml openvino: Update to OV 2026.2.1, self-contained release packages, operator improvements (#24974) 2026-06-26 15:07:19 +03:00
build-cann.yml common : fix env names to all have LLAMA_ARG_ prefix (#23778) 2026-05-27 14:52:47 +03:00
build-cmake-pkg.yml ci : move most slim jobs to self-hosted runners (#23619) 2026-05-25 08:11:19 +03:00
build-cpu.yml vulkan: update vulkan sdk to 1.4.357.0 (#26303) 2026-07-31 07:27:03 -05:00
build-cross.yml ci : reduce (disable SYCL and CANN builds/releases) (#23705) 2026-05-26 15:21:21 +03:00
build-cuda-ubuntu.yml ci : refactor (#23789) 2026-05-28 09:44:25 +03:00
build-cuda-windows.yml ci : clear cache instead of "no timestamp" keys + fix macos (#23895) 2026-05-30 08:52:30 +03:00
build-ibm.yml common : fix env names to all have LLAMA_ARG_ prefix (#23778) 2026-05-27 14:52:47 +03:00
build-msys.yml ci : build-msys job slimming [no ci] (#24157) 2026-06-05 07:57:36 +02:00
build-opencl.yml ci : refactor (#23789) 2026-05-28 09:44:25 +03:00
build-openvino.yml openvino: Update to OV 2026.2.1, self-contained release packages, operator improvements (#24974) 2026-06-26 15:07:19 +03:00
build-riscv.yml ci : refactor (#23789) 2026-05-28 09:44:25 +03:00
build-rpc.yml ci: remove redundant or duplicate jobs (#23927) 2026-06-01 06:32:17 +03:00
build-sanitize.yml ci : refactor (#23789) 2026-05-28 09:44:25 +03:00
build-self-hosted.yml ci : onboard AMD ROCm CI with gfx1151 fixes (#26544) 2026-08-06 10:43:26 +02:00
build-sycl.yml [SYCL] Fix CI build & release for SYCL backend (#24387) 2026-06-12 09:30:24 +03:00
build-virtgpu.yml ggml-virtgpu: Add a GHA build check (#22943) 2026-05-11 21:38:22 +08:00
build-vulkan.yml ci: fix vulkan llvmpipe runs (#26533) 2026-08-04 03:28:57 +00:00
build-wasm.yml ggml-webgpu: Fix WASM compilation with OpenMP (#25943) 2026-07-25 17:37:18 -07:00
build-webgpu.yml ggml-webgpu: Fix WASM compilation with OpenMP (#25943) 2026-07-25 17:37:18 -07:00
check-vendor.yml ci : move most slim jobs to self-hosted runners (#23619) 2026-05-25 08:11:19 +03:00
close-issue.yml ci: Also exempt 'security' tag from auto-close (#21844) 2026-04-14 01:18:44 +08:00
code-style.yml ci : move most slim jobs to self-hosted runners (#23619) 2026-05-25 08:11:19 +03:00
copilot-setup-steps.yml ci : limit requirements versions (#20980) 2026-03-25 10:55:37 +02:00
docker.yml docker : prebuild web UI for s390x build [no release] (#24829) 2026-06-20 05:54:42 -05:00
editorconfig.yml ci : move most slim jobs to self-hosted runners (#23619) 2026-05-25 08:11:19 +03:00
gguf-publish.yml gguf-py : bump version to 0.19.0 (#22664) 2026-05-06 14:46:14 +02:00
hip-quality-check.yml Make hip quality check run on all changes (#25403) 2026-07-08 14:38:51 +02:00
labeler.yml ci : use new 1vCPU runner for lightweight jobs (#19107) 2026-01-26 15:22:49 +01:00
pre-tokenizer-hashes.yml ci : fix pre-tokenizer-hashes check (#23651) 2026-05-25 10:41:25 +02:00
python-check-requirements.yml ci : move most slim jobs to self-hosted runners (#23619) 2026-05-25 08:11:19 +03:00
python-lint.yml ci : move most slim jobs to self-hosted runners (#23619) 2026-05-25 08:11:19 +03:00
python-type-check.yml ci : move most slim jobs to self-hosted runners (#23619) 2026-05-25 08:11:19 +03:00
release.yml build : remove GGML_METAL_USE_BF16 from all build scripts (#26604) 2026-08-05 10:44:34 +02:00
server-sanitize.yml common : fix env names to all have LLAMA_ARG_ prefix (#23778) 2026-05-27 14:52:47 +03:00
server-self-hosted.yml CUDA: Support CUDA Virtual Devices (#25228) 2026-07-16 13:37:35 +03:00
server.yml speculative : fix n_outputs_max and remove draft-simple auto-enable (#23988) 2026-06-01 22:26:58 +03:00
ui-build-self-hosted.yml server: clean up static assets handling (#24550) 2026-06-13 11:51:20 +02:00
ui-build.yml server: clean up static assets handling (#24550) 2026-06-13 11:51:20 +02:00
ui-publish.yml server: remove loading.html (#25500) 2026-07-10 14:42:17 +02:00
ui-self-hosted.yml ui: PWA support (#23871) 2026-06-12 15:53:26 +02:00
ui.yml ui: PWA support (#23871) 2026-06-12 15:53:26 +02:00
update-ops-docs.yml ci : move most slim jobs to self-hosted runners (#23619) 2026-05-25 08:11:19 +03:00
winget.yml ci : bump komac version (#24396) 2026-06-10 09:45:20 +02:00