forked from dmis-lab/covidAsk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserve.sh
More file actions
executable file
·16 lines (12 loc) · 781 Bytes
/
serve.sh
File metadata and controls
executable file
·16 lines (12 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
LOG_DIR="logs"
mkdir -p $LOG_DIR
DUMP_DIR="dumps/denspi_2020-04-10"
Q_PORT="9010"
D_PORT="9020"
PORT="9030"
# Serve query encoder / metadata / phrase dump
nohup python covidask.py --run_mode "q_serve" --parallel --cuda --query_encoder_path "models/denspi/1/model.pt" --query_port "$Q_PORT" > "$LOG_DIR/q_serve_$Q_PORT.log" &
nohup python covidask.py --run_mode "d_serve" --dump_dir "$DUMP_DIR" --doc_ranker_name "COVID-abs-v1-ner-norm-tfidf-ngram=2-hash=16777216-tokenizer=simple.npz" --doc_port "$D_PORT" > "$LOG_DIR/d_serve_$D_PORT.log" &
nohup python covidask.py --run_mode "p_serve" --aggregate --dump_dir "$DUMP_DIR" --query_port "$Q_PORT" --doc_port "$D_PORT" --index_port "$PORT" > "$LOG_DIR/p_serve_$PORT.log" &
echo "Serving covidAsk. Will take a minute."