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

Method trust_remote_code

lmdeploy/cli/utils.py:786–791  ·  view source on GitHub ↗

Add argument trust_remote_code to parser.

(parser)

Source from the content-addressed store, hash-verified

784
785 @staticmethod
786 def trust_remote_code(parser):
787 """Add argument trust_remote_code to parser."""
788 return parser.add_argument('--trust-remote-code',
789 action='store_true',
790 default=False,
791 help='Whether to trust remote code from model repositories.')
792
793
794# adapted from https://github.com/vllm-project/vllm/blob/main/vllm/utils/__init__.py

Callers 7

add_parser_chatMethod · 0.80
add_parser_api_serverMethod · 0.80
add_parser_auto_awqMethod · 0.80
add_parser_auto_gptqMethod · 0.80
add_parser_calibrateMethod · 0.80
parse_argsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected