Path: blob/main/a5/scripts/run_perceiver.sh
1003 views
#! /bin/bash12# Pretrain the model3python src/run.py pretrain perceiver wiki.txt --bottleneck_dim 64 \4--pretrain_lr 6e-3 --writing_params_path perceiver.pretrain.params56# Finetune the model7python src/run.py finetune perceiver wiki.txt --bottleneck_dim 64 \8--reading_params_path perceiver.pretrain.params \9--writing_params_path perceiver.finetune.params \10--finetune_corpus_path birth_places_train.tsv1112# Evaluate on the dev set; write to disk13python src/run.py evaluate perceiver wiki.txt --bottleneck_dim 64 \14--reading_params_path perceiver.finetune.params \15--eval_corpus_path birth_dev.tsv \16--outputs_path perceiver.pretrain.dev.predictions1718# Evaluate on the test set; write to disk19python src/run.py evaluate perceiver wiki.txt --bottleneck_dim 64 \20--reading_params_path perceiver.finetune.params \21--eval_corpus_path birth_test_inputs.tsv \22--outputs_path perceiver.pretrain.test.predictions232425