Skip to content

Commit 69ce8a2

Browse files
authored
Add loadgen in dev image (#109)
* build loadgen in docker
1 parent 46e444c commit 69ce8a2

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

jetstream/tools/proxy_dev/base.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ FROM ubuntu:22.04
55

66
ENV DEBIAN_FRONTEND=noninteractive
77

8-
RUN apt -y update && apt install -y --no-install-recommends apt-transport-https ca-certificates gnupg git python3.10 python3-pip curl
8+
RUN apt -y update && apt install -y --no-install-recommends apt-transport-https ca-certificates gnupg git python3.10 python3-pip curl nano vim
99

1010
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1
1111
RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list && curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg && apt-get update -y && apt-get install google-cloud-sdk -y

jetstream/tools/proxy_dev/dev.Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,16 @@ COPY maxtext ./maxtext
1414

1515
RUN pip install ./JetStream
1616

17+
COPY inference_mlperf4.1 ./inference_mlperf4.1
18+
RUN apt-get -y install python3-dev && apt-get -y install build-essential
19+
RUN pip install ./inference_mlperf4.1/loadgen
20+
RUN pip install \
21+
transformers==4.31.0 \
22+
nltk==3.8.1 \
23+
evaluate==0.4.0 \
24+
absl-py==1.4.0 \
25+
rouge-score==0.1.2 \
26+
sentencepiece==0.1.99 \
27+
accelerate==0.21.0
28+
1729
ENTRYPOINT ["bash"]

0 commit comments

Comments
 (0)