Skip to content

docs: add 'Using SGLang as the Inference Backend' guide (en/zh) - #5047

Open
JustinTong0323 wants to merge 2 commits into
opendatalab:masterfrom
JustinTong0323:docs/sglang-backend
Open

docs: add 'Using SGLang as the Inference Backend' guide (en/zh)#5047
JustinTong0323 wants to merge 2 commits into
opendatalab:masterfrom
JustinTong0323:docs/sglang-backend

Conversation

@JustinTong0323

Copy link
Copy Markdown

What

Adds a documentation guide "Using SGLang as the Inference Backend" (English + Simplified Chinese) and registers it in the mkdocs nav.

MinerU2.5 is a Qwen2-VL-based model (Qwen2VLForConditionalGeneration) that SGLang serves natively. MinerU shipped a native vlm-sglang-engine for older releases and switched its default acceleration backend to vLLM for 2.5 — but MinerU's generic vlm-http-client backend talks to any OpenAI-compatible server, including SGLang. This guide documents that path (no code changes, no local torch on the client).

Contents

  • Step 1: start the SGLang OpenAI-compatible server (minimal verified command — --chat-template/--trust-remote-code are unnecessary; sglang serve alias shown).
  • Step 2: mineru -p <in> -o <out> -b vlm-http-client -u http://127.0.0.1:30000, plus the mineru-vl-utils Python path.
  • Honest Repetition control note (SGLang has no built-in no_repeat_ngram_size; mitigations + --enable-custom-logit-processor).
  • Reference accuracy (OmniDocBench v1.6 on a single H200; on par with the transformers/vLLM paths).

Verified end-to-end on SGLang 0.5.12.post1 (full OmniDocBench v1.6 run, 1651 pages).

MinerU2.5 is a Qwen2-VL-based model that SGLang serves natively. Document
running SGLang as an OpenAI-compatible server and connecting MinerU's existing
vlm-http-client backend to it (no code changes, no local torch on the client).
Adds en + zh pages and registers them in the mkdocs nav.
@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. documentation Improvements or additions to documentation labels May 29, 2026
@github-actions

Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


JustinTong0323 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

Measured ~10% higher end-to-end throughput on the OmniDocBench two-step
workload (single H200: ~153 vs ~135 pages/min) by passing image tensors over
CUDA IPC; output unchanged. Added to both the en and zh guides.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant