-
Notifications
You must be signed in to change notification settings - Fork 2
/
eval.sh
executable file
·31 lines (28 loc) · 1.06 KB
/
eval.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env bash
neg_method=weight
tpu_name=jzb
gin_model_dir=gs://neulab-qa/t5-data/pretrained_models/3B
#model_dir=gs://neulab-qa/t5-data/pretrained_models/3B
model_dir=gs://neulab-qa/unifiedqa/models/3B
step=1100500
model_parallelism=8
tpb=262144
mix=uq_arc_hard_ol_mix
split=dev
./run_test.py \
--tpu="${tpu_name}" \
--gcp_project="${PROJECT}" \
--tpu_zone="${ZONE}" \
--model_dir="${model_dir}" \
--gin_file="${gin_model_dir}/operative_config.gin" \
--t5_tfds_data_dir="${DATA_DIR}" \
--gin_file="eval.gin" \
--gin_file="greedy_decode.gin" \
--gin_param="MIXTURE_NAME = '${mix}'" \
--gin_param="run.dataset_split = '${split}'" \
--gin_param="utils.tpu_mesh_shape.model_parallelism = ${model_parallelism}" \
--gin_param="utils.tpu_mesh_shape.tpu_topology = '${TPU_SIZE}'" \
--gin_param="utils.run.eval_checkpoint_step = ${step}" \
--gin_param="mesh_eval_dataset_fn.num_eval_examples = None" \
--gin_param="build_uq.neg_method = '${neg_method}'" \
--gin_param="run.batch_size = ('tokens_per_batch', ${tpb})"