lhbonifacio commited on
Commit
30b5326
1 Parent(s): 6a3b4fa

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
+ - pt
10
+ - pt-br
11
+ datasets:
12
+ - msmarco
13
+ widget:
14
+ - text: "Texto de exemplo em português"
15
+ inference: false
16
+ ---
17
+ # multilingual-MiniLM-L6-v2-en-pt-msmarco Reranker finetuned on mMARCO
18
+ ## Introduction
19
+ multilingual-MiniLM-L6-v2-en-pt-msmarco is a multilingual miniLM-based model finetuned on a bilingual version of MS MARCO passage dataset. This bilingual dataset version is formed by the original MS MARCO dataset (in English) and a Portuguese translated version.
20
+ Further information about the dataset or the translation method can be found on our [Cross-Lingual repository](https://github.com/unicamp-dl/cross-lingual-analysis).
21
+ ## Usage
22
+ ```python
23
+ from transformers import AutoTokenizer, AutoModel
24
+
25
+ model_name = 'unicamp-dl/multilingual-MiniLM-L6-v2-en-pt-msmarco'
26
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
27
+ model = AutoModel.from_pretrained(model_name)
28
+
29
+ ```
30
+ # Citation
31
+ If you use mt5-base-en-pt-msmarco, please cite:
32
+
33
+ @article{rosa2021cost,
34
+ title={A cost-benefit analysis of cross-lingual transfer methods},
35
+ author={Rosa, Guilherme Moraes and Bonifacio, Luiz Henrique and de Souza, Leandro Rodrigues and Lotufo, Roberto and Nogueira, Rodrigo},
36
+ journal={arXiv preprint arXiv:2105.06813},
37
+ year={2021}
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:5e72ef8b0da8d9175980b482483a9d6acdf272b8a55e72774ec6eb597327c9ff
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"}