Commit 9ec9e1a60 for llama.cpp
commit 9ec9e1a60ba0d0a1f06d51e71c14abb46adf2470
Author: Radoslav Gerganov <rgerganov@gmail.com>
Date: Wed Dec 2 16:53:32 2026 +0200
ci : add RPC tests to models-check workflow (#33452)
Run test-llama-archs against a local ggml-rpc-server:
- rpc-cpu job: server with two CPU devices
- vulkan-nvidia job: build with RPC, add a step with a server on one Vulkan device
Both also run the K-shift test.
Assisted-by: Claude Sonnet 5.5
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
diff --git a/.github/workflows/models-check.yml b/.github/workflows/models-check.yml
index 2774cefd3..0434e56ac 100644
--- a/.github/workflows/models-check.yml
+++ b/.github/workflows/models-check.yml
@@ -11,6 +11,7 @@ on:
'tests/fusion/**',
'tests/test-fusion.cpp',
'tests/test-llama-archs.cpp',
+ 'tools/rpc/**',
'src/llama-graph*',
'src/llama-kv-cache*',
'src/llama-model*',
@@ -25,6 +26,7 @@ on:
'tests/fusion/**',
'tests/test-fusion.cpp',
'tests/test-llama-archs.cpp',
+ 'tools/rpc/**',
'src/llama-graph*',
'src/llama-kv-cache*',
'src/llama-model*',
@@ -272,8 +274,9 @@ jobs:
-DLLAMA_FATAL_WARNINGS=ON \
-DLLAMA_OPENSSL=OFF \
-DGGML_SCHED_NO_REALLOC=ON \
+ -DGGML_RPC=ON \
-DGGML_VULKAN=ON
- time cmake --build build --config Release --target test-llama-archs -j$(nproc)
+ time cmake --build build --config Release --target test-llama-archs ggml-rpc-server -j$(nproc)
time cmake --build build --config Release --target test-fusion -j$(nproc)
- name: ccache-buckets-save
@@ -310,6 +313,78 @@ jobs:
run: |
./build/bin/test-llama-archs -s 1
+ # the empty GGML_VK_VISIBLE_DEVICES hides the local GPU from the client, so it is used only through RPC
+ - name: Test archs (RPC)
+ id: test_archs_rpc
+ run: |
+ GGML_RPC_DEBUG=2 ./build/bin/ggml-rpc-server -d Vulkan0 -p 50052 > rpc-server.log 2>&1 &
+ trap "kill $! || true" EXIT
+ timeout 60 bash -c 'until (exec 3<>/dev/tcp/127.0.0.1/50052) 2>/dev/null; do sleep 0.5; done'
+ GGML_VK_VISIBLE_DEVICES= ./build/bin/test-llama-archs --rpc 127.0.0.1:50052 -s 1
+ GGML_VK_VISIBLE_DEVICES= ./build/bin/test-llama-archs --rpc 127.0.0.1:50052 -s 1 --kv-shift
+
+ - name: RPC server log
+ if: ${{ failure() }}
+ run: tail -n 200 rpc-server.log
+
+ rpc-cpu:
+ runs-on: ubuntu-26.04
+
+ steps:
+ - name: Clone
+ id: checkout
+ uses: actions/checkout@v6
+
+ - name: ccache
+ uses: ggml-org/ccache-action@v1.2.24
+ with:
+ restore: false
+ save: false
+
+ - name: ccache-buckets-restore
+ uses: ./.github/actions/ccache-buckets
+ with:
+ key: models-check-rpc-cpu
+ folder: llama.cpp
+ hf_bucket: ggml-org/cache
+
+ - name: Build
+ id: cmake_build
+ run: |
+ cmake -B build \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DLLAMA_FATAL_WARNINGS=ON \
+ -DLLAMA_OPENSSL=OFF \
+ -DGGML_SCHED_NO_REALLOC=ON \
+ -DGGML_RPC=ON
+ time cmake --build build --config Release --target test-llama-archs ggml-rpc-server -j$(nproc)
+
+ - name: ccache-buckets-save
+ if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
+ uses: ./.github/actions/ccache-buckets
+ env:
+ HF_TOKEN: ${{ secrets.HF_TOKEN_CACHE_OUTPUT }}
+ with:
+ key: models-check-rpc-cpu
+ folder: llama.cpp
+ evict-old-files: 1d
+ hf_bucket: ggml-org/cache
+ save: true
+
+ # two devices, so that split modes and copies between devices are tested
+ - name: Test archs
+ id: test_archs
+ run: |
+ GGML_RPC_DEBUG=2 ./build/bin/ggml-rpc-server -d CPU,CPU -p 50052 > rpc-server.log 2>&1 &
+ trap "kill $! || true" EXIT
+ timeout 60 bash -c 'until (exec 3<>/dev/tcp/127.0.0.1/50052) 2>/dev/null; do sleep 0.5; done'
+ ./build/bin/test-llama-archs --rpc 127.0.0.1:50052 -s 1
+ ./build/bin/test-llama-archs --rpc 127.0.0.1:50052 -s 1 --kv-shift
+
+ - name: Server log
+ if: ${{ failure() }}
+ run: tail -n 200 rpc-server.log
+
vulkan-amd:
runs-on: [self-hosted, Linux, gfx1201, 1accel]
container: "ubuntu:26.04"