Skip to content

vllm.transformers_utils.utils

Functions:

convert_model_repo_to_path(model_repo)

When VLLM_USE_MODELSCOPE is True convert a model repository string to a Path str.

maybe_model_redirect(model) cached

Use model_redirect to redirect the model name to a local folder.

Parameters:

  • model

    (str) –

    hf model name

Returns:

  • str –

    maybe redirect to a local folder

modelscope_list_repo_files(repo_id, revision=None, token=None)

List files in a modelscope repo.

without_trust_remote_code(kwargs)

Return kwargs without trust_remote_code without modifying original dict.