Skip to content

VLLM

VLLM backend configuration for MinerU VL layout detection.

MinerUVLLayoutVLLMConfig

Bases: BaseModel

VLLM backend config for MinerU VL layout detection.

Example
from omnidocs.tasks.layout_extraction import MinerUVLLayoutDetector
from omnidocs.tasks.layout_extraction.mineruvl import MinerUVLLayoutVLLMConfig

detector = MinerUVLLayoutDetector(
    backend=MinerUVLLayoutVLLMConfig(tensor_parallel_size=1)
)
result = detector.extract(image)