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

Method from_engine_args

fastdeploy/engine/async_llm.py:262–275  ·  view source on GitHub ↗

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

(cls, engine_args: EngineArgs, pid)

Source from the content-addressed store, hash-verified

260
261 @classmethod
262 def from_engine_args(cls, engine_args: EngineArgs, pid):
263 """
264 Creates an AsyncLLM client from the provided engine arguments.
265
266 Args:
267 engine_args (EngineArgs): Engine arguments object.
268
269 Returns:
270 AsyncLLM: Instance of the AsyncLLM class.
271 """
272 # Create the engine configs.
273 config = engine_args.create_engine_config()
274 # Create the AsyncLLM client.
275 return cls(cfg=config, pid=pid)
276
277 def __init__(self, cfg, pid):
278 """

Callers

nothing calls this directly

Calls 1

create_engine_configMethod · 0.45

Tested by

no test coverage detected