AI SeedbankHelp preserve open and free AI for humanity's future

← All models

stepfun-ai_GOT-OCR2_0

stepfun-ai · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: · Leechers:

Model card

The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.


pipeline_tag: image-text-to-text language:

  • multilingual tags:
  • got
  • vision-language
  • ocr2.0
  • custom_code license: apache-2.0

General OCR Theory: Towards OCR-2.0 via a Unified End-to-end Model

🔋Online Demo | 🌟GitHub | 📜Paper

Haoran Wei*, Chenglong Liu*, Jinyue Chen, Jia Wang, Lingyu Kong, Yanming Xu, Zheng Ge, Liang Zhao, Jianjian Sun, Yuang Peng, Chunrui Han, Xiangyu Zhang

Usage

Inference using Huggingface transformers on NVIDIA GPUs. Requirements tested on python 3.10:

torch==2.0.1
torchvision==0.15.2
transformers==4.37.2
tiktoken==0.6.0
verovio==4.3.1
accelerate==0.28.0
from transformers import AutoModel, AutoTokenizer

tokenizer = AutoTokenizer.from_pretrained('ucaslcl/GOT-OCR2_0', trust_remote_code=True)
model = AutoModel.from_pretrained('ucaslcl/GOT-OCR2_0', trust_remote_code=True, low_cpu_mem_usage=True, device_map='cuda', use_safetensors=True, pad_token_id=tokenizer.eos_token_id)
model = model.eval().cuda()


# input your test image
image_file = 'xxx.jpg'

# plain texts OCR
res = model.chat(tokenizer, image_file, ocr_type='ocr')

# format texts OCR:
# res = model.chat(tokenizer, image_file, ocr_type='format')

# fine-grained OCR:
# res = model.chat(tokenizer, image_file, ocr_type='ocr', ocr_box='')
# res = model.chat(tokenizer, image_file, ocr_type='format', ocr_box='')
# res = model.chat(tokenizer, image_file, ocr_type='ocr', ocr_color='')
# res = model.chat(tokenizer, image_file, ocr_type='format', ocr_color='')

# multi-crop OCR:
# res = model.chat_crop(tokenizer, image_file, ocr_type='ocr')
# res = model.chat_crop(tokenizer, image_file, ocr_type='format')

# render the formatted OCR results:
# res = model.chat(tokenizer, image_file, ocr_type='format', render=True, save_render_file = './demo.html')

print(res)

More details about 'ocr_type', 'ocr_box', 'ocr_color', and 'render' can be found at our GitHub. Our training codes are available at our GitHub.

More Multimodal Projects

👏 Welcome to explore more multimodal projects of our team:

Vary | Fox | OneChart

Citation

If you find our work helpful, please consider citing our papers 📝 and liking this project ❤️!

@article{wei2024general,
  title={General OCR Theory: Towards OCR-2.0 via a Unified End-to-end Model},
  author={Wei, Haoran and Liu, Chenglong and Chen, Jinyue and Wang, Jia and Kong, Lingyu and Xu, Yanming and Ge, Zheng and Zhao, Liang and Sun, Jianjian and Peng, Yuang and others},
  journal={arXiv preprint arXiv:2409.01704},
  year={2024}
}
@article{liu2024focus,
  title={Focus Anywhere for Fine-grained Multi-page Document Understanding},
  author={Liu, Chenglong and Wei, Haoran and Chen, Jinyue and Kong, Lingyu and Ge, Zheng and Zhu, Zining and Zhao, Liang and Sun, Jianjian and Han, Chunrui and Zhang, Xiangyu},
  journal={arXiv preprint arXiv:2405.14295},
  year={2024}
}
@article{wei2023vary,
  title={Vary: Scaling up the Vision Vocabulary for Large Vision-Language Models},
  author={Wei, Haoran and Kong, Lingyu and Chen, Jinyue and Zhao, Liang and Ge, Zheng and Yang, Jinrong and Sun, Jianjian and Han, Chunrui and Zhang, Xiangyu},
  journal={arXiv preprint arXiv:2312.06109},
  year={2023}
}

Magnet link

Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:

magnet:?xt=urn:btih:94149afe6ca50547be9a0f6bbeafd86c68f7db33&dn=stepfun-ai_GOT-OCR2_0

Open magnet in torrent client · infohash 94149afe6ca50547be9a0f6bbeafd86c68f7db33

Files & hashes

PathSizesha1sha256
README.md3.9 KB (3,959 B)143dd5a9fb155fe07d8bd198ab28c501e98b3d6c1c8697ddeb841080c25a06b2eadd9dbdf714cdef886fb457a2568b57b2079134
assets/got_logo.png498.6 KB (510,573 B)a896fa83405eb7e198b0f0099e930a6cfb86cac0cf9a90a822ef9d521ba0f9702b50cbd7a8a37e5661f0792a94a009deb9511de7
assets/got_support.jpg193.6 KB (198,197 B)0a3a025f682178fa6587498ffd45c491c540a03cc4d78f00966111b9a8ba838f8ab0ad6a1e2e9fdf91ccf7790915808aca2fada0
assets/train_sample.jpg151.7 KB (155,378 B)ad3c31a44bdece8f91faef096ea0c15df6a44cf93839e3b1a775ba710d01097dc84d7e8bf2609c3f8ba52a6e810660044d856362
config.json986 B (986 B)ff2eecec298d8b4456a5eec2b431d768e2e033b359db7f1fc9346e596221a1af3d836b11148d6ac5e6344f64f34820df672ac629
generation_config.json117 B (117 B)1b23b70fa0eabcdd1dc2099c9c3a5e67e2e5022f64e4f9d67c678c6dd6b1ac2f1b0d2562ae12cec463493ce2951daf1dba4e494f
got_vision_b.py15.7 KB (16,106 B)108fac3e0cd05f0706de8b41d9d28d760c569a258931c2e1145afa6e99aa707fa73ab24afabe3ad69fe5341a5b7160e2688cf750
model.safetensors1.33 GB (1,432,121,416 B)f6af46a6d9b85329adbe2ce701cbb85e1c6c27ce77d6144039548b14253176b6eb264896bc39eba532f8894700f210a7fd2a5956
modeling_GOT.py33.0 KB (33,771 B)65f5e43cdee0ce2e0565ff52619a4d31deb3906e68375b6bf7683cca41bb987953f0e31fde802652ad01e1accc4b53127b841609
qwen.tiktoken2.4 MB (2,561,218 B)9b9b0e0416d84d7c88333eb261c77e5fe2d7f7beb2b1b8dfb5cc5f024bafc373121c6aba3f66f9a5a0269e243470a1de16a33186
render_tools.py1.9 KB (1,992 B)a830ec663f1575b6a7d1adaeb50c18e9d6ca516f11393028ac7095431cfaa9c8ee14b9c6e8ca1d618158dfe729b89e83e889fb99
special_tokens_map.json149 B (149 B)9a7e772d88976469ee300204ae54f912cdb0521e337f1a03344485ec7ea2acd6f7021567feab077fd81f96b72423fcd3f8f5fc09
tokenization_qwen.py9.2 KB (9,470 B)f041a9cb10209072c21a0a1efe90e6b7d963f834eec08335cdcdcb538120e204f19b41bbd9e5ab989e14b1b1cf8f506ac584c601
tokenizer_config.json300 B (300 B)6fdd6990cee677399365579a449cd8920bd11e990a0f9a1847cf1bc7d09ebcc1ae8d6a43f71cc6ff1821096102c5db8d387018d4

Cite this release

Canonical URL
https://aiseedbank.org/models/stepfun-ai_GOT-OCR2_0/
Slug
stepfun-ai_GOT-OCR2_0
Infohash
94149afe6ca50547be9a0f6bbeafd86c68f7db33
License
apache-2.0
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: stepfun-ai_GOT-OCR2_0.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositorystepfun-ai/GOT-OCR2_0
Revision (pinned)979938bf89ccdc949c0131ddd3841e24578a4742
Fetched at2026-09-04T06:14:55Z
License at fetchapache-2.0
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-04T06:15:10Z

apache-2.01.34 GB (1,435,613,632 bytes)safetensorsGOTgotvision-languageocr2.0custom_codeimage-text-to-textmultilingualpaper: 2409.01704paper: 2405.14295paper: 2312.06109