LocalAI/backend/python
Ettore Di Giacinto b4b21a446b
feat(conda): share envs with transformer-based backends (#1465)
* feat(conda): share env between diffusers and bark

* Detect if env already exists

* share diffusers and petals

* tests: add petals

* Use smaller model for tests with petals

* test only model load on petals

* tests(petals): run only load model tests

* Revert "test only model load on petals"

This reverts commit 111cfa97f1.

* move transformers and sentencetransformers to common env

* Share also transformers-musicgen
2023-12-21 08:35:15 +01:00
..
autogptq feat(diffusers): update, add autopipeline, controlnet (#1432) 2023-12-13 19:20:22 +01:00
bark feat(conda): share envs with transformer-based backends (#1465) 2023-12-21 08:35:15 +01:00
common-env/transformers feat(conda): share envs with transformer-based backends (#1465) 2023-12-21 08:35:15 +01:00
diffusers feat(conda): share envs with transformer-based backends (#1465) 2023-12-21 08:35:15 +01:00
exllama feat(diffusers): update, add autopipeline, controlnet (#1432) 2023-12-13 19:20:22 +01:00
exllama2 feat(diffusers): update, add autopipeline, controlnet (#1432) 2023-12-13 19:20:22 +01:00
petals feat(conda): share envs with transformer-based backends (#1465) 2023-12-21 08:35:15 +01:00
sentencetransformers feat(conda): share envs with transformer-based backends (#1465) 2023-12-21 08:35:15 +01:00
transformers feat(conda): share envs with transformer-based backends (#1465) 2023-12-21 08:35:15 +01:00
transformers-musicgen feat(conda): share envs with transformer-based backends (#1465) 2023-12-21 08:35:15 +01:00
vall-e-x feat(diffusers): update, add autopipeline, controlnet (#1432) 2023-12-13 19:20:22 +01:00
vllm feat(conda): share envs with transformer-based backends (#1465) 2023-12-21 08:35:15 +01: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>