(model_id: str,
revision: str,
external_engine_for_llm: bool = True)
| 68 | |
| 69 | |
| 70 | def 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 | |
| 85 | def get_class_user_attributes(cls): |
no test coverage detected
searching dependent graphs…