File size: 607 Bytes
d3986eb
 
 
 
f273560
d3986eb
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
INFER_OUTPUT_DIR="output"  # directory to write infer output
T5X_DIR="../../t5x"  # directory where the t5x is cloned, e.g., ${HOME}"/t5x".
TFDS_DATA_DIR="gs://nb-t5x/corpus_multi_sentencefix_mt5/"
CHECKPOINT_PATH="gs://nb-t5x/corpus_multi_sentencefix_mt5/checkpoint_1100000"
PROJECT_DIR=${HOME}"/models/multi_sentencefix_mt5"
export PYTHONPATH=${PROJECT_DIR}

python3 ${T5X_DIR}/t5x/infer.py \
  --gin_search_paths=${PROJECT_DIR} \
  --gin_file="base_wmt_infer.gin" \
  --gin.CHECKPOINT_PATH=\"${CHECKPOINT_PATH}\" \
  --gin.INFER_OUTPUT_DIR=\"${INFER_OUTPUT_DIR}\" \
  --tfds_data_dir=${TFDS_DATA_DIR}