char-fork/llama.cpp
git clone https://git.t4t.associates/char-fork/llama.cpp
8b4b3558f
char/aliceai-t5-moe
1name : CI (CUDA, ubuntu) 2 3on : 4workflow_dispatch : # allows manual triggering 5push : 6branches : 7- master 8paths : [ 9'.github/workflows/build-cuda-ubuntu.yml' , 10'**/CMakeLists.txt' , 11'**/.cmake' , 12'**/*.h' , 13'**/*.hpp' , 14'**/*.c' , 15'**/*.cpp' , 16'**/*.cu' , 17'**/*.cuh' 18] 19 20pull_request : 21types : [ opened , synchronize , reopened ] 22paths : [ 23'.github/workflows/build-cuda-ubuntu.yml' , 24'ggml/src/ggml-cuda/**' 25] 26 27concurrency : 28group : ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }} 29cancel-in-progress : true 30 31env : 32GGML_NLOOP : 3 33GGML_N_THREADS : 1 34LLAMA_ARG_LOG_COLORS : 1 35LLAMA_ARG_LOG_PREFIX : 1 36LLAMA_ARG_LOG_TIMESTAMPS : 1 37 38jobs : 39cuda : 40runs-on : ubuntu-24.04 41container : nvidia/cuda:12.6.2-devel-ubuntu24.04 42 43steps : 44- name : Clone 45id : checkout 46uses : actions/checkout@v6 47 48- name : Install dependencies 49env : 50DEBIAN_FRONTEND : noninteractive 51run : | 52apt update 53apt install -y cmake build-essential ninja-build libgomp1 git libssl-dev jq python3 python3-venv python3-pip 54 55- name : ccache 56uses : ggml-org/ccache-action@v1.2.24 57with : 58key : cuda-ubuntu-24.04-cuda 59save : false 60 61- name : ccache-buckets-restore 62uses : ./.github/actions/ccache-buckets 63env : 64HF_TOKEN : ${{ secrets.HF_TOKEN_CI }} 65with : 66key : cuda-ubuntu-24.04-cuda 67folder : llama.cpp 68hf_bucket : ggml-org/cache 69 70- name : Build with CMake 71# TODO: Remove GGML_CUDA_CUB_3DOT2 flag once CCCL 3.2 is bundled within CTK and that CTK version is used in this project 72run : | 73cmake -S . -B build -G Ninja \ 74-DLLAMA_FATAL_WARNINGS=ON \ 75-DCMAKE_BUILD_TYPE=Release \ 76-DCMAKE_CUDA_ARCHITECTURES=89-real \ 77-DCMAKE_EXE_LINKER_FLAGS=-Wl,--allow-shlib-undefined \ 78-DGGML_NATIVE=OFF \ 79-DGGML_CUDA=ON \ 80-DGGML_CUDA_CUB_3DOT2=ON 81cmake --build build 82 83- name : ccache-buckets-save 84if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} 85uses : ./.github/actions/ccache-buckets 86env : 87HF_TOKEN : ${{ secrets.HF_TOKEN_CACHE_OUTPUT }} 88with : 89key : cuda-ubuntu-24.04-cuda 90folder : llama.cpp 91evict-old-files : 1d 92hf_bucket : ggml-org/cache 93save : true 94 95hip : 96runs-on : ubuntu-22.04 97container : rocm/dev-ubuntu-22.04:6.1.2 98 99steps : 100- name : Clone 101id : checkout 102uses : actions/checkout@v6 103 104- name : Dependencies 105id : depends 106run : | 107sudo apt-get update 108sudo apt-get install -y build-essential git cmake rocblas-dev hipblas-dev libssl-dev rocwmma-dev jq python3-venv 109 110- name : ccache 111uses : ggml-org/ccache-action@v1.2.24 112with : 113key : cuda-ubuntu-22.04-hip 114save : false 115 116- name : ccache-buckets-restore 117uses : ./.github/actions/ccache-buckets 118env : 119HF_TOKEN : ${{ secrets.HF_TOKEN_CI }} 120with : 121key : cuda-ubuntu-22.04-hip 122folder : llama.cpp 123hf_bucket : ggml-org/cache 124 125- name : Build with native CMake HIP support 126id : cmake_build 127run : | 128cmake -B build -S . \ 129-DCMAKE_HIP_COMPILER="$(hipconfig -l)/clang" \ 130-DGPU_TARGETS="gfx1030" \ 131-DGGML_HIP=ON 132cmake --build build --config Release -j $(nproc) 133 134- name : ccache-buckets-save 135if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} 136uses : ./.github/actions/ccache-buckets 137env : 138HF_TOKEN : ${{ secrets.HF_TOKEN_CACHE_OUTPUT }} 139with : 140key : cuda-ubuntu-22.04-hip 141folder : llama.cpp 142evict-old-files : 1d 143hf_bucket : ggml-org/cache 144save : true 145 146musa : 147runs-on : ubuntu-22.04 148container : mthreads/musa:rc4.3.0-devel-ubuntu22.04-amd64 149 150steps : 151- name : Clone 152id : checkout 153uses : actions/checkout@v6 154 155- name : Dependencies 156id : depends 157run : | 158apt-get update 159apt-get install -y build-essential git cmake libssl-dev jq 160 161- name : ccache 162uses : ggml-org/ccache-action@v1.2.24 163with : 164key : cuda-ubuntu-22.04-musa 165save : false 166 167- name : ccache-buckets-restore 168uses : ./.github/actions/ccache-buckets 169env : 170HF_TOKEN : ${{ secrets.HF_TOKEN_CI }} 171with : 172key : cuda-ubuntu-22.04-musa 173folder : llama.cpp 174hf_bucket : ggml-org/cache 175 176- name : Build with native CMake MUSA support 177id : cmake_build 178run : | 179cmake -B build -S . \ 180-DGGML_MUSA=ON 181time cmake --build build --config Release -j $(nproc) 182 183- name : ccache-buckets-save 184if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} 185uses : ./.github/actions/ccache-buckets 186env : 187HF_TOKEN : ${{ secrets.HF_TOKEN_CACHE_OUTPUT }} 188with : 189key : cuda-ubuntu-22.04-musa 190folder : llama.cpp 191evict-old-files : 1d 192hf_bucket : ggml-org/cache 193save : true