vllm.transformers_utils.runai_utils ¶
Classes:
-
ObjectStorageModel–A class representing an ObjectStorage model mirrored into a
Functions:
-
list_safetensors–List full file names from object path and filter by allow pattern.
ObjectStorageModel ¶
A class representing an ObjectStorage model mirrored into a temporary directory.
Attributes:
-
dir–The temporary created directory.
Methods:
-
pull_files–Pull model from object storage to the temporary directory.
Source code in vllm/transformers_utils/runai_utils.py
pull_files(model_path='', allow_pattern=None, ignore_pattern=None) ¶
Pull files from object storage into the temporary directory.
Parameters:
-
(model_path¶str, default:'') –The object storage path of the model.
-
(allow_pattern¶list[str] | None, default:None) –A list of patterns of which files to pull.
-
(ignore_pattern¶list[str] | None, default:None) –A list of patterns of which files not to pull.
Source code in vllm/transformers_utils/runai_utils.py
list_safetensors(path='') ¶
List full file names from object path and filter by allow pattern.
Parameters:
Returns: