Repository navigation
MXFP8 pass-through #16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI (self-hosted CPU backend) | |
| on: | |
| workflow_dispatch: # allows manual triggering | |
| push: | |
| branches: | |
| - master | |
| paths: [ | |
| '.github/workflows/ci-self-hosted-cpu.yml', | |
| 'ci/run.sh', | |
| '**/CMakeLists.txt', | |
| '**/.cmake', | |
| '**/*.h', | |
| '**/*.hpp', | |
| '**/*.c', | |
| '**/*.cpp' | |
| ] | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| paths: [ | |
| '.github/workflows/ci-self-hosted-cpu.yml', | |
| 'ci/run.sh', | |
| '**/CMakeLists.txt', | |
| '**/.cmake', | |
| 'ggml/src/*', | |
| 'ggml/src/ggml-cpu/**' | |
| ] | |
| cache-mode: none | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }} | |
| cancel-in-progress: true | |
| env: | |
| # note: this is dud token to avoid rate limiting (https://github.com/ggml-org/llama.cpp/pull/25706#issuecomment-4979941302) | |
| HF_TOKEN: ${{ secrets.HF_TOKEN_CI }} | |
| GGML_NLOOP: 3 | |
| GGML_N_THREADS: 1 | |
| LLAMA_ARG_LOG_COLORS: 1 | |
| LLAMA_ARG_LOG_PREFIX: 1 | |
| LLAMA_ARG_LOG_TIMESTAMPS: 1 | |
| jobs: | |
| cpu-x64-high-perf: | |
| runs-on: hf-jobs-cpu-upgrade:ubuntu26_04 | |
| # note: this runner has 8 CPUs, but std::thread::hardware_concurrency reports the cores of the | |
| # host (https://github.com/ggml-org/llama.cpp/pull/31439#issuecomment-6683386059) | |
| env: | |
| TEST_ARG_HARDWARE_CONCURRENCY: 8 | |
| TEST_ARG_PARALLEL_WORKERS: 4 | |
| steps: | |
| - name: Clone | |
| id: checkout | |
| uses: actions/checkout@v6 | |
| - name: Dependencies | |
| id: depends | |
| run: | | |
| sudo apt update | |
| sudo apt install -y build-essential cmake libssl-dev time unzip wget python3 python3-venv python3-dev | |
| - name: ccache | |
| uses: ggml-org/ccache-action@v1.2.24 | |
| with: | |
| restore: false | |
| save: false | |
| - name: ccache-buckets-restore | |
| uses: ./.github/actions/ccache-buckets | |
| with: | |
| key: self-hosted-cpu-x64-high-perf | |
| folder: llama.cpp | |
| hf_bucket: ggml-org/cache | |
| - name: Test | |
| id: ggml-ci | |
| run: | | |
| LLAMA_ARG_THREADS=$(nproc) GG_BUILD_HIGH_PERF=1 GG_BUILD_EXTRA_TESTS_0=1 bash ./ci/run.sh ~/results/llama.cpp/$RUNNER_NAME ~/mnt/llama.cpp | |
| - name: ccache-buckets-save | |
| if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} | |
| uses: ./.github/actions/ccache-buckets | |
| env: | |
| HF_TOKEN: ${{ secrets.HF_TOKEN_CACHE_OUTPUT }} | |
| with: | |
| key: self-hosted-cpu-x64-high-perf | |
| folder: llama.cpp | |
| evict-old-files: 1d | |
| hf_bucket: ggml-org/cache | |
| save: true | |
| cpu-arm64-high-perf-graviton4: | |
| runs-on: ah-ubuntu_24_04-c8g_8x | |
| steps: | |
| - name: Clone | |
| id: checkout | |
| uses: actions/checkout@v6 | |
| - name: Dependencies | |
| id: depends | |
| run: | | |
| set -euxo pipefail | |
| sudo apt-get update | |
| sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a \ | |
| apt-get install -y \ | |
| build-essential \ | |
| python3-venv \ | |
| gpg \ | |
| wget \ | |
| time \ | |
| git-lfs | |
| git lfs install | |
| # install the latest cmake | |
| sudo install -d /usr/share/keyrings | |
| wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc \ | |
| | gpg --dearmor \ | |
| | sudo tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null | |
| echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ jammy main' \ | |
| | sudo tee /etc/apt/sources.list.d/kitware.list | |
| sudo apt-get update | |
| sudo apt-get install -y cmake | |
| - name: Test | |
| id: ggml-ci | |
| run: | | |
| LLAMA_ARG_THREADS=$(nproc) \ | |
| GG_BUILD_HIGH_PERF=1 \ | |
| GG_BUILD_NO_BF16=1 \ | |
| GG_BUILD_EXTRA_TESTS_0=1 \ | |
| bash ./ci/run.sh ~/results/llama.cpp ~/mnt/llama.cpp | |
| # TODO: provision AMX-compatible machine | |
| #cpu-amx: | |
| # runs-on: [self-hosted, Linux, CPU, AMX] | |
| # steps: | |
| # - name: Clone | |
| # id: checkout | |
| # uses: actions/checkout@v6 | |
| # - name: Test | |
| # id: ggml-ci | |
| # run: | | |
| # bash ./ci/run.sh ~/results/llama.cpp ~/mnt/llama.cpp |