stepfun-ai_GOT-OCR2_0
stepfun-ai · View on Hugging Face ↗
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_0Open magnet in torrent client · infohash 94149afe6ca50547be9a0f6bbeafd86c68f7db33
Files & hashes
| Path | Size | sha1 | sha256 |
|---|---|---|---|
| README.md | 3.9 KB (3,959 B) | 143dd5a9fb155fe07d8bd198ab28c501e98b3d6c | 1c8697ddeb841080c25a06b2eadd9dbdf714cdef886fb457a2568b57b2079134 |
| assets/got_logo.png | 498.6 KB (510,573 B) | a896fa83405eb7e198b0f0099e930a6cfb86cac0 | cf9a90a822ef9d521ba0f9702b50cbd7a8a37e5661f0792a94a009deb9511de7 |
| assets/got_support.jpg | 193.6 KB (198,197 B) | 0a3a025f682178fa6587498ffd45c491c540a03c | c4d78f00966111b9a8ba838f8ab0ad6a1e2e9fdf91ccf7790915808aca2fada0 |
| assets/train_sample.jpg | 151.7 KB (155,378 B) | ad3c31a44bdece8f91faef096ea0c15df6a44cf9 | 3839e3b1a775ba710d01097dc84d7e8bf2609c3f8ba52a6e810660044d856362 |
| config.json | 986 B (986 B) | ff2eecec298d8b4456a5eec2b431d768e2e033b3 | 59db7f1fc9346e596221a1af3d836b11148d6ac5e6344f64f34820df672ac629 |
| generation_config.json | 117 B (117 B) | 1b23b70fa0eabcdd1dc2099c9c3a5e67e2e5022f | 64e4f9d67c678c6dd6b1ac2f1b0d2562ae12cec463493ce2951daf1dba4e494f |
| got_vision_b.py | 15.7 KB (16,106 B) | 108fac3e0cd05f0706de8b41d9d28d760c569a25 | 8931c2e1145afa6e99aa707fa73ab24afabe3ad69fe5341a5b7160e2688cf750 |
| model.safetensors | 1.33 GB (1,432,121,416 B) | f6af46a6d9b85329adbe2ce701cbb85e1c6c27ce | 77d6144039548b14253176b6eb264896bc39eba532f8894700f210a7fd2a5956 |
| modeling_GOT.py | 33.0 KB (33,771 B) | 65f5e43cdee0ce2e0565ff52619a4d31deb3906e | 68375b6bf7683cca41bb987953f0e31fde802652ad01e1accc4b53127b841609 |
| qwen.tiktoken | 2.4 MB (2,561,218 B) | 9b9b0e0416d84d7c88333eb261c77e5fe2d7f7be | b2b1b8dfb5cc5f024bafc373121c6aba3f66f9a5a0269e243470a1de16a33186 |
| render_tools.py | 1.9 KB (1,992 B) | a830ec663f1575b6a7d1adaeb50c18e9d6ca516f | 11393028ac7095431cfaa9c8ee14b9c6e8ca1d618158dfe729b89e83e889fb99 |
| special_tokens_map.json | 149 B (149 B) | 9a7e772d88976469ee300204ae54f912cdb0521e | 337f1a03344485ec7ea2acd6f7021567feab077fd81f96b72423fcd3f8f5fc09 |
| tokenization_qwen.py | 9.2 KB (9,470 B) | f041a9cb10209072c21a0a1efe90e6b7d963f834 | eec08335cdcdcb538120e204f19b41bbd9e5ab989e14b1b1cf8f506ac584c601 |
| tokenizer_config.json | 300 B (300 B) | 6fdd6990cee677399365579a449cd8920bd11e99 | 0a0f9a1847cf1bc7d09ebcc1ae8d6a43f71cc6ff1821096102c5db8d387018d4 |
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 repository | stepfun-ai/GOT-OCR2_0 |
|---|---|
| Revision (pinned) | 979938bf89ccdc949c0131ddd3841e24578a4742 |
| Fetched at | 2026-09-04T06:14:55Z |
| License at fetch | apache-2.0 |
| Snapshot tool | huggingface · seedbank 0.1.0 |
Trackers
- udp://announce.aitorrent.org:6969/announce
- http://announce.aitorrent.org:7070/announce
- udp://announce2.aitorrent.org:6970/announce
- http://announce2.aitorrent.org:7071/announce
- udp://tracker.opentrackr.org:1337/announce
- udp://open.demonii.com:1337/announce
- udp://open.stealth.si:80/announce
- udp://exodus.desync.com:6969/announce
- udp://tracker.torrent.eu.org:451/announce
✓ 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