vllm.transformers_utils.runai_utils ¶
   runai_model_streamer  module-attribute  ¶
 runai_model_streamer = PlaceholderModule(
    "runai_model_streamer"
)
  ObjectStorageModel ¶
 A class representing an ObjectStorage model mirrored into a temporary directory.
Attributes:
| Name | Type | Description | 
|---|---|---|
dir |    The temporary created directory.  |  
Methods:
| Name | Description | 
|---|---|
pull_files |    Pull model from object storage to the temporary directory.  |  
Source code in vllm/transformers_utils/runai_utils.py
   __init__ ¶
 __init__(url: str) -> None
Source code in vllm/transformers_utils/runai_utils.py
   _close ¶
     _close_by_signal ¶
     pull_files ¶
 pull_files(
    model_path: str = "",
    allow_pattern: list[str] | None = None,
    ignore_pattern: list[str] | None = None,
) -> None
Pull files from object storage into the temporary directory.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
 model_path  |   str  |    The object storage path of the model.  |   ''  |  
 allow_pattern  |   list[str] | None  |    A list of patterns of which files to pull.  |   None  |  
 ignore_pattern  |   list[str] | None  |    A list of patterns of which files not to pull.  |   None  |  
Source code in vllm/transformers_utils/runai_utils.py
   is_runai_obj_uri ¶
     list_safetensors ¶
  List full file names from object path and filter by allow pattern.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
 path  |   str  |    The object storage path to list from.  |   ''  |  
Returns:
| Type | Description | 
|---|---|
 list[str]  |    list[str]: List of full object storage paths allowed by the pattern  |