]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
python : add check-requirements.sh and GitHub workflow (#4585)
authorcrasm <redacted>
Fri, 29 Dec 2023 14:50:29 +0000 (09:50 -0500)
committerGitHub <redacted>
Fri, 29 Dec 2023 14:50:29 +0000 (16:50 +0200)
commit04ac0607e913ab91234dfb240e12a76509e30982
treec97a77fd649600d73750c3359e0c0586b89a9d72
parent68eccbdc5b56f2a2450f9a8463f9934388cafabf
python : add check-requirements.sh and GitHub workflow (#4585)

* python: add check-requirements.sh and GitHub workflow

This script and workflow forces package versions to remain compatible
across all convert*.py scripts, while allowing secondary convert scripts
to import dependencies not wanted in convert.py.

* Move requirements into ./requirements

* Fail on "==" being used for package requirements (but can be suppressed)

* Enforce "compatible release" syntax instead of ==

* Update workflow

* Add upper version bound for transformers and protobuf

* improve check-requirements.sh

* small syntax change

* don't remove venvs if nocleanup is passed

* See if this fixes docker workflow

* Move check-requirements.sh into ./scripts/

---------

Co-authored-by: Jared Van Bortel <redacted>
16 files changed:
.devops/full-cuda.Dockerfile
.devops/full-rocm.Dockerfile
.devops/full.Dockerfile
.devops/main-rocm.Dockerfile
.github/workflows/python-check-requirements.yml [new file with mode: 0644]
convert-hf-to-gguf.py
convert-lora-to-ggml.py
convert-persimmon-to-gguf.py [changed mode: 0644->0755]
requirements-hf-to-gguf.txt [deleted file]
requirements.txt
requirements/requirements-convert-hf-to-gguf.txt [new file with mode: 0644]
requirements/requirements-convert-llama-ggml-to-gguf.txt [new file with mode: 0644]
requirements/requirements-convert-lora-to-ggml.txt [new file with mode: 0644]
requirements/requirements-convert-persimmon-to-gguf.txt [new file with mode: 0644]
requirements/requirements-convert.txt [new file with mode: 0644]
scripts/check-requirements.sh [new file with mode: 0755]