Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

Duplicated from  Salesforce/blip2-opt-2.7b

memegpt
/
blip2_endpoint

Image-to-Text
Transformers
PyTorch
English
blip-2
visual-question-answering
vision
image-captioning
Model card Files Files and versions
xet
Community
1

Instructions to use memegpt/blip2_endpoint with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use memegpt/blip2_endpoint with Transformers:

    # Use a pipeline as a high-level helper
    # Warning: Pipeline type "image-to-text" is no longer supported in transformers v5.
    # You must load the model directly (see below) or downgrade to v4.x with:
    # 'pip install "transformers<5.0.0'
    from transformers import pipeline
    
    pipe = pipeline("image-to-text", model="memegpt/blip2_endpoint")
    # Load model directly
    from transformers import AutoProcessor, AutoModelForMultimodalLM
    
    processor = AutoProcessor.from_pretrained("memegpt/blip2_endpoint")
    model = AutoModelForMultimodalLM.from_pretrained("memegpt/blip2_endpoint", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
blip2_endpoint
15.5 GB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 2 commits
gdetari
blip2
095cf65 over 3 years ago
  • .gitattributes
    1.48 kB
    Duplicate from Salesforce/blip2-opt-2.7b over 3 years ago
  • README.md
    6.65 kB
    Duplicate from Salesforce/blip2-opt-2.7b over 3 years ago
  • config.json
    6.96 kB
    Duplicate from Salesforce/blip2-opt-2.7b over 3 years ago
  • handler.py
    820 Bytes
    blip2 over 3 years ago
  • merges.txt
    456 kB
    Duplicate from Salesforce/blip2-opt-2.7b over 3 years ago
  • preprocessor_config.json
    432 Bytes
    Duplicate from Salesforce/blip2-opt-2.7b over 3 years ago
  • pytorch_model-00001-of-00002.bin
    10 GB
    xet
    Duplicate from Salesforce/blip2-opt-2.7b over 3 years ago
  • pytorch_model-00002-of-00002.bin
    5.5 GB
    xet
    Duplicate from Salesforce/blip2-opt-2.7b over 3 years ago
  • pytorch_model.bin.index.json
    122 kB
    Duplicate from Salesforce/blip2-opt-2.7b over 3 years ago
  • requirements.txt
    94 Bytes
    blip2 over 3 years ago
  • special_tokens_map.json
    548 Bytes
    Duplicate from Salesforce/blip2-opt-2.7b over 3 years ago
  • tokenizer.json
    2.11 MB
    Duplicate from Salesforce/blip2-opt-2.7b over 3 years ago
  • tokenizer_config.json
    904 Bytes
    Duplicate from Salesforce/blip2-opt-2.7b over 3 years ago
  • vocab.json
    798 kB
    Duplicate from Salesforce/blip2-opt-2.7b over 3 years ago