LLM inference in C/C++
C++ ggml
ci : set default permissions (#29945)
Sigbjørn Skjæret46847e615820
diff --git a/.github/workflows/ai-issues.yml b/.github/workflows/ai-issues.ymlindex c762901b5a..3f01ea8561 100644--- a/.github/workflows/ai-issues.yml+++ b/.github/workflows/ai-issues.yml@@ -4,6 +4,10 @@ on:issues:types: [opened]+cache-mode: none+permissions:+ contents: read+jobs:find-related:if: github.event.action == 'opened'diff --git a/.github/workflows/build-3rd-party.yml b/.github/workflows/build-3rd-party.ymlindex 82e53dbafb..fe25f39099 100644--- a/.github/workflows/build-3rd-party.yml+++ b/.github/workflows/build-3rd-party.yml@@ -15,6 +15,10 @@ on:'**/*.cpp']+cache-mode: none+permissions:+ contents: read+concurrency:group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}cancel-in-progress: truediff --git a/.github/workflows/build-and-test-snapdragon.yml b/.github/workflows/build-and-test-snapdragon.ymlindex 296780acb4..d6420b65f1 100644--- a/.github/workflows/build-and-test-snapdragon.yml+++ b/.github/workflows/build-and-test-snapdragon.yml@@ -23,6 +23,10 @@ on:- 'scripts/snapdragon/**'- 'CMakePresets.json'+cache-mode: none+permissions:+ contents: read+concurrency:group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}cancel-in-progress: true@@ -36,6 +40,10 @@ jobs:run:shell: bash+ permissions:+ actions: write+ contents: read+steps:- name: Cloneuses: actions/checkout@v6@@ -66,6 +74,10 @@ jobs:run:shell: bash+ permissions:+ actions: write+ contents: read+steps:- name: Cloneuses: actions/checkout@v6@@ -98,6 +110,10 @@ jobs:matrix:device: [SM8750, SM8850, QCS9075M]+ permissions:+ actions: read+ contents: read+steps:- name: Checkoutuses: actions/checkout@v6diff --git a/.github/workflows/build-android.yml b/.github/workflows/build-android.ymlindex 90960a7f61..4db7c22690 100644--- a/.github/workflows/build-android.yml+++ b/.github/workflows/build-android.yml@@ -20,6 +20,10 @@ on:- '.github/workflows/build-android.yml'- 'examples/llama.android/**'+cache-mode: none+permissions:+ contents: read+concurrency:group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}cancel-in-progress: true@@ -66,6 +70,10 @@ jobs:run:shell: bash+ permissions:+ actions: write+ contents: read+steps:- name: Cloneuses: actions/checkout@v6diff --git a/.github/workflows/build-apple.yml b/.github/workflows/build-apple.ymlindex f87f134635..8845bfb2a0 100644--- a/.github/workflows/build-apple.yml+++ b/.github/workflows/build-apple.yml@@ -26,6 +26,10 @@ on:'ggml/src/ggml-rpc/**']+cache-mode: none+permissions:+ contents: read+concurrency:group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}cancel-in-progress: true@@ -50,7 +54,7 @@ jobs:- name: ccacheuses: ggml-org/[email protected]with:- key: apple-arm64+ restore: falsesave: false- name: ccache-buckets-restore@@ -113,7 +117,7 @@ jobs:- name: ccacheuses: ggml-org/[email protected]with:- key: apple-x64+ restore: falsesave: false- name: ccache-buckets-restore@@ -161,6 +165,10 @@ jobs:macos-latest-ios-xcode:runs-on: macos-latest+ permissions:+ actions: write+ contents: read+steps:- name: Checkout codeuses: actions/checkout@v6@@ -258,6 +266,10 @@ jobs:runs-on: macos-latestneeds: macos-latest-ios-xcode+ permissions:+ actions: read+ contents: read+strategy:matrix:destination: ['generic/platform=macOS', 'generic/platform=iOS', 'generic/platform=tvOS']diff --git a/.github/workflows/build-cache.yml b/.github/workflows/build-cache.ymlindex 28be179d70..e5aa611e4f 100644--- a/.github/workflows/build-cache.yml+++ b/.github/workflows/build-cache.yml@@ -5,6 +5,10 @@ on:schedule:- cron: '0 * * * *'+cache-mode: write+permissions:+ contents: read+concurrency:group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}cancel-in-progress: truediff --git a/.github/workflows/build-cann.yml b/.github/workflows/build-cann.ymlindex 6d76ed4999..1e5ac982be 100644--- a/.github/workflows/build-cann.yml+++ b/.github/workflows/build-cann.yml@@ -22,6 +22,10 @@ on:'ggml/src/ggml-cann/**']+cache-mode: none+permissions:+ contents: read+concurrency:group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}cancel-in-progress: truediff --git a/.github/workflows/build-cmake-pkg.yml b/.github/workflows/build-cmake-pkg.ymlindex e83589282f..e5be1dae1c 100644--- a/.github/workflows/build-cmake-pkg.yml+++ b/.github/workflows/build-cmake-pkg.yml@@ -3,6 +3,10 @@ on:workflow_dispatch:workflow_call:+cache-mode: none+permissions:+ contents: read+jobs:linux:runs-on: [self-hosted, Linux, CPU]diff --git a/.github/workflows/build-cpu.yml b/.github/workflows/build-cpu.ymlindex cde01952fc..78d1c5f825 100644--- a/.github/workflows/build-cpu.yml+++ b/.github/workflows/build-cpu.yml@@ -30,6 +30,10 @@ on:'**/*.cpp']+cache-mode: none+permissions:+ contents: read+concurrency:group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}cancel-in-progress: true@@ -65,7 +69,7 @@ jobs:- name: ccacheuses: ggml-org/[email protected]with:- key: cpu-${{ matrix.os }}+ restore: falsesave: false- name: Build Dependencies@@ -142,6 +146,11 @@ jobs:name: windows / ${{ matrix.build }}runs-on: windows-2025+ cache-mode: write+ permissions:+ actions: write+ contents: read+env:OPENBLAS_VERSION: 0.3.23SDE_VERSION: 9.33.0-2024-01-07diff --git a/.github/workflows/build-cross.yml b/.github/workflows/build-cross.ymlindex eef78b6741..cc432bd4f4 100644--- a/.github/workflows/build-cross.yml+++ b/.github/workflows/build-cross.yml@@ -15,6 +15,10 @@ on:schedule:- cron: '0 0 * * 0'+cache-mode: none+permissions:+ contents: read+concurrency:group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}cancel-in-progress: truediff --git a/.github/workflows/build-cuda-ubuntu.yml b/.github/workflows/build-cuda-ubuntu.ymlindex e76a2acf5b..db97aeb15b 100644--- a/.github/workflows/build-cuda-ubuntu.yml+++ b/.github/workflows/build-cuda-ubuntu.yml@@ -24,6 +24,10 @@ on:'ggml/src/ggml-cuda/**']+cache-mode: none+permissions:+ contents: read+concurrency:group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}cancel-in-progress: true@@ -55,7 +59,7 @@ jobs:- name: ccacheuses: ggml-org/[email protected]with:- key: cuda-ubuntu-24.04-cuda+ restore: falsesave: false- name: ccache-buckets-restore@@ -110,7 +114,7 @@ jobs:- name: ccacheuses: ggml-org/[email protected]with:- key: cuda-ubuntu-22.04-hip+ restore: falsesave: false- name: ccache-buckets-restore@@ -161,7 +165,7 @@ jobs:- name: ccacheuses: ggml-org/[email protected]with:- key: cuda-ubuntu-22.04-musa+ restore: falsesave: false- name: ccache-buckets-restorediff --git a/.github/workflows/build-cuda-windows.yml b/.github/workflows/build-cuda-windows.ymlindex f722874bd8..309f41789c 100644--- a/.github/workflows/build-cuda-windows.yml+++ b/.github/workflows/build-cuda-windows.yml@@ -7,6 +7,11 @@ name: CI (CUDA, windows)on:workflow_dispatch: # allows manual triggering+cache-mode: write+permissions:+ actions: write+ contents: read+# note: this will run in queue with the release workflowconcurrency:group: releasediff --git a/.github/workflows/build-ibm.yml b/.github/workflows/build-ibm.ymlindex ac2f7df06d..fcf90ccee9 100644--- a/.github/workflows/build-ibm.yml+++ b/.github/workflows/build-ibm.yml@@ -23,6 +23,10 @@ on:'ggml/src/ggml-zdnn/**']+cache-mode: none+permissions:+ contents: read+concurrency:group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}cancel-in-progress: truediff --git a/.github/workflows/build-msys.yml b/.github/workflows/build-msys.ymlindex 9f05a9e947..0dbf985046 100644--- a/.github/workflows/build-msys.yml+++ b/.github/workflows/build-msys.yml@@ -8,6 +8,10 @@ on:schedule:- cron: '0 0 * * 0'+cache-mode: none+permissions:+ contents: read+concurrency:group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}cancel-in-progress: truediff --git a/.github/workflows/build-opencl.yml b/.github/workflows/build-opencl.ymlindex 9be2ba1eb6..ab9ed3ec2c 100644--- a/.github/workflows/build-opencl.yml+++ b/.github/workflows/build-opencl.yml@@ -23,6 +23,11 @@ on:'ggml/src/ggml-opencl/**']+cache-mode: write+permissions:+ actions: write+ contents: read+concurrency:group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}cancel-in-progress: truediff --git a/.github/workflows/build-openvino.yml b/.github/workflows/build-openvino.ymlindex d325c368dc..fdc960c23c 100644--- a/.github/workflows/build-openvino.yml+++ b/.github/workflows/build-openvino.yml@@ -22,6 +22,10 @@ on:'ggml/src/ggml-openvino/**']+cache-mode: none+permissions:+ contents: read+concurrency:group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}cancel-in-progress: true@@ -94,6 +98,11 @@ jobs:openvino-windows-2022:runs-on: windows-2022+ cache-mode: write+ permissions:+ actions: write+ contents: read+env:# Sync versions in build-openvino.yml, build-self-hosted.yml, release.yml, build-cache.yml, .devops/openvino.DockerfileOPENVINO_VERSION_MAJOR: "2026.4.1"diff --git a/.github/workflows/build-riscv.yml b/.github/workflows/build-riscv.ymlindex 23a64454e9..b6313c777b 100644--- a/.github/workflows/build-riscv.yml+++ b/.github/workflows/build-riscv.yml@@ -22,6 +22,10 @@ on:'ggml/src/ggml-cpu/arch/riscv/**']+cache-mode: none+permissions:+ contents: read+concurrency:group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}cancel-in-progress: truediff --git a/.github/workflows/build-sanitize.yml b/.github/workflows/build-sanitize.ymlindex 89fcff71d4..3a78c4d092 100644--- a/.github/workflows/build-sanitize.yml+++ b/.github/workflows/build-sanitize.yml@@ -21,6 +21,10 @@ on:'.github/workflows/build-sanitize.yml']+cache-mode: none+permissions:+ contents: read+concurrency:group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}cancel-in-progress: truediff --git a/.github/workflows/build-sycl.yml b/.github/workflows/build-sycl.ymlindex ddc4e7f2b1..741c9ce77c 100644--- a/.github/workflows/build-sycl.yml+++ b/.github/workflows/build-sycl.yml@@ -22,6 +22,10 @@ on:'ggml/src/ggml-sycl/**']+cache-mode: none+permissions:+ contents: read+concurrency:group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}cancel-in-progress: true@@ -78,7 +82,7 @@ jobs:- name: ccacheuses: ggml-org/[email protected]with:- key: sycl-ubuntu-24-${{ matrix.build }}+ restore: falsesave: false- name: ccache-buckets-restore@@ -124,6 +128,11 @@ jobs:windows-latest-sycl:runs-on: windows-2022+ cache-mode: write+ permissions:+ actions: write+ contents: read+defaults:run:shell: bashdiff --git a/.github/workflows/build-virtgpu.yml b/.github/workflows/build-virtgpu.ymlindex 5b740590d6..5768657830 100644--- a/.github/workflows/build-virtgpu.yml+++ b/.github/workflows/build-virtgpu.yml@@ -22,6 +22,10 @@ on:'ggml/src/ggml-virtgpu/**']+cache-mode: none+permissions:+ contents: read+concurrency:group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}cancel-in-progress: truediff --git a/.github/workflows/build-vulkan.yml b/.github/workflows/build-vulkan.ymlindex f362272525..4ba143ef6a 100644--- a/.github/workflows/build-vulkan.yml+++ b/.github/workflows/build-vulkan.yml@@ -24,6 +24,10 @@ on:'ggml/src/ggml-vulkan/**']+cache-mode: none+permissions:+ contents: read+concurrency:group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}cancel-in-progress: true@@ -56,7 +60,7 @@ jobs:- name: ccacheuses: ggml-org/[email protected]with:- key: vulkan-ubuntu-24.04-arm+ restore: falsevariant: ccachesave: false@@ -125,7 +129,7 @@ jobs:- name: ccacheuses: ggml-org/[email protected]with:- key: vulkan-ubuntu-24.04-llvmpipe+ restore: falsesave: false- name: ccache-buckets-restore@@ -170,6 +174,11 @@ jobs:windows:runs-on: windows-2025+ cache-mode: write+ permissions:+ actions: write+ contents: read+env:VULKAN_VERSION: 1.4.357.0diff --git a/.github/workflows/build-wasm.yml b/.github/workflows/build-wasm.ymlindex 5a3166ce68..f96fd85a91 100644--- a/.github/workflows/build-wasm.yml+++ b/.github/workflows/build-wasm.yml@@ -33,6 +33,10 @@ on:'ggml/src/ggml-webgpu/wgsl-shaders/embed_wgsl.py']+cache-mode: none+permissions:+ contents: read+concurrency:group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}cancel-in-progress: true@@ -56,7 +60,7 @@ jobs:- name: ccacheuses: ggml-org/[email protected]with:- key: webgpu-ubuntu-24.04-arm-wasm+ restore: falsesave: false- name: Install Emscriptendiff --git a/.github/workflows/build-webgpu.yml b/.github/workflows/build-webgpu.ymlindex ec582ff274..d001064397 100644--- a/.github/workflows/build-webgpu.yml+++ b/.github/workflows/build-webgpu.yml@@ -25,6 +25,10 @@ on:'ggml/src/ggml-webgpu/**']+cache-mode: none+permissions:+ contents: read+concurrency:group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}cancel-in-progress: true@@ -71,7 +75,7 @@ jobs:- name: ccacheuses: ggml-org/[email protected]with:- key: webgpu-macos-latest+ restore: falsesave: false- name: Dawn Dependency@@ -132,7 +136,7 @@ jobs:- name: ccacheuses: ggml-org/[email protected]with:- key: webgpu-ubuntu-24.04+ restore: falsesave: false- name: Dependenciesdiff --git a/.github/workflows/check-vendor.yml b/.github/workflows/check-vendor.ymlindex 1671ed7b8b..e4c2545934 100644--- a/.github/workflows/check-vendor.yml+++ b/.github/workflows/check-vendor.yml@@ -17,6 +17,10 @@ on:'scripts/sync_vendor.py']+cache-mode: none+permissions:+ contents: read+jobs:check-vendor:runs-on: ubuntu-slimdiff --git a/.github/workflows/ci-self-hosted-cpu.yml b/.github/workflows/ci-self-hosted-cpu.ymlindex 18bc9f1442..eb40baa88e 100644--- a/.github/workflows/ci-self-hosted-cpu.yml+++ b/.github/workflows/ci-self-hosted-cpu.yml@@ -27,6 +27,10 @@ on:'ggml/src/ggml-cpu/**']+cache-mode: none+permissions:+ contents: read+concurrency:group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}cancel-in-progress: truediff --git a/.github/workflows/ci-self-hosted-cuda.yml b/.github/workflows/ci-self-hosted-cuda.ymlindex 24f830a9f0..89605f4dd7 100644--- a/.github/workflows/ci-self-hosted-cuda.yml+++ b/.github/workflows/ci-self-hosted-cuda.yml@@ -30,6 +30,10 @@ on:'ggml/src/ggml-cuda/**']+cache-mode: none+permissions:+ contents: read+concurrency:group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}cancel-in-progress: truediff --git a/.github/workflows/ci-self-hosted-kleidiai.yml b/.github/workflows/ci-self-hosted-kleidiai.ymlindex c955aa0022..c5f5670cec 100644--- a/.github/workflows/ci-self-hosted-kleidiai.yml+++ b/.github/workflows/ci-self-hosted-kleidiai.yml@@ -27,6 +27,10 @@ on:'ggml/src/ggml-cpu/**']+cache-mode: none+permissions:+ contents: read+concurrency:group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}cancel-in-progress: truediff --git a/.github/workflows/ci-self-hosted-metal.yml b/.github/workflows/ci-self-hosted-metal.ymlindex 7af30e294a..5eb20096a4 100644--- a/.github/workflows/ci-self-hosted-metal.yml+++ b/.github/workflows/ci-self-hosted-metal.yml@@ -31,6 +31,10 @@ on:'ggml/src/ggml-metal/**']+cache-mode: none+permissions:+ contents: read+concurrency:group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}cancel-in-progress: truediff --git a/.github/workflows/ci-self-hosted-openvino.yml b/.github/workflows/ci-self-hosted-openvino.ymlindex c64c3a1a41..bf7a55bd89 100644--- a/.github/workflows/ci-self-hosted-openvino.yml+++ b/.github/workflows/ci-self-hosted-openvino.yml@@ -28,6 +28,10 @@ on:'ggml/src/ggml-openvino/**']+cache-mode: none+permissions:+ contents: read+concurrency:group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}cancel-in-progress: truediff --git a/.github/workflows/ci-self-hosted-vulkan.yml b/.github/workflows/ci-self-hosted-vulkan.ymlindex ffed4b09b0..e651f2d1db 100644--- a/.github/workflows/ci-self-hosted-vulkan.yml+++ b/.github/workflows/ci-self-hosted-vulkan.yml@@ -30,6 +30,10 @@ on:'ggml/src/ggml-vulkan/**']+cache-mode: none+permissions:+ contents: read+concurrency:group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}cancel-in-progress: truediff --git a/.github/workflows/ci-self-hosted-webgpu.yml b/.github/workflows/ci-self-hosted-webgpu.ymlindex a6a36a8eba..316ed33b91 100644--- a/.github/workflows/ci-self-hosted-webgpu.yml+++ b/.github/workflows/ci-self-hosted-webgpu.yml@@ -29,6 +29,10 @@ on:'ggml/src/ggml-webgpu/**']+cache-mode: none+permissions:+ contents: read+concurrency:group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}cancel-in-progress: truediff --git a/.github/workflows/close-issue.yml b/.github/workflows/close-issue.ymlindex 4698cee559..744319c262 100644--- a/.github/workflows/close-issue.yml+++ b/.github/workflows/close-issue.yml@@ -3,10 +3,9 @@ on:schedule:- cron: "42 0 * * *"-# Fine-grant permission-# https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token+cache-mode: nonepermissions:- issues: write+ contents: readjobs:close-issues:diff --git a/.github/workflows/code-style.yml b/.github/workflows/code-style.ymlindex c88396c0a7..e114d10dde 100644--- a/.github/workflows/code-style.yml+++ b/.github/workflows/code-style.yml@@ -9,6 +9,10 @@ on:branches:- master+cache-mode: none+permissions:+ contents: read+concurrency:group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}cancel-in-progress: truediff --git a/.github/workflows/docker.yml b/.github/workflows/docker.ymlindex b2aafc9852..1d7579cb0d 100644--- a/.github/workflows/docker.yml+++ b/.github/workflows/docker.yml@@ -20,15 +20,15 @@ on:# Rebuild daily rather than on every push because it is expensive- cron: '12 4 * * *'+cache-mode: none+permissions:+ contents: read+ packages: write+concurrency:group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}cancel-in-progress: true-# Fine-grant permission-# https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token-permissions:- packages: write-jobs:create_tag:name: Create and push git tagdiff --git a/.github/workflows/editorconfig.yml b/.github/workflows/editorconfig.ymlindex 53f6a0ccfd..7a5a01d031 100644--- a/.github/workflows/editorconfig.yml+++ b/.github/workflows/editorconfig.yml@@ -9,6 +9,10 @@ on:branches:- master+cache-mode: none+permissions:+ contents: read+concurrency:group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}cancel-in-progress: truediff --git a/.github/workflows/gguf-publish.yml b/.github/workflows/gguf-publish.ymlindex 6135624793..367b29c60f 100644--- a/.github/workflows/gguf-publish.yml+++ b/.github/workflows/gguf-publish.yml@@ -17,6 +17,9 @@ on:tags:- 'gguf-v*' # Push events to every version tag+cache-mode: none+permissions:+ contents: readjobs:deploy:diff --git a/.github/workflows/hip-quality-check.yml b/.github/workflows/hip-quality-check.ymlindex ee4e746f2f..325e1ebaa4 100644--- a/.github/workflows/hip-quality-check.yml+++ b/.github/workflows/hip-quality-check.yml@@ -25,6 +25,10 @@ on:'scripts/hip/gcn-cdna-vgpr-check.py']+cache-mode: none+permissions:+ contents: read+concurrency:group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}cancel-in-progress: true@@ -54,7 +58,7 @@ jobs:- name: ccacheuses: ggml-org/[email protected]with:- key: hip-quality-check-ubuntu-22.04+ restore: falsesave: false- name: ccache-buckets-restorediff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.ymlindex eab20c6881..bc2c9ea45b 100644--- a/.github/workflows/labeler.yml+++ b/.github/workflows/labeler.yml@@ -2,6 +2,10 @@ name: "Pull Request Labeler"on:- pull_request_target+cache-mode: none+permissions:+ contents: read+jobs:labeler:permissions:diff --git a/.github/workflows/make-release.yml b/.github/workflows/make-release.ymlindex 101ad43f33..93df37f0e0 100644--- a/.github/workflows/make-release.yml+++ b/.github/workflows/make-release.yml@@ -27,6 +27,7 @@ on:env:GH_TOKEN: ${{ github.token }}+cache-mode: nonepermissions:contents: writepackages: writediff --git a/.github/workflows/models-check.yml b/.github/workflows/models-check.ymlindex 51563eacee..f82e0781e1 100644--- a/.github/workflows/models-check.yml+++ b/.github/workflows/models-check.yml@@ -29,6 +29,10 @@ on:'src/models/**']+cache-mode: none+permissions:+ contents: read+concurrency:group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}cancel-in-progress: truediff --git a/.github/workflows/pr-draft-label.yml b/.github/workflows/pr-draft-label.ymlindex d2594c823d..67a2bf3c28 100644--- a/.github/workflows/pr-draft-label.yml+++ b/.github/workflows/pr-draft-label.yml@@ -4,6 +4,7 @@ on:pull_request_target:types: [labeled]+cache-mode: nonepermissions:pull-requests: writeissues: writediff --git a/.github/workflows/pre-tokenizer-hashes.yml b/.github/workflows/pre-tokenizer-hashes.ymlindex bfb79f6983..0ba66ec259 100644--- a/.github/workflows/pre-tokenizer-hashes.yml+++ b/.github/workflows/pre-tokenizer-hashes.yml@@ -10,6 +10,10 @@ on:- 'conversion/base.py'- 'convert_hf_to_gguf_update.py'+cache-mode: none+permissions:+ contents: read+jobs:pre-tokenizer-hashes:runs-on: ubuntu-slimdiff --git a/.github/workflows/python-check-requirements.yml b/.github/workflows/python-check-requirements.ymlindex e21c7da572..9738ff7789 100644--- a/.github/workflows/python-check-requirements.yml+++ b/.github/workflows/python-check-requirements.yml@@ -14,6 +14,10 @@ on:- 'convert*.py'- '**/requirements*.txt'+cache-mode: none+permissions:+ contents: read+concurrency:group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}cancel-in-progress: truediff --git a/.github/workflows/python-lint.yml b/.github/workflows/python-lint.ymlindex 1e5d64c1ae..f2d284af5b 100644--- a/.github/workflows/python-lint.yml+++ b/.github/workflows/python-lint.yml@@ -15,6 +15,10 @@ on:'**/*.py']+cache-mode: none+permissions:+ contents: read+concurrency:group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}cancel-in-progress: truediff --git a/.github/workflows/python-type-check.yml b/.github/workflows/python-type-check.ymlindex 7a2b65890f..5be177e9c5 100644--- a/.github/workflows/python-type-check.yml+++ b/.github/workflows/python-type-check.yml@@ -16,6 +16,10 @@ on:- '**/requirements*.txt'# - 'pyrightconfig.json'+cache-mode: none+permissions:+ contents: read+concurrency:group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}cancel-in-progress: truediff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.ymlindex f6219dba56..31fb1481a1 100644--- a/.github/workflows/release-publish.yml+++ b/.github/workflows/release-publish.yml@@ -9,6 +9,11 @@ on:branches:- master+cache-mode: none+permissions:+ actions: read+ contents: read+env:GH_TOKEN: ${{ github.token }}BRANCH_NAME: masterdiff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 4d714f421f..c826de1fd8 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -27,6 +27,11 @@ on:'**/*.glsl']+cache-mode: write+permissions:+ actions: write+ contents: read+env:GH_TOKEN: ${{ github.token }}BRANCH_NAME: ${{ github.head_ref || github.ref_name }}@@ -114,9 +119,6 @@ jobs:runs-on: ${{ matrix.os }}- permissions:- actions: write-steps:- name: Cloneid: checkout@@ -181,9 +183,6 @@ jobs:runs-on: ${{ matrix.os }}- permissions:- actions: write-steps:- name: Cloneid: checkout@@ -262,9 +261,6 @@ jobs:runs-on: ${{ matrix.os }}- permissions:- actions: write-steps:- name: Cloneid: checkout@@ -359,9 +355,6 @@ jobs:runs-on: ${{ matrix.os }}container: nvidia/cuda:${{ matrix.cuda }}-devel-ubuntu24.04- permissions:- actions: write-steps:# the container has no git; install it before checkout so that a real git repository is created- name: Install git@@ -470,9 +463,6 @@ jobs:runs-on: ubuntu-24.04 # previously ubuntu-latest- permissions:- actions: write-env:NDK_VERSION: "29.0.14206865"@@ -559,9 +549,6 @@ jobs:runs-on: ubuntu-latestcontainer: 'ghcr.io/snapdragon-toolchain/arm64-android:v0.7'- permissions:- actions: write-defaults:run:shell: bash@@ -615,9 +602,6 @@ jobs:runs-on: ubuntu-latestcontainer: 'ghcr.io/snapdragon-toolchain/arm64-linux:v0.7'- permissions:- actions: write-defaults:run:shell: bash@@ -670,9 +654,6 @@ jobs:runs-on: ubuntu-24.04- permissions:- actions: write-outputs:openvino_version: ${{ steps.openvino_version.outputs.value }}@@ -784,9 +765,6 @@ jobs:runs-on: windows-2022- permissions:- actions: write-outputs:openvino_version: ${{ steps.openvino_version.outputs.value }}@@ -912,9 +890,6 @@ jobs:runs-on: windows-2025-vs2026- permissions:- actions: write-strategy:matrix:include:@@ -982,9 +957,6 @@ jobs:runs-on: windows-2022- permissions:- actions: write-strategy:matrix:include:@@ -1142,9 +1114,6 @@ jobs:runs-on: windows-2025- permissions:- actions: write-env:OPENBLAS_VERSION: 0.3.23VULKAN_VERSION: 1.4.357.0@@ -1238,9 +1207,6 @@ jobs:runs-on: windows-2022- permissions:- actions: write-strategy:matrix:include:@@ -1339,9 +1305,6 @@ jobs:runs-on: windows-2022- permissions:- actions: write-defaults:run:shell: bash@@ -1455,9 +1418,6 @@ jobs:runs-on: ubuntu-24.04- permissions:- actions: write-env:ONEAPI_ROOT: /opt/intel/oneapi/ONEAPI_INSTALLER_VERSION: "2026.1"@@ -1538,9 +1498,6 @@ jobs:runs-on: ubuntu-24.04- permissions:- actions: write-strategy:matrix:include:@@ -1660,9 +1617,6 @@ jobs:if: ${{ needs.check-release.outputs.should_release == 'true' }}runs-on: macos-26- permissions:- actions: write-steps:- name: Checkout codeuses: actions/checkout@v6@@ -1738,8 +1692,6 @@ jobs:# build: 'Release'# use_acl_graph: 'off'# runs-on: ${{ matrix.arch == 'aarch64' && 'ubuntu-24.04-arm' || 'ubuntu-24.04' }}-# permissions:-# actions: write# steps:# - name: Checkout# uses: actions/checkout@v6diff --git a/.github/workflows/server-sanitize.yml b/.github/workflows/server-sanitize.ymlindex 69777b6a2b..4202c31e7c 100644--- a/.github/workflows/server-sanitize.yml+++ b/.github/workflows/server-sanitize.yml@@ -31,6 +31,10 @@ on:'.github/workflows/server-sanitize.yml']+cache-mode: none+permissions:+ contents: read+env:# note: this is dud token to avoid rate limiting (https://github.com/ggml-org/llama.cpp/pull/25706#issuecomment-4979941302)HF_TOKEN: ${{ secrets.HF_TOKEN_CI }}diff --git a/.github/workflows/server-self-hosted.yml b/.github/workflows/server-self-hosted.ymlindex 614fd32f5b..c5dd86449c 100644--- a/.github/workflows/server-self-hosted.yml+++ b/.github/workflows/server-self-hosted.yml@@ -28,6 +28,10 @@ on:'tools/server/**.*']+cache-mode: none+permissions:+ contents: read+env:# note: this is dud token to avoid rate limiting (https://github.com/ggml-org/llama.cpp/pull/25706#issuecomment-4979941302)HF_TOKEN: ${{ secrets.HF_TOKEN_CI }}diff --git a/.github/workflows/server.yml b/.github/workflows/server.ymlindex 77fe7dbd3a..05dd0ac459 100644--- a/.github/workflows/server.yml+++ b/.github/workflows/server.yml@@ -43,6 +43,10 @@ on:'tools/server/**.*']+cache-mode: none+permissions:+ contents: read+env:LLAMA_ARG_LOG_COLORS: 1LLAMA_ARG_LOG_PREFIX: 1@@ -82,7 +86,7 @@ jobs:- name: ccacheuses: ggml-org/[email protected]with:- key: server-ubuntu-24.04-arm+ restore: falsesave: false- name: ccache-buckets-restore@@ -151,6 +155,11 @@ jobs:windows:runs-on: windows-2025+ cache-mode: write+ permissions:+ actions: write+ contents: read+steps:- name: Cloneid: checkoutdiff --git a/.github/workflows/ui-build-self-hosted.yml b/.github/workflows/ui-build-self-hosted.ymlindex e93a89003b..0ba2eb983f 100644--- a/.github/workflows/ui-build-self-hosted.yml+++ b/.github/workflows/ui-build-self-hosted.yml@@ -3,6 +3,11 @@ name: UI Build (self-hosted)on:workflow_call:+cache-mode: none+permissions:+ actions: write+ contents: read+jobs:build:runs-on: [self-hosted, fast]diff --git a/.github/workflows/ui-build.yml b/.github/workflows/ui-build.ymlindex 4da505959d..e0d8dd065e 100644--- a/.github/workflows/ui-build.yml+++ b/.github/workflows/ui-build.yml@@ -8,14 +8,15 @@ on:required: falsetype: string+cache-mode: none+permissions:+ actions: write+ contents: read+jobs:build:runs-on: ubuntu-slim- permissions:- actions: write- contents: read-steps:- name: Checkout codeuses: actions/checkout@v6diff --git a/.github/workflows/ui-publish.yml b/.github/workflows/ui-publish.ymlindex a1fb93ed32..d77b899b23 100644--- a/.github/workflows/ui-publish.yml+++ b/.github/workflows/ui-publish.yml@@ -15,15 +15,16 @@ on:description: 'Hugging Face token with write access'required: true+cache-mode: none+permissions:+ actions: read+ contents: read+jobs:publish:name: Publish UI Static Outputruns-on: ubuntu-slim- permissions:- actions: read- contents: read-env:HF_BUCKET_NAME: ${{ vars.HF_BUCKET_UI_STATIC_OUTPUT }}diff --git a/.github/workflows/ui-self-hosted.yml b/.github/workflows/ui-self-hosted.ymlindex 63521ead2d..93b7805f18 100644--- a/.github/workflows/ui-self-hosted.yml+++ b/.github/workflows/ui-self-hosted.yml@@ -29,6 +29,11 @@ on:'tools/server/tests/**.*']+cache-mode: none+permissions:+ actions: read+ contents: read+env:LLAMA_ARG_LOG_COLORS: 1LLAMA_ARG_LOG_PREFIX: 1@@ -43,6 +48,9 @@ jobs:ui-build:name: Build static outputuses: ./.github/workflows/ui-build-self-hosted.yml+ permissions:+ actions: write+ contents: readui-checks:name: Checksdiff --git a/.github/workflows/ui.yml b/.github/workflows/ui.ymlindex f395c0b528..c5c6a32a81 100644--- a/.github/workflows/ui.yml+++ b/.github/workflows/ui.yml@@ -25,6 +25,11 @@ on:'tools/server/tests/**.*']+cache-mode: none+permissions:+ actions: read+ contents: read+env:LLAMA_ARG_LOG_COLORS: 1LLAMA_ARG_LOG_PREFIX: 1@@ -39,6 +44,9 @@ jobs:ui-build:name: Build static outputuses: ./.github/workflows/ui-build.yml+ permissions:+ actions: write+ contents: readui-checks:name: Checksdiff --git a/.github/workflows/update-ops-docs.yml b/.github/workflows/update-ops-docs.ymlindex bb01c7e56b..c94fd85002 100644--- a/.github/workflows/update-ops-docs.yml+++ b/.github/workflows/update-ops-docs.yml@@ -14,6 +14,10 @@ on:- 'docs/ops/**'- 'scripts/create_ops_docs.py'+cache-mode: none+permissions:+ contents: read+jobs:update-ops-docs:runs-on: ubuntu-slimdiff --git a/.github/workflows/winget.yml b/.github/workflows/winget.ymlindex 7af2e9b10b..1abaaf94b9 100644--- a/.github/workflows/winget.yml+++ b/.github/workflows/winget.yml@@ -5,6 +5,10 @@ on:schedule:- cron: '28 5 * * *' # Update every day at 5:28 UTC+cache-mode: none+permissions:+ contents: read+jobs:update:name: Update Winget Package