OFA-Sys/ONE-PEACE

Kernel died

apking2000 opened this issue · 4 comments

import torch
from one_peace.models import from_pretrained

device = "cuda" if torch.cuda.is_available() else "cpu"
model = from_pretrained("ONE-PEACE", device=device, dtype="float32")

when i try to load model my kernel died can you tell me the specification of device like memory requirements, gpu memory allocation etc?

We only tested on a 40GB A100. You can try setting dtype='float16'.

@apking2000 For guidance on implementing text+image to image retrieval, you can refer to multi-modal-embedding. To accomplish this, simply calculate the mean of text_features and image_features, and then employ the combined features to retrieve images.