rokjaer commited on
Commit
1fd9281
·
verified ·
1 Parent(s): 5ec1f26

Add trained model files

Browse files
config.json CHANGED
@@ -1,73 +1 @@
1
- {
2
- "architectures": [
3
- "BertForPreTraining"
4
- ],
5
- "attention": {
6
- "causal_attention": false,
7
- "dropout_prob": 0.1,
8
- "num_attention_heads": 12,
9
- "qkv_bias": false,
10
- "rotary_embedding": false,
11
- "seq_op_in_fp32": false,
12
- "sequence_op": "torch-softmax",
13
- "skip_output_projection": false,
14
- "type": "self-attention"
15
- },
16
- "attention_probs_dropout_prob": 0.1,
17
- "classification_head": {
18
- "classifier_dropout": 0.1,
19
- "head_dim": 1024,
20
- "include_ff_layer": true,
21
- "nonlin": "Tanh",
22
- "pooler": "avg"
23
- },
24
- "classifier_dropout": null,
25
- "decoder_bias": false,
26
- "embedding": {
27
- "dropout_prob": 0.1,
28
- "embedding_dim": 768,
29
- "max_seq_length": 128,
30
- "normalization": true,
31
- "pad_token_id": 0,
32
- "pos_embedding": "scaled-sinusoidal",
33
- "stable_low_precision": false,
34
- "vocab_size": null
35
- },
36
- "ffn_layer_frequency": 1,
37
- "final_norm": true,
38
- "hidden_act": "gelu",
39
- "hidden_dropout_prob": 0.1,
40
- "hidden_size": 768,
41
- "id2label": {},
42
- "init": {
43
- "std": 0.02,
44
- "type": "normal"
45
- },
46
- "initializer_range": 0.02,
47
- "intermed_size": 3072,
48
- "intermediate_size": 3072,
49
- "label2id": {},
50
- "layer_norm_eps": 1e-12,
51
- "loss": "cross-entropy",
52
- "max_position_embeddings": 512,
53
- "model_type": "bert",
54
- "nonlin": "GELUglu",
55
- "norm": "LayerNorm",
56
- "norm_eps": 1e-12,
57
- "norm_scheme": "pre",
58
- "num_attention_heads": 12,
59
- "num_hidden_layers": 12,
60
- "num_transformer_layers": 16,
61
- "objective_layout": "MLM",
62
- "pad_token_id": 0,
63
- "position_embedding_type": "absolute",
64
- "skip_head_transform": true,
65
- "sparse_prediction": 0.25,
66
- "tie_weights": true,
67
- "torch_dtype": "float32",
68
- "transformers_version": "4.48.1",
69
- "type_vocab_size": 2,
70
- "use_bias": false,
71
- "use_cache": true,
72
- "vocab_size": 30522
73
- }
 
1
+ {"architectures": ["ScriptableCrammedBERT"], "num_transformer_layers": 16, "hidden_size": 768, "intermed_size": 3072, "hidden_dropout_prob": 0.1, "norm": "LayerNorm", "norm_eps": 1e-12, "norm_scheme": "pre", "nonlin": "GELUglu", "tie_weights": true, "decoder_bias": false, "sparse_prediction": 0.25, "loss": "cross-entropy", "objective_layout": "MLM", "embedding": {"vocab_size": null, "pos_embedding": "scaled-sinusoidal", "dropout_prob": 0.1, "pad_token_id": 0, "max_seq_length": 128, "embedding_dim": 768, "normalization": true, "stable_low_precision": false}, "attention": {"type": "self-attention", "causal_attention": false, "num_attention_heads": 12, "dropout_prob": 0.1, "skip_output_projection": false, "qkv_bias": false, "rotary_embedding": false, "seq_op_in_fp32": false, "sequence_op": "torch-softmax"}, "init": {"type": "normal", "std": 0.02}, "ffn_layer_frequency": 1, "skip_head_transform": true, "use_bias": false, "final_norm": true, "num_labels": null, "classification_head": {"pooler": "avg", "include_ff_layer": true, "head_dim": 1024, "nonlin": "Tanh", "classifier_dropout": 0.1}}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8e03e757dd05dc2adda1f516e23b9ea1a371c241b206c0c29c2d7d64dfd46c05
3
+ size 579039228
special_tokens_map.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "<cls>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "pad_token": {
31
+ "content": "<pad>",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "sep_token": {
38
+ "content": "<sep>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
+ "unk_token": {
45
+ "content": "<unk>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false
50
+ }
51
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "1": {
12
+ "content": "<unk>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "<sep>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "<cls>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "4": {
36
+ "content": "<mask>",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ },
43
+ "5": {
44
+ "content": "<s>",
45
+ "lstrip": false,
46
+ "normalized": false,
47
+ "rstrip": false,
48
+ "single_word": false,
49
+ "special": true
50
+ },
51
+ "6": {
52
+ "content": "</s>",
53
+ "lstrip": false,
54
+ "normalized": false,
55
+ "rstrip": false,
56
+ "single_word": false,
57
+ "special": true
58
+ }
59
+ },
60
+ "bos_token": "<s>",
61
+ "clean_up_tokenization_spaces": false,
62
+ "cls_token": "<cls>",
63
+ "eos_token": "</s>",
64
+ "extra_special_tokens": {},
65
+ "mask_token": "<mask>",
66
+ "model_max_length": 128,
67
+ "pad_token": "<pad>",
68
+ "sep_token": "<sep>",
69
+ "tokenizer_class": "PreTrainedTokenizerFast",
70
+ "unk_token": "<unk>"
71
+ }