badaoui HF Staff commited on
Commit
8591eea
·
verified ·
1 Parent(s): b862fe2

Add Neuron cache for cache_mirror (#4)

Browse files

- Add Neuron cache for cache_mirror (47e85cd20cf1d3d3a7c9797c1ee7fc66654f4ff1)

.gitattributes CHANGED
@@ -44,3 +44,4 @@ neuronxcc-2.16.372.0+4a9b2326/MODULE_7bebb00dc9acea881b5a/model.neuron filter=lf
44
  neuronxcc-2.16.372.0+4a9b2326/MODULE_42c7c80374d4e8712757/model.neuron filter=lfs diff=lfs merge=lfs -text
45
  neuronxcc-2.16.372.0+4a9b2326/MODULE_fce72056449004b51385/model.neuron filter=lfs diff=lfs merge=lfs -text
46
  neuronxcc-2.19.8089.0+8ab9f450/MODULE_925eeddec3d7c8386722/model.neuron filter=lfs diff=lfs merge=lfs -text
 
 
44
  neuronxcc-2.16.372.0+4a9b2326/MODULE_42c7c80374d4e8712757/model.neuron filter=lfs diff=lfs merge=lfs -text
45
  neuronxcc-2.16.372.0+4a9b2326/MODULE_fce72056449004b51385/model.neuron filter=lfs diff=lfs merge=lfs -text
46
  neuronxcc-2.19.8089.0+8ab9f450/MODULE_925eeddec3d7c8386722/model.neuron filter=lfs diff=lfs merge=lfs -text
47
+ neuronxcc-2.19.8089.0+8ab9f450/MODULE_133436458230197705aa/model.neuron filter=lfs diff=lfs merge=lfs -text
neuronxcc-2.19.8089.0+8ab9f450/0_REGISTRY/0.3.0/roberta/FacebookAI/roberta-base/133436458230197705aa.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_entry_class": "SingleModelCacheEntry",
3
+ "_model_id": "FacebookAI/roberta-base",
4
+ "_task": "fill-mask",
5
+ "architectures": [
6
+ "RobertaForMaskedLM"
7
+ ],
8
+ "attention_probs_dropout_prob": 0.1,
9
+ "classifier_dropout": null,
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-05,
16
+ "max_position_embeddings": 514,
17
+ "model_type": "roberta",
18
+ "neuron": {
19
+ "auto_cast": null,
20
+ "auto_cast_type": null,
21
+ "compiler_type": "neuronx-cc",
22
+ "compiler_version": "2.19.8089.0+8ab9f450",
23
+ "disable_fallback": false,
24
+ "disable_fast_relayout": false,
25
+ "dynamic_batch_size": false,
26
+ "inline_weights_to_neff": true,
27
+ "input_names": [
28
+ "input_ids",
29
+ "attention_mask"
30
+ ],
31
+ "model_type": "roberta",
32
+ "optlevel": "2",
33
+ "output_attentions": false,
34
+ "output_hidden_states": false,
35
+ "output_names": [
36
+ "logits"
37
+ ],
38
+ "static_batch_size": 1,
39
+ "static_sequence_length": 128,
40
+ "task": "fill-mask",
41
+ "tensor_parallel_size": 1
42
+ },
43
+ "num_attention_heads": 12,
44
+ "num_hidden_layers": 12,
45
+ "position_embedding_type": "absolute",
46
+ "type_vocab_size": 1,
47
+ "use_cache": true,
48
+ "vocab_size": 50265
49
+ }
neuronxcc-2.19.8089.0+8ab9f450/MODULE_133436458230197705aa/config.json ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_attn_implementation_autoset": true,
3
+ "architectures": [
4
+ "RobertaForMaskedLM"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "eos_token_id": 2,
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-05,
16
+ "max_position_embeddings": 514,
17
+ "model_type": "roberta",
18
+ "neuron": {
19
+ "auto_cast": null,
20
+ "auto_cast_type": null,
21
+ "compiler_type": "neuronx-cc",
22
+ "compiler_version": "2.19.8089.0+8ab9f450",
23
+ "disable_fallback": false,
24
+ "disable_fast_relayout": false,
25
+ "dynamic_batch_size": false,
26
+ "inline_weights_to_neff": true,
27
+ "input_names": [
28
+ "input_ids",
29
+ "attention_mask"
30
+ ],
31
+ "model_type": "roberta",
32
+ "optlevel": "2",
33
+ "output_attentions": false,
34
+ "output_hidden_states": false,
35
+ "output_names": [
36
+ "logits"
37
+ ],
38
+ "static_batch_size": 1,
39
+ "static_sequence_length": 128,
40
+ "task": "fill-mask",
41
+ "tensor_parallel_size": 1
42
+ },
43
+ "num_attention_heads": 12,
44
+ "num_hidden_layers": 12,
45
+ "pad_token_id": 1,
46
+ "position_embedding_type": "absolute",
47
+ "torch_dtype": "float32",
48
+ "torchscript": true,
49
+ "transformers_version": "4.51.3",
50
+ "type_vocab_size": 1,
51
+ "use_cache": true,
52
+ "vocab_size": 50265
53
+ }
neuronxcc-2.19.8089.0+8ab9f450/MODULE_133436458230197705aa/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
neuronxcc-2.19.8089.0+8ab9f450/MODULE_133436458230197705aa/model.neuron ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e85268d7ceb833a9b622eccee78fe24fbb3c5277ac8164036e6231d0ed7efc2f
3
+ size 412256570
neuronxcc-2.19.8089.0+8ab9f450/MODULE_133436458230197705aa/special_tokens_map.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "cls_token": "<s>",
4
+ "eos_token": "</s>",
5
+ "mask_token": {
6
+ "content": "<mask>",
7
+ "lstrip": true,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false
11
+ },
12
+ "pad_token": "<pad>",
13
+ "sep_token": "</s>",
14
+ "unk_token": "<unk>"
15
+ }
neuronxcc-2.19.8089.0+8ab9f450/MODULE_133436458230197705aa/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
neuronxcc-2.19.8089.0+8ab9f450/MODULE_133436458230197705aa/tokenizer_config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "<s>",
6
+ "lstrip": false,
7
+ "normalized": true,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "1": {
13
+ "content": "<pad>",
14
+ "lstrip": false,
15
+ "normalized": true,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "2": {
21
+ "content": "</s>",
22
+ "lstrip": false,
23
+ "normalized": true,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "3": {
29
+ "content": "<unk>",
30
+ "lstrip": false,
31
+ "normalized": true,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "50264": {
37
+ "content": "<mask>",
38
+ "lstrip": true,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ }
44
+ },
45
+ "bos_token": "<s>",
46
+ "clean_up_tokenization_spaces": false,
47
+ "cls_token": "<s>",
48
+ "eos_token": "</s>",
49
+ "errors": "replace",
50
+ "extra_special_tokens": {},
51
+ "mask_token": "<mask>",
52
+ "model_max_length": 512,
53
+ "pad_token": "<pad>",
54
+ "sep_token": "</s>",
55
+ "tokenizer_class": "RobertaTokenizer",
56
+ "trim_offsets": true,
57
+ "unk_token": "<unk>"
58
+ }
neuronxcc-2.19.8089.0+8ab9f450/MODULE_133436458230197705aa/vocab.json ADDED
The diff for this file is too large to render. See raw diff