Skip to content

vllm.transformers_utils.runai_utils

Classes:

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.

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.

list_safetensors(path='')

List full file names from object path and filter by allow pattern.

Parameters:

  • path

    (str, default: '' ) –

    The object storage path to list from.

Returns:

  • list[str] –

    list[str]: List of full object storage paths allowed by the pattern