Skip to content

Commit

Permalink
use data setup instead
Browse files Browse the repository at this point in the history
Signed-off-by: lrq619 <[email protected]>
  • Loading branch information
lrq619 committed Aug 15, 2023
1 parent 0902ede commit 8c288e8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/e2e-bert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ jobs:
go install google.golang.org/protobuf/cmd/[email protected]
go install google.golang.org/grpc/cmd/[email protected]
# - name: Data Setup
# working-directory: benchmarks/bert
# run: make setup
- name: Data Setup
working-directory: benchmarks/bert
run: make setup

- name: Build and push
working-directory: benchmarks/bert
Expand Down
22 changes: 11 additions & 11 deletions benchmarks/bert/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ RUN cd /tmp/ \
COPY benchmarks/bert/requirements.txt /workspace/
RUN python3 -m pip install -r requirements.txt

# COPY benchmarks/bert/build /workspace/build
ADD https://github.com/rajpurkar/SQuAD-explorer/blob/master/dataset/dev-v1.1.json?raw=true /workspace/build/data/
ADD https://github.com/allenai/bi-att-flow/raw/master/squad/evaluate-v1.1.py /workspace/build/data/

ADD https://zenodo.org/record/3733868/files/model.ckpt-5474.data-00000-of-00001?download=1 /workspace/build/data/bert_tf_v1_1_large_fp32_384_v2/
ADD https://zenodo.org/record/3733868/files/model.ckpt-5474.index?download=1 /workspace/build/data/bert_tf_v1_1_large_fp32_384_v2/
ADD https://zenodo.org/record/3733868/files/model.ckpt-5474.meta?download=1 /workspace/build/data/bert_tf_v1_1_large_fp32_384_v2/
ADD https://zenodo.org/record/3733868/files/vocab.txt?download=1 /workspace/build/data/bert_tf_v1_1_large_fp32_384_v2/
ADD https://zenodo.org/record/3939747/files/model.pb?download=1 /workspace/build/data/bert_tf_v1_1_large_fp32_384_v2/
ADD https://zenodo.org/record/3733896/files/model.pytorch?download=1 /workspace/build/data/bert_tf_v1_1_large_fp32_384_v2/
ADD https://zenodo.org/record/3733896/files/vocab.txt?download=1 /workspace/build/data/bert_tf_v1_1_large_fp32_384_v2/
COPY benchmarks/bert/build /workspace/build
# ADD https://github.com/rajpurkar/SQuAD-explorer/blob/master/dataset/dev-v1.1.json?raw=true /workspace/build/data/
# ADD https://github.com/allenai/bi-att-flow/raw/master/squad/evaluate-v1.1.py /workspace/build/data/

# ADD https://zenodo.org/record/3733868/files/model.ckpt-5474.data-00000-of-00001?download=1 /workspace/build/data/bert_tf_v1_1_large_fp32_384_v2/
# ADD https://zenodo.org/record/3733868/files/model.ckpt-5474.index?download=1 /workspace/build/data/bert_tf_v1_1_large_fp32_384_v2/
# ADD https://zenodo.org/record/3733868/files/model.ckpt-5474.meta?download=1 /workspace/build/data/bert_tf_v1_1_large_fp32_384_v2/
# ADD https://zenodo.org/record/3733868/files/vocab.txt?download=1 /workspace/build/data/bert_tf_v1_1_large_fp32_384_v2/
# ADD https://zenodo.org/record/3939747/files/model.pb?download=1 /workspace/build/data/bert_tf_v1_1_large_fp32_384_v2/
# ADD https://zenodo.org/record/3733896/files/model.pytorch?download=1 /workspace/build/data/bert_tf_v1_1_large_fp32_384_v2/
# ADD https://zenodo.org/record/3733896/files/vocab.txt?download=1 /workspace/build/data/bert_tf_v1_1_large_fp32_384_v2/

COPY benchmarks/bert/python /workspace/python
RUN mv /workspace/python/config/bert_config.json /workspace/ && mv /workspace/python/config/user.conf /workspace/
Expand Down

0 comments on commit 8c288e8

Please sign in to comment.