badaoui HF Staff commited on
Commit
5e812b4
·
verified ·
1 Parent(s): 3f076fd

Adding Neuron-optimized model files

Browse files

🤖 Neuron Export Bot: On behalf of [badaoui](https://huggingface.co/badaoui), adding AWS Neuron-optimized model files.

Neuron-optimized models can achieve high-performance inference on AWS Inferentia and Trainium chips. Learn more:
- [AWS Neuron Documentation](https://awsdocs-neuron.readthedocs-hosted.com)
- [🤗 Optimum Neuron Guide](https://huggingface.co/docs/optimum-neuron/index)

.gitattributes CHANGED
@@ -8,3 +8,4 @@
8
  *.onnx filter=lfs diff=lfs merge=lfs -text
9
  *.msgpack filter=lfs diff=lfs merge=lfs -text
10
  model.safetensors filter=lfs diff=lfs merge=lfs -text
 
 
8
  *.onnx filter=lfs diff=lfs merge=lfs -text
9
  *.msgpack filter=lfs diff=lfs merge=lfs -text
10
  model.safetensors filter=lfs diff=lfs merge=lfs -text
11
+ neuron/model.neuron filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- language:
3
  - multilingual
4
  - af
5
  - sq
@@ -107,6 +107,8 @@ language:
107
  license: apache-2.0
108
  datasets:
109
  - wikipedia
 
 
110
  ---
111
 
112
  # BERT multilingual base model (cased)
 
1
  ---
2
+ language:
3
  - multilingual
4
  - af
5
  - sq
 
107
  license: apache-2.0
108
  datasets:
109
  - wikipedia
110
+ tags:
111
+ - neuron
112
  ---
113
 
114
  # BERT multilingual base model (cased)
neuron/config.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_attn_implementation_autoset": true,
3
+ "_name_or_path": "google-bert/bert-base-multilingual-cased",
4
+ "architectures": [
5
+ "BertForMaskedLM"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "classifier_dropout": null,
9
+ "directionality": "bidi",
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 3072,
15
+ "layer_norm_eps": 1e-12,
16
+ "max_position_embeddings": 512,
17
+ "model_type": "bert",
18
+ "neuron": {
19
+ "auto_cast": null,
20
+ "auto_cast_type": null,
21
+ "compiler_type": "neuronx-cc",
22
+ "compiler_version": "2.16.372.0+4a9b2326",
23
+ "dynamic_batch_size": false,
24
+ "inline_weights_to_neff": true,
25
+ "input_names": [
26
+ "input_ids",
27
+ "attention_mask",
28
+ "token_type_ids"
29
+ ],
30
+ "model_type": "bert",
31
+ "optlevel": "2",
32
+ "output_attentions": false,
33
+ "output_hidden_states": false,
34
+ "output_names": [
35
+ "logits"
36
+ ],
37
+ "static_batch_size": 1,
38
+ "static_sequence_length": 128,
39
+ "tensor_parallel_size": 1
40
+ },
41
+ "num_attention_heads": 12,
42
+ "num_hidden_layers": 12,
43
+ "pad_token_id": 0,
44
+ "pooler_fc_size": 768,
45
+ "pooler_num_attention_heads": 12,
46
+ "pooler_num_fc_layers": 3,
47
+ "pooler_size_per_head": 128,
48
+ "pooler_type": "first_token_transform",
49
+ "position_embedding_type": "absolute",
50
+ "task": "fill-mask",
51
+ "torchscript": true,
52
+ "transformers_version": "4.48.3",
53
+ "type_vocab_size": 2,
54
+ "use_cache": true,
55
+ "vocab_size": 119547
56
+ }
neuron/model.neuron ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:06aa12948af5872eef1b43e7fec8269a551c9273a9854af53a62b2b14bf8be07
3
+ size 1005031229
neuron/special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
neuron/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
neuron/tokenizer_config.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": false,
45
+ "cls_token": "[CLS]",
46
+ "do_lower_case": false,
47
+ "extra_special_tokens": {},
48
+ "mask_token": "[MASK]",
49
+ "model_max_length": 512,
50
+ "pad_token": "[PAD]",
51
+ "sep_token": "[SEP]",
52
+ "strip_accents": null,
53
+ "tokenize_chinese_chars": true,
54
+ "tokenizer_class": "BertTokenizer",
55
+ "unk_token": "[UNK]"
56
+ }
neuron/vocab.txt ADDED
The diff for this file is too large to render. See raw diff