MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / from_cli_args

Method from_cli_args

fastdeploy/engine/args_utils.py:1350–1358  ·  view source on GitHub ↗

Create an instance of EngineArgs from command line arguments.

(cls, args: FlexibleArgumentParser, skip_port_check=False)

Source from the content-addressed store, hash-verified

1348
1349 @classmethod
1350 def from_cli_args(cls, args: FlexibleArgumentParser, skip_port_check=False) -> "EngineArgs":
1351 """
1352 Create an instance of EngineArgs from command line arguments.
1353 """
1354 args_dict = {}
1355 for field in dataclass_fields(cls):
1356 if hasattr(args, field.name):
1357 args_dict[field.name] = getattr(args, field.name)
1358 return cls(**args_dict, skip_port_check=skip_port_check)
1359
1360 def create_speculative_config(self) -> SpeculativeConfig:
1361 """ """

Callers 8

init_appFunction · 0.80
init_engineFunction · 0.80
initialize_engine_clientFunction · 0.80
load_engineFunction · 0.80
load_data_serviceFunction · 0.80
lifespanFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected