Skip to content

vllm.utils.serial_utils

Functions:

  • numpy2base64 –

    Encode a NumPy array using its .npy representation.

  • numpy2tensor –

    Convert NumPy values to a tensor, accepting either byte order.

numpy2base64(array)

Encode a NumPy array using its .npy representation.

numpy2tensor(array)

Convert NumPy values to a tensor, accepting either byte order.