Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add peft to fastertransformer container #889

Merged
merged 1 commit into from
Jun 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion serving/docker/fastertransformer.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ ARG protobuf_version=3.20.3
ARG transformers_version=4.29.2
ARG accelerate_version=0.19.0
ARG bitsandbytes_version=0.39.1
ARG peft_version=0.3.0

EXPOSE 8080

Expand Down Expand Up @@ -63,7 +64,7 @@ RUN apt-get update && apt-get install -y wget git libnuma-dev zlib1g-dev rapidjs
scripts/install_python.sh ${python_version} && \
pip3 install ${torch_wheel} ${ft_wheel} ${tb_wheel} safetensors protobuf==${protobuf_version} && \
pip3 install transformers==${transformers_version} accelerate==${accelerate_version} bitsandbytes==${bitsandbytes_version} \
scipy einops && \
scipy einops peft==${peft_version} && \
pip3 install cmake sentencepiece && \
pip3 cache purge && \
apt-get clean -y && rm -rf /var/lib/apt/lists/* && \
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/llm/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def get_model_name():
"worker": 2,
},
"gpt4all-lora": {
"max_memory_per_gpu": [6.0, 8.0],
"max_memory_per_gpu": [8.0, 10.0],
"batch_size": [1, 4],
"seq_length": [16, 32],
"worker": 1,
Expand Down Expand Up @@ -173,7 +173,7 @@ def get_model_name():
"stream_output": True,
},
"gpt4all-lora": {
"max_memory_per_gpu": [6.0, 8.0],
"max_memory_per_gpu": [8.0, 10.0],
"batch_size": [1, 4],
"seq_length": [16, 32],
"worker": 1,
Expand Down