FIX: Add proper config.json with from_pretrained support
Browse files- config.json +5 -5
config.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
| 1 |
{
|
| 2 |
"architectures": [
|
| 3 |
-
"
|
| 4 |
],
|
| 5 |
-
"model_type": "
|
| 6 |
"base_model": "google/paligemma-3b-pt-224",
|
| 7 |
-
"custom_ocr_features": true,
|
| 8 |
"hidden_size": 2048,
|
| 9 |
"vocab_size": 257216,
|
| 10 |
"torch_dtype": "float32",
|
| 11 |
"transformers_version": "4.40.0",
|
| 12 |
"auto_map": {
|
| 13 |
-
"AutoModel": "modeling_pixeltext.
|
|
|
|
| 14 |
},
|
| 15 |
-
"_name_or_path": "
|
| 16 |
"custom_model": true
|
| 17 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"architectures": [
|
| 3 |
+
"FixedPixelTextOCR"
|
| 4 |
],
|
| 5 |
+
"model_type": "pixeltext",
|
| 6 |
"base_model": "google/paligemma-3b-pt-224",
|
|
|
|
| 7 |
"hidden_size": 2048,
|
| 8 |
"vocab_size": 257216,
|
| 9 |
"torch_dtype": "float32",
|
| 10 |
"transformers_version": "4.40.0",
|
| 11 |
"auto_map": {
|
| 12 |
+
"AutoModel": "modeling_pixeltext.FixedPixelTextOCR",
|
| 13 |
+
"AutoConfig": "modeling_pixeltext.PixelTextConfig"
|
| 14 |
},
|
| 15 |
+
"_name_or_path": "BabaK07/pixeltext-ai",
|
| 16 |
"custom_model": true
|
| 17 |
}
|