Upload GotOcr2ForConditionalGeneration
Browse files- config.json +16 -20
- model.safetensors +2 -2
config.json
CHANGED
|
@@ -2,29 +2,25 @@
|
|
| 2 |
"architectures": [
|
| 3 |
"GotOcr2ForConditionalGeneration"
|
| 4 |
],
|
| 5 |
-
"
|
| 6 |
-
"
|
| 7 |
-
"
|
| 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 |
-
"
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6175ac7868a4e75735f5d59f78c465081ad3427eb4f312d072a0f1d16b333ba4
|
| 3 |
+
size 1121114488
|