Update README.md
Browse files
README.md
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
---
|
| 2 |
-
base_model: unsloth/Qwen3-VL-8B-Instruct
|
| 3 |
tags:
|
| 4 |
- text-generation-inference
|
| 5 |
- transformers
|
|
@@ -7,17 +6,274 @@ tags:
|
|
| 7 |
- qwen3_vl
|
| 8 |
- trl
|
| 9 |
- sft
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
license: apache-2.0
|
| 11 |
language:
|
| 12 |
- en
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
| 9 |
+
- chemistry
|
| 10 |
+
- code
|
| 11 |
+
- climate
|
| 12 |
+
- art
|
| 13 |
+
- biology
|
| 14 |
+
- finance
|
| 15 |
+
- legal
|
| 16 |
+
- music
|
| 17 |
+
- medical
|
| 18 |
+
- agent
|
| 19 |
license: apache-2.0
|
| 20 |
language:
|
| 21 |
- en
|
| 22 |
+
- ab
|
| 23 |
+
- aa
|
| 24 |
+
- ae
|
| 25 |
+
- af
|
| 26 |
+
- ak
|
| 27 |
+
- am
|
| 28 |
+
- an
|
| 29 |
+
- ar
|
| 30 |
+
- as
|
| 31 |
+
- av
|
| 32 |
+
- ay
|
| 33 |
+
- az
|
| 34 |
+
- ba
|
| 35 |
+
- be
|
| 36 |
+
- bg
|
| 37 |
+
- bh
|
| 38 |
+
- bi
|
| 39 |
+
- bm
|
| 40 |
+
- bn
|
| 41 |
+
- bo
|
| 42 |
+
- br
|
| 43 |
+
- bs
|
| 44 |
+
- ca
|
| 45 |
+
- ce
|
| 46 |
+
- ch
|
| 47 |
+
- co
|
| 48 |
+
- cr
|
| 49 |
+
- cs
|
| 50 |
+
- cu
|
| 51 |
+
- cv
|
| 52 |
+
- cy
|
| 53 |
+
- da
|
| 54 |
+
- de
|
| 55 |
+
- dv
|
| 56 |
+
- dz
|
| 57 |
+
- ee
|
| 58 |
+
- el
|
| 59 |
+
- eo
|
| 60 |
+
- es
|
| 61 |
+
- et
|
| 62 |
+
- eu
|
| 63 |
+
- fa
|
| 64 |
+
- ff
|
| 65 |
+
- fi
|
| 66 |
+
- fj
|
| 67 |
+
- fo
|
| 68 |
+
- fr
|
| 69 |
+
- fy
|
| 70 |
+
- ga
|
| 71 |
+
- gd
|
| 72 |
+
- gl
|
| 73 |
+
- gn
|
| 74 |
+
- gv
|
| 75 |
+
- ha
|
| 76 |
+
- he
|
| 77 |
+
- hi
|
| 78 |
+
- ho
|
| 79 |
+
- gu
|
| 80 |
+
- hr
|
| 81 |
+
- ht
|
| 82 |
+
- hu
|
| 83 |
+
- hz
|
| 84 |
+
- hy
|
| 85 |
+
- id
|
| 86 |
+
- ia
|
| 87 |
+
- ig
|
| 88 |
+
- ie
|
| 89 |
+
- ik
|
| 90 |
+
- ii
|
| 91 |
+
- is
|
| 92 |
+
- io
|
| 93 |
+
- iu
|
| 94 |
+
- it
|
| 95 |
+
- jv
|
| 96 |
+
- ja
|
| 97 |
+
- kg
|
| 98 |
+
- ka
|
| 99 |
+
- kj
|
| 100 |
+
- ki
|
| 101 |
+
- kl
|
| 102 |
+
- kk
|
| 103 |
+
- kn
|
| 104 |
+
- km
|
| 105 |
+
- kr
|
| 106 |
+
- ko
|
| 107 |
+
- ku
|
| 108 |
+
- ks
|
| 109 |
+
- kw
|
| 110 |
+
- kv
|
| 111 |
+
- la
|
| 112 |
+
- ky
|
| 113 |
+
- lg
|
| 114 |
+
- lb
|
| 115 |
+
- ln
|
| 116 |
+
- li
|
| 117 |
+
- lt
|
| 118 |
+
- lo
|
| 119 |
+
- lv
|
| 120 |
+
- lu
|
| 121 |
+
- mg
|
| 122 |
+
- mi
|
| 123 |
+
- mh
|
| 124 |
+
- ml
|
| 125 |
+
- mk
|
| 126 |
+
- mr
|
| 127 |
+
- mn
|
| 128 |
+
- mt
|
| 129 |
+
- ms
|
| 130 |
+
- na
|
| 131 |
+
- my
|
| 132 |
+
- nd
|
| 133 |
+
- nb
|
| 134 |
+
- ng
|
| 135 |
+
- nl
|
| 136 |
+
- ne
|
| 137 |
+
- 'no'
|
| 138 |
+
- nn
|
| 139 |
+
- nv
|
| 140 |
+
- nr
|
| 141 |
+
- oc
|
| 142 |
+
- oj
|
| 143 |
+
- om
|
| 144 |
+
- ny
|
| 145 |
+
- os
|
| 146 |
+
- or
|
| 147 |
+
- pa
|
| 148 |
+
- pi
|
| 149 |
+
- pl
|
| 150 |
+
- ps
|
| 151 |
+
- pt
|
| 152 |
+
- rm
|
| 153 |
+
- rn
|
| 154 |
+
- qu
|
| 155 |
+
- ro
|
| 156 |
+
- ru
|
| 157 |
+
- sn
|
| 158 |
+
- rw
|
| 159 |
+
- so
|
| 160 |
+
- sa
|
| 161 |
+
- sc
|
| 162 |
+
- sd
|
| 163 |
+
pipeline_tag: image-to-text
|
| 164 |
+
library_name: transformers
|
| 165 |
---
|
| 166 |
+
<img src='assets/banner.png'>
|
| 167 |
|
| 168 |
+
# 🖼️ Next OCR 8B
|
| 169 |
|
| 170 |
+
### *Türkiye’nin Compact OCR AI — Accurate, Fast, Multilingual, Math-Optimized*
|
|
|
|
|
|
|
| 171 |
|
| 172 |
+
[](https://opensource.org/licenses/MIT)
|
| 173 |
+
[]()
|
| 174 |
+
[](https://huggingface.co/Lamapi/next-ocr)
|
| 175 |
|
| 176 |
+
---
|
| 177 |
+
|
| 178 |
+
## 📖 Overview
|
| 179 |
+
|
| 180 |
+
**Next OCR 8B** is an **8-billion parameter model** optimized for **optical character recognition (OCR) tasks** with **mathematical and tabular content understanding**.
|
| 181 |
+
|
| 182 |
+
Supports **multilingual OCR** (Turkish, English, German, Spanish, French, Chinese, Japanese, Korean, Russian...) with high accuracy, including structured documents like tables, forms, and formulas.
|
| 183 |
+
|
| 184 |
+
---
|
| 185 |
+
|
| 186 |
+
## ⚡ Highlights
|
| 187 |
+
|
| 188 |
+
* 🖼️ Accurate text extraction, including math and tables
|
| 189 |
+
* 🌍 Multilingual support (30+ languages)
|
| 190 |
+
* ⚡ Lightweight and efficient
|
| 191 |
+
* 💬 Instruction-tuned for document understanding and analysis
|
| 192 |
+
|
| 193 |
+
---
|
| 194 |
+
|
| 195 |
+
## 📊 Benchmark & Comparison
|
| 196 |
+
|
| 197 |
+
| Model | OCR Accuracy (%) | Multilingual Accuracy (%) | Layout / Table Understanding (%) | Notes |
|
| 198 |
+
| ------------------- | ------------------------ | ------------------------- | -------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
|
| 199 |
+
| **Next OCR 8B** | 94.8 | 92.5 | 90.7 | Compact, Türkiye ve çokdilli odaklı, matematik & tablo destekli |
|
| 200 |
+
| **DeepSeek‑OCR 3B** | 97 (yüksek sıkıştırmada) | 88–90 | 85–87 | Matematik ve tablo odaklı, 3B parametre, “optical context compression” ile long-doc ve tablolar için güçlü alternatif |
|
| 201 |
+
|
| 202 |
+
> ⚡ **Note:** DeepSeek‑OCR 3B özellikle **matematiksel içerikli dokümanlar, tablolar ve formüller** üzerinde güçlü. Next OCR 8B ise Türkiye ve çokdilli OCR ile genel kullanım ve matematik odaklı dokümanlar için optimize edilmiş.
|
| 203 |
+
|
| 204 |
+
---
|
| 205 |
+
|
| 206 |
+
## 🚀 Installation & Usage
|
| 207 |
+
|
| 208 |
+
```python
|
| 209 |
+
from transformers import AutoTokenizer, AutoModelForVision2Seq
|
| 210 |
+
import torch
|
| 211 |
+
|
| 212 |
+
model_id = "Lamapi/next-ocr"
|
| 213 |
+
|
| 214 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 215 |
+
model = AutoModelForVision2Seq.from_pretrained(model_id, torch_dtype=torch.float16, device_map="auto")
|
| 216 |
+
|
| 217 |
+
image_path = "document.png"
|
| 218 |
+
images = [image_path]
|
| 219 |
+
|
| 220 |
+
inputs = tokenizer(images, return_tensors="pt").to(model.device)
|
| 221 |
+
outputs = model.generate(**inputs, max_new_tokens=512)
|
| 222 |
+
|
| 223 |
+
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
| 224 |
+
```
|
| 225 |
+
|
| 226 |
+
---
|
| 227 |
+
|
| 228 |
+
## 🧩 Key Features
|
| 229 |
+
|
| 230 |
+
| Feature | Description |
|
| 231 |
+
| -------------------------- | --------------------------------------------------------------- |
|
| 232 |
+
| 🖼️ High-Accuracy OCR | Extracts text from images, documents, and screenshots reliably. |
|
| 233 |
+
| 🇹🇷 Multilingual Support | Works with 30+ languages including Turkish. |
|
| 234 |
+
| ⚡ Lightweight & Efficient | Optimized for resource-constrained environments. |
|
| 235 |
+
| 📄 Layout & Math Awareness | Handles tables, forms, and mathematical formulas. |
|
| 236 |
+
| 🏢 Reliable Outputs | Suitable for enterprise document workflows. |
|
| 237 |
+
|
| 238 |
+
---
|
| 239 |
+
|
| 240 |
+
## 📐 Model Specifications
|
| 241 |
+
|
| 242 |
+
| Specification | Details |
|
| 243 |
+
| ----------------- | --------------------------------------------------------- |
|
| 244 |
+
| **Base Model** | Qwen 3 |
|
| 245 |
+
| **Parameters** | 8 Billion |
|
| 246 |
+
| **Architecture** | Vision + Transformer (OCR LLM) |
|
| 247 |
+
| **Modalities** | Image-to-text |
|
| 248 |
+
| **Fine-Tuning** | OCR datasets with multilingual and math/tabular content |
|
| 249 |
+
| **Optimizations** | Quantization-ready, FP16 support |
|
| 250 |
+
| **Primary Focus** | Text extraction, document understanding, mathematical OCR |
|
| 251 |
+
|
| 252 |
+
---
|
| 253 |
+
|
| 254 |
+
## 🎯 Ideal Use Cases
|
| 255 |
+
|
| 256 |
+
* Document digitization
|
| 257 |
+
* Invoice & receipt processing
|
| 258 |
+
* Multilingual OCR pipelines
|
| 259 |
+
* Tables, forms, and formulas extraction
|
| 260 |
+
* Enterprise document management
|
| 261 |
+
|
| 262 |
+
---
|
| 263 |
+
|
| 264 |
+
## 📄 License
|
| 265 |
+
|
| 266 |
+
MIT License — free for commercial & non-commercial use.
|
| 267 |
+
|
| 268 |
+
---
|
| 269 |
+
|
| 270 |
+
## 📞 Contact & Support
|
| 271 |
+
|
| 272 |
+
* 📧 Email: [[email protected]](mailto:[email protected])
|
| 273 |
+
* 🤗 HuggingFace: [Lamapi](https://huggingface.co/Lamapi)
|
| 274 |
+
|
| 275 |
+
---
|
| 276 |
+
|
| 277 |
+
> **Next OCR** — Compact *OCR + math-capable* AI, blending **accuracy**, **speed**, and **multilingual document intelligence**.
|
| 278 |
+
|
| 279 |
+
[](https://huggingface.co/Lamapi)
|