Is there any way to Blip2 on Sagemaker

#24
by NaveenPanuganti - opened

Hi Team,

I am trying to deploy Blip2 on sagemaker created a new inference.py as per below link, but cloned Salesforce/blip2-opt-2.7b instead of base model, but the deploying works when i invoke "predictor.predict(data=data)", we get an error message saying "cannot import from transformers import BlipProcessor, BlipForConditionalGeneration"
https://github.com/DSCO-Co/SageMaker-image-to-text/blob/main/image-to-text-deployer.ipynb

Any help is appreciated

Sign up or log in to comment