Skip to content

Commit

Permalink
deps(conda): use transformers with vllm
Browse files Browse the repository at this point in the history
  • Loading branch information
mudler committed Jan 6, 2024
1 parent ce724a7 commit 43b9c0e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 104 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,6 @@ dependencies:
- sudachipy
- sudachidict_core
- vocos
- vllm==0.2.0
- xformers==0.0.22
prefix: /opt/conda/envs/transformers
3 changes: 3 additions & 0 deletions backend/python/common-env/transformers/transformers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,7 @@ dependencies:
- sudachipy
- sudachidict_core
- vocos
- vllm==0.2.7
- transformers>=4.36.0 # Required for Mixtral.
- xformers==0.0.23.post1
prefix: /opt/conda/envs/transformers
4 changes: 1 addition & 3 deletions backend/python/vllm/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
.PHONY: vllm
vllm:
@echo "Creating virtual environment..."
@conda env create --name vllm --file vllm.yml
@echo "Virtual environment created."
$(MAKE) -C ../common-env/transformers

.PHONY: run
run:
Expand Down
2 changes: 1 addition & 1 deletion backend/python/vllm/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
export PATH=$PATH:/opt/conda/bin

# Activate conda environment
source activate vllm
source activate transformers

# get the directory where the bash script is located
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
Expand Down
2 changes: 1 addition & 1 deletion backend/python/vllm/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## A bash script wrapper that runs the transformers server with conda

# Activate conda environment
source activate vllm
source activate transformers

# get the directory where the bash script is located
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
Expand Down
99 changes: 0 additions & 99 deletions backend/python/vllm/vllm.yml

This file was deleted.

0 comments on commit 43b9c0e

Please sign in to comment.