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 47e3fe7
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 105 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
4 changes: 3 additions & 1 deletion backend/python/common-env/transformers/transformers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ dependencies:
- torch==2.1.0
- torchaudio==2.1.0
- tqdm==4.66.1
- transformers==4.34.0
- triton==2.1.0
- typing-extensions==4.8.0
- tzdata==2023.3
Expand All @@ -102,4 +101,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 47e3fe7

Please sign in to comment.