char-fork/llama.cpp
git clone https://git.t4t.associates/char-fork/llama.cpp
b78a39a2f
char/aliceai-t5-moe
1name : CI (openvino) 2 3on : 4workflow_dispatch : # allows manual triggering 5push : 6branches : 7- master 8paths : [ 9'.github/workflows/build-openvino.yml' , 10'**/CMakeLists.txt' , 11'**/.cmake' , 12'**/*.h' , 13'**/*.hpp' , 14'**/*.c' , 15'**/*.cpp' , 16] 17 18pull_request : 19types : [ opened , synchronize , reopened ] 20paths : [ 21'.github/workflows/build-openvino.yml' , 22'ggml/src/ggml-openvino/**' 23] 24 25concurrency : 26group : ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }} 27cancel-in-progress : true 28 29env : 30GGML_NLOOP : 3 31GGML_N_THREADS : 1 32LLAMA_ARG_LOG_COLORS : 1 33LLAMA_ARG_LOG_PREFIX : 1 34LLAMA_ARG_LOG_TIMESTAMPS : 1 35# TODO: fix failing tests on OpenVINO backend 36CTEST_EXCLUDE : "test-llama-archs|^test-recurrent-state-|test-save-load-state" 37 38jobs : 39ubuntu-24-openvino : 40runs-on : [ self-hosted , Linux , Intel , OpenVINO ] 41 42env : 43# Sync versions in build-openvino.yml, build-self-hosted.yml, release.yml, build-cache.yml, .devops/openvino.Dockerfile 44OPENVINO_VERSION_MAJOR : "2026.3.1" 45OPENVINO_VERSION_FULL : "2026.3.1.22476.56d9685302d" 46 47steps : 48- name : Clone 49id : checkout 50uses : actions/checkout@v6 51 52- name : Dependencies 53id : depends 54run : | 55sudo apt-get update 56sudo apt-get install -y build-essential libssl-dev libtbb12 cmake ninja-build python3-pip 57sudo apt-get install -y ocl-icd-opencl-dev opencl-headers opencl-clhpp-headers intel-opencl-icd 58 59- name : Setup OpenVINO Toolkit 60uses : ./.github/actions/linux-setup-openvino 61with : 62path : ./openvino_toolkit 63version_major : ${{ env.OPENVINO_VERSION_MAJOR }} 64version_full : ${{ env.OPENVINO_VERSION_FULL }} 65 66- name : Install OpenVINO dependencies 67run : | 68cd ./openvino_toolkit 69chmod +x ./install_dependencies/install_openvino_dependencies.sh 70echo "Y" | sudo -E ./install_dependencies/install_openvino_dependencies.sh 71 72- name : Build 73id : cmake_build 74run : | 75source ./openvino_toolkit/setupvars.sh 76cmake -B build/ReleaseOV -G Ninja \ 77-DCMAKE_BUILD_TYPE=Release \ 78-DGGML_OPENVINO=ON 79time cmake --build build/ReleaseOV --config Release --parallel 80 81- name : Test (CPU) 82id : cmake_test_cpu 83run : | 84cd ${{ github.workspace }} 85ctest --test-dir build/ReleaseOV -L main -E "${{ env.CTEST_EXCLUDE }}" --verbose --timeout 3000 86 87- name : Test (GPU) 88id : cmake_test_gpu 89run : | 90cd ${{ github.workspace }} 91export GGML_OPENVINO_DEVICE=GPU 92ctest --test-dir build/ReleaseOV -L main -E "${{ env.CTEST_EXCLUDE }}" --verbose --timeout 3000 93 94openvino-windows-2022 : 95runs-on : windows-2022 96 97env : 98# Sync versions in build-openvino.yml, build-self-hosted.yml, release.yml, build-cache.yml, .devops/openvino.Dockerfile 99OPENVINO_VERSION_MAJOR : "2026.3.1" 100OPENVINO_VERSION_FULL : "2026.3.1.22476.56d9685302d" 101 102steps : 103- name : Clone 104id : checkout 105uses : actions/checkout@v6 106 107- name : ccache 108uses : ggml-org/ccache-action@v1.2.24 109with : 110key : openvino-windows-2022 111variant : ccache 112evict-old-files : 1d 113save : ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} 114 115- name : Setup Cache 116uses : actions/cache@v5 117id : cache-openvino 118with : 119path : ./openvino_toolkit 120key : cache-gha-openvino-toolkit-v${{ env.OPENVINO_VERSION_FULL }}-${{ runner.os }} 121 122- name : Setup OpenVINO Toolkit 123if : steps.cache-openvino.outputs.cache-hit != 'true' 124uses : ./.github/actions/windows-setup-openvino 125with : 126path : ./openvino_toolkit 127version_major : ${{ env.OPENVINO_VERSION_MAJOR }} 128version_full : ${{ env.OPENVINO_VERSION_FULL }} 129 130- name : Install OpenCL using vcpkg 131shell : powershell 132run : | 133git clone https://github.com/microsoft/vcpkg C:\vcpkg 134C:\vcpkg\bootstrap-vcpkg.bat 135C:\vcpkg\vcpkg install opencl 136 137- name : Build 138id : cmake_build 139shell : cmd 140run : | 141REM Find extracted OpenVINO folder dynamically 142for /d %%i in (openvino_toolkit\*) do set OPENVINO_ROOT=%%i 143 144if not exist "%OPENVINO_ROOT%\runtime\cmake\OpenVINOConfig.cmake" ( 145echo ERROR: OpenVINOConfig.cmake not found 146exit /b 1 147) 148 149call "%OPENVINO_ROOT%\setupvars.bat" 150 151cmake -B build\ReleaseOV -G "Visual Studio 17 2022" ^ 152-A x64 ^ 153-DCMAKE_BUILD_TYPE=Release ^ 154-DGGML_OPENVINO=ON ^ 155-DCMAKE_TOOLCHAIN_FILE=C:\vcpkg\scripts\buildsystems\vcpkg.cmake 156 157cmake --build build\ReleaseOV --config Release -- /m 158 159- name : Test (CPU) 160id : cmake_test_cpu 161shell : cmd 162run : | 163REM Find extracted OpenVINO folder dynamically 164for /d %%i in (openvino_toolkit\*) do set OPENVINO_ROOT=%%i 165call "%OPENVINO_ROOT%\setupvars.bat" 166 167cd build 168ctest --test-dir ReleaseOV -L main -E "${{ env.CTEST_EXCLUDE }}" -C Release --verbose --timeout 3000 169 170- name : ccache-clear 171uses : ./.github/actions/ccache-clear 172env : 173GH_TOKEN : ${{ github.token }} 174with : 175key : openvino-windows-2022 176older : 5m 177min : 1 178dry-run : ${{ github.event_name != 'push' || github.ref != 'refs/heads/master' }}