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

trojblue
/
blip2-opt-6.7b-coco-fp16

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 trojblue/blip2-opt-6.7b-coco-fp16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use trojblue/blip2-opt-6.7b-coco-fp16 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="trojblue/blip2-opt-6.7b-coco-fp16")
    # Load model directly
    from transformers import AutoProcessor, AutoModelForMultimodalLM
    
    processor = AutoProcessor.from_pretrained("trojblue/blip2-opt-6.7b-coco-fp16")
    model = AutoModelForMultimodalLM.from_pretrained("trojblue/blip2-opt-6.7b-coco-fp16", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
blip2-opt-6.7b-coco-fp16
15.9 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
trojblue's picture
trojblue
Update README.md
ed9f60b about 3 years ago
  • .gitattributes
    1.52 kB
    initial commit about 3 years ago
  • README.md
    2.6 kB
    Update README.md about 3 years ago
  • config.json
    6.93 kB
    adding model files about 3 years ago
  • merges.txt
    456 kB
    adding model files about 3 years ago
  • preprocessor_config.json
    432 Bytes
    adding model files about 3 years ago
  • pytorch_model-00001-of-00002.bin
    9.97 GB
    xet
    adding model files about 3 years ago
  • pytorch_model-00002-of-00002.bin
    5.95 GB
    xet
    adding model files about 3 years ago
  • pytorch_model.bin.index.json
    122 kB
    adding model files about 3 years ago
  • special_tokens_map.json
    548 Bytes
    adding model files about 3 years ago
  • tokenizer.json
    2.11 MB
    adding model files about 3 years ago
  • tokenizer_config.json
    904 Bytes
    adding model files about 3 years ago
  • vocab.json
    798 kB
    adding model files about 3 years ago