lhbonifacio commited on
Commit
bc5495f
1 Parent(s): 15a79e5

Initial commit

Browse files
README.md ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: pt
3
+ license: mit
4
+ tags:
5
+ - msmarco
6
+ - miniLM
7
+ - pytorch
8
+ - tensorflow
9
+ - en
10
+ datasets:
11
+ - msmarco
12
+ widget:
13
+ - text: "Texto de exemplo em português"
14
+ inference: false
15
+ ---
16
+ # multilingual-MiniLM-L6-v2-en-msmarco Reranker finetuned on mMARCO
17
+ ## Introduction
18
+ multilingual-MiniLM-L6-v2-pt-msmarco is a multilingual miniLM-based model finetuned on English MS MARCO passage dataset. Further information about the dataset or the translation method can be found on our [**mMARCO: A Multilingual Version of MS MARCO Passage Ranking Dataset**](https://arxiv.org/abs/2108.13897) and [mMARCO](https://github.com/unicamp-dl/mMARCO) repository.
19
+ ## Usage
20
+ ```python
21
+ from transformers import AutoTokenizer, AutoModel
22
+
23
+ model_name = 'unicamp-dl/multilingual-MiniLM-L6-v2-en-msmarco'
24
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
25
+ model = AutoModel.from_pretrained(model_name)
26
+
27
+ ```
28
+ # Citation
29
+ If you use multilingual-MiniLM-L6-v2-en-msmarco, please cite:
30
+
31
+ @misc{bonifacio2021mmarco,
32
+ title={mMARCO: A Multilingual Version of the MS MARCO Passage Ranking Dataset},
33
+ author={Luiz Henrique Bonifacio and Israel Campiotti and Vitor Jeronymo and Roberto Lotufo and Rodrigo Nogueira},
34
+ year={2021},
35
+ eprint={2108.13897},
36
+ archivePrefix={arXiv},
37
+ primaryClass={cs.CL}
38
+ }
39
+
config.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "mMiniLM-L6-H384-distilled-from-XLMR-Large/",
3
+ "architectures": [
4
+ "XLMRobertaForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "eos_token_id": 2,
9
+ "gradient_checkpointing": false,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 384,
13
+ "id2label": {
14
+ "0": "LABEL_0"
15
+ },
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 1536,
18
+ "label2id": {
19
+ "LABEL_0": 0
20
+ },
21
+ "layer_norm_eps": 1e-05,
22
+ "max_position_embeddings": 514,
23
+ "model_type": "xlm-roberta",
24
+ "num_attention_heads": 12,
25
+ "num_hidden_layers": 6,
26
+ "pad_token_id": 1,
27
+ "position_embedding_type": "absolute",
28
+ "sbert_ce_default_activation_function": "torch.nn.modules.linear.Identity",
29
+ "transformers_version": "4.8.2",
30
+ "type_vocab_size": 1,
31
+ "use_cache": true,
32
+ "vocab_size": 250002
33
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e73e609d407664aeb947fb1c09324a65762baf9c5d5f3067fcd35ba7ecebcd7
3
+ size 428023405
sentencepiece.bpe.model ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865
3
+ size 5069051
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
1
+ {"bos_token": "<s>", "eos_token": "</s>", "unk_token": "<unk>", "sep_token": "</s>", "pad_token": "<pad>", "cls_token": "<s>", "mask_token": {"content": "<mask>", "single_word": false, "lstrip": true, "rstrip": false, "normalized": true}}
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
1
+ {"bos_token": "<s>", "eos_token": "</s>", "sep_token": "</s>", "cls_token": "<s>", "unk_token": "<unk>", "pad_token": "<pad>", "mask_token": {"content": "<mask>", "single_word": false, "lstrip": true, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "special_tokens_map_file": null, "name_or_path": "mMiniLM-L6-H384-distilled-from-XLMR-Large/", "sp_model_kwargs": {}, "tokenizer_class": "XLMRobertaTokenizer"}