vllm.transformers_utils.utils ¶
   _maybe_json_dict ¶
     _maybe_space_split_dict ¶
  Source code in vllm/transformers_utils/utils.py
   check_gguf_file ¶
  Check if the file is a GGUF model.
Source code in vllm/transformers_utils/utils.py
   convert_model_repo_to_path ¶
  When VLLM_USE_MODELSCOPE is True convert a model repository string to a Path str.
Source code in vllm/transformers_utils/utils.py
   is_s3 ¶
     maybe_model_redirect  cached  ¶
  Use model_redirect to redirect the model name to a local folder.
:param model: hf model name :return: maybe redirect to a local folder
Source code in vllm/transformers_utils/utils.py
   modelscope_list_repo_files ¶
 modelscope_list_repo_files(
    repo_id: str,
    revision: str | None = None,
    token: str | bool | None = None,
) -> list[str]
List files in a modelscope repo.