diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1cf5f50..b46ea04 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -37,12 +37,17 @@ jobs: id: llama-cpp-version run: echo "llama-cpp-version=$(cat version/llama_cpp)" >> "$GITHUB_OUTPUT" + - name: Get ctransformers version + id: ctransformers-version + run: echo "ctransformers-version=$(cat version/ctransformers)" >> "$GITHUB_OUTPUT" + # Installing dependencies and llama-cpp-python without NVIDIA CUDA acceleration. - name: Setup environment run: | poetry lock --check poetry install --no-root --no-ansi - . .venv/bin/activate && pip3 install llama-cpp-python~=${{ steps.llama-cpp-version.outputs.llama-cpp-version }} + . .venv/bin/activate && pip3 install llama-cpp-python==${{ steps.llama-cpp-version.outputs.llama-cpp-version }} + . .venv/bin/activate && pip3 install ctransformers==${{ steps.ctransformers-version.outputs.ctransformers-version }} - name: Run tests run: | diff --git a/.gitignore b/.gitignore index 68bc17f..958b032 100644 --- a/.gitignore +++ b/.gitignore @@ -68,6 +68,9 @@ instance/ # Scrapy stuff: .scrapy +# Ruff stuff: +.ruff_cache + # Sphinx documentation docs/_build/ diff --git a/README.md b/README.md index 7478910..673651e 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ > The code has been tested on > * `Ubuntu 22.04.2 LTS` running on a Lenovo Legion 5 Pro with twenty `12th Gen Intel® Core™ i7-12700H` and an `NVIDIA GeForce RTX 3060`. > * `MacOS Sonoma 14.3.1` running on a MacBook Pro M1 (2020). +> > If you are using another Operating System or different hardware, and you can't load the models, please > take a look either at the official Llama Cpp Python's GitHub [issue](https://github.com/abetlen/llama-cpp-python/issues). > or at the official CTransformers's GitHub [issue](https://github.com/marella/ctransformers/issues)