Set weights_only=True when using torch.load() (#12366)
Signed-off-by: Russell Bryant <rbryant@redhat.com>
This commit is contained in:
@@ -26,4 +26,4 @@ class ImageAsset:
|
||||
"""
|
||||
image_path = get_vllm_public_assets(filename=f"{self.name}.pt",
|
||||
s3_prefix=VLM_IMAGES_DIR)
|
||||
return torch.load(image_path, map_location="cpu")
|
||||
return torch.load(image_path, map_location="cpu", weights_only=True)
|
||||
|
||||
Reference in New Issue
Block a user