MCPcopy
hub / github.com/InternLM/lmdeploy / chat

Method chat

lmdeploy/cli/cli.py:162–171  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

160
161 @staticmethod
162 def chat(args):
163 from .chat import main
164
165 kwargs = convert_args(args)
166 speculative_config = get_speculative_config(args)
167 to_remove = ['speculative_algorithm', 'speculative_draft_model', 'speculative_num_draft_tokens']
168 for key in to_remove:
169 kwargs.pop(key)
170 kwargs['speculative_config'] = speculative_config
171 main(**kwargs)
172
173 @staticmethod
174 def add_parsers():

Callers 6

mainFunction · 0.45
run_pipeline_mllm_testFunction · 0.45
test_repeatFunction · 0.45
test_chat_streamingMethod · 0.45
test_chat_multi_turnMethod · 0.45

Calls 4

convert_argsFunction · 0.85
get_speculative_configFunction · 0.85
mainFunction · 0.70
popMethod · 0.45

Tested by 4

test_repeatFunction · 0.36
test_chat_streamingMethod · 0.36
test_chat_multi_turnMethod · 0.36