NEWVectors or files. Pick a path.Start →
    Models/Captioning/Salesforce/blip2-opt-2.7b
    HFScene Captioningmit

    blip2-opt-2.7b

    by Salesforce

    Bootstrapping Language-Image Pre-training with frozen LLMs

    448Kdl/month
    447likes
    3.7Bparams
    Identifiers
    Model ID
    Salesforce/blip2-opt-2.7b

    Deploy blip2-opt-2.7b

    Single-tenant

    Mixpeek has no managed extractor for this model. On a single-tenant deployment you upload the weights and a custom plugin serves them next to the rest of your pipeline.

    Overview

    BLIP-2 bridges the modality gap between vision and language using a lightweight Querying Transformer (Q-Former) that connects a frozen image encoder to a frozen large language model. This enables powerful visual question answering and image captioning.

    On Mixpeek, BLIP-2 generates rich natural language descriptions of video frames and images, making visual content searchable with full-text queries.

    Architecture

    Three-stage architecture: (1) frozen ViT-G/14 image encoder, (2) Q-Former with 32 learnable query tokens that bridge vision and language, (3) frozen OPT 2.7B language model. Only the Q-Former is trained.

    How it runs

    Inference INPUT MODEL OUTPUT Image object Text object blip2-opt-2.7b mp.inference Text vector Vector store MVS blip2-opt-2.7b → embeddings, indexed for search
    blip2-opt-2.7b takes image and text, and Mixpeek indexes what it emits.

    Mixpeek SDK Integration

    // No extractor parameter takes a Hugging Face model id (checked against
    // GET /v1/discovery/extractors, which returns 13), so blip2-opt-2.7b runs
    // on your side and the output is upserted through POST
    // /v1/namespaces/{namespace_id}/documents/upsert. On Enterprise the other
    // path is to upload the weights instead: POST /v1/namespaces/{id}/models
    // accepts the huggingface format and a custom plugin loads them.
    const res = await fetch(
      "https://api.mixpeek.com/v1/namespaces/ns_your_namespace/documents/upsert",
      {
        method: "POST",
        headers: {
          Authorization: "Bearer API_KEY",
          "Content-Type": "application/json",
        },
        body: JSON.stringify({
          collection_id: "col_your_collection",
          documents: [
            {
              document_id: "asset-00412",
              // The model produces text, so it lands in payload. Give the
              // collection a text vector index and embed that text to make it
              // searchable rather than only filterable.
              payload: { extracted_text: modelOutput, source_key: "archive/2026/asset-00412" },
              vectors: { "multimodal-embedding": embeddingOfModelOutput },
            },
          ],
        }),
      },
    );
    
    // Managed alternative, if this exact model is not the requirement:
    // universal_extractor@v1 runs google/gemini-embedding-2
    // (3072-d) over a bucket, with no inference of your own.

    Capabilities

    • Natural language scene descriptions
    • Visual question answering
    • Image-grounded text generation
    • Zero-shot visual reasoning

    Use Cases on Mixpeek

    Auto-captioning video archives for accessibility and search
    Content discovery, find scenes by natural language description
    Automated metadata generation for media asset management
    Visual Q&A over surveillance or training footage

    Benchmarks

    DatasetMetricScoreSource
    COCO CaptioningCIDEr145.8Li et al., 2023: Table 3
    VQAv2 (test-dev)Accuracy65.0%Li et al., 2023: Table 4
    NoCaps (val)CIDEr121.6Li et al., 2023: Table 3

    Performance

    Input Size224×224 px
    GPU Latency~45ms / image (A100)
    CPU Latency~680ms / image
    GPU Throughput~22 images/sec (A100)
    GPU Memory~6.2 GB

    Includes OPT-2.7B LLM decoder for caption generation

    Specification

    FrameworkHF
    OrganizationSalesforce
    FeatureScene Captioning
    Outputtext
    Modalitiesvideo, image
    RetrieverSemantic Search
    Parameters3.7B
    Licensemit
    Downloads/mo448K
    Likes447

    Research Paper

    BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models

    arxiv.org

    Build a pipeline with blip2-opt-2.7b

    Add this model to a processing pipeline alongside other extractors. Combine with retrieval stages for end-to-end search.

    Run it on your own data, free