-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.sh
28 lines (25 loc) · 1.03 KB
/
main.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
export LD_LIBRARY_PATH="/.../.../conda/envs/rag/lib" # path to your env's lib; for JAVA and pyserini
API=together
HF_MODEL=meta-llama/Llama-2-7b-chat-hf # model id of huggingface
TOGETHER_MODEL=meta-llama/Llama-2-7b-chat-hf # model id of togetherai
IS_CHAT_MODEL=true
IO_INPUT_PATH="" # path to your prompt file (JSON): a list of {"id": int, "prompt": str}
DATASTORE_ROOT="" # where you want to save your datastore
# ====== DO IO TASK ======
python main.py \
--task io \
--api ${API} \
--hf_ckpt ${HF_MODEL} \
--together_ckpt ${TOGETHER_MODEL} \
--is_chat_model ${IS_CHAT_MODEL} \
--raw_data_dir ./raw_data/private/wiki_newest \
--io_input_path ${IO_INPUT_PATH} \
--io_output_root ./eval_data/Wikipedia/io_output \
--output_dir ./out \
--datastore_root ${DATASTORE_ROOT} \
# ====== DO EVAL TASK ======
python main.py \
--task eval \
--eval_input_dir ./eval_data/Wikipedia/io_output \
--eval_output_dir ./eval_data/Wikipedia/eval_results \
--output_dir ./out \