MCPcopy Create free account
hub / github.com/modelscope/modelscope / clear_llm_info

Function clear_llm_info

modelscope/pipelines/builder.py:340–346  ·  view source on GitHub ↗
(kwargs: Dict, pipeline_name: str)

Source from the content-addressed store, hash-verified

338
339
340def clear_llm_info(kwargs: Dict, pipeline_name: str):
341 from modelscope.utils.model_type_helper import ModelTypeHelper
342
343 kwargs.pop('external_engine_for_llm', None)
344 if pipeline_name != 'llm':
345 kwargs.pop('llm_framework', None)
346 ModelTypeHelper.clear_cache()

Callers 1

pipelineFunction · 0.85

Calls 1

clear_cacheMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…