Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion vllm/multimodal/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import torch

from vllm.utils.import_utils import PlaceholderModule
from vllm.utils.serial_utils import tensor2base64

from .base import MediaIO

Expand Down Expand Up @@ -136,4 +135,6 @@ def load_file(self, filepath: Path) -> torch.Tensor:
return torch.load(filepath, weights_only=True)

def encode_base64(self, media: torch.Tensor) -> str:
from vllm.utils.serial_utils import tensor2base64

return tensor2base64(media)