OptiPrompt
OptiPrompt copied to clipboard
AssertionError assert(len(tmp_ids) == 1) when using RoBERTa
Hi,
I was trying to run scripts/run_optiprompt.pt with the model roberta-base when I encountered the following problem:
Traceback (most recent call last):
File "/nfs/data_chaos/sazzolin/OptiPrompt/code/run_optiprompt.py", line 176, in
Nonetheless, the code works just fine when using bert-base-cased.
This is the complete python call:
python code/run_optiprompt.py \
--relation_profile relation_metainfo/LAMA_relations.jsonl \
--relation ${REL} \
--common_vocab_filename common_vocabs/common_vocab_cased.txt \
--model_name roberta_base \
--do_train \
--train_data data/autoprompt_data/${REL}/train.jsonl \
--dev_data data/autoprompt_data/${REL}/dev.jsonl \
--do_eval \
--test_data data/LAMA-TREx/${REL}.jsonl \
--output_dir ${DIR} \
--random_init none \
--seed ${SEED} \
--output_predictions