CVxTz/constrained_llm_generation

Python

2

7 commits

updated Jul 27, 2024

See the code

README

constrained_llm_generation

Docker compose

GPU

Requirements

You need an env with an nvidia GPU with the necessary drivers and docker compose.

Run:

docker compose up --build

CPU

TODO: If you need this one, open an issue and I'll work on it

Local install

Install llama.cpp python

CPU

CMAKE_ARGS="-DLLAVA_BUILD=OFF" pip install llama-cpp-python==v0.2.75 --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu --force-reinstall --no-cache-dir

GPU

CMAKE_ARGS="-DLLAMA_CUBLAS=on" pip install llama-cpp-python==v0.2.75

Then install all the requirement files.

CVxTz/constrained_llm_generation

Python

2

7 commits

updated Jul 27, 2024

See the code

README

constrained_llm_generation

Docker compose

GPU

Requirements

You need an env with an nvidia GPU with the necessary drivers and docker compose.

Run:

docker compose up --build

CPU

TODO: If you need this one, open an issue and I'll work on it

Local install

Install llama.cpp python

CPU

CMAKE_ARGS="-DLLAVA_BUILD=OFF" pip install llama-cpp-python==v0.2.75 --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu --force-reinstall --no-cache-dir

GPU

CMAKE_ARGS="-DLLAMA_CUBLAS=on" pip install llama-cpp-python==v0.2.75

Then install all the requirement files.