Metadata-Version: 2.3
Name: stg609-dots-ocr
Version: 0.0.1
Summary: dots.ocr: Multilingual Document Layout Parsing in one Vision-Language Model
License: MIT
Keywords: ocr,document-parser,vision-language-model,layout-detection
Requires-Python: >=3.10,<3.13
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Text Processing :: General
Classifier: Topic :: Utilities
Requires-Dist: PyMuPDF (>=1.24.0,<2.0.0)
Requires-Dist: aiohttp (>=3.8.0,<4.0.0)
Requires-Dist: huggingface-hub (>=0.30.0,<1.0)
Requires-Dist: modelscope (>=1.18.0,<2.0.0)
Requires-Dist: openai (>=1.0.0,<2.0.0)
Requires-Dist: pillow (<12.0.0)
Requires-Dist: qwen-vl-utils
Requires-Dist: requests (>=2.30.0,<3.0.0)
Requires-Dist: tqdm (>=4.65.0,<5.0.0)
Requires-Dist: transformers (==4.51.3)
Project-URL: Bug Tracker, https://github.com/rednote-hilab/dots.ocr/issues
Project-URL: Documentation, https://github.com/rednote-hilab/dots.ocr
Project-URL: Homepage, https://github.com/rednote-hilab/dots.ocr
Project-URL: Repository, https://github.com/rednote-hilab/dots.ocr
Description-Content-Type: text/markdown

## 简单说明
在官方基础上稍微调整了下，1. 支持异步。2. 分离 模型推理部分（i.e. stg609/dots-ocr) 与 调用部分（stg609-dots-ocr python 包， 减少了一些无关包的依赖)

## 如何使用
1. 推理部分
1.1 执行 download_model.py 下载模型到某个目录，比如 /root/dotsocr/weights/DotsOCR
1.2 运行
docker run --name=dots-vllm-test --restart=unless-stopped -d --gpus '"device=0"' -v /root/dotsocr/weights/DotsOCR:/workspace/weights/DotsOCR -p 8000:8000 -e GPU_MEMORY_UTILIZATION=0.9  -e MAX_MODEL_LEN=17000  stg609/dots-ocr:v2025.9

2. 调用部分

如果要自己打包，请按照以下步骤：
1. 先打包 vllm.Dockerfile 镜像得到 dots-vllm-openai 镜像
2. 然后修改 Dockerfile 中的 dots-vllm-openai 镜像信息
3. 打包 Dockerfile

如何运行：

