    def load_config(name: str, *args, **kwargs):
        """
        Load config from pre-defined pipeline.

        Examples:
            >>> from towhee import AutoConfig
            >>> config = AutoConfig.load_config('sentence_embedding')
            SentenceSimilarityConfig(model='all-MiniLM-L6-v2', openai_api_key=None, customize_embedding_op=None, normalize_vec=True, device=-1)
        """
        with AutoConfig._lock:
            if name in AutoConfig._REGISTERED_CONFIG:
                return AutoConfig._REGISTERED_CONFIG[name](*args, **kwargs)

            with set_config_name(name):
                pipe_loader.PipelineLoader.load_pipeline(name)
            if name in AutoConfig._REGISTERED_CONFIG:
                return AutoConfig._REGISTERED_CONFIG[name](*args, **kwargs)
            engine_log.error('Can not find config: %s', name)
            return None
Load config from pre-defined pipeline.

Examples:
>>> from towhee import AutoConfig
>>> config = AutoConfig.load_config('sentence_embedding')
SentenceSimilarityConfig(model='all-MiniLM-L6-v2', openai_api_key=None, customize_embedding_op=None, normalize_vec=True, device=-1)
towhee/runtime/auto_config.py