-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add zh_dureader_model_v2 && add train function (#31)
* 1. add zh_dureader_v2; 2. add train function * update readme and example * add train config * Update README.md * fix readme typo * Fixed wrong config path, added train data format note * fix zh_dureader models http address * faiss example fit predict interator * add dureader.para Co-authored-by: sfwydyc <dingyuchen@baidu.com> Co-authored-by: Xing Yiran <procedure2012@hotmail.com> Co-authored-by: MrTuo <595983351@qq.com>
- Loading branch information
1 parent
5cb5240
commit 1746b93
Showing
34 changed files
with
38,397 additions
and
434 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"model_type": "cross_encoder", | ||
"max_seq_len": 384, | ||
"model_conf_path": "zh_config.json", | ||
"model_vocab_path": "zh_vocab.txt", | ||
"model_checkpoint_path": "step_36000", | ||
"for_cn": true, | ||
"share_parameter": 0 | ||
} |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"attention_probs_dropout_prob": 0.1, | ||
"hidden_act": "relu", | ||
"hidden_dropout_prob": 0.1, | ||
"hidden_size": 768, | ||
"initializer_range": 0.02, | ||
"max_position_embeddings": 513, | ||
"num_attention_heads": 12, | ||
"num_hidden_layers": 12, | ||
"type_vocab_size": 2, | ||
"vocab_size": 18000 | ||
} |
Oops, something went wrong.