Commit dbaf582af for llama.cpp
commit dbaf582af41941ebbfc4384fb9fa1b40dff7a510
Author: Sigbjørn Skjæret <sigbjorn.skjaeret@huggingface.co>
Date: Tue Nov 24 19:02:31 2026 +0100
ci : move some jobs to gb10 runners (#32968)
diff --git a/.github/workflows/build-virtgpu.yml b/.github/workflows/build-virtgpu.yml
index 6e7bf342e..83eaab546 100644
--- a/.github/workflows/build-virtgpu.yml
+++ b/.github/workflows/build-virtgpu.yml
@@ -32,7 +32,8 @@ concurrency:
jobs:
ubuntu-26-virtgpu:
- runs-on: ${{ 'ubuntu-26.04-arm' || 'ubuntu-26.04' }}
+ runs-on: [self-hosted, Linux, gb10]
+ container: "ubuntu:26.04"
steps:
- name: Clone
@@ -42,8 +43,23 @@ jobs:
- name: Dependencies
id: depends
run: |
- sudo apt-get update
- sudo apt-get install -y build-essential libdrm-dev pkg-config libssl-dev
+ apt update
+ apt install -y build-essential jq cmake python3 python3-venv python3-pip libdrm-dev pkg-config libssl-dev
+
+ - name: ccache
+ uses: ggml-org/ccache-action@v1.2.24
+ with:
+ restore: false
+ save: false
+
+ - name: ccache-buckets-restore
+ uses: ./.github/actions/ccache-buckets
+ env:
+ HF_TOKEN: ${{ secrets.HF_TOKEN_CI }}
+ with:
+ key: virtgpu-ubuntu-26.04-gb10
+ folder: llama.cpp
+ hf_bucket: ggml-org/cache
- name: Build
id: cmake_build
@@ -52,3 +68,15 @@ jobs:
-DGGML_VIRTGPU=ON \
-DGGML_VIRTGPU_BACKEND=ON
cmake --build build --config Release -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: virtgpu-ubuntu-26.04-gb10
+ folder: llama.cpp
+ evict-old-files: 1d
+ hf_bucket: ggml-org/cache
+ save: true
diff --git a/.github/workflows/build-vulkan.yml b/.github/workflows/build-vulkan.yml
index 3ad308583..2abcbd235 100644
--- a/.github/workflows/build-vulkan.yml
+++ b/.github/workflows/build-vulkan.yml
@@ -41,8 +41,9 @@ env:
LLAMA_ARG_LOG_TIMESTAMPS: 1
jobs:
- ubuntu-arm64:
- runs-on: ubuntu-26.04-arm
+ ubuntu:
+ runs-on: [self-hosted, Linux, gb10]
+ container: "ubuntu:26.04"
steps:
- name: Clone
@@ -52,14 +53,13 @@ jobs:
- name: Dependencies
id: depends
run: |
- sudo apt-get update
- sudo apt-get install -y build-essential glslc libvulkan-dev spirv-headers libssl-dev ninja-build
+ apt update
+ apt install -y build-essential jq cmake python3 python3-venv python3-pip glslc libvulkan-dev spirv-headers libssl-dev ninja-build
- name: ccache
uses: ggml-org/ccache-action@v1.2.24
with:
restore: false
- variant: ccache
save: false
- name: ccache-buckets-restore
@@ -67,7 +67,7 @@ jobs:
env:
HF_TOKEN: ${{ secrets.HF_TOKEN_CI }}
with:
- key: vulkan-ubuntu-26.04-arm
+ key: vulkan-ubuntu-26.04-gb10
folder: llama.cpp
hf_bucket: ggml-org/cache
@@ -82,7 +82,7 @@ jobs:
- name: Build
id: cmake_build
run: |
- time cmake --build build -j $(nproc)
+ cmake --build build -j $(nproc)
- name: ccache-buckets-save
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
@@ -90,7 +90,7 @@ jobs:
env:
HF_TOKEN: ${{ secrets.HF_TOKEN_CACHE_OUTPUT }}
with:
- key: vulkan-ubuntu-26.04-arm
+ key: vulkan-ubuntu-26.04-gb10
folder: llama.cpp
evict-old-files: 1d
hf_bucket: ggml-org/cache
diff --git a/.github/workflows/build-wasi.yml b/.github/workflows/build-wasi.yml
index 2ea854c01..525758f17 100644
--- a/.github/workflows/build-wasi.yml
+++ b/.github/workflows/build-wasi.yml
@@ -49,18 +49,18 @@ env:
jobs:
ubuntu-webgpu:
- runs-on: ubuntu-26.04-arm
+ runs-on: [self-hosted, Linux, gb10]
+ container: "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: Install dependencies
+ run: |
+ apt update
+ apt install -y build-essential cmake ninja-build git curl python3 python-is-python3
- name: Install wasi-sdk
uses: bytecodealliance/setup-wasi-sdk-action@77d09f3df1e8da344d8403cf8631af8977938b4c # v1.0.0
@@ -92,15 +92,6 @@ jobs:
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_LIST_DIR}/dawn-headers/include/webgpu_upstream;${_wasi_webgpu}")
EOF
- - name: ccache-buckets-restore
- uses: ./.github/actions/ccache-buckets
- env:
- HF_TOKEN: ${{ secrets.HF_TOKEN_CI }}
- with:
- key: webgpu-ubuntu-26.04-arm-wasi
- folder: llama.cpp
- hf_bucket: ggml-org/cache
-
# llama-common does not build for WASI, so the executables are linked by hand
- name: Build
id: cmake_build
@@ -120,7 +111,7 @@ jobs:
-DDawn_DIR=$PWD/wasi-webgpu \
-DLLAMA_BUILD_COMMON=OFF
- time cmake --build build-wasi --config Release --target llama -j $(nproc)
+ cmake --build build-wasi --config Release --target llama -j $(nproc)
LIBS="build-wasi/ggml/src/libggml.a build-wasi/ggml/src/ggml-webgpu/libggml-webgpu.a build-wasi/ggml/src/libggml-cpu.a build-wasi/ggml/src/libggml-base.a"
LDFLAGS="-lunwind -ldl -Wl,-z,stack-size=8388608"
@@ -128,15 +119,3 @@ jobs:
$CXX examples/simple/simple.cpp build-wasi/src/libllama.a $LIBS $LDFLAGS -o build-wasi/llama-simple.wasm
$CXX tests/test-backend-ops.cpp $LIBS $LDFLAGS -o build-wasi/test-backend-ops.wasm
-
- - 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: webgpu-ubuntu-26.04-arm-wasi
- folder: llama.cpp
- evict-old-files: 1d
- hf_bucket: ggml-org/cache
- save: true
diff --git a/.github/workflows/build-wasm.yml b/.github/workflows/build-wasm.yml
index b2181271a..97408ea61 100644
--- a/.github/workflows/build-wasm.yml
+++ b/.github/workflows/build-wasm.yml
@@ -50,18 +50,18 @@ env:
jobs:
ubuntu-webgpu:
- runs-on: ubuntu-26.04-arm
+ runs-on: [self-hosted, Linux, gb10]
+ container: "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: Install dependencies
+ run: |
+ apt update
+ apt install -y build-essential cmake ninja-build git curl unzip python3
- name: Install Emscripten
run: |
@@ -79,16 +79,8 @@ jobs:
"https://github.com/google/dawn/releases/download/${DAWN_TAG}/${EMDAWN_PKG}"
unzip emdawn.zip
- - name: ccache-buckets-restore
- uses: ./.github/actions/ccache-buckets
- env:
- HF_TOKEN: ${{ secrets.HF_TOKEN_CI }}
- with:
- key: webgpu-ubuntu-26.04-arm-wasm
- folder: llama.cpp
- hf_bucket: ggml-org/cache
-
- name: Build WASM WebGPU
+ shell: bash
run: |
source emsdk/emsdk_env.sh
emcmake cmake -B build-wasm \
@@ -99,16 +91,4 @@ jobs:
-DLLAMA_OPENSSL=OFF \
-DEMDAWNWEBGPU_DIR=emdawnwebgpu_pkg
- time cmake --build build-wasm --config Release --target test-backend-ops -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: webgpu-ubuntu-26.04-arm-wasm
- folder: llama.cpp
- evict-old-files: 1d
- hf_bucket: ggml-org/cache
- save: true
+ cmake --build build-wasm --config Release --target test-backend-ops -j $(nproc)
diff --git a/.github/workflows/ci-self-hosted-cuda.yml b/.github/workflows/ci-self-hosted-cuda.yml
index d433b9526..fcb451e07 100644
--- a/.github/workflows/ci-self-hosted-cuda.yml
+++ b/.github/workflows/ci-self-hosted-cuda.yml
@@ -49,7 +49,8 @@ env:
jobs:
gpu-cuda:
- runs-on: "hf-jobs-t4-medium:cuda13"
+ runs-on: [self-hosted, Linux, gb10]
+ container: "nvidia/cuda:13.5.0-devel-ubuntu26.04"
steps:
- name: Clone
@@ -58,8 +59,8 @@ jobs:
- name: Install dependencies
run: |
- sudo apt update
- sudo apt install -y cmake libssl-dev time unzip wget python3 python3-venv python3-pip
+ apt update
+ apt install -y build-essential jq cmake git git-lfs libssl-dev time unzip wget python3 python3-venv python3-pip
- name: ccache
uses: ggml-org/ccache-action@v1.2.24
@@ -70,7 +71,7 @@ jobs:
- name: ccache-buckets-restore
uses: ./.github/actions/ccache-buckets
with:
- key: self-hosted-gpu-cuda
+ key: self-hosted-gpu-cuda-gb10
folder: llama.cpp
hf_bucket: ggml-org/cache
@@ -78,7 +79,7 @@ jobs:
id: ggml-ci
run: |
nvidia-smi
- GG_BUILD_CUDA=1 CUDACXX=/usr/local/cuda/bin/nvcc bash ./ci/run.sh ~/results/llama.cpp ~/mnt/llama.cpp
+ GG_BUILD_CUDA=1 CUDACXX=/usr/local/cuda/bin/nvcc bash ./ci/run.sh ~/results/llama.cpp /mnt/cache/llama.cpp
- name: ccache-buckets-save
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
@@ -86,7 +87,7 @@ jobs:
env:
HF_TOKEN: ${{ secrets.HF_TOKEN_CACHE_OUTPUT }}
with:
- key: self-hosted-gpu-cuda
+ key: self-hosted-gpu-cuda-gb10
folder: llama.cpp
evict-old-files: 1d
hf_bucket: ggml-org/cache