Created by Ansible commited on
Commit ·
ae643ec
1
Parent(s): ff7d533
Pruned version of XLM-R
Browse files- config.json +145 -0
- pytorch_model.bin +3 -0
- sentencepiece.bpe.model +3 -0
- special_tokens_map.json +1 -0
- tokenizer_config.json +1 -0
config.json
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "Unbabel/XLM-R-19L",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"XLMRobertaModel"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"bos_token_id": 0,
|
| 8 |
+
"classifier_dropout": null,
|
| 9 |
+
"eos_token_id": 2,
|
| 10 |
+
"gradient_checkpointing": false,
|
| 11 |
+
"hidden_act": "gelu",
|
| 12 |
+
"hidden_dropout_prob": 0.1,
|
| 13 |
+
"hidden_size": 1024,
|
| 14 |
+
"initializer_range": 0.02,
|
| 15 |
+
"intermediate_size": 3072,
|
| 16 |
+
"layer_norm_eps": 1e-05,
|
| 17 |
+
"max_position_embeddings": 514,
|
| 18 |
+
"model_type": "xlm-roberta",
|
| 19 |
+
"num_attention_heads": 16,
|
| 20 |
+
"num_hidden_layers": 19,
|
| 21 |
+
"output_past": true,
|
| 22 |
+
"pad_token_id": 1,
|
| 23 |
+
"position_embedding_type": "absolute",
|
| 24 |
+
"pruned_heads": {
|
| 25 |
+
"0": [
|
| 26 |
+
12,
|
| 27 |
+
5,
|
| 28 |
+
6,
|
| 29 |
+
14
|
| 30 |
+
],
|
| 31 |
+
"1": [
|
| 32 |
+
13,
|
| 33 |
+
12,
|
| 34 |
+
5,
|
| 35 |
+
15
|
| 36 |
+
],
|
| 37 |
+
"2": [
|
| 38 |
+
8,
|
| 39 |
+
9,
|
| 40 |
+
10,
|
| 41 |
+
13
|
| 42 |
+
],
|
| 43 |
+
"3": [
|
| 44 |
+
9,
|
| 45 |
+
10,
|
| 46 |
+
4,
|
| 47 |
+
12
|
| 48 |
+
],
|
| 49 |
+
"4": [
|
| 50 |
+
8,
|
| 51 |
+
9,
|
| 52 |
+
3,
|
| 53 |
+
13
|
| 54 |
+
],
|
| 55 |
+
"5": [
|
| 56 |
+
2,
|
| 57 |
+
3,
|
| 58 |
+
4,
|
| 59 |
+
12
|
| 60 |
+
],
|
| 61 |
+
"6": [
|
| 62 |
+
0,
|
| 63 |
+
9,
|
| 64 |
+
3,
|
| 65 |
+
12
|
| 66 |
+
],
|
| 67 |
+
"7": [
|
| 68 |
+
0,
|
| 69 |
+
9,
|
| 70 |
+
2,
|
| 71 |
+
15
|
| 72 |
+
],
|
| 73 |
+
"8": [
|
| 74 |
+
0,
|
| 75 |
+
8,
|
| 76 |
+
3,
|
| 77 |
+
13
|
| 78 |
+
],
|
| 79 |
+
"9": [
|
| 80 |
+
0,
|
| 81 |
+
15,
|
| 82 |
+
14,
|
| 83 |
+
7
|
| 84 |
+
],
|
| 85 |
+
"10": [
|
| 86 |
+
0,
|
| 87 |
+
1,
|
| 88 |
+
11,
|
| 89 |
+
12
|
| 90 |
+
],
|
| 91 |
+
"11": [
|
| 92 |
+
11,
|
| 93 |
+
15,
|
| 94 |
+
6,
|
| 95 |
+
7
|
| 96 |
+
],
|
| 97 |
+
"12": [
|
| 98 |
+
8,
|
| 99 |
+
10,
|
| 100 |
+
3,
|
| 101 |
+
14
|
| 102 |
+
],
|
| 103 |
+
"13": [
|
| 104 |
+
8,
|
| 105 |
+
2,
|
| 106 |
+
4,
|
| 107 |
+
5
|
| 108 |
+
],
|
| 109 |
+
"14": [
|
| 110 |
+
0,
|
| 111 |
+
9,
|
| 112 |
+
11,
|
| 113 |
+
14
|
| 114 |
+
],
|
| 115 |
+
"15": [
|
| 116 |
+
8,
|
| 117 |
+
3,
|
| 118 |
+
4,
|
| 119 |
+
6
|
| 120 |
+
],
|
| 121 |
+
"16": [
|
| 122 |
+
8,
|
| 123 |
+
10,
|
| 124 |
+
2,
|
| 125 |
+
3
|
| 126 |
+
],
|
| 127 |
+
"17": [
|
| 128 |
+
0,
|
| 129 |
+
8,
|
| 130 |
+
12,
|
| 131 |
+
6
|
| 132 |
+
],
|
| 133 |
+
"18": [
|
| 134 |
+
0,
|
| 135 |
+
8,
|
| 136 |
+
15,
|
| 137 |
+
7
|
| 138 |
+
]
|
| 139 |
+
},
|
| 140 |
+
"torch_dtype": "float32",
|
| 141 |
+
"transformers_version": "4.10.3",
|
| 142 |
+
"type_vocab_size": 1,
|
| 143 |
+
"use_cache": true,
|
| 144 |
+
"vocab_size": 250002
|
| 145 |
+
}
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ec41283958021ae27302632a773f8ded70b8f049373de7cabe903b5d9ff0fd21
|
| 3 |
+
size 1744352085
|
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_config.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"bos_token": "<s>", "eos_token": "</s>", "unk_token": "<unk>", "sep_token": "</s>", "cls_token": "<s>", "pad_token": "<pad>", "mask_token": {"content": "<mask>", "single_word": false, "lstrip": true, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "sp_model_kwargs": {}, "model_max_length": 512, "special_tokens_map_file": null, "tokenizer_file": "/mnt/shared/home/ricardorei/.cache/huggingface/transformers/7766c86e10505ed9b39af34e456480399bf06e35b36b8f2b917460a2dbe94e59.a984cf52fc87644bd4a2165f1e07e0ac880272c1e82d648b4674907056912bd7", "name_or_path": "xlm-roberta-large", "tokenizer_class": "XLMRobertaTokenizer"}
|