-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ernie 3.0 based rocketqa into pipelines (#3078)
* Add ernie 3.0 based rocketqa into pipelines * Add create index bash * remove unused codes
- Loading branch information
Showing
9 changed files
with
59 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...les/semantic-search/docker/build_index.sh → ...es/semantic-search/docker/create_index.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
unset http_proxy && unset https_proxy | ||
export CUDA_VISIBLE_DEVICES=0 | ||
# linux | ||
python utils/offline_ann.py --index_name dureader_robust_query_encoder \ | ||
--doc_dir data/dureader_dev \ | ||
--port 9200 \ | ||
--host localhost | ||
# windows | ||
# python utils/offline_ann.py --index_name dureader_robust_query_encoder \ | ||
# --doc_dir data/dureader_dev \ | ||
# --port 9200 \ | ||
# --host host.docker.internal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
#!/bin/bash | ||
cd /root/PaddleNLP/applications/experimental/pipelines/ | ||
sh build_index.sh | ||
sh create_index.sh | ||
nohup sh run_server.sh > server.log 2>&1 & | ||
sleep 10 | ||
lsof -i:8899 | ||
nohup sh run_client.sh > client.log 2>&1 & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters