Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/ggml/blob/master/.github/workflows/build-self-hosted.yml # ggml [Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685) Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `ggml / .github / workflows / build-self-hosted.yml` 256 lines ยท 7462 bytes Raw Blame History 1 name: build-self-hosted 2 3 on: 4 push: 5 branches: [ master ] 6 paths: 7 - '.github/workflows/build-self-hosted.yml' 8 - 'CMakeLists.txt' 9 - 'cmake/**' 10 - 'ci/**' 11 - 'examples/**' 12 - 'ggml.pc.in' 13 - 'include/**' 14 - 'requirements.txt' 15 - 'src/**' 16 - 'tests/**' 17 pull_request: 18 branches: [ master ] 19 paths: 20 - '.github/workflows/build-self-hosted.yml' 21 - 'CMakeLists.txt' 22 - 'cmake/**' 23 - 'ci/**' 24 - 'examples/**' 25 - 'ggml.pc.in' 26 - 'include/**' 27 - 'requirements.txt' 28 - 'src/**' 29 - 'tests/**' 30 31 concurrency: 32 group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }} 33 cancel-in-progress: true 34 35 env: 36 # note: this is dud token to avoid rate limiting (https://github.com/ggml-org/llama.cpp/pull/25706#issuecomment-`4979941302`) 37 HF_TOKEN: ${{ secrets.HF_TOKEN_CI }} 38 39 jobs: 40 x64-nvidia-cuda: 41 runs-on: "hf-jobs-t4-small:cuda13" 42 43 steps: 44 - name: Clone 45 id: checkout 46 uses: actions/checkout@v6 47 48 - name: Install dependencies 49 run: | 50 sudo apt update 51 sudo apt install -y cmake libssl-dev time unzip wget python3 python3-venv python3-pip 52 53 - name: ccache 54 uses: ggml-org/ccache-action@v1.2.24 55 with: 56 restore: false 57 save: false 58 59 - name: ccache-buckets-restore 60 uses: ./.github/actions/ccache-buckets 61 with: 62 key: self-hosted-x64-nvidia-cuda 63 folder: ggml 64 hf_bucket: ggml-org/cache 65 66 - name: Test 67 id: ggml-ci 68 run: | 69 nvidia-smi 70 GG_BUILD_CUDA=1 CUDACXX=/usr/local/cuda/bin/nvcc bash ./ci/run.sh ~/results/ggml ~/mnt/ggml 71 72 - name: ccache-buckets-save 73 if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} 74 uses: ./.github/actions/ccache-buckets 75 env: 76 HF_TOKEN: ${{ secrets.HF_TOKEN_CACHE_OUTPUT }} 77 with: 78 key: self-hosted-x64-nvidia-cuda 79 folder: ggml 80 evict-old-files: 1d 81 hf_bucket: ggml-org/cache 82 save: true 83 84 x64-nvidia-vulkan-cm: 85 # runs-on: "hf-jobs-t4-small:ubuntu26_04" 86 runs-on: [self-hosted, Linux, X64, NVIDIA] 87 88 steps: 89 - name: Clone 90 id: checkout 91 uses: actions/checkout@v6 92 93 # - name: Install dependencies 94 # run: | 95 # sudo apt update 96 # sudo apt install -y build-essential cmake libxcb-xinput0 libxcb-xinerama0 libxcb-cursor-dev libvulkan-dev glslc spirv-headers vulkan-tools mesa-vulkan-drivers libglvnd0 libgl1 libglx0 libegl1 libgles2 libssl-dev time unzip wget python3 python3-venv python3-pip 97 98 # - name: ccache 99 # uses: ggml-org/ccache-action@v1.2.24 100 # with: 101 # restore: false 102 # save: false 103 104 # - name: ccache-buckets-restore 105 # uses: ./.github/actions/ccache-buckets 106 # with: 107 # key: self-hosted-x64-nvidia-vulkan-cm 108 # folder: ggml 109 # hf_bucket: ggml-org/cache 110 111 - name: Test 112 id: ggml-ci 113 run: | 114 vulkaninfo --summary 115 GG_BUILD_VULKAN=1 GGML_VK_DISABLE_COOPMAT2=1 bash ./ci/run.sh ~/results/ggml /mnt/ggml 116 117 # - name: ccache-buckets-save 118 # if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} 119 # uses: ./.github/actions/ccache-buckets 120 # env: 121 # HF_TOKEN: ${{ secrets.HF_TOKEN_CACHE_OUTPUT }} 122 # with: 123 # key: self-hosted-x64-nvidia-vulkan-cm 124 # folder: ggml 125 # evict-old-files: 1d 126 # hf_bucket: ggml-org/cache 127 # save: true 128 129 x64-nvidia-vulkan-cm2: 130 # runs-on: "hf-jobs-t4-small:ubuntu26_04" 131 runs-on: [self-hosted, Linux, X64, NVIDIA, COOPMAT2] 132 133 steps: 134 - name: Clone 135 id: checkout 136 uses: actions/checkout@v6 137 138 # - name: Install dependencies 139 # run: | 140 # sudo apt update 141 # sudo apt install -y build-essential cmake libxcb-xinput0 libxcb-xinerama0 libxcb-cursor-dev libvulkan-dev glslc spirv-headers vulkan-tools mesa-vulkan-drivers libglvnd0 libgl1 libglx0 libegl1 libgles2 libssl-dev time unzip wget python3 python3-venv python3-pip 142 143 # - name: ccache 144 # uses: ggml-org/ccache-action@v1.2.24 145 # with: 146 # restore: false 147 # save: false 148 149 # - name: ccache-buckets-restore 150 # uses: ./.github/actions/ccache-buckets 151 # with: 152 # key: self-hosted-x64-nvidia-vulkan-cm2 153 # folder: ggml 154 # hf_bucket: ggml-org/cache 155 156 - name: Test 157 id: ggml-ci 158 run: | 159 vulkaninfo --summary 160 GG_BUILD_VULKAN=1 bash ./ci/run.sh ~/results/ggml /mnt/ggml 161 162 # - name: ccache-buckets-save 163 # if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} 164 # uses: ./.github/actions/ccache-buckets 165 # env: 166 # HF_TOKEN: ${{ secrets.HF_TOKEN_CACHE_OUTPUT }} 167 # with: 168 # key: self-hosted-x64-nvidia-vulkan-cm2 169 # folder: ggml 170 # evict-old-files: 1d 171 # hf_bucket: ggml-org/cache 172 # save: true 173 174 # TODO: provision AMX-compatible machine 175 #x64-cpu-amx: 176 # runs-on: [self-hosted, Linux, X64, CPU, AMX] 177 178 # steps: 179 # - name: Clone 180 # id: checkout 181 # uses: actions/checkout@v6 182 183 # - name: Test 184 # id: ggml-ci 185 # run: | 186 # bash ./ci/run.sh ~/results/ggml /mnt/ggml 187 188 mac-metal: 189 runs-on: [self-hosted, macOS, ARM64] 190 191 steps: 192 - name: Clone 193 id: checkout 194 uses: actions/checkout@v6 195 196 - name: Test 197 id: ggml-ci 198 run: | 199 GG_BUILD_METAL=1 bash ./ci/run.sh ~/results/ggml ~/mnt/ggml 200 201 mac-vulkan: 202 runs-on: [self-hosted, macOS, ARM64] 203 204 steps: 205 - name: Clone 206 id: checkout 207 uses: actions/checkout@v6 208 209 - name: Test 210 id: ggml-ci 211 run: | 212 vulkaninfo --summary 213 GG_BUILD_VULKAN=1 bash ./ci/run.sh ~/results/ggml ~/mnt/ggml 214 215 amd-vulkan: 216 runs-on: [self-hosted, Linux, gfx1201] 217 container: "ubuntu:26.04" 218 219 steps: 220 - name: Clone 221 id: checkout 222 uses: actions/checkout@v6 223 224 - name: Install dependencies 225 run: | 226 apt update 227 apt install -y build-essential git git-lfs jq cmake libxcb-xinput0 libxcb-xinerama0 libxcb-cursor-dev libvulkan-dev glslc spirv-headers vulkan-tools mesa-vulkan-drivers libglvnd0 libgl1 libglx0 libegl1 libgles2 libssl-dev time unzip wget python3 python3-venv python3-pip 228 - name: ccache 229 uses: ggml-org/ccache-action@v1.2.24 230 with: 231 restore: false 232 save: false 233 234 - name: ccache-buckets-restore 235 uses: ./.github/actions/ccache-buckets 236 with: 237 key: self-hosted-amd-vulkan 238 folder: ggml 239 hf_bucket: ggml-org/cache 240 241 - name: Test 242 id: ggml-ci 243 run: | 244 vulkaninfo --summary 245 GG_BUILD_VULKAN=1 bash ./ci/run.sh ~/results/ggml ~/mnt/ggml 246 - name: ccache-buckets-save 247 if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} 248 uses: ./.github/actions/ccache-buckets 249 env: 250 HF_TOKEN: ${{ secrets.HF_TOKEN_CACHE_OUTPUT }} 251 with: 252 key: self-hosted-amd-vulkan 253 folder: ggml 254 evict-old-files: 1d 255 hf_bucket: ggml-org/cache 256 save: true