Skip to content

vllm.model_executor.models.qianfan_ocr

Classes:

QianfanOCRForConditionalGeneration

Bases: InternVLChatModel

QianfanOCR multimodal model.

Identical in structure to InternVLChatModel (InternViT vision encoder + pixel-shuffle MLP connector + Qwen3 language model). This class exists solely to register the QianfanOCRForConditionalGeneration architecture name that appears in the model's config.json.

QianfanOCRProcessingInfo

Bases: BaseInternVLProcessingInfo

Image-only ProcessingInfo for QianfanOCR (no video support).

_add_intern_vit_fields(config)

Expose the upstream vision config under the field names InternViT reads.