__init__.py 558 B

1234567891011121314
  1. from sglang.srt.configs.model_config import multimodal_model_archs
  2. from sglang.srt.models.registry import ModelRegistry
  3. from sglang.srt.managers.multimodal_processor import (
  4. PROCESSOR_MAPPING as PROCESSOR_MAPPING,
  5. )
  6. from .. import vlm_hf_model as _
  7. from .image_processor import Mineru2ImageProcessor
  8. from .model import Mineru2QwenForCausalLM
  9. ModelRegistry.models[Mineru2QwenForCausalLM.__name__] = Mineru2QwenForCausalLM
  10. PROCESSOR_MAPPING[Mineru2QwenForCausalLM] = Mineru2ImageProcessor
  11. multimodal_model_archs.append(Mineru2QwenForCausalLM.__name__)