You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Can anyone help me convert the pre-trained model from hugging face to .pte?
I Tried this but didn't work for me
I want to create the .pte for this model
https://huggingface.co/Salesforce/blip-image-captioning-base
from transformers import AutoModel
import torch
model = AutoModel.from_pretrained("Salesforce/blip-image-captioning-base")
model.eval()
dummy_input = torch.randn(1, 3, 224, 224) # Adjust dimensions as needed
traced_model = torch.jit.trace(model, dummy_input)
traced_model.save("model.pte")
All reactions