MCPcopy Index your code
hub / github.com/InternLM/lmdeploy / dp

Method dp

lmdeploy/cli/utils.py:189–195  ·  view source on GitHub ↗

Add argument dp to parser.

(parser)

Source from the content-addressed store, hash-verified

187
188 @staticmethod
189 def dp(parser):
190 """Add argument dp to parser."""
191
192 return parser.add_argument('--dp',
193 type=int,
194 default=1,
195 help='data parallelism. dp_rank is required when pytorch engine is used.')
196
197 @staticmethod
198 def ep(parser):

Callers 2

add_parser_api_serverMethod · 0.80
parse_argsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected