Repository navigation
ci : run test-backend-ops as a dedicated ci/run.sh test - #28740
Conversation
Run test-backend-ops as a separate gg test in ci/run.sh so it is executed outside ctest. With GG_BUILD_HIGH_PERF it keeps the existing CPU-only invocation (-b CPU); otherwise it runs all available backends without a backend filter. Remove the dedicated backend-ops workflow and keep test-backend-ops as a built target that is not registered with ctest to avoid duplicate runs. Assisted-by: pi:llama.cpp/DeepSeek-V4-Flash-Vision-Exp
Move the test-backend-ops gg test before test-llama-archs. Enable GG_BUILD_HIGH_PERF and LLAMA_ARG_THREADS on the Graviton4 KleidiAI job and use the standard self-hosted results/mnt paths. Add TODO markers for decoupling tests from libllama. Assisted-by: pi:llama.cpp/DeepSeek-V4-Flash-Vision-Exp
Pass -j $(nproc) to test-backend-ops in both high-perf and all-backend modes. Assisted-by: pi:llama.cpp/DeepSeek-V4-Flash-Vision-Exp
55a7cdc to
6c60722
Compare
|
@ggml-org/amd The |
|
The fyi @ggml-org/ggml-vulkan |
|
Likely a moltenvk bug. We could try to workaround this by adding locks in a few places, or should we just try to run that CI job without -j? |
|
For now I've disabled |
The stream-capture discrepancy is something I'll look into further but #28782 is the minimal fix on the llama.cpp end to unblock |
|
@jeffbolznv The parallel |
|
I think I have a good lead on this, but it's very intermittent and I need time to make sure my fixes really work. |
|
#28830 should fix the vulkan failure. |
* ci : run test-backend-ops as a dedicated gg test Run test-backend-ops as a separate gg test in ci/run.sh so it is executed outside ctest. With GG_BUILD_HIGH_PERF it keeps the existing CPU-only invocation (-b CPU); otherwise it runs all available backends without a backend filter. Remove the dedicated backend-ops workflow and keep test-backend-ops as a built target that is not registered with ctest to avoid duplicate runs. Assisted-by: pi:llama.cpp/DeepSeek-V4-Flash-Vision-Exp * ci : run test-backend-ops earlier and enable high-perf on kleidiai Move the test-backend-ops gg test before test-llama-archs. Enable GG_BUILD_HIGH_PERF and LLAMA_ARG_THREADS on the Graviton4 KleidiAI job and use the standard self-hosted results/mnt paths. Add TODO markers for decoupling tests from libllama. Assisted-by: pi:llama.cpp/DeepSeek-V4-Flash-Vision-Exp * ci : run test-backend-ops in parallel Pass -j $(nproc) to test-backend-ops in both high-perf and all-backend modes. Assisted-by: pi:llama.cpp/DeepSeek-V4-Flash-Vision-Exp * ci : disable parallel tests for ROCm * cont : disable parallel tests with MoltenVK
**Destination channel:** defaults ### Links - [PKG-18925](https://anaconda.atlassian.net/browse/PKG-18925) - [PKG-18883](https://anaconda.atlassian.net/browse/PKG-18883) - [Upstream release](https://github.com/ggml-org/llama.cpp/releases/tag/v0.7.0) - [Upstream changelog/diff](ggml-org/llama.cpp@v0.6.0...v0.7.0) - [win-arm64 graph](https://package-build.anaconda.com/v1/graph/bf22109a-ef9a-41ad-a663-0d545dfc2d14) ### Explanation of changes: - Update 0.6.0 → 0.7.0 (b11669). Bundled ggml moves from 0.26.0 to 0.27.0, so libllama's ABI changes; whisper.cpp and llama-cpp-python stay pinned to 0.6.0 until they are updated. - Dropped `fix-test-llama-archs-backend-dl.patch`: `test-llama-archs` now calls `llama_backend_init()`, which loads the backends. - `skip-test-chat-without-server.patch` also guards the new `test-server-component`, which links `server-context` like `test-chat`. - Rewrote `skip-test-mtmd-impl-without-tools.patch` for the new `tests/CMakeLists.txt`; the remaining patches, apart from the Metal changes below, are refreshed for line offsets only. - Dropped `increase-nmse-tolerance.patch` and `increase-nmse-tolerance-aarch64.patch`: they only loosened thresholds in `test-backend-ops`, which upstream moved out of ctest ([#28740](ggml-org/llama.cpp#28740)) and runs in its own CI with its own thresholds; our ctest has not run it since 0.5.0. - The Metal BF16 and Flash Attention patches now disable those features only before macOS 15 (runtime `@available` check) instead of for every user. With the CI-built package on macOS 15.7.3 (Apple M4 Pro), `test-backend-ops` passes all supported `FLASH_ATTN_EXT` and BF16 `MUL_MAT` cases on Metal. macOS 14 and 15.0–15.6 are untested, so the cutoff is conservative; the macOS 13 CI hosts keep the current behavior. - New `link-test-backend-ops-threads.patch`: 0.7.0 links `test-backend-ops` only to `ggml`, so it no longer gets `Threads::Threads` from `llama-common` and fails to link on glibc 2.28. The patch links `Threads::Threads` to that target. - Metal: removed `test-llama-archs` from the ctest skip list (ctest only runs that binary as `test-generate-models`). Upstream merged the skipped state tests into `test-llama-context`, which hits the same `GGML_ASSERT(buf_dst)` on the CI Mac, so the skip list names that test instead. - Removed the `test-backend-ops` ctest exclusions (CUDA, Linux and Windows): the test is built but not registered with ctest, so they matched nothing. - `libllama` now ships the cpp-httplib and nlohmann/json licenses, since both are compiled into the `llama-common` library it contains. - nlohmann/json stays vendored: upstream's copy carries the fix for nlohmann/json#5387 (crash on deeply nested JSON), which `nlohmann_json` 3.12.0 on defaults lacks. A recipe comment records this. - Removed the duplicate `cuda-version` run pins; `pin_compatible('cuda-version', max_pin='x.x')` gives the same range. - Requirements files and both `pyproject.toml`s are unchanged from 0.6.0, so dependencies stay as they are. - win-arm64: the linked graph covers the CPU variant; the CUDA 13.4 variant will be built off-CI before release, as for previous releases. [PKG-18925]: https://anaconda.atlassian.net/browse/PKG-18925?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ [PKG-18883]: https://anaconda.atlassian.net/browse/PKG-18883?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
Overview
Run
test-backend-opsas a dedicated test inci/run.shoutside ctest. WhenGG_BUILD_HIGH_PERFis set it keeps the existing CPU-only invocation (-b CPU); otherwise it runs all available backends without a backend filter. The test is parallelized with-j $(nproc).Keep
test-backend-opsas a built target but not registered with ctest to avoid duplicate execution, and remove the staletest-backend-opsexclusions from the OpenVINO, Vulkan and WebGPU workflows.Enable
GG_BUILD_HIGH_PERFandLLAMA_ARG_THREADSon the Graviton4 KleidiAI job and switch it to the standard self-hosted results/mnt paths.Additional information
Adds TODO markers for decoupling tests from
libllama.Requirements