Instructions to use SEOKDONG/Qwen3.5-9B-kor-enterprise with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SEOKDONG/Qwen3.5-9B-kor-enterprise with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "image-to-text" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("image-to-text", model="SEOKDONG/Qwen3.5-9B-kor-enterprise")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("SEOKDONG/Qwen3.5-9B-kor-enterprise") model = AutoModelForMultimodalLM.from_pretrained("SEOKDONG/Qwen3.5-9B-kor-enterprise", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Qwen3.5-9B ํ๊ตญ ๊ธฐ์ ๋ฌธ์ OCR ํนํ ๋ชจ๋ธ
- Qwen3.5-9B Korean Enterprise Document OCR
Qwen3.5-9B ํ๊ตญ ๊ธฐ์ ๋ฌธ์ OCR ํนํ ๋ชจ๋ธ
๋ชจ๋ธ ๊ฐ์
Qwen3.5-9B ํ๊ตญ ๊ธฐ์
๋ฌธ์ OCR ํนํ ๋ชจ๋ธ์ Qwen3.5-9B๋ฅผ ๊ธฐ๋ฐ์ผ๋ก,
ํ๊ตญ ๊ธฐ์
ํ๊ฒฝ์์ ์ค์ ๋ก ์ฌ์ฉ๋๋ ๋ฌธ์ ์ฝ 30๋ง ๊ฑด(์ด 307,272๊ฑด)์ ํ์ฉํด ํ์ธํ๋ํ ๋ชจ๋ธ์
๋๋ค.
์ด ๋ชจ๋ธ์ ํนํ ํ๊ตญ์ด ๋ฌธ์์ image-to-text / OCR ํ์ฒ๋ฆฌ / ๋ฌธ์ ๊ตฌ์กฐํ ์ ๋ฌด์์ ๋ค์๊ณผ ๊ฐ์ ๋ฌธ์ ๋ฅผ ์ค์ด๋ ๊ฒ์ ๋ชฉํ๋ก ์ค๊ณ๋์์ต๋๋ค.
- ํ๊ธ ์ค์ธ์ ๋ฐ ์๋ชป๋ ๋ฌธ์ ์ถ๋ ฅ
- ๋์ด์ฐ๊ธฐ ๋ฐ ํ ํฐ ๊ฒฝ๊ณ ์ค๋ฅ
- ์ซ์, ๋จ์, ํ๋, ์ ๊ฐ ๋๋ฝ
- ํ, ์ฐจํธ, ํผํฉ ๋ ์ด์์ ๋ฌธ์์ ๊ตฌ์กฐ ๋ณต์ ์คํจ
- OCR ๊ฒฐ๊ณผ๋ ์์ผ๋ ์ค์ ์ ๋ฌด์ ์ฐ๊ธฐ ์ด๋ ค์ด ๋น์ ํ ์ถ๋ ฅ
์ค๋ฌด์ ์ผ๋ก๋ OCR ์์ง์ด ๋จผ์ ์์ ํ
์คํธ๋ฅผ ์ถ์ถํ๊ณ ,
์ด ๋ชจ๋ธ์ด ๊ทธ ๊ฒฐ๊ณผ๋ฅผ ์ ์ ยท๋ณด์ ยท๊ตฌ์กฐํํ๋ ํ๋จ(refinement) ๋ชจ๋ธ๋ก ๊ฐ์ฅ ํจ๊ณผ์ ์ผ๋ก ํ์ฉ๋ฉ๋๋ค.
๋ชจ๋ธ์ด ํด๊ฒฐํ๋ ค๋ ๋ฌธ์
๊ธฐ๋ฐ ๋ชจ๋ธ์ธ Qwen3.5-9B๋ ์ ๋ฐ์ ์ธ ์ฑ๋ฅ์ด ์ฐ์ํ์ง๋ง,
ํ๊ตญ ๊ธฐ์
๋ฌธ์ ์ฒ๋ฆฌ ์
๋ฌด์์๋ ๋ค์๊ณผ ๊ฐ์ ํ๊ณ๊ฐ ๋ฐ๋ณต์ ์ผ๋ก ๊ด์ฐฐ๋์์ต๋๋ค.
- ๋ณต์กํ ํ๊ธ ๋ฌธ์์์ ๋ฌธ์ ์ค๋ฅ ๋ฐ์
- ๋ณธ๋ฌธ ์ค ํต์ฌ ํ๋ ๋๋ ์ผ๋ถ ํ/์ ๋๋ฝ
- ํ/ํผ/ํผํฉ ๋ฌธ์์์ ๊ตฌ์กฐ ๋ณด์กด ๋ถ์์
- ์ฐจํธ/๊ทธ๋ํ ํ์ด์ง์์ ๊ฐ๊ณผ ์ค๋ช ์ ์ ํฉ์ฑ ์ ํ
- ํ์ ์๋ํ(RAG, ์ถ์ถ, QA, JSON ๋ณํ)์ ๋ฐ๋ก ์ฌ์ฉํ๊ธฐ ์ด๋ ค์ด ์ถ๋ ฅ
๋ณธ ๋ชจ๋ธ์ ์ด๋ฌํ ๋ฌธ์ ๋ฅผ ์ค์ด๊ณ ,
ํ๊ธ ๊ฐ๋
์ฑ, ๋ฌธ์ ์ถฉ์ค๋, ํ์ ํ์ฉ์ฑ์ ๋์ด๊ธฐ ์ํด ํ์ธํ๋๋์์ต๋๋ค.
์ฃผ์ ํ์ฉ ์๋๋ฆฌ์ค
์ด ๋ชจ๋ธ์ ๋ค์๊ณผ ๊ฐ์ ํ๊ตญ ๊ธฐ์ ๋ฌธ์ ์ ๋ฌด์ ์ ํฉํฉ๋๋ค.
- ํ๊ตญ์ด OCR ํ์ฒ๋ฆฌ ๋ฐ ์คํ์/์ค์ธ์ ๋ณด์
- ๋น์ ํ OCR ๊ฒฐ๊ณผ๋ฅผ ์ ์ ๋ ํ ์คํธ๋ก ์ ๋ฆฌ
- ๋ฌธ์๋ฅผ Markdown ํ์์ผ๋ก ๊ตฌ์กฐํ
- ํ/ํผ/๋ฆฌ์คํธ ๊ตฌ์กฐ ๋ณต์
- ์ฐจํธ/๊ทธ๋ํ ๊ธฐ๋ฐ ์ค๋ช ์์ฑ
- ๋ฌธ์ ์ ๋ณด JSON ์ถ์ถ
- ๋ณด๊ณ ์/์ฌ๋ด๋ฌธ์/์คํผ์ค ๋ฌธ์ ์ ๊ทํ
- ๋ฌธ์ QA ๋ฐ ๋ฌธ์ ์๋ํ ์ ์ฒ๋ฆฌ
๋ํ์ ์ธ ์ ๋ ฅ ๋ฌธ์ ์์๋ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
- ๋ณด๊ณ ์ ๋ฐ ์ผ๋ฐ ์ ๋ฌด ๋ฌธ์
- ํ ์ค์ฌ ๋ฌธ์
- ๊ทธ๋ํ/์ฐจํธ ํฌํจ ํ์ด์ง
- ํผ/์คํผ์ค ๋ฌธ์
- ๊ตญ๋ฌธ/์๋ฌธ ํผํฉ ๋ฌธ์
- ๋ ผ๋ฌธ ๋ฐ ๊ธฐ์ ๋ฌธ์
ํ์ต ๋ฐ์ดํฐ ๊ฐ์
ํ์ธํ๋์ ์ฌ์ฉ๋ ๋ฐ์ดํฐ๋ ์ด 307,272๊ฑด์ด๋ฉฐ, ๋ฌธ์ ์ ํ๋ณ ๊ตฌ์ฑ์ ์๋์ ๊ฐ์ต๋๋ค.
| ๋ฐ์ดํฐ ์ ํ | ๋ฐ์ดํฐ ๊ฑด์ | ๋น์จ |
|---|---|---|
| ๊ทธ๋ํ | 56,436 | 18.4% |
| ํ ์คํธ | 49,838 | 16.2% |
| ์์ด๋ ผ๋ฌธ | 44,160 | 14.4% |
| ๋ฌธ์ | 41,980 | 13.7% |
| ํ ์ด๋ธ | 40,275 | 13.1% |
| ๋ ผ๋ฌธ | 36,650 | 11.9% |
| ์ฑ ํธ | 29,903 | 9.7% |
| ์คํผ์ค | 4,460 | 1.5% |
| ์๊ฐํ | 3,570 | 1.2% |
| ํฉ๊ณ | 307,272 | 100.0% |
๋ฐ์ดํฐ ํน์ฑ
ํ์ต ๋ฐ์ดํฐ๋ ํ๊ตญ ๊ธฐ์ ๋ฌธ์ ํ๊ฒฝ์ ๋ฐ์ํ๋๋ก ๊ตฌ์ฑ๋์์ผ๋ฉฐ, ํนํ ์๋ ์์๋ฅผ ์ค์ ์ ์ผ๋ก ํฌํจํฉ๋๋ค.
- ํ๊ธ OCR ๋ ธ์ด์ฆ ๋ณด์
- ์ซ์, ๋ ์ง, ๋จ์, ๊ณ ์ ๋ช ์ฌ ๋ณต์
- ํ/์ฐจํธ/ํผํฉ ๋ ์ด์์ ๋ฌธ์ ์ฒ๋ฆฌ
- Markdown/JSON ๋ฑ ๊ตฌ์กฐํ ์ฐ์ถ๋ฌผ ์์ฑ
- ํ์ ๋ฌธ์ QA/SFT ๋ฐ์ดํฐ ์์ฑ์ ํ์ฉ ๊ฐ๋ฅํ ๋ฌธ์ ์ดํด ํจํด
ํ์ต ๋ฐ์ดํฐ ์์ ๋ฌธ์ ์ ํ
์๋ ์ด๋ฏธ์ง๋ ํ์ธํ๋์ ์ฌ์ฉ๋ ๋ฌธ์ ์คํ์ผ์ ์์์ ๋๋ค.
1) ์ฐจํธ + ๋ณธ๋ฌธ + ์์ฝ ํ๊ฐ ํจ๊ป ์๋ ๋ณด๊ณ ์ ํ์ด์ง
2) ์ํ ์ฐจํธ ์ค์ฌ์ ์๊ฐํ ๋ฌธ์ ํ์ด์ง
3) ๋ณธ๋ฌธ + ๋ถ๋ฆฟ + ๋์ + ์น์ ๊ตฌ์กฐ๊ฐ ํผํฉ๋ ๋ฌธ์ ํ์ด์ง
์ด์ ๊ฐ์ ๋ฌธ์๋ค์ ๋จ์ OCR๋ง์ผ๋ก๋ ํ
์คํธ ์ผ๋ถ๋ ์ถ์ถ๋๋๋ผ๋,
ํ/์ฐจํธ/๋ฌธ๋จ ๊ตฌ์กฐ๊น์ง ์์ ์ ์ผ๋ก ๋ณด์กดํ๊ธฐ ์ด๋ ค์ด ๊ฒฝ์ฐ๊ฐ ๋ง์ต๋๋ค.
๊ถ์ฅ ์ฌ์ฉ ๋ฐฉ์
๋ณธ ๋ชจ๋ธ์ 2๋จ๊ณ ํ์ดํ๋ผ์ธ์ผ๋ก ์ฌ์ฉํ ๋ ๊ฐ์ฅ ํจ๊ณผ์ ์ ๋๋ค.
- OCR ์์ง์ด ์ด๋ฏธ์ง/PDF์์ ์์ ํ ์คํธ๋ฅผ ์ถ์ถ
- ๋ณธ ๋ชจ๋ธ์ด ์ด๋ฅผ ์ ์ ยท๋ณด์ ยท๊ตฌ์กฐํํ์ฌ ์ต์ข ์ถ๋ ฅ ์์ฑ
์ด ๋ฐฉ์์ ๋ค์ ์์ ์ ํนํ ์ ์ฉํฉ๋๋ค.
- ๊นจ๋ํ ํ๊ธ ํ ์คํธ ๋ณต์
- Markdown ๋ณํ
- ํ ์ธ์ง ๊ธฐ๋ฐ ๊ตฌ์กฐํ
- ์ฐจํธ/๊ทธ๋ํ ๊ธฐ๋ฐ ์ค๋ช ์์ฑ
- JSON ํ๋ ์ถ์ถ
- ๋ฌธ์ ์๋ํ ์ ์ฒ๋ฆฌ
๊ถ์ฅ ์ค๋ฌด ํจํด์ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
OCR โ ์ ๊ทํ โ ๊ตฌ์กฐํ ์ถ์ถ โ ์ ํฉ์ฑ ๊ฒ์ฆ โ ํ์ ์๋ํ
Quick Start (Transformers)
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
MODEL_ID = "SEOKDONG/Qwen3.5-9B-kor-enterprise"
tokenizer = AutoTokenizer.from_pretrained(MODEL_ID, trust_remote_code=True)
if tokenizer.pad_token is None:
tokenizer.pad_token = tokenizer.eos_token
model = AutoModelForCausalLM.from_pretrained(
MODEL_ID,
trust_remote_code=True,
torch_dtype=torch.bfloat16 if torch.cuda.is_available() else torch.float32,
device_map="auto" if torch.cuda.is_available() else None,
low_cpu_mem_usage=True,
)
model.eval()
messages = [
{
"role": "user",
"content": [
{
"type": "image_url",
"image_url": {
"url": "https://image.inblog.dev/?url=https%3A%2F%2Fsource.inblog.dev%2Fpost_image%2F2025-07-29T01%3A37%3A10.510Z-0de0e57f-ad77-4890-9c34-8b3653a1a59f&w=1920&q=85"
}
},
{
"type": "text",
"text": "ํ
์คํธ์ ์คํ์ ๋์ด์ฐ๊ธฐ๋ฅผ ๊ต์ ํ๊ณ , ์๋ฌธ ํ์์ ์ต๋ํ ์ ์งํ์ฌ ๊น๋ํ๊ฒ Markdown ํฌ๋งท์ผ๋ก ์ถ์ถํด ์ฃผ์ธ์."
}
]
}
]
prompt = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True,
)
inputs = tokenizer(prompt, return_tensors="pt")
if torch.cuda.is_available():
inputs = {k: v.to(model.device) for k, v in inputs.items()}
with torch.no_grad():
output_ids = model.generate(
**inputs,
max_new_tokens=4094,
temperature=0.01,
do_sample=True,
repetition_penalty=1.1,
pad_token_id=tokenizer.eos_token_id,
)
prompt_len = inputs["input_ids"].shape[-1]
result = tokenizer.decode(output_ids[0][prompt_len:], skip_special_tokens=True)
print(result)
Qwen3.5-9B Korean Enterprise Document OCR
Model Overview
Qwen3.5-9B Korean Enterprise Document OCR is a Korean enterprise-document fine-tuned model built on top of Qwen3.5-9B.
The model was fine-tuned on approximately 307,272 Korean enterprise document samples to improve Korean document reading quality in real-world business settings, especially where baseline OCR/image-to-text pipelines often suffer from:
- incorrect Korean characters
- spacing and tokenization errors
- dropped fields or omitted rows/cells
- weak reconstruction of tables, charts, and mixed-layout business documents
In practice, this model is especially useful as a document-text refinement and structuring model used after OCR extraction (for example with EasyOCR), although it can also be used as a downstream text-structuring model for document understanding workflows.
What This Model Is Designed For
This model is intended for Korean enterprise document workloads such as:
- OCR post-correction for Korean business documents
- converting noisy OCR output into cleaner Korean text
- document-to-Markdown structuring
- table and form reconstruction
- chart/graph grounded description generation
- field extraction to JSON
- enterprise office document normalization for downstream automation
Typical document scenarios include:
- reports and business documents
- forms and office documents
- tables and mixed-layout pages
- charts and data visualizations
- Korean and English mixed documents
- academic papers and technical papers
Why This Model Exists
The foundation model already provides strong general performance, but in Korean enterprise document workflows we observed recurring issues in image-to-text and OCR-adjacent tasks:
- Korean character corruption in dense documents
- omission of important fields, rows, or numeric cells
- weak handling of tables and form-like layouts
- inconsistent structuring of charts, graphs, and report pages
This fine-tuned model was built to improve Korean readability, document fidelity, and downstream usability for enterprise document pipelines.
Training Data Summary
The fine-tuning set contains 307,272 samples across document-oriented categories.
| Data Type | Count | Ratio |
|---|---|---|
| ๊ทธ๋ํ | 56,436 | 18.4% |
| ํ ์คํธ | 49,838 | 16.2% |
| ์์ด๋ ผ๋ฌธ | 44,160 | 14.4% |
| ๋ฌธ์ | 41,980 | 13.7% |
| ํ ์ด๋ธ | 40,275 | 13.1% |
| ๋ ผ๋ฌธ | 36,650 | 11.9% |
| ์ฑ ํธ | 29,903 | 9.7% |
| ์คํผ์ค | 4,460 | 1.5% |
| ์๊ฐํ | 3,570 | 1.2% |
| ํฉ๊ณ | 307,272 | 100.0% |
Training Data Characteristics
The dataset was constructed to reflect enterprise-style document workloads in Korean, with emphasis on:
- Korean text fidelity under OCR noise
- numbers, units, dates, and business entities
- table-heavy and mixed-layout pages
- graph/chart pages that require structure preservation and grounded interpretation
- document normalization into formats such as Markdown and JSON
Example Document Types
Below are representative examples of the document styles used during fine-tuning.
1) Report page with charts, narrative text, and a summary table
2) Pie chart / infographic style page
3) Mixed page with bullets, diagram, section titles, and explanatory text
These examples illustrate the types of pages where naive OCR often fails to preserve full business meaning without additional refinement.
Recommended Usage Pattern
This model is best used in a two-stage pipeline:
- OCR engine extracts raw text from the image or PDF page.
- This model corrects, restructures, normalizes, and converts the noisy OCR output into a more usable format.
This approach is particularly effective when you need:
- cleaner Korean text
- Markdown conversion
- table-aware formatting
- chart-aware grounded descriptions
- JSON field extraction
Test Notebook
A ready-to-run Jupyter notebook is included in this repository for users who want to test the model end-to-end.
Notebook file: qwen35_ocr_pipeline.ipynb
The notebook includes:
- environment setup and package installation
- model download from Hugging Face
- EasyOCR initialization (
ko,en) - model loading with
transformers - OCR utility functions
- single-image test
- batch-image test
- document-type prompt comparison
- OCR box visualization
- export to JSON / CSV / TXT
Packages used in the notebook
pip install \
transformers>=4.45.0 \
accelerate \
torch \
huggingface_hub \
sentencepiece \
pillow \
requests \
easyocr \
opencv-python-headless \
numpy
Notebook pipeline overview
์ด๋ฏธ์ง
โ
โผ
[ EasyOCR ]
โ
โผ ์์ OCR ํ
์คํธ
[ Qwen3.5-9B Korean Enterprise OCR ]
โ
โผ
์ ์ ๋ ํ
์คํธ / Markdown / JSON / ์์ฝ ๊ฒฐ๊ณผ
Example Prompts
1) OCR correction
OCR ํ
์คํธ์ ์คํ์ ๋์ด์ฐ๊ธฐ๋ฅผ ๊ต์ ํ๊ณ , ์๋ฌธ ํ์์ ์ต๋ํ ์ ์งํ์ฌ ๊น๋ํ๊ฒ ์ ๋ฆฌํด ์ฃผ์ธ์.
2) Markdown conversion
OCR ํ
์คํธ๋ฅผ ๋งํฌ๋ค์ด ํ์(์ ๋ชฉ, ๋ชฉ๋ก, ํ
์ด๋ธ ๋ฑ)์ผ๋ก ๊ตฌ์กฐํํ์ธ์.
3) JSON extraction
OCR ํ
์คํธ์์ ๋ค์ ์ ๋ณด๋ฅผ ์ถ์ถํ์ฌ JSON์ผ๋ก ๋ฐํํ์ธ์.
ํ๋: supplier, supplier_reg_no, buyer, buyer_reg_no, item, supply_amount, tax, total, date
๊ฐ์ด ์์ผ๋ฉด null๋ก ์ฒ๋ฆฌํ๊ณ JSON ์ฝ๋๋ธ๋ก๋ง ์ถ๋ ฅํ์ธ์.
4) Document classification
์ด OCR ํ
์คํธ๊ฐ ์ด๋ค ์ข
๋ฅ์ ๋ฌธ์์ธ์ง ๋ถ๋ฅํ๊ณ (์์์ฆ/์ธ๊ธ๊ณ์ฐ์/์ด์ก์ฅ/๊ณ์ฝ์/ํ์๋ก/๊ธฐํ), ๊ทธ ์ด์ ์ ์ฃผ์ ๋ด์ฉ์ ์ค๋ช
ํ์ธ์.
5) Chart-grounded description
์ฐจํธ์ ํ์์ ๊ด์ธก ๊ฐ๋ฅํ ํญ๋ชฉ๋ช
, ์์น, ๋ฒ๋ก, ์ถ ์ ๋ณด๋ฅผ ๋ฐํ์ผ๋ก ๋ด์ฉ์ ์ค๋ช
ํ์ธ์.
๋ณด์ด์ง ์๋ ์์น๋ ์์ธ์ ์ถ์ธกํ์ง ๋ง์ธ์.
Best Practices
To get the best results, we recommend the following:
- use a stable upstream OCR engine for raw extraction
- keep prompts explicit and task-specific
- separate OCR transcription from grounded interpretation
- validate numeric consistency when handling tables and charts
- use JSON outputs for downstream automation where possible
- perform post-processing and QA on high-value enterprise documents
For production workflows, a good pattern is:
OCR โ normalization โ structured extraction โ validation โ downstream automation
Limitations
This model has important limitations:
- It is not a standalone OCR engine. It works best when paired with an OCR front-end such as EasyOCR.
- Complex tables with merged cells may still require downstream normalization.
- Charts and visualizations should be handled with grounded prompts to avoid over-interpretation.
- Very low-resolution scans, handwriting, stamps, skewed pages, or heavy noise can still degrade output quality.
- Domain-specific terms, rare forms, and unusual layouts may require prompt engineering or additional task tuning.
Intended Users
This model is intended for:
- enterprise AI teams
- OCR pipeline developers
- document automation engineers
- Korean document processing teams
- RAG / extraction / workflow automation teams
Out-of-Scope / Misuse Warnings
This model should not be treated as a substitute for:
- legal review
- financial audit review
- compliance sign-off
- human verification in high-risk document workflows
For critical business use, human review and validation are strongly recommended.
Evaluation Note
This repository currently focuses on practical document utility rather than publishing a single academic benchmark score.
Recommended evaluation dimensions for downstream users include:
- Korean character accuracy improvement
- field-level extraction accuracy
- Markdown structure fidelity
- table reconstruction quality
- numeric consistency
- chart-grounded description quality
If you publish this model publicly, consider adding a dedicated evaluation section with benchmark datasets, task-specific metrics, and baseline comparisons.
License
Please specify the final license for this repository and ensure that deployment and redistribution follow:
- the base model license/policy
- your organization's fine-tuned weights distribution policy
- the data governance rules for enterprise document data
Citation
If you use this model in your work, please cite the repository or model page.
@misc{qwen35_kor_enterprise_ocr,
title = {Qwen3.5-9B Korean Enterprise Document OCR},
author = {SEOKDONG},
year = {2026},
howpublished = {Hugging Face model repository}
}
Contact
For enterprise collaboration, evaluation, or integration inquiries, please update this section with the appropriate project or team contact.
- Downloads last month
- 22


