char-fork/llama.cpp
git clone https://git.t4t.associates/char-fork/llama.cpp
062d3115a
char/aliceai-t5-moe
1name : Check Pre-Tokenizer Hashes 2 3on : 4push : 5paths : 6- 'conversion/base.py' 7- 'convert_hf_to_gguf_update.py' 8pull_request : 9paths : 10- 'conversion/base.py' 11- 'convert_hf_to_gguf_update.py' 12 13jobs : 14pre-tokenizer-hashes : 15runs-on : [ self-hosted , fast ] 16 17steps : 18- name : Checkout repository 19uses : actions/checkout@v6 20 21- name : Set up Python 22uses : actions/setup-python@v6 23with : 24python-version : '3.11' 25 26- name : Install Python dependencies 27run : | 28python3 -m venv .venv 29.venv/bin/pip install -r requirements/requirements-convert_hf_to_gguf_update.txt 30 31- name : Update pre-tokenizer hashes 32run : | 33cp conversion/base.py /tmp 34.venv/bin/python convert_hf_to_gguf_update.py --check-missing 35 36- name : Check if committed pre-tokenizer hashes matches generated version 37run : | 38 if ! diff -q conversion/base.py /tmp/base.py; then 39 echo "Model pre-tokenizer hashes (in conversion/base.py) do not match generated hashes (from convert_hf_to_gguf_update.py)." 40 echo "To fix: run ./convert_hf_to_gguf_update.py and commit the updated conversion/base.py along with your changes" 41 echo "Differences found:" 42 diff conversion/base.py /tmp/base.py || true 43 exit 1 44 fi 45 echo "Model pre-tokenizer hashes are up to date."