MCPcopy Create free account
hub / github.com/MLSysU/TD-Pipe / from_engine_args

Method from_engine_args

TD_Pipe/engine/llm_engine.py:313–324  ·  view source on GitHub ↗

Creates an LLM engine from the engine arguments.

(cls, engine_args: EngineArgs)

Source from the content-addressed store, hash-verified

311
312 @classmethod
313 def from_engine_args(cls, engine_args: EngineArgs) -> "LLMEngine":
314 """Creates an LLM engine from the engine arguments."""
315 # Create the engine configs.
316 engine_configs = engine_args.create_engine_configs()
317 parallel_config = engine_configs[2]
318 # Initialize the cluster.
319 placement_group = initialize_cluster(parallel_config)
320 # Create the LLM engine.
321 engine = cls(*engine_configs,
322 placement_group,
323 log_stats=not engine_args.disable_log_stats)
324 return engine
325
326 def add_request(
327 self,

Callers 3

__init__Method · 0.45
api_server.pyFile · 0.45
api_server.pyFile · 0.45

Calls 2

initialize_clusterFunction · 0.90
create_engine_configsMethod · 0.80

Tested by

no test coverage detected