Run this model with HF Jobs

Run Salesforce/BLIP-Live-Jev on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/Salesforce/BLIP-Live-Jev. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/Salesforce/BLIP-Live-Jev on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

BLIP-Live-Jev — RL-320

BLIP-Live-Jev is a streaming video controller based on Qwen3.5-2B, adapted with LoRA and a candidate-conditioned pointer head. At each decision it selects one of three actions, in this order:

Action Meaning
Silence No relevant visual evidence warrants a response now.
Hold Relevant evidence is present, but responding would repeat an ongoing or previous response.
Response Sufficient new visual evidence is available to answer the user's request.

This repository contains the complete merged RL step 320 controller: the Qwen3.5-2B language and vision weights with the RL-trained LoRA updates merged in, the trained pointer head, tokenizer, processor, and controller inference code. No separate Qwen base-model download is required.

The controller returns Silence / Hold / Response; it does not generate answers. The intended external answer generator is the unmodified base Qwen/Qwen3.5-35B-A3B, not Salesforce/BLIP-Live. No answer-generator weights or generator implementation are included. Training data and optimizer/RNG state are also excluded.

Model details

Property Value
Base model Qwen/Qwen3.5-2B
Base revision 15852e8c16360a2fea060d615a32b45270f8a8fc
Adaptation RL-320 LoRA merged into the full base; rank 64, alpha 128 during training
Pointer readout Query/key projections, hidden size 2048, pointer width 256
Action order Silence, Hold, Response
Frame sampling 1 FPS
Context Up to 32 frames; 144 vision tokens per frame
History Self-generated causal action/answer history
Evaluation decision rule Raw action-logit argmax

Released files

config.json
model-00001-of-00003.safetensors
model-00002-of-00003.safetensors
model-00003-of-00003.safetensors
model.safetensors.index.json
pointer_head.safetensors
chat_template.jinja, tokenizer and processor assets
model.json
merge_manifest.json
commit.json
load_controller.py
controller_runtime.py
inference.py
requirements.txt
evaluation_results.json

The full model weights occupy approximately 4.55 GB, plus the 4.2 MB pointer head and tokenizer/processor assets. LoRA updates are computed in float32 and cast back to each base tensor's dtype. The pointer head is stored losslessly in Safetensors. merge_manifest.json records provenance, tensor verification, and weight SHA-256 hashes; commit.json records release-file hashes.

Getting started

Use Python 3.12 and a CUDA-compatible PyTorch installation for practical inference. CPU execution is available for slow functional checks. GPU memory requirements and throughput have not been characterized for this release; context length increases memory beyond the stored weight size.

Download this repository, including its Python files, then install dependencies:

pip install huggingface-hub==1.8.0
# For this private repo, authenticate with an account that has access first:
# hf auth login
hf download Salesforce/BLIP-Live-Jev --local-dir BLIP-Live-Jev
cd BLIP-Live-Jev
pip install -r requirements.txt

Video command

python inference.py --checkpoint . --video /path/to/video.mp4 \
  --question "Tell me when someone picks up the cup." --device cuda:0

The command samples at 1 FPS and prints JSON decisions. It stops at the first Response so your application can generate the answer externally. Use the Python API below to supply that answer and continue. The controller never invents answer text or silently substitutes a response history.

Streaming Python API

Run from the downloaded repository directory:

from inference import StreamingController, video_frames

controller = StreamingController.from_pretrained(".", device="cuda:0")
session = controller.start("Tell me when someone picks up the cup.")

# Supply your own answer-generation integration. It is not part of this repo.
for timestamp, image in video_frames("/path/to/video.mp4"):
    decision = session.step(image, timestamp=timestamp)
    print(decision)
    if decision["action"] == "Response":
        answer = your_external_generator(session, image, timestamp)
        session.record_response(answer)

your_external_generator is application code that calls the separate base Qwen3.5-35B-A3B model with the appropriate causal video/question/history inputs. It is not a function supplied by this repository. If you only need the next controller decision, stop after session.step returns Response.

Pass RGB PIL images sampled once per second. step returns the action, three logits, and probabilities in the order Silence / Hold / Response. A session keeps up to 32 frames, caches their visual features, and preserves the most recent answer that has moved outside the visual window. After Response, call record_response with the actual generated answer before submitting another frame. Use controller.start(...) to reset state for a new video/question.

The API can also load this HF repo directly after you have downloaded its Python files: StreamingController.from_pretrained("Salesforce/BLIP-Live-Jev"). All model and processor assets are resolved from this repository, never the upstream Qwen model repository. A fully downloaded local snapshot loads offline.

Standard Transformers loading

For integrations that already implement the pointer decision rule:

from load_controller import load_controller
processor, model, head = load_controller(".", device="cuda:0")

The full multimodal backbone also supports standard Qwen3_5ForConditionalGeneration.from_pretrained("Salesforce/BLIP-Live-Jev") and AutoProcessor.from_pretrained("Salesforce/BLIP-Live-Jev"). That loads the backbone; use the supplied helper to restore the separate pointer head too. Generic model.generate() does not implement controller decisions.

Validation

Every exported base tensor was read back: all 150 LoRA target tensors match the merge calculation exactly; all remaining tensors match the pinned base exactly. The pointer head's tensors are unchanged. See merge_manifest.json for details. The release also undergoes an offline CPU image-to-action smoke test. This does not constitute a new benchmark evaluation or a GPU performance measurement.

Training and provenance

The project documents supervised controller training on BLIP-Live-780K, followed by RL using BLIP-Live-780K + ESTP-IT. The implementation uses source-balanced episode RLOO with a frozen SFT reference, KL regularization, entropy regularization, and supervised replay.

The released checkpoint records policy version 320 and seed 42. The release name follows the corrected source-checkpoint metadata: a prior save-counter error was corrected to 320 without changing the adapter or pointer-head weights. The current repository's example RL configuration is not an authoritative record of every hyperparameter used to train this historical checkpoint. Exact historical compute, duration, and complete training hyperparameters are not asserted here.

Evaluation

These are recorded full native WEB and EGO evaluations of rl_s320, judged by GPT-4.1. Scores are reported on a 0–100 scale. The scoring protocol uses earliest-positive-per-turn assignment with disjoint windows.

Benchmark Videos PAUC-F, ω=0 PAUC-F, ω=0.5 PAUC-F, ω=1 Fire precision
WEB 500 53.76 58.50 62.79 73.92
EGO 326 41.81 43.76 45.59 53.78

evaluation_results.json preserves these historical aggregate metrics. These scores depend on the complete controller-plus-generator system and the judge. The archived evaluation configuration names Qwen3.5-35B-A3B at revision 59d61f3ce65a6d9863b86d2e96597125219dc754, a separate fine-tuned generator adapter, and a 96-token budget. The intended external generator for this controller release is the base Qwen3.5-35B-A3B without that adapter. The historical scores have not been verified with the intended base-generator integration and must not be interpreted as its measured performance.

WEB used the recorded native reference runtime; EGO used the project's optimized runtime. Merging the controller weights has not been followed by a benchmark rerun. Results for TV, VAD, and ESTP-Bench are not supplied for this release.

Intended uses and limitations

The controller is intended for research on response timing in streaming video assistants. Its evaluation covers the listed benchmarks and settings. It can miss events, respond late, or trigger redundant responses. Sampling at 1 FPS and using a bounded visual context can miss brief events or earlier evidence. Answer quality also depends on the separate generator. Biases and limitations of the base model and training data can carry into this controller; the supplied results do not establish performance across populations or deployment settings.

Licensing and attribution

Salesforce controller fine-tuning modifications and pointer-head weights are released under CC BY-NC 4.0, to the extent of Salesforce's rights in its modifications.

Code and documentation are covered by Apache License 2.0. Upstream base models retain their original licenses. The pointer readout is adapted from JevAny, commit b273aea682e5b748a2605808e52ccafb7a378924, under Apache License 2.0. The upstream Qwen base weights, tokenizer, processor, and configuration are included and retain their Apache-2.0 terms, preserved in LICENSE-QWEN.txt. See THIRD_PARTY_NOTICES.md for attribution and license scope.

See CONTRIBUTING.md, CODE_OF_CONDUCT.md, and SECURITY.md for contributions, community conduct, and security reports.

Downloads last month
15
Safetensors
Model size
2B params
Tensor type
F32
·
BF16
·
Video Preview
loading

Model tree for Salesforce/BLIP-Live-Jev

Finetuned
Qwen/Qwen3.5-2B
Finetuned
(831)
this model
⌂ 换网址