SandLogicTechnologies commited on
Commit
6743057
·
verified ·
1 Parent(s): 2081c8d

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +168 -0
README.md ADDED
@@ -0,0 +1,168 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ base_model:
6
+ - ibm-granite/granite-docling-258M
7
+ tags:
8
+ - multimodal
9
+ - ocr
10
+ - document-understanding
11
+ - vision-language-model
12
+ - document-conversion
13
+ - layout-analysis
14
+ - information-extraction
15
+ - efficient-model
16
+
17
+ ---
18
+
19
+ ## Granite-Docling-258M
20
+
21
+ Granite-Docling-258M is a compact vision-language document model developed by IBM, designed for OCR, document conversion, layout understanding, and structured content extraction workflows. This repository contains GGUF quantized variants of the model optimized for efficient local inference using llama.cpp.
22
+
23
+ The model specializes in transforming complex documents into machine-readable representations while preserving semantic structure, document hierarchy, tables, forms, equations, code blocks, and layout relationships. The quantized formats significantly reduce memory requirements while maintaining strong document-processing capabilities, enabling deployment on consumer hardware, edge devices, and enterprise document-processing pipelines.
24
+
25
+ ---
26
+
27
+ ## Model Overview
28
+
29
+ - **Model Name**: Granite-Docling-258M
30
+ - **Base Model**: ibm-granite/granite-docling-258M
31
+ - **Architecture**: Multimodal Document Understanding Model
32
+ - **Parameter Count**: 258 Million
33
+ - **Modalities**: Text, Image
34
+ - **Primary Languages**: English
35
+ - **Developer**: IBM
36
+ - **License**: Apache 2.0
37
+
38
+ ---
39
+
40
+ ## Quantization Formats
41
+
42
+ This repository provides various GGUF quantized versions of the Granite-Docling-258M model optimized for efficient local inference using llama.cpp. Below are the details of the available quantization formats.
43
+
44
+ ### IQ3_M
45
+
46
+ - Size reduction of approx 62.97% (117 MB) compared to 16-bit (316 MB)
47
+ - Aggressive 3-bit quantization optimized for maximum memory efficiency
48
+ - Suitable for lightweight OCR pipelines and low-memory deployment environments
49
+ - Enables practical execution of document-understanding workloads on consumer hardware
50
+ - Complex layouts, dense tables, mathematical content, and highly structured extraction tasks may experience reduced fidelity compared to higher-precision variants
51
+
52
+ ### IQ4_NL
53
+
54
+ - Size reduction of approx 62.34% (119 MB) compared to 16-bit (316 MB)
55
+ - Advanced 4-bit non-linear quantization designed to better preserve OCR quality and document understanding performance
56
+ - Better suited for structured document conversion, layout-aware analysis, and information extraction workflows
57
+ - Designed to reduce quantization loss compared to more aggressive formats
58
+ - May require slightly increased computational overhead during inference
59
+
60
+ ### IQ4_XS
61
+
62
+ - Size reduction of approx 62.66% (118 MB) compared to 16-bit (316 MB)
63
+ - Balanced 4-bit quantization focused on efficient inference and dependable document-processing performance
64
+ - Provides a practical balance between memory efficiency, extraction quality, and runtime speed
65
+ - Suitable for PDF conversion, OCR workflows, document digitization, and structured content extraction
66
+ - Maintains stable performance across most practical document-understanding tasks
67
+
68
+ ### Q6_K
69
+
70
+ - Size reduction of approx 48.42% (163 MB) compared to 16-bit (316 MB)
71
+ - Higher-precision 6-bit K-Quant format designed to preserve document structure recognition and extraction quality
72
+ - Better suited for demanding workloads involving complex layouts, tables, equations, technical documents, and dense visual content
73
+ - Provides stronger output consistency and improved retention of the original model capabilities compared to lower-bit formats
74
+ - Requires higher memory resources but offers enhanced document-conversion fidelity and structured extraction quality
75
+
76
+ ---
77
+
78
+ ## Training Background (Original Model)
79
+
80
+ Granite-Docling-258M is trained with an emphasis on document intelligence, OCR, layout understanding, and structured document conversion across diverse document formats.
81
+
82
+ ### Pretraining
83
+
84
+ - Large-scale multimodal pretraining across document-centric image and text datasets
85
+ - Focus on text recognition, layout understanding, and document representation learning
86
+ - Optimized for downstream OCR, document conversion, and document-analysis workloads
87
+
88
+ ### Document Understanding Optimization
89
+
90
+ - Optimized for OCR, document parsing, and structured content extraction
91
+ - Enhanced for preserving document hierarchy, layout relationships, and semantic structure
92
+ - Improved performance on tables, forms, equations, code blocks, and technical documents
93
+ - Designed to generate structured document representations suitable for downstream processing workflows
94
+
95
+ ---
96
+
97
+ ## Key Capabilities
98
+
99
+ - **Optical Character Recognition (OCR)**
100
+ Extracts textual information from scanned documents, images, and visual content.
101
+
102
+ - **Document Understanding**
103
+ Interprets document structure, context, and relationships between textual elements.
104
+
105
+ - **Layout Analysis**
106
+ Understands page layouts, sections, tables, forms, and structured document formats.
107
+
108
+ - **Structured Information Extraction**
109
+ Supports extraction of key-value pairs, fields, metadata, and document content.
110
+
111
+ - **Document Conversion**
112
+ Converts complex documents into structured machine-readable representations.
113
+
114
+ - **Efficient Local Deployment**
115
+ Quantized variants enable practical document-processing inference on consumer hardware.
116
+
117
+ ---
118
+
119
+ ## Usage Example
120
+
121
+ ### Using llama.cpp
122
+
123
+ ```bash
124
+ ./llama-mtmd-cli \
125
+ -m SandlogicTechnologies/Granite-Docling-258M_IQ4_NL.gguf \
126
+ --mmproj SandlogicTechnologies/mmproj-granite-docling-258M-f16.gguf \
127
+ --image document.png \
128
+ -p "Extract all tables and convert the document into structured markdown."
129
+ ```
130
+
131
+ ---
132
+
133
+ ## Recommended Usecases
134
+
135
+ - **Document Digitization**
136
+ Convert scanned documents into searchable and structured formats.
137
+
138
+ - **OCR Pipelines**
139
+ Extract text from images, scanned pages, and document archives.
140
+
141
+ - **Structured Content Extraction**
142
+ Extract tables, forms, metadata, and key-value information from documents.
143
+
144
+ - **Enterprise Document Processing**
145
+ Automate large-scale document conversion and information retrieval workflows.
146
+
147
+ - **RAG Data Preparation**
148
+ Transform enterprise documents into structured formats suitable for retrieval systems.
149
+
150
+ - **Research and Experimentation**
151
+ Evaluate OCR, layout analysis, and document-understanding workflows.
152
+
153
+ ---
154
+
155
+ ## Acknowledgments
156
+
157
+ These quantized models are based on the original work by the **IBM Granite** development team.
158
+
159
+ Special thanks to:
160
+
161
+ - The IBM team for developing and releasing the Granite-Docling-258M model.
162
+ - **Georgi Gerganov** and the `llama.cpp` open-source community for enabling efficient quantization and inference via the GGUF format.
163
+
164
+ ---
165
+
166
+ ## Contact
167
+
168
+ For questions, feedback, or support, please reach out at [support@sandlogic.com](mailto:support@sandlogic.com) or visit https://www.sandlogic.com/