ModelTencent HunyuanTencent Hunyuanpublished Nov 24, 2026seen 4d

tencent/OmniEVIE-4B

Open original ↗

Captured source

source ↗
published Nov 24, 2026seen 4dcaptured 4dhttp 200method plaintask feature-extractionlicense apache-2.0library sentence-transformersparams 4.5Bdownloads 688likes 28

---

OmniEVIE-4B is a 4.5B-parameter unified multi-modal, multi-vector retrieval model by Tencent IMA Product Center and Tencent Youtu Lab. Built on Qwen3.5 with bidirectional full-attention layers, Prefix-MRL projection, spatio-temporal Ward clustering (ST-HAC), and a learned query saliency gate (query_gate.safetensors), it distills every document into at most 128 × 64D int8 vectors (≤ 9,472 bytes/record, 8.82 GiB per 1M records)—retrieving across a million records in 54.2 ms on one CPU thread while tracing every hit straight back to its page region or video second.

---

Seeing Where the Answer Lives

Fine-Grained Page & Long-Video Localization

Every retrieval hit carries its own spatial or temporal coordinates—highlighting the matched table row, cross-lingual answer sentence, chart bar, or timestamp span without external OCR or video-captioning models.

Real retrieval hits on ViDoRe V3 pages and a 150-second QVHighlights clip (QVHighlights val, 1,083 queries: 78.0% peak-in-segment hit, 94.3% span intersection, 18% average span).

Native Video Moment Localization

Returned intervals and peak timestamps across three 150-second QVHighlights videos directly from the compressed multi-vector index.

Token-Level Alignment & Query Saliency Gate

Per-token cluster matches, learned saliency gate weights (τ = 0.6), and noise-floor margin (θ = 0.38) on a 966-patch page compressed to 128 int8 clusters.

---

A Compact Memory for Every Modality

| Feature | Specification | |---|---| | Parameters | 4.54B (BF16, model.safetensors) + query_gate.safetensors | | Modalities | Text · Natural Image · Visual Document · Native Video · Agent / Tool / GUI / Memory | | Elastic Dimensions | Prefix-MRL single head: {64, 128, 256, 512, 1024, 2048} at runtime | | Index Footprint | 8.82 GiB / 1M records (K128×d64 int8), or 2.15 GiB / 1M (K32×d64 int8) | | Search Latency | 54.2 ms (1M) / 120.2 ms (5M) on a single CPU thread | | Evidence Localization | Direct page bounding box & video timestamp interval from retrieval argmax | | License | Apache-2.0 (LICENSE.txt) |

Unified ST-HAC clustering, sphere-renormalized centroids, fixed-scale int8 quantization, and exact per-record byte layout.

Three-stage retrieval funnel on 1M records (14.6 ms coarse + 19.7 ms Hamming + 19.9 ms int8 = 54.2 ms single-thread CPU).

---

Quick Start

Install the inference and indexing package from Tencent/OmniEVIE:

pip install git+https://github.com/Tencent/OmniEVIE.git

> flash-attn>=2.7.0 is required (attn_implementation="flash_attention_2"; verified with torch 2.7.1, transformers 5.13–5.17, flash-attn 2.8.1).

from omnievie import OmniEVIE, QueryGate, ThreeStageIndex

model = OmniEVIE.from_pretrained("tencent/OmniEVIE-4B", device="cuda")
gate = QueryGate.from_pretrained("tencent/OmniEVIE-4B")

# 1. Encode and index documents across modalities
index = ThreeStageIndex()
for path in ["photos/fda_slide.png", "clips/news_segment.mp4", "notes/report.txt"]:
modality, vectors = model.encode_document(path)
index.add(path, vectors, modality)
index.save("index.pt")

# 2. Retrieve with three-stage index + learned query saliency gate
query = model.encode_query(text="Two TV show hosts sit on a red couch and discuss the news.", target="video")
weights = gate.weights(query.vectors, query.vision_mask, query.aug_mask, query.has_text)
hits = index.search(query.vectors, weights=weights, modality="video", topk=3)
print("search:", hits)

# 3. Direct evidence localization on a matched page
q_doc = model.encode_query(text="Did the FDA's 2018 Strategic Policy Roadmap eliminate clinical trials?", target="image")
w_doc = gate.weights(q_doc.vectors, q_doc.vision_mask, q_doc.aug_mask, q_doc.has_text)
page_loc = model.localize_image(q_doc, "photos/fda_slide.png", weights=w_doc)
print("top page region (x0, y0, x1, y1):", page_loc.top_box)

Example output:

search: [('clips/news_segment.mp4', 41.827)]
top page region (x0, y0, x1, y1): (0.1429, 0.1304, 0.4524, 0.2174)

Visualized output of the Quick Start snippet: three-stage text-to-video retrieval on clips/news_segment.mp4 (left) and normalized top_box evidence localization on photos/fda_slide.png (right).

---

Evaluations & Benchmarks

(a) MMEB-V3 overall accuracy (190 tasks) across model scales; (b) single-thread CPU retrieval latency from 100K to 5M records.

MMEB-V3 (190 Tasks)

| Model | All (190) | Text (53) | T-RR | T-IF | T-LC | T-MC | T-GR | Agent (47) | Tool | GUI | Memory | MCMR | |---|---:|---:|---:|---:|---:|---:|---:|---:|---:|---:|---:|---:| | Qwen3-VL-Embedding-2B | 50.90 | 39.20 | 16.60 | 40.60 | 53.10 | 61.20 | 58.00 | 39.30 | 42.60 | 30.40 | 28.40 | 42.00 | | Qwen3-VL-Embedding-8B | 53.50 | 42.50 | 18.20 | 44.80 | 58.00 | 61.20 | 61.20 | 38.40 | 41.30 | 33.50 | 22.80 | 38.00 | | WeMM-Embedding-2B | 55.77 | 45.34 | 26.29 | 49.30 | 61.90 | 59.72 | 58.74 | 44.05 | 46.23 | 38.87 | 35.38 | 42.51 | | WeMM-Embedding-4B | 57.97 | 47.88 | 30.01 | 52.02 | 62.43 | 60.14 | 61.09 | 48.06 | 50.58 | 41.44 | 39.19 | 41.91 | | WeMM-Embedding-9B | 59.33 | 48.76 | 31.82 | 52.78 | 64.48 | 58.28 | 61.12 | 50.10 | 52.95 | 43.33 | 38.65 | 49.34 | | OmniEVIE-4B (`K128×d64 int8`, 8-fr) | 59.76 | 51.77 | 26.36 | 69.65 | 70.71 | 67.75 | 63.58 | 54.03 | 58.84 | 41.34 | 37.35 | 47.39 | | OmniEVIE-4B (`K128×d64 int8`, 32-fr) | 60.06 | 51.77 | 26.36 | 69.65 | 70.71 | 67.75 | 63.58 | 54.03 | 58.84 | 41.34 | 37.35 | 47.39 | | OmniEVIE-4B (Full Sequence `d=2048`) | 60.68 | 52.97 | 27.46 | 70.81 | 73.04 | 68.55 | 64.60 | 54.14 | 58.81 | 42.00 | 37.60 | 49.74 |

MMEB-V2 (78 Tasks)

| Model | All (78) | Image (36) | Video (18) | VisDoc (24) | |---|---:|---:|---:|---:| | Qwen3-VL-Embedding-2B | 73.25 | 74.96 | 61.87 | 79.22 | | Qwen3-VL-Embedding-8B | 77.82 | 80.12 | 67.15 | 82.36 | | WeMM-Embedding-2B | 77.94 | 79.63 | 70.82 | 80.75 | | WeMM-Embedding-4B | 79.19 | 80.84 | 72.11 | 82.04 | | WeMM-Embedding-9B | 80.58 | 81.87 | 74.31 | 83.34 | | OmniEVIE-4B (`K128×d64 int8`, 8-fr) | 77.24 | 78.09 | 66.49 | 84.02 | |...

Excerpt shown — open the source for the full document.

Notability

notability 7.0/10

Notable model release by major lab, moderate size.