|
#!/bin/bash |
|
|
|
export CUDA_VISIBLE_DEVICES=0 |
|
|
|
|
|
QUESTION_FILE="../data/webq-test.txt" |
|
EMBEDDING_FILE="../corpus/ctx_embeddings.pkl" |
|
INDEX_PATH="../index/webq_index" |
|
OUTPUT_FILE="../output/result.pkl" |
|
BATCH_SIZE=32 |
|
MODEL_NAME="facebook/dpr-question_encoder-multiset-base" |
|
DEVICE="cuda" |
|
|
|
python retriever.py \ |
|
--questions_file $QUESTION_FILE \ |
|
--context_embeddings_file $EMBEDDING_FILE \ |
|
--model_name $MODEL_NAME \ |
|
--index_path $INDEX_PATH\ |
|
--output_file $OUTPUT_FILE \ |
|
--batch_size $BATCH_SIZE \ |
|
--top_docs 100 \ |
|
--device $DEVICE |