Skip to content
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.

Commit

Permalink
Merge pull request #109 from hpcaitech/docker2
Browse files Browse the repository at this point in the history
[docker] add test_query.sh and update docker file
  • Loading branch information
dujiangsu authored Aug 18, 2022
2 parents 59e6b62 + a9a610b commit 35d4fef
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM hpcaitech/colossalai:0.1.8
# FROM energonai:lastest

RUN mkdir -p /workspace && cd /workspace && git clone https://github.com/hpcaitech/EnergonAI.git --recursive && cd EnergonAI && pip --no-cache-dir install -r requirements.txt && pip install .
WORKDIR /workspace

WORKDIR /workspace/EnergonAI
RUN mkdir -p /workspace && cd /workspace && git clone https://github.com/hpcaitech/EnergonAI.git --recursive && cd EnergonAI && pip --no-cache-dir install -r requirements.txt && pip install .

CMD ["./serve.sh"]
CMD ["bash", "/workspace/EnergonAI/server.sh"]
9 changes: 9 additions & 0 deletions test_query.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
set -x

# Launch a docker container in this way
# docker run --gpus all --rm -it -p 8090:8020 -v /data:/data --ipc=host energonai:lastest

# run this script in the host machine.
curl -X 'GET' \
'http://127.0.0.1:8090/run/It%27s%20my%20turn?max_seq_length=200' \
-H 'accept: application/json'

0 comments on commit 35d4fef

Please sign in to comment.