class_docstr: Arguments for vLLM engine.
class_docstr_tok: ["Arguments","for","vLLM","engine","."]
code: def from_cli_args(cls, args: argparse.Namespace) -> "EngineArgs":
      # Get the list of attributes of this dataclass.
      attrs = [attr.name for attr in dataclasses.fields(cls)]
      # Set the attributes from the parsed arguments.
      engine_args = cls(**{attr: getattr(args, attr) for attr in attrs})
      return engine_args
  
file_path: BigDL/python/llm/src/bigdl/llm/vllm/engine/arg_utils.py
imports: import argparse
  import dataclasses
  from dataclasses import dataclass
  from typing import Optional, Tuple
  from bigdl.llm.vllm.config import ModelConfig, SchedulerConfig
label_desc: Use image node_id 3 for calling the EngineArgs obj's underlying member method code with example usage: obj.from_cli_args(cls, args) and returns: engine_args