MCPcopy Index your code
hub / github.com/InternLM/lmdeploy / VisionConfig

Class VisionConfig

lmdeploy/messages.py:680–692  ·  view source on GitHub ↗

Vision model configs. Args: max_batch_size: the max image size passed to the model, since some models will use image patch, the actual running batch could be larger than this value. thread_safe: Specifies whether the engine instance is thread-

Source from the content-addressed store, hash-verified

678
679@dataclass
680class VisionConfig:
681 """Vision model configs.
682
683 Args:
684 max_batch_size: the max image size passed to the model, since
685 some models will use image patch, the actual running batch could
686 be larger than this value.
687 thread_safe: Specifies whether the engine instance is
688 thread-safe. Please set it to True when using the pipeline
689 in a multi-threaded environment.
690 """
691 max_batch_size: int = 1
692 thread_safe: bool = False
693
694
695@dataclass

Callers 2

__init__Method · 0.90
api_serverMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected