char-fork/llama.cpp
git clone https://git.t4t.associates/char-fork/llama.cpp
8b4b3558f
char/aliceai-t5-moe
1name : HIP quality check 2 3on : 4workflow_dispatch : # allows manual triggering 5push : 6branches : 7- master 8paths : [ 9'.github/workflows/hip-quality-check.yml' , 10'**/*.cu' , 11'**/*.cuh' , 12'ggml/src/ggml-hip/CMakeLists.txt' , 13'ggml/src/ggml-cuda/vendors/hip.h' , 14'scripts/hip/gcn-cdna-vgpr-check.py' 15] 16 17pull_request : 18types : [ opened , synchronize , reopened ] 19paths : [ 20'.github/workflows/hip-quality-check.yml' , 21'**/*.cu' , 22'**/*.cuh' , 23'ggml/src/ggml-hip/CMakeLists.txt' , 24'ggml/src/ggml-cuda/vendors/hip.h' , 25'scripts/hip/gcn-cdna-vgpr-check.py' 26] 27 28concurrency : 29group : ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }} 30cancel-in-progress : true 31 32env : 33GGML_NLOOP : 3 34GGML_N_THREADS : 1 35LLAMA_ARG_LOG_COLORS : 1 36LLAMA_ARG_LOG_PREFIX : 1 37LLAMA_ARG_LOG_TIMESTAMPS : 1 38 39jobs : 40ubuntu-22-hip-quality-check : 41runs-on : ubuntu-22.04 42container : rocm/dev-ubuntu-22.04:7.2.1 43steps : 44- name : Clone 45id : checkout 46uses : actions/checkout@v6 47 48- name : Dependencies 49id : depends 50run : | 51sudo apt-get update 52sudo apt-get install -y build-essential git cmake rocblas-dev hipblas-dev libssl-dev python3 python3-venv python3-pip jq 53 54- name : ccache 55uses : ggml-org/ccache-action@v1.2.24 56with : 57key : hip-quality-check-ubuntu-22.04 58save : false 59 60- name : ccache-buckets-restore 61uses : ./.github/actions/ccache-buckets 62env : 63HF_TOKEN : ${{ secrets.HF_TOKEN_CI }} 64with : 65key : hip-quality-check-ubuntu-22.04 66folder : llama.cpp 67hf_bucket : ggml-org/cache 68 69- name : Build with Werror 70id : cmake_build 71run : | 72cmake -B build -S . \ 73-DCMAKE_HIP_COMPILER="$(hipconfig -l)/clang" \ 74-DGPU_TARGETS=gfx942 \ 75-DGGML_HIP=ON \ 76-DGGML_HIP_EXPORT_METRICS=Off \ 77-DCMAKE_HIP_FLAGS="-Werror -Wno-tautological-compare" \ 78-DCMAKE_BUILD_TYPE=Release 79cd build 80make -j $(nproc) 81 82- name : Check for major VGPR spills 83id : vgpr_check 84run : | 85cmake -B build -S . \ 86-DCMAKE_HIP_COMPILER="$(hipconfig -l)/clang" \ 87-DGPU_TARGETS=gfx908 \ 88-DGGML_HIP=ON \ 89-DGGML_HIP_EXPORT_METRICS=On \ 90-DCMAKE_HIP_FLAGS="" \ 91-DCMAKE_BUILD_TYPE=Release 92cd build 93make -j $(nproc) 2>&1 | tee metrics.log | grep -v 'Rpass-analysis=kernel-resource-usage\|remark:\|^$' 94python3 ../scripts/hip/gcn-cdna-vgpr-check.py metrics.log 95 96- name : ccache-buckets-save 97if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} 98uses : ./.github/actions/ccache-buckets 99env : 100HF_TOKEN : ${{ secrets.HF_TOKEN_CACHE_OUTPUT }} 101with : 102key : hip-quality-check-ubuntu-22.04 103folder : llama.cpp 104evict-old-files : 1d 105hf_bucket : ggml-org/cache 106save : true