adding CoreSearch retriever model
Browse files- .gitattributes +4 -0
- README.md +1 -1
- params.json +16 -0
- passage_encoder/language_model.bin +3 -0
- passage_encoder/language_model_config.json +26 -0
- passage_encoder/special_tokens_map.json +1 -0
- passage_encoder/tokenizer_config.json +1 -0
- passage_encoder/vocab.txt +0 -0
- prediction_head_0.bin +3 -0
- prediction_head_0_config.json +1 -0
- query_encoder/added_tokens.json +1 -0
- query_encoder/language_model.bin +3 -0
- query_encoder/language_model_config.json +26 -0
- query_encoder/special_tokens_map.json +1 -0
- query_encoder/tokenizer_config.json +1 -0
- query_encoder/vocab.txt +0 -0
.gitattributes
CHANGED
@@ -32,3 +32,7 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
32 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
32 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
35 |
+
*.js filter=lfs diff=lfs merge=lfs -text
|
36 |
+
prediction_head_0.bin filter=lfs diff=lfs merge=lfs -text
|
37 |
+
passage_encoder/language_model.bin filter=lfs diff=lfs merge=lfs -text
|
38 |
+
query_encoder/language_model.bin filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
---
|
2 |
-
license: cc-by-
|
3 |
---
|
|
|
1 |
---
|
2 |
+
license: cc-by-3.0
|
3 |
---
|
params.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"--add_special_tokens": "true",
|
3 |
+
"--batch_size": "64",
|
4 |
+
"--checkpoint_dir": "data/checkpoints/",
|
5 |
+
"--dev_filename": "Dev.json",
|
6 |
+
"--doc_dir": "data/resources/dpr/context/",
|
7 |
+
"--evaluate_every": "500",
|
8 |
+
"--max_seq_len_passage": "180",
|
9 |
+
"--max_seq_len_query": "64",
|
10 |
+
"--n_epochs": "3",
|
11 |
+
"--note": null,
|
12 |
+
"--output_model": "Retriever_SpanBERT_Best",
|
13 |
+
"--passage_model": "SpanBERT/spanbert-base-cased",
|
14 |
+
"--query_model": "SpanBERT/spanbert-base-cased",
|
15 |
+
"--train_filename": "Train.json"
|
16 |
+
}
|
passage_encoder/language_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c8bed5aceeb607565fef98ef3c7021a24510d5f2bf1afaa450831dead1820bf7
|
3 |
+
size 433327473
|
passage_encoder/language_model_config.json
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "SpanBERT/spanbert-base-cased",
|
3 |
+
"attention_probs_dropout_prob": 0.1,
|
4 |
+
"classifier_dropout": null,
|
5 |
+
"directionality": "bidi",
|
6 |
+
"hidden_act": "gelu",
|
7 |
+
"hidden_dropout_prob": 0.1,
|
8 |
+
"hidden_size": 768,
|
9 |
+
"initializer_range": 0.02,
|
10 |
+
"intermediate_size": 3072,
|
11 |
+
"language": "english",
|
12 |
+
"layer_norm_eps": 1e-12,
|
13 |
+
"max_position_embeddings": 512,
|
14 |
+
"model_type": "bert",
|
15 |
+
"name": "CoreSearchContextEncoder",
|
16 |
+
"num_attention_heads": 12,
|
17 |
+
"num_hidden_layers": 12,
|
18 |
+
"pad_token_id": 0,
|
19 |
+
"position_embedding_type": "absolute",
|
20 |
+
"projection_dim": 0,
|
21 |
+
"revision": null,
|
22 |
+
"transformers_version": "4.13.0",
|
23 |
+
"type_vocab_size": 2,
|
24 |
+
"use_cache": true,
|
25 |
+
"vocab_size": 28996
|
26 |
+
}
|
passage_encoder/special_tokens_map.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}
|
passage_encoder/tokenizer_config.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"do_lower_case": true, "do_basic_tokenize": true, "never_split": null, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "special_tokens_map_file": null, "tokenizer_file": null, "name_or_path": "SpanBERT/spanbert-base-cased", "tokenizer_class": "BertTokenizer"}
|
passage_encoder/vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
prediction_head_0.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:339cf0a79d42b8a0e283632633b8c7c079101ef627869b4b27f743462db4ecf9
|
3 |
+
size 495
|
prediction_head_0_config.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"training": false, "similarity_function": "dot_product", "task_name": "text_similarity", "model_type": "text_similarity", "ph_output_type": "per_sequence", "global_loss_buffer_size": 150000, "label_tensor_name": "label_ids", "label_list": ["hard_negative", "positive"], "metric": "text_similarity_metric", "name": "TextSimilarityHead"}
|
query_encoder/added_tokens.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"[qspan_start]": 28996, "[qspan_end]": 28997}
|
query_encoder/language_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f1fe51fcc8d6e73103036fbb8555178de0de641f829b59e29bf3b699ee3ce506
|
3 |
+
size 433334705
|
query_encoder/language_model_config.json
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "SpanBERT/spanbert-base-cased",
|
3 |
+
"attention_probs_dropout_prob": 0.1,
|
4 |
+
"classifier_dropout": null,
|
5 |
+
"directionality": "bidi",
|
6 |
+
"hidden_act": "gelu",
|
7 |
+
"hidden_dropout_prob": 0.1,
|
8 |
+
"hidden_size": 768,
|
9 |
+
"initializer_range": 0.02,
|
10 |
+
"intermediate_size": 3072,
|
11 |
+
"language": "english",
|
12 |
+
"layer_norm_eps": 1e-12,
|
13 |
+
"max_position_embeddings": 512,
|
14 |
+
"model_type": "bert",
|
15 |
+
"name": "CoreSearchQuestionEncoder",
|
16 |
+
"num_attention_heads": 12,
|
17 |
+
"num_hidden_layers": 12,
|
18 |
+
"pad_token_id": 0,
|
19 |
+
"position_embedding_type": "absolute",
|
20 |
+
"projection_dim": 0,
|
21 |
+
"revision": null,
|
22 |
+
"transformers_version": "4.13.0",
|
23 |
+
"type_vocab_size": 2,
|
24 |
+
"use_cache": true,
|
25 |
+
"vocab_size": 28998
|
26 |
+
}
|
query_encoder/special_tokens_map.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}
|
query_encoder/tokenizer_config.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"do_lower_case": true, "do_basic_tokenize": true, "never_split": null, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "special_tokens_map_file": null, "tokenizer_file": null, "name_or_path": "SpanBERT/spanbert-base-cased", "tokenizer_class": "BertTokenizer"}
|
query_encoder/vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|