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

Method communicator

lmdeploy/cli/utils.py:650–656  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

648
649 @staticmethod
650 def communicator(parser):
651 return parser.add_argument('--communicator',
652 type=str,
653 default='nccl',
654 choices=['nccl', 'native', 'cuda-ipc'],
655 help='Communication backend for multi-GPU inference. The "native" option is '
656 'deprecated and serves as an alias for "cuda-ipc"')
657
658 @staticmethod
659 def enable_microbatch(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