hf-transformers-bot commited on
Commit
f5b8203
·
verified ·
1 Parent(s): 0073612

Update tiny models for ModernVBertForTokenClassification

Browse files
config.json ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ModernVBertForTokenClassification"
4
+ ],
5
+ "bos_token_id": 50281,
6
+ "classifier_bias": false,
7
+ "classifier_dropout": 0.0,
8
+ "classifier_pooling": "cls",
9
+ "dtype": "float32",
10
+ "eos_token_id": 50282,
11
+ "image_token_id": 98,
12
+ "initializer_cutoff_factor": 2.0,
13
+ "initializer_range": 0.02,
14
+ "model_type": "modernvbert",
15
+ "pad_token_id": 50283,
16
+ "pixel_shuffle_factor": 2,
17
+ "text_config": {
18
+ "attention_bias": false,
19
+ "attention_dropout": 0.1,
20
+ "bos_token_id": 50281,
21
+ "classifier_activation": "gelu",
22
+ "classifier_bias": false,
23
+ "classifier_dropout": 0.1,
24
+ "classifier_pooling": "cls",
25
+ "cls_token_id": 50281,
26
+ "decoder_bias": true,
27
+ "deterministic_flash_attn": false,
28
+ "embedding_dropout": 0.1,
29
+ "eos_token_id": 50282,
30
+ "hidden_activation": "gelu",
31
+ "hidden_size": 32,
32
+ "initializer_cutoff_factor": 2.0,
33
+ "initializer_range": 0.02,
34
+ "intermediate_size": 64,
35
+ "is_decoder": false,
36
+ "layer_types": [
37
+ "full_attention",
38
+ "sliding_attention"
39
+ ],
40
+ "local_attention": 128,
41
+ "max_position_embeddings": 512,
42
+ "mlp_bias": false,
43
+ "mlp_dropout": 0.1,
44
+ "model_type": "modernbert",
45
+ "norm_bias": false,
46
+ "norm_eps": 1e-05,
47
+ "num_attention_heads": 4,
48
+ "num_hidden_layers": 2,
49
+ "pad_token_id": 50283,
50
+ "rope_parameters": {
51
+ "full_attention": {
52
+ "rope_theta": 160000.0,
53
+ "rope_type": "default"
54
+ },
55
+ "sliding_attention": {
56
+ "rope_theta": 10000.0,
57
+ "rope_type": "default"
58
+ }
59
+ },
60
+ "sep_token_id": 50282,
61
+ "sparse_pred_ignore_index": -100,
62
+ "sparse_prediction": false,
63
+ "tie_word_embeddings": true,
64
+ "type_vocab_size": 2,
65
+ "vocab_size": 50408
66
+ },
67
+ "tie_word_embeddings": true,
68
+ "transformers_version": "5.16.0.dev0",
69
+ "vision_config": {
70
+ "attention_dropout": 0.1,
71
+ "dropout": 0.1,
72
+ "hidden_act": "gelu_pytorch_tanh",
73
+ "hidden_size": 64,
74
+ "image_size": 16,
75
+ "initializer_range": 0.02,
76
+ "intermediate_size": 32,
77
+ "layer_norm_eps": 1e-06,
78
+ "model_type": "siglip_vision_model",
79
+ "num_attention_heads": 4,
80
+ "num_channels": 3,
81
+ "num_hidden_layers": 2,
82
+ "patch_size": 4
83
+ },
84
+ "vocab_size": 50408
85
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:79ab1900814c0e1c08fde6218775f03cd4da042da5263c9c61f860845b37ba87
3
+ size 6849552
preprocessor_config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": {
3
+ "longest_edge": 16,
4
+ "shortest_edge": 16
5
+ },
6
+ "do_convert_rgb": true,
7
+ "do_image_splitting": true,
8
+ "do_normalize": true,
9
+ "do_pad": true,
10
+ "do_rescale": true,
11
+ "do_resize": true,
12
+ "image_mean": [
13
+ 0.5,
14
+ 0.5,
15
+ 0.5
16
+ ],
17
+ "image_processor_type": "Idefics3ImageProcessor",
18
+ "image_std": [
19
+ 0.5,
20
+ 0.5,
21
+ 0.5
22
+ ],
23
+ "max_image_size": {
24
+ "longest_edge": 364
25
+ },
26
+ "resample": 1,
27
+ "rescale_factor": 0.00392156862745098,
28
+ "size": {
29
+ "longest_edge": 16,
30
+ "shortest_edge": 16
31
+ }
32
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "clean_up_tokenization_spaces": true,
4
+ "cls_token": "[CLS]",
5
+ "extra_special_tokens": [
6
+ "<fake_token_around_image>",
7
+ "<image>",
8
+ "<end_of_utterance>"
9
+ ],
10
+ "is_local": true,
11
+ "legacy": false,
12
+ "local_files_only": false,
13
+ "mask_token": "[MASK]",
14
+ "model_input_names": [
15
+ "input_ids",
16
+ "attention_mask",
17
+ "pixel_values",
18
+ "pixel_attention_mask"
19
+ ],
20
+ "model_max_length": 8192,
21
+ "pad_token": "[PAD]",
22
+ "sep_token": "[SEP]",
23
+ "tokenizer_class": "TokenizersBackend",
24
+ "unk_token": "[UNK]"
25
+ }