This repository has been archived by the owner on Oct 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109 from hpcaitech/docker2
[docker] add test_query.sh and update docker file
- Loading branch information
Showing
2 changed files
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |