code: def main():
      parser = argparse.ArgumentParser(
          description="Model Convert Parameters"
      )
      parser.add_argument(
          "-i",
          "--input_path",
          type=str,
          required=True,
          help=(
              "input_path, a path to a *directory* containing model weights"
          ),
      )
      parser.add_argument(
          "-o",
          "--output_path",
          type=str,
          required=True,
          help=("output_path,save path of output quantized model."),
      )
      parser.add_argument(
          "-x",
          "--model_family",
          type=str,
          required=True,
          help=(
              "model_family: Which model family your input model belongs to."
              "Now only `llama`/`bloom`/`gptneox`/`starcoder` are supported."
          ),
      )
      parser.add_argument(
          "-t",
          "--dtype",
          type=str,
          default="int4",
          help="Which quantized precision will be converted.",
      )
      parser.add_argument(
          "-p",
          "--tmp_path",
          type=str,
          default=None,
          help="Which path to store the intermediate model during the"
          "conversion process.",
      )
      args = parser.parse_args()
      params = vars(args)
      convert_model(**params)
  
file_path: BigDL/python/llm/src/bigdl/llm/ggml/convert_model.py
imports: import os
  import time
  from pathlib import Path
  from bigdl.llm.ggml.convert import _convert_to_ggml, _convert_chatglm
  from bigdl.llm.ggml.quantize import quantize
  from bigdl.llm.utils.common import invalidInputError
  import argparse
  import tempfile
label_desc: Use image node_id 2 for calling a global function with example usage: main() without return types