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

Method session_len

lmdeploy/cli/utils.py:250–254  ·  view source on GitHub ↗
(parser, default: int = None)

Source from the content-addressed store, hash-verified

248
249 @staticmethod
250 def session_len(parser, default: int = None):
251 return parser.add_argument('--session-len',
252 type=int,
253 default=default,
254 help='The max session length of a sequence')
255
256 @staticmethod
257 def max_batch_size(parser):

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected