MCPcopy Index your code
hub / github.com/modelscope/modelscope / create_pipeline

Function create_pipeline

modelscope/utils/input_output.py:70–82  ·  view source on GitHub ↗
(model_id: str,
                    revision: str,
                    external_engine_for_llm: bool = True)

Source from the content-addressed store, hash-verified

68
69
70def create_pipeline(model_id: str,
71 revision: str,
72 external_engine_for_llm: bool = True):
73 model_configuration_file = model_file_download(
74 model_id=model_id,
75 file_path=ModelFile.CONFIGURATION,
76 revision=revision)
77 cfg = Config.from_file(model_configuration_file)
78 return pipeline(
79 task=cfg.task,
80 model=model_id,
81 model_revision=revision,
82 external_engine_for_llm=external_engine_for_llm)
83
84
85def get_class_user_attributes(cls):

Callers 1

_startup_modelFunction · 0.90

Calls 3

model_file_downloadFunction · 0.90
pipelineFunction · 0.90
from_fileMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…