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-flan-t5-xl

LanguageMachines
/
blip2-flan-t5-xl

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 LanguageMachines/blip2-flan-t5-xl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use LanguageMachines/blip2-flan-t5-xl 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="LanguageMachines/blip2-flan-t5-xl")
    # Load model directly
    from transformers import AutoProcessor, AutoModelForMultimodalLM
    
    processor = AutoProcessor.from_pretrained("LanguageMachines/blip2-flan-t5-xl")
    model = AutoModelForMultimodalLM.from_pretrained("LanguageMachines/blip2-flan-t5-xl", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
blip2-flan-t5-xl
15.8 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 5 commits
sarang-shrivastava's picture
sarang-shrivastava
Update handler
1a9b1a2 about 3 years ago
  • .gitattributes
    1.48 kB
    Duplicate from Salesforce/blip2-flan-t5-xl about 3 years ago
  • README.md
    6.56 kB
    Duplicate from Salesforce/blip2-flan-t5-xl about 3 years ago
  • config.json
    7.68 kB
    Duplicate from Salesforce/blip2-flan-t5-xl about 3 years ago
  • handler.py
    4.64 kB
    Update handler about 3 years ago
  • preprocessor_config.json
    432 Bytes
    Duplicate from Salesforce/blip2-flan-t5-xl about 3 years ago
  • pytorch_model-00001-of-00002.bin
    9.44 GB
    xet
    Duplicate from Salesforce/blip2-flan-t5-xl about 3 years ago
  • pytorch_model-00002-of-00002.bin
    6.33 GB
    xet
    Duplicate from Salesforce/blip2-flan-t5-xl about 3 years ago
  • pytorch_model.bin.index.json
    128 kB
    Duplicate from Salesforce/blip2-flan-t5-xl about 3 years ago
  • requirements.txt
    58 Bytes
    Rename about 3 years ago
  • special_tokens_map.json
    2.2 kB
    Duplicate from Salesforce/blip2-flan-t5-xl about 3 years ago
  • spiece.model
    792 kB
    xet
    Duplicate from Salesforce/blip2-flan-t5-xl about 3 years ago
  • tokenizer.json
    2.42 MB
    Duplicate from Salesforce/blip2-flan-t5-xl about 3 years ago
  • tokenizer_config.json
    2.54 kB
    Duplicate from Salesforce/blip2-flan-t5-xl about 3 years ago