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

Method from_engine_args

fastdeploy/engine/engine.py:66–79  ·  view source on GitHub ↗

Creates an LLM engine from the provided engine arguments. Args: engine_args (EngineArgs): Engine arguments object. Returns: LLMEngine: Instance of the LLMEngine class.

(cls, engine_args: EngineArgs)

Source from the content-addressed store, hash-verified

64
65 @classmethod
66 def from_engine_args(cls, engine_args: EngineArgs):
67 """
68 Creates an LLM engine from the provided engine arguments.
69
70 Args:
71 engine_args (EngineArgs): Engine arguments object.
72
73 Returns:
74 LLMEngine: Instance of the LLMEngine class.
75 """
76 # Create the engine configs.
77 config = engine_args.create_engine_config()
78 # Create the LLMEngine.
79 return cls(cfg=config)
80
81 def __init__(self, cfg):
82 """

Callers 6

__init__Method · 0.45
init_appFunction · 0.45
init_engineFunction · 0.45
load_engineFunction · 0.45
setUpClassMethod · 0.45
_testMethod · 0.45

Calls 1

create_engine_configMethod · 0.45

Tested by 2

setUpClassMethod · 0.36
_testMethod · 0.36