LocalAI/backend/python
cryptk 1981154f49
fix: dont commit generated files to git (#1993)
* fix: initial work towards not committing generated files to the repository

Signed-off-by: Chris Jowett <421501+cryptk@users.noreply.github.com>

* feat: improve build docs

Signed-off-by: Chris Jowett <421501+cryptk@users.noreply.github.com>

* fix: remove unused folder from .dockerignore and .gitignore

Signed-off-by: Chris Jowett <421501+cryptk@users.noreply.github.com>

* fix: attempt to fix extra backend tests

Signed-off-by: Chris Jowett <421501+cryptk@users.noreply.github.com>

* fix: attempt to fix other tests

Signed-off-by: Chris Jowett <421501+cryptk@users.noreply.github.com>

* fix: more test fixes

Signed-off-by: Chris Jowett <421501+cryptk@users.noreply.github.com>

* fix: fix apple tests

Signed-off-by: Chris Jowett <421501+cryptk@users.noreply.github.com>

* fix: more extras tests fixes

Signed-off-by: Chris Jowett <421501+cryptk@users.noreply.github.com>

* fix: add GOBIN to PATH in docker build

Signed-off-by: Chris Jowett <421501+cryptk@users.noreply.github.com>

* fix: extra tests and Dockerfile corrections

Signed-off-by: Chris Jowett <421501+cryptk@users.noreply.github.com>

* fix: remove build dependency checks

Signed-off-by: Chris Jowett <421501+cryptk@users.noreply.github.com>

* fix: add golang protobuf compilers to tests-linux action

Signed-off-by: Chris Jowett <421501+cryptk@users.noreply.github.com>

* fix: ensure protogen is run for extra backend installs

Signed-off-by: Chris Jowett <421501+cryptk@users.noreply.github.com>

* fix: use newer protobuf

Signed-off-by: Chris Jowett <421501+cryptk@users.noreply.github.com>

* fix: more missing protoc binaries

Signed-off-by: Chris Jowett <421501+cryptk@users.noreply.github.com>

* fix: missing dependencies during docker build

Signed-off-by: Chris Jowett <421501+cryptk@users.noreply.github.com>

* fix: don't install grpc compilers in the final stage if they aren't needed

Signed-off-by: Chris Jowett <421501+cryptk@users.noreply.github.com>

* fix: python-grpc-tools in 22.04 repos is too old

Signed-off-by: Chris Jowett <421501+cryptk@users.noreply.github.com>

* fix: add a couple of extra build dependencies to Makefile

Signed-off-by: Chris Jowett <421501+cryptk@users.noreply.github.com>

* fix: unbreak container rebuild functionality

Signed-off-by: Chris Jowett <421501+cryptk@users.noreply.github.com>

---------

Signed-off-by: Chris Jowett <421501+cryptk@users.noreply.github.com>
2024-04-13 09:37:32 +02:00
..
autogptq fix: dont commit generated files to git (#1993) 2024-04-13 09:37:32 +02:00
bark fix: dont commit generated files to git (#1993) 2024-04-13 09:37:32 +02:00
common-env/transformers feat: add flash-attn in nvidia and rocm envs (#1995) 2024-04-11 09:44:39 +02:00
coqui fix: dont commit generated files to git (#1993) 2024-04-13 09:37:32 +02:00
diffusers fix: dont commit generated files to git (#1993) 2024-04-13 09:37:32 +02:00
exllama fix: dont commit generated files to git (#1993) 2024-04-13 09:37:32 +02:00
exllama2 fix: dont commit generated files to git (#1993) 2024-04-13 09:37:32 +02:00
mamba fix: dont commit generated files to git (#1993) 2024-04-13 09:37:32 +02:00
petals fix: dont commit generated files to git (#1993) 2024-04-13 09:37:32 +02:00
sentencetransformers fix: dont commit generated files to git (#1993) 2024-04-13 09:37:32 +02:00
transformers fix: dont commit generated files to git (#1993) 2024-04-13 09:37:32 +02:00
transformers-musicgen fix: dont commit generated files to git (#1993) 2024-04-13 09:37:32 +02:00
vall-e-x fix: dont commit generated files to git (#1993) 2024-04-13 09:37:32 +02:00
vllm fix: dont commit generated files to git (#1993) 2024-04-13 09:37:32 +02:00
README.md refactor: move backends into the backends directory (#1279) 2023-11-13 22:40:16 +01:00

Common commands about conda environment

Create a new empty conda environment

conda create --name <env-name> python=<your version> -y

conda create --name autogptq python=3.11 -y

To activate the environment

As of conda 4.4

conda activate autogptq

The conda version older than 4.4

source activate autogptq

Install the packages to your environment

Sometimes you need to install the packages from the conda-forge channel

By using conda

conda install <your-package-name>

conda install -c conda-forge <your package-name>

Or by using pip

pip install <your-package-name>