pnevskaiaan commited on
Commit
4134eaa
·
verified ·
1 Parent(s): cf201ee

Upload 6 files

Browse files
config.json ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "DeepseekOcr2ForConditionalGeneration"
4
+ ],
5
+ "dtype": "float32",
6
+ "image_token_id": 128815,
7
+ "model_type": "deepseek_ocr2",
8
+ "text_config": {
9
+ "attention_bias": false,
10
+ "attention_dropout": 0.0,
11
+ "bos_token_id": 0,
12
+ "dtype": "bfloat16",
13
+ "eos_token_id": 1,
14
+ "head_dim": 32,
15
+ "hidden_act": "silu",
16
+ "hidden_size": 128,
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 256,
19
+ "max_position_embeddings": 8192,
20
+ "mlp_bias": false,
21
+ "mlp_layer_types": [
22
+ "dense",
23
+ "sparse"
24
+ ],
25
+ "model_type": "deepseek_ocr2_text",
26
+ "moe_intermediate_size": 128,
27
+ "n_group": 1,
28
+ "n_routed_experts": 4,
29
+ "n_shared_experts": 1,
30
+ "num_attention_heads": 4,
31
+ "num_experts_per_tok": 2,
32
+ "num_hidden_layers": 2,
33
+ "num_key_value_heads": 4,
34
+ "pad_token_id": null,
35
+ "pretraining_tp": 1,
36
+ "rms_norm_eps": 1e-06,
37
+ "rope_parameters": {
38
+ "rope_theta": 10000.0,
39
+ "rope_type": "default"
40
+ },
41
+ "routed_scaling_factor": 1.0,
42
+ "tie_word_embeddings": false,
43
+ "topk_group": 1,
44
+ "topk_method": "greedy",
45
+ "use_cache": true,
46
+ "vocab_size": 129280
47
+ },
48
+ "tie_word_embeddings": false,
49
+ "transformers_version": "5.11.0",
50
+ "vision_config": {
51
+ "dtype": "bfloat16",
52
+ "encoder_config": {
53
+ "_name_or_path": "",
54
+ "architectures": null,
55
+ "attention_dropout": 0.0,
56
+ "bos_token_id": null,
57
+ "chunk_size_feed_forward": 0,
58
+ "dtype": null,
59
+ "eos_token_id": null,
60
+ "hidden_act": "silu",
61
+ "hidden_size": 128,
62
+ "id2label": {
63
+ "0": "LABEL_0",
64
+ "1": "LABEL_1"
65
+ },
66
+ "initializer_range": 0.02,
67
+ "intermediate_size": 256,
68
+ "is_encoder_decoder": false,
69
+ "label2id": {
70
+ "LABEL_0": 0,
71
+ "LABEL_1": 1
72
+ },
73
+ "layer_types": [
74
+ "full_attention",
75
+ "full_attention"
76
+ ],
77
+ "max_position_embeddings": 32768,
78
+ "max_window_layers": 28,
79
+ "model_type": "deepseek_ocr2_encoder",
80
+ "num_attention_heads": 4,
81
+ "num_hidden_layers": 2,
82
+ "num_key_value_heads": 2,
83
+ "output_attentions": false,
84
+ "output_hidden_states": false,
85
+ "pad_token_id": null,
86
+ "problem_type": null,
87
+ "return_dict": true,
88
+ "rms_norm_eps": 1e-06,
89
+ "rope_parameters": {
90
+ "rope_theta": 1000000.0,
91
+ "rope_type": "default"
92
+ },
93
+ "sliding_window": null,
94
+ "tie_word_embeddings": false,
95
+ "use_cache": true,
96
+ "use_sliding_window": false,
97
+ "vocab_size": 1
98
+ },
99
+ "model_type": "deepseek_ocr2_vision",
100
+ "sam_config": {
101
+ "_name_or_path": "",
102
+ "architectures": null,
103
+ "attention_dropout": 0.0,
104
+ "chunk_size_feed_forward": 0,
105
+ "downsample_channels": [
106
+ 64,
107
+ 128
108
+ ],
109
+ "dtype": null,
110
+ "global_attn_indexes": [],
111
+ "hidden_act": "gelu",
112
+ "hidden_size": 64,
113
+ "id2label": {
114
+ "0": "LABEL_0",
115
+ "1": "LABEL_1"
116
+ },
117
+ "image_size": 1024,
118
+ "initializer_range": 1e-10,
119
+ "is_encoder_decoder": false,
120
+ "label2id": {
121
+ "LABEL_0": 0,
122
+ "LABEL_1": 1
123
+ },
124
+ "layer_norm_eps": 1e-06,
125
+ "mlp_dim": 128,
126
+ "mlp_ratio": 4.0,
127
+ "model_type": "deepseek_ocr2_sam_vision_model",
128
+ "num_attention_heads": 4,
129
+ "num_channels": 3,
130
+ "num_hidden_layers": 2,
131
+ "output_attentions": false,
132
+ "output_channels": 64,
133
+ "output_hidden_states": false,
134
+ "patch_size": 16,
135
+ "problem_type": null,
136
+ "qkv_bias": true,
137
+ "return_dict": true,
138
+ "scale": 384,
139
+ "use_abs_pos": true,
140
+ "use_rel_pos": true,
141
+ "window_size": 14
142
+ }
143
+ }
144
+ }
generation_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 0,
4
+ "eos_token_id": 1,
5
+ "output_attentions": false,
6
+ "output_hidden_states": false,
7
+ "transformers_version": "5.11.0",
8
+ "use_cache": true
9
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:df345f5a7b420af9c6bcfb1ee00fa28f2102f5544a20dc33ef8b8fad2ca83191
3
+ size 137882712
processor_config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "downsample_ratio": 4,
3
+ "image_processor": {
4
+ "background_color": [
5
+ 127,
6
+ 127,
7
+ 127
8
+ ],
9
+ "crop_to_patches": true,
10
+ "do_convert_rgb": true,
11
+ "do_normalize": true,
12
+ "do_rescale": true,
13
+ "do_resize": true,
14
+ "image_mean": [
15
+ 0.5,
16
+ 0.5,
17
+ 0.5
18
+ ],
19
+ "image_processor_type": "DeepseekOcr2ImageProcessor",
20
+ "image_std": [
21
+ 0.5,
22
+ 0.5,
23
+ 0.5
24
+ ],
25
+ "max_patches": 6,
26
+ "min_patches": 2,
27
+ "resample": 3,
28
+ "rescale_factor": 0.00392156862745098,
29
+ "size": {
30
+ "height": 1024,
31
+ "width": 1024
32
+ },
33
+ "tile_size": 768
34
+ },
35
+ "patch_size": 16,
36
+ "processor_class": "DeepseekOcr2Processor"
37
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": null,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<|begin▁of▁sentence|>",
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "<|end▁of▁sentence|>",
7
+ "is_local": false,
8
+ "legacy": true,
9
+ "local_files_only": false,
10
+ "model_max_length": 1000000000000000019884624838656,
11
+ "pad_token": "<|▁pad▁|>",
12
+ "processor_class": "DeepseekOcr2Processor",
13
+ "tokenizer_class": "TokenizersBackend",
14
+ "unk_token": null,
15
+ "use_default_system_prompt": false
16
+ }