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

Method backend

lmdeploy/cli/utils.py:388–395  ·  view source on GitHub ↗

Add argument backend to parser.

(parser)

Source from the content-addressed store, hash-verified

386
387 @staticmethod
388 def backend(parser):
389 """Add argument backend to parser."""
390
391 return parser.add_argument('--backend',
392 type=str,
393 default='turbomind',
394 choices=['pytorch', 'turbomind'],
395 help='Set the inference backend')
396
397 @staticmethod
398 def stream_output(parser):

Callers 5

add_parser_chatMethod · 0.80
add_parser_api_serverMethod · 0.80
parse_argsFunction · 0.80
parse_argsFunction · 0.80
parse_argsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected