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

Method adapters

lmdeploy/cli/utils.py:531–541  ·  view source on GitHub ↗

Add argument adapters to parser.

(parser)

Source from the content-addressed store, hash-verified

529
530 @staticmethod
531 def adapters(parser):
532 """Add argument adapters to parser."""
533
534 return parser.add_argument('--adapters',
535 nargs='*',
536 type=str,
537 default=None,
538 help='Used to set path(s) of lora adapter(s). One can input '
539 'key-value pairs in xxx=yyy format for multiple lora '
540 'adapters. If only have one adapter, one can only input '
541 'the path of the adapter.')
542
543 @staticmethod
544 def work_dir(parser):

Callers 2

add_parser_chatMethod · 0.80
add_parser_api_serverMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected