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 Docker file #115

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM nvidia/cuda:11.2.2-runtime-ubuntu20.04

RUN apt-get update --yes --quiet
RUN apt install software-properties-common -y && add-apt-repository ppa:deadsnakes/ppa -y && \
apt-get install -y python3.10 \
pip \
python3.10-distutils \
curl

RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10
RUN python3.10 -m pip install -U pip

WORKDIR /app

COPY requirements.txt /app

RUN python3.10 -m pip install -r requirements.txt

COPY . /app

CMD python3.10 server_vllm.py --model "meetkai/functionary-small-v2.2" --host 0.0.0.0
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ Now you can start a blazing fast [vLLM](https://vllm.readthedocs.io/en/latest/ge
python3 server_vllm.py --model "meetkai/functionary-small-v2.2" --host 0.0.0.0
```

#### Run in Docker

You can also run functionary in Docker

```shell
docker build . -t functionary
docker run -p 8000:8000 functionary
```

### OpenAI Compatible Usage

```python
Expand Down