Team Ai
Modelpublic

Felipe97/llama-cpp-compiled

sourceHugging Faceupdated 21d agoView on Hugging Face
0likes1.2kdownloads
fusion.yml72 linesDownload Raw Back to workflows
1name: Fusion2 3on:4  workflow_dispatch: # allows manual triggering5  push:6    branches:7      - master8    paths: [9      '.github/workflows/fusion.yml',10      'ggml/**',11      'tests/fusion/**',12      'tests/test-fusion.cpp',13      'tests/test-llama-archs.cpp',14      'src/models/**'15    ]16 17  pull_request:18    types: [opened, synchronize, reopened]19    paths: [20      '.github/workflows/fusion.yml',21      'ggml/**',22      'tests/fusion/**',23      'tests/test-fusion.cpp',24      'tests/test-llama-archs.cpp',25      'src/models/**'26    ]27 28concurrency:29  group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}30  cancel-in-progress: true31 32env:33  GGML_NLOOP: 334  GGML_N_THREADS: 135  LLAMA_ARG_LOG_COLORS: 136  LLAMA_ARG_LOG_PREFIX: 137  LLAMA_ARG_LOG_TIMESTAMPS: 138 39jobs:40  # TODO: add jobs for other backends as they adopt the fusion debug API41  metal:42    runs-on: [self-hosted, macOS, ARM64]43 44    steps:45      - name: Clone46        id: checkout47        uses: actions/checkout@v648 49      - name: Build50        id: cmake_build51        run: |52          cmake -B build \53            -DCMAKE_BUILD_TYPE=Release \54            -DLLAMA_FATAL_WARNINGS=ON \55            -DLLAMA_OPENSSL=OFF \56            -DGGML_SCHED_NO_REALLOC=ON \57            -DGGML_BLAS=OFF \58            -DGGML_METAL=ON59          time cmake --build build --config Release --target test-llama-archs -j $(sysctl -n hw.logicalcpu)60          time cmake --build build --config Release --target test-fusion -j $(sysctl -n hw.logicalcpu)61 62      - name: Generate models63        id: generate_models64        run: |65          rm -rf build-ci-models && mkdir -p build-ci-models66          ./build/bin/test-llama-archs -o build-ci-models67 68      - name: Test fusion69        id: test_fusion70        run: |71          ./build/bin/test-fusion --models build-ci-models --device MTL0 --check tests/fusion/MTL.csv72