Instructions to use Salesforce/BLIP-Live-Gemma with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Salesforce/BLIP-Live-Gemma with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Salesforce/BLIP-Live-Gemma") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Salesforce/BLIP-Live-Gemma") model = AutoModelForMultimodalLM.from_pretrained("Salesforce/BLIP-Live-Gemma", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Salesforce/BLIP-Live-Gemma with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Salesforce/BLIP-Live-Gemma" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Salesforce/BLIP-Live-Gemma", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/Salesforce/BLIP-Live-Gemma
- SGLang
How to use Salesforce/BLIP-Live-Gemma with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Salesforce/BLIP-Live-Gemma" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Salesforce/BLIP-Live-Gemma", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Salesforce/BLIP-Live-Gemma" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Salesforce/BLIP-Live-Gemma", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use Salesforce/BLIP-Live-Gemma with Docker Model Runner:
docker model run hf.co/Salesforce/BLIP-Live-Gemma
BLIP-Live-Gemma
Paper: BLIP-Live: Balancing Timeliness & Firing Precision in Proactive Streaming Video Agents
BLIP-Live-Gemma is a Salesforce research fine-tune for proactive responses to video streams. This repository contains a complete merged multimodal model, including language and vision weights, config, tokenizer, and processor. A separate adapter or base-model download is not required.
Noncommercial release and usage request
This BLIP-Live-Gemma model release is offered under CC BY-NC 4.0 for noncommercial use, subject to the upstream-license scope described below.
This model release should not be used to compete with Google.
The Google-competition statement is a usage request, not an additional legal condition of the CC BY-NC 4.0 license.
Model details
- Base model: google/gemma-4-26B-A4B-it.
- Exact base revision:
6e6f6edea8c52db2094dca3086e4b963a0034dfc. - Architecture:
Gemma4ForConditionalGeneration. - Training adapter: LoRA rank 64, alpha 128, dropout 0.05.
- Export: full Safetensors checkpoint, retaining base dtypes; LoRA updates calculated in float32 and cast to the original weight dtype after addition.
- Lineage: Full-data T9+T4 (
lora-sg-w2-t9-t4-full), final training step 32,493. Trained for one epoch on MarkII at stride 1, with 259,938 episodes. Training combines last-response context with trailing silence; inference uses memory off.
Load
import torch
from transformers import AutoProcessor, Gemma4ForConditionalGeneration
model = Gemma4ForConditionalGeneration.from_pretrained(
"Salesforce/BLIP-Live-Gemma",
dtype=torch.bfloat16,
device_map="auto",
attn_implementation="sdpa",
)
processor = AutoProcessor.from_pretrained(
"Salesforce/BLIP-Live-Gemma",
)
Use Transformers 5.5.0-compatible model support and Accelerate for automatic device placement. The full checkpoint requires substantial device memory, plus memory for activations and the KV cache. Private-repository access requires Hugging Face authentication.
Streaming protocol
32-frame window; 256 vision tokens per frame; last-response memory off. The benchmark setup uses source FPS 2 on WEB and 6 on EGO. The streaming runtime supplies the Gemma frame and response protocol.
Use the project's GitHub inference code for streaming. Processor/tokenizer assets and the chat template in this repository are from the pinned base model. The trained streaming prompts and runtime settings are supplied by the project code. Generic chat inference does not reproduce the benchmark protocol.
Recorded evaluation
Source-adapter results, prior to merge. PAUC-F uses gpt-4.1, omega=0.5, and pauc-f-v1; TV includes current-frame subtitles only, and VAD is visual-only.
| WEB PAUC-F | EGO PAUC-F | TV PAUC-F | VAD PAUC-F |
|---|---|---|---|
| 56.46 | 43.80 | 33.27 | 31.98 |
These are single-run research measurements. Post-merge benchmark evaluation has not been performed. BF16 rounding during merging may introduce numerical differences relative to the adapter runtime.
Export verification
Every exported tensor is read back and checked. Trained weights must match the float32 LoRA merge recalculation exactly after casting; all other tensors must match the pinned base exactly. The full export and processor loaded with the standard Transformers class with no missing, unexpected, or mismatched keys. A minimal text forward pass on CPU produced finite logits. merge_manifest.json records the adapter fingerprint, base revision, target count, validation result, loading/forward checks, and per-shard SHA-256 hashes. Post-merge generation and benchmark validation were not performed.
Intended use and limitations
Intended for research on proactive video understanding. Responses can be incorrect, repeated, late, or missing. The model has not been validated for safety-critical monitoring or decisions. Its behavior depends on sampling, prompts, frame processing, and memory settings. The upstream base model's documented limitations also apply.
License
The BLIP-Live-Gemma model release, to the extent of Salesforce's rights in its fine-tuning modifications and release materials, is offered under Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0). See LICENSE.txt for the full terms. Attribution is required, and commercial use of the licensed material is not permitted under this license.
The underlying Google DeepMind Gemma 4 model and third-party materials retain their original Apache License 2.0 terms. The original Apache license text is preserved in LICENSE-APACHE-2.0.txt. See THIRD_PARTY_NOTICES.md for attribution, modification details, and license scope. This update does not revoke previously granted licenses or restrict rights in the upstream material granted independently by its licensors.
Governance
See CONTRIBUTING.md, CODE_OF_CONDUCT.md, SECURITY.md, and CODEOWNERS.
Citation
If you use BLIP-Live in your research, please cite:
@misc{ranasinghe2026bliplivebalancingtimeliness,
title={BLIP-Live: Balancing Timeliness & Firing Precision in Proactive Streaming Video Agents},
author={Kanchana Ranasinghe and Honglu Zhou and Dominick Reilly and Le Xue and Shusheng Yang and Juan Carlos Niebles and Silvio Savarese and Ran Xu},
year={2026},
eprint={2611.21553},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2611.21553},
}
- Downloads last month
- 40