ci: isolate AMX input layout failure and validate contiguous projection #3
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: Diagnose recurrent context abort | |
| on: | |
| push: | |
| branches: [fix/linux-recurrent-context-abort] | |
| permissions: | |
| contents: read | |
| jobs: | |
| linux: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| trial: [1, 2, 3, 4] | |
| env: | |
| CMAKE_ARGS: -DGGML_NATIVE=ON | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: recursive | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - uses: actions/cache@v5 | |
| with: | |
| path: ~/.cache/huggingface/hub | |
| key: ${{ runner.os }}-model-qwen35-q8-mamba130m-q2-falconh1tiny-q2-bge-small-q4 | |
| - name: CPU details | |
| run: lscpu | |
| - name: Add native diagnostics | |
| run: git -C vendor/llama.cpp apply "$GITHUB_WORKSPACE/.github/scripts/recurrent-diagnostic.patch" | |
| - name: Build | |
| run: | | |
| python -m pip install uv | |
| python -m uv pip install --system -e '.[all]' --verbose --config-settings=build-dir=build-diagnostic | |
| - name: Test with abort diagnostics | |
| continue-on-error: true | |
| run: python .github/scripts/diagnose-recurrent.py | |
| - name: Test contiguous projection input fix | |
| run: | | |
| git -C vendor/llama.cpp apply "$GITHUB_WORKSPACE/.github/scripts/mamba-contiguous.patch" | |
| python -m uv pip install --system --reinstall-package llama-cpp-python -e '.[all]' --verbose --config-settings=build-dir=build-diagnostic | |
| - name: Verify fixed model | |
| run: python .github/scripts/diagnose-recurrent.py |