yonigozlan HF staff commited on
Commit
1e806a7
·
verified ·
1 Parent(s): 6be64fb

Upload GotOcr2ForConditionalGeneration

Browse files
Files changed (2) hide show
  1. config.json +16 -20
  2. model.safetensors +2 -2
config.json CHANGED
@@ -2,29 +2,25 @@
2
  "architectures": [
3
  "GotOcr2ForConditionalGeneration"
4
  ],
5
- "attention_dropout": 0.0,
6
- "hidden_act": "silu",
7
- "hidden_size": 1024,
8
- "image_token_id": 151859,
9
- "initializer_range": 0.02,
10
- "intermediate_size": 2816,
11
- "max_position_embeddings": 32768,
12
- "max_window_layers": 21,
13
  "model_type": "got_ocr2",
14
- "num_attention_heads": 16,
15
- "num_hidden_layers": 24,
16
- "num_key_value_heads": 16,
17
- "rms_norm_eps": 1e-06,
18
- "rope_scaling": null,
19
- "rope_theta": 1000000.0,
20
- "sliding_window": 32768,
21
- "tie_word_embeddings": true,
 
 
 
 
22
  "torch_dtype": "bfloat16",
23
  "transformers_version": "4.49.0.dev0",
24
- "use_cache": true,
25
- "use_sliding_window": false,
26
  "vision_config": {
27
  "model_type": "got_ocr2_vision_model"
28
- },
29
- "vocab_size": 151860
30
  }
 
2
  "architectures": [
3
  "GotOcr2ForConditionalGeneration"
4
  ],
5
+ "ignore_index": -100,
6
+ "image_seq_length": 576,
7
+ "image_token_index": 151859,
 
 
 
 
 
8
  "model_type": "got_ocr2",
9
+ "text_config": {
10
+ "hidden_size": 1024,
11
+ "intermediate_size": 2816,
12
+ "max_window_layers": 21,
13
+ "model_type": "qwen2",
14
+ "num_attention_heads": 16,
15
+ "num_hidden_layers": 24,
16
+ "num_key_value_heads": 16,
17
+ "rope_theta": 1000000.0,
18
+ "tie_word_embeddings": true,
19
+ "vocab_size": 151860
20
+ },
21
  "torch_dtype": "bfloat16",
22
  "transformers_version": "4.49.0.dev0",
 
 
23
  "vision_config": {
24
  "model_type": "got_ocr2_vision_model"
25
+ }
 
26
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5b140b2b64af7a3505c4fe7406d5f9fbd436213ca0be1b9460e16c0d9c47af97
3
- size 1121113328
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6175ac7868a4e75735f5d59f78c465081ad3427eb4f312d072a0f1d16b333ba4
3
+ size 1121114488