Skip to content

ci: restore models for recurrent diagnostics #3

ci: restore models for recurrent diagnostics

ci: restore models for recurrent diagnostics #3

name: Diagnose recurrent Linux abort
on:
workflow_dispatch:
push:
branches:
- test/diagnose-linux-recurrent-abort
env:
MODEL_CACHE_KEY: qwen35-q8-mamba130m-q2-falconh1tiny-q2-bge-small-q4
jobs:
diagnose:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Restore model cache
uses: actions/cache@v5
with:
path: ~/.cache/huggingface/hub
key: ${{ runner.os }}-model-${{ env.MODEL_CACHE_KEY }}
- name: Show runner CPU
run: lscpu
- name: Install debugger
run: |
sudo apt-get update
sudo apt-get install --yes gdb
- name: Build package
run: |
python -m pip install --upgrade pip
python -m pip install uv
python -m uv pip install -e '.[all]' --verbose
- name: Recurrent test alone
continue-on-error: true
run: |
python -m pytest -vv -s \
tests/test_llama.py::test_recurrent_model_prompt_cache_reset
- name: Recurrent test after low-level model
continue-on-error: true
run: |
python -m pytest -vv -s \
tests/test_llama.py::test_real_model \
tests/test_llama.py::test_recurrent_model_prompt_cache_reset
- name: Recurrent test after high-level model
continue-on-error: true
run: |
python -m pytest -vv -s \
tests/test_llama.py::test_real_llama \
tests/test_llama.py::test_recurrent_model_prompt_cache_reset
- name: Recurrent test after repeated-prompt model
continue-on-error: true
run: |
python -m pytest -vv -s \
tests/test_llama.py::test_real_llama_repeated_prompt_cache \
tests/test_llama.py::test_recurrent_model_prompt_cache_reset
- name: Reproduce original test sequence
continue-on-error: true
run: |
python -m pytest -vv -s \
tests/test_llama.py::test_llama_cpp_version \
tests/test_llama.py::test_llama_cpp_tokenization \
tests/test_llama.py::test_real_model \
tests/test_llama.py::test_real_llama \
tests/test_llama.py::test_real_llama_repeated_prompt_cache \
tests/test_llama.py::test_recurrent_model_prompt_cache_reset
- name: Capture original-sequence backtrace
continue-on-error: true
run: |
gdb --batch \
-ex "set pagination off" \
-ex run \
-ex "thread apply all bt" \
--args python -m pytest -vv -s \
tests/test_llama.py::test_llama_cpp_version \
tests/test_llama.py::test_llama_cpp_tokenization \
tests/test_llama.py::test_real_model \
tests/test_llama.py::test_real_llama \
tests/test_llama.py::test_real_llama_repeated_prompt_cache \
tests/test_llama.py::test_recurrent_model_prompt_cache_reset