File size: 608 Bytes
ba3500f 1e2b517 ba3500f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
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_byt5"
CHECKPOINT_PATH="gs://nb-t5x/corpus_multi_sentencefix_byt5/checkpoint_1100000"
PROJECT_DIR=${HOME}"/models/multi-sentencefix-byt5"
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}
|