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)
| 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 | """ |
nothing calls this directly
no test coverage detected