blip2-opt-2.7b
Salesforce AI Research (United States) · Multimodal
Which way is for me?
💻 On my own computer
No ready LM Studio version (GGUF) of this model has been published yet. Use the online way for now; this page is checked again every night and the steps will appear here when one comes out.
Similar models you can run on your computer right now:
- Qwen2.5-VL-3B-InstructQ4 2.5 GB
- Phi-3.5-mini-instructQ4 2.6 GB
- Phi-3-mini-4k-instructQ4 2.6 GB
🧑💻 For developers
vLLM
vllm serve Salesforce/blip2-opt-2.7bTransformers (Python)
from transformers import pipeline
pipe = pipeline("image-text-to-text", model="Salesforce/blip2-opt-2.7b")Words used here
- GGUF
- The file format LM Studio, Ollama and llama.cpp use to run a model.
- Quantization (Q4, Q8)
- Shrinking a model by storing numbers less precisely: Q4 smallest and slightly weaker, Q8 almost full, FP16 full.
- VRAM
- The graphics card's memory (or shared memory on a Mac); the model has to fit in it.
- Context
- The most text the model can see at once in a conversation (questions, answers and files).
- Tokens per second
- How fast the answer is written; 20 is about reading speed, 5 is slow.
From the Hugging Face model card
BLIP-2 consists of 3 models: a CLIP-like image encoder, a Querying Transformer (Q-Former) and a large language model.
Intended use
You can use the raw model for conditional text generation given an image and optional text. See the model hub to look for fine-tuned versions on a task that interests you.
Limitations
BLIP2-OPT uses off-the-shelf OPT as the language model. It inherits the same risks and limitations as mentioned in Meta's model card.
Source: Hugging Face · Salesforce/blip2-opt-2.7b · License: mit
Hardware and running it
Local Weights are published and it runs on your own hardware.
- Minimum Q4
- 2.5 GB
- Recommended Q8
- 4.5 GB
- Full quality FP16
- 9 GB
On common hardware
| RTX 4060 · 8 GB | Great | Q8 · ≈ 26–44 tokens/s |
|---|---|---|
| RTX 4090 · 24 GB | Great | FP16 · ≈ 48–81 tokens/s |
| RTX 5090 · 32 GB | Great | FP16 · ≈ 86–140 tokens/s |
| Mac M4 Max · 128 GB | Great | FP16 · ≈ 26–44 tokens/s |
| H100 · 80 GB | Great | FP16 · ≈ 160–270 tokens/s |
| 8× H100 · 640 GB | Great | FP16 · ≈ 1,290–2,140 tokens/s |
Speeds are estimates. estimated speed for one user, from memory bandwidth
Links come from the vendor's official site and the model card the vendor published · Updated: