vllm.transformers_utils.utils
¶
Functions:
-
convert_model_repo_to_path–When VLLM_USE_MODELSCOPE is True convert a model
-
maybe_model_redirect–Use model_redirect to redirect the model name to a local folder.
-
modelscope_list_repo_files–List files in a modelscope repo.
-
without_trust_remote_code–Return kwargs without trust_remote_code without modifying original dict.
convert_model_repo_to_path(model_repo)
¶
When VLLM_USE_MODELSCOPE is True convert a model repository string to a Path str.
Source code in vllm/transformers_utils/utils.py
maybe_model_redirect(model)
cached
¶
Use model_redirect to redirect the model name to a local folder.
Parameters:
Returns:
-
str–maybe redirect to a local folder
Source code in vllm/transformers_utils/utils.py
modelscope_list_repo_files(repo_id, revision=None, token=None)
¶
List files in a modelscope repo.
Source code in vllm/transformers_utils/utils.py
without_trust_remote_code(kwargs)
¶
Return kwargs without trust_remote_code without modifying original dict.