Skip to content

Commit 75a96c7

Browse files
Aisukomudler
authored andcommitted
feat(conda):Add seperate conda env for exllama (#1149)
Add seperate env for exllama Signed-off-by: Aisuko <[email protected]> Signed-off-by: Ettore Di Giacinto <[email protected]>
1 parent 519d13f commit 75a96c7

File tree

6 files changed

+83
-1
lines changed

6 files changed

+83
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ARG TARGETARCH
1414
ARG TARGETVARIANT
1515

1616
ENV BUILD_TYPE=${BUILD_TYPE}
17-
ENV EXTERNAL_GRPC_BACKENDS="huggingface-embeddings:/build/extra/grpc/huggingface/run.sh,autogptq:/build/extra/grpc/autogptq/run.sh,bark:/build/extra/grpc/bark/run.sh,diffusers:/build/extra/grpc/diffusers/run.sh,exllama:/build/extra/grpc/exllama/exllama.py,vall-e-x:/build/extra/grpc/vall-e-x/run.sh,vllm:/build/extra/grpc/vllm/run.sh"
17+
ENV EXTERNAL_GRPC_BACKENDS="huggingface-embeddings:/build/extra/grpc/huggingface/run.sh,autogptq:/build/extra/grpc/autogptq/run.sh,bark:/build/extra/grpc/bark/run.sh,diffusers:/build/extra/grpc/diffusers/run.sh,exllama:/build/extra/grpc/exllama/run.sh,vall-e-x:/build/extra/grpc/vall-e-x/run.sh,vllm:/build/extra/grpc/vllm/run.sh"
1818
ENV GALLERIES='[{"name":"model-gallery", "url":"github:go-skynet/model-gallery/index.yaml"}, {"url": "github:go-skynet/model-gallery/huggingface.yaml","name":"huggingface"}]'
1919
ARG GO_TAGS="stablediffusion tts"
2020

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,7 @@ prepare-extra-conda-environments:
422422
$(MAKE) -C extra/grpc/vllm
423423
$(MAKE) -C extra/grpc/huggingface
424424
$(MAKE) -C extra/grpc/vall-e-x
425+
$(MAKE) -C extra/grpc/exllama
425426

426427

427428
backend-assets/grpc:

extra/grpc/exllama/Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.PONY: exllama
2+
exllama:
3+
@echo "Creating virtual environment..."
4+
@conda env create --name exllama --file exllama.yml
5+
@echo "Virtual environment created."
6+
7+
.PONY: run
8+
run:
9+
@echo "Running exllama..."
10+
bash run.sh
11+
@echo "exllama run."

extra/grpc/exllama/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Creating a separate environment for the exllama project
2+
3+
```
4+
make exllama
5+
```

extra/grpc/exllama/exllama.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: exllama
2+
channels:
3+
- defaults
4+
dependencies:
5+
- _libgcc_mutex=0.1=main
6+
- _openmp_mutex=5.1=1_gnu
7+
- bzip2=1.0.8=h7b6447c_0
8+
- ca-certificates=2023.08.22=h06a4308_0
9+
- ld_impl_linux-64=2.38=h1181459_1
10+
- libffi=3.4.4=h6a678d5_0
11+
- libgcc-ng=11.2.0=h1234567_1
12+
- libgomp=11.2.0=h1234567_1
13+
- libstdcxx-ng=11.2.0=h1234567_1
14+
- libuuid=1.41.5=h5eee18b_0
15+
- ncurses=6.4=h6a678d5_0
16+
- openssl=3.0.11=h7f8727e_2
17+
- pip=23.2.1=py311h06a4308_0
18+
- python=3.11.5=h955ad1f_0
19+
- readline=8.2=h5eee18b_0
20+
- setuptools=68.0.0=py311h06a4308_0
21+
- sqlite=3.41.2=h5eee18b_0
22+
- tk=8.6.12=h1ccaba5_0
23+
- tzdata=2023c=h04d1e81_0
24+
- wheel=0.41.2=py311h06a4308_0
25+
- xz=5.4.2=h5eee18b_0
26+
- zlib=1.2.13=h5eee18b_0
27+
- pip:
28+
- filelock==3.12.4
29+
- fsspec==2023.9.2
30+
- grpcio==1.59.0
31+
- jinja2==3.1.2
32+
- markupsafe==2.1.3
33+
- mpmath==1.3.0
34+
- networkx==3.1
35+
- ninja==1.11.1
36+
- nvidia-cublas-cu12==12.1.3.1
37+
- nvidia-cuda-cupti-cu12==12.1.105
38+
- nvidia-cuda-nvrtc-cu12==12.1.105
39+
- nvidia-cuda-runtime-cu12==12.1.105
40+
- nvidia-cudnn-cu12==8.9.2.26
41+
- nvidia-cufft-cu12==11.0.2.54
42+
- nvidia-curand-cu12==10.3.2.106
43+
- nvidia-cusolver-cu12==11.4.5.107
44+
- nvidia-cusparse-cu12==12.1.0.106
45+
- nvidia-nccl-cu12==2.18.1
46+
- nvidia-nvjitlink-cu12==12.2.140
47+
- nvidia-nvtx-cu12==12.1.105
48+
- protobuf==4.24.4
49+
- safetensors==0.3.2
50+
- sentencepiece==0.1.99
51+
- sympy==1.12
52+
- torch==2.1.0
53+
- triton==2.1.0
54+
- typing-extensions==4.8.0
55+
prefix: /opt/conda/envs/exllama

extra/grpc/exllama/run.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
##
2+
## A bash script wrapper that runs the exllama server with conda
3+
4+
# Activate conda environment
5+
source activate exllama
6+
7+
# get the directory where the bash script is located
8+
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
9+
10+
python $DIR/exllama.py

0 commit comments

Comments
 (0)