Skip to content
ModelListedExternal
Download

LongVU Qwen2 7B

This repository contains the model based on Qwen2-7B as presented in LongVU: Spatiotemporal Adaptive Compression for Long Video-Language Understanding.

KindText modelBase modelVision-CAIR/LongVU_Qwen2_7B_imgVersionmodelBgrade

Model source

Kind
Text model
File size
14.3 GB
Base model
Vision-CAIR/LongVU_Qwen2_7B_img
Version
vmodel
Updated
Sep 15, 2026
Downloads
16
Source
Hugging Face

Source excerpt

This repository contains the model based on Qwen2-7B as presented in LongVU: Spatiotemporal Adaptive Compression for Long Video-Language Understanding.

Sources

1 source
Hugging FacePrimaryVersion 6f766bc0586901313a7309ae67415d59551291a7
huggingface.co/jadechoghari/LongVU_Qwen2_7B/tree/6f766bc0586901313a7309ae67415d59551291a7

Verified Aug 21

Model artifacts

1 artifact

model.safetensors

safetensors · 14.3 GB · SHA-256 e846f373072a…f3ca · Hugging Face

Download file

Source excerpts

2 excerpts

--- datasets: - shenxq/OneVision - shenxq/VideoChat2 base_model: - Vision-CAIR/LongVU_Qwen2_7B_img pipeline_tag: video-text-to-text model-index: - name: llava-onevision-qwen-7b-ov results: - task: type: multimodal dataset: name: EgoSchema type: egoschema metrics: - type: accuracy value: 67.6 name: accuracy verified: true - task: type: multimodal dataset: name: MLVU type: mlvu metrics: - type: accuracy value: 65.4 name: accuracy verified: true - task: type: multimodal dataset: name: MVBench type: mvbench metrics: - type: accuracy value: 66.9 name: accuracy verified: true - task: type: multimodal dataset: name: VideoMME type: videomme metrics: - type: accuracy value: 60.6 name: accuracy verified: true library_name: transformers --- # LongVU This repository contains the model based on Qwen2-7B as presented in [LongVU: Spatiotemporal Adaptive Compression for Long Video-Language Understanding](https://huggingface.co/papers/2410.17434). Play with the model on the [HF demo](https://huggingface.co/spaces/Vision-CAIR/LongVU). <div align="left"> <a href='https://vision-cair.github.io/LongVU'><img src="https://longvu.s3.amazonaws.com/assets/demo.gif" alt="Demo GIF" style="width: 100%; max-width: 650px;"></a> </div> # Use We provide the simple generation process for using our model. For more details, you could refer to [Github](https://github.com/Vision-CAIR/LongVU) ```python # git clone https://github.com/Vision-CAIR/LongVU import numpy as np import torch from longvu.builder import load_pretrained_model from longvu.constants import ( DEFAULT_IMAGE_TOKEN, IMAGE_TOKEN_INDEX, ) from longvu.conversation import conv_templates, SeparatorStyle from longvu.mm_datautils import ( KeywordsStoppingCriteria, process_images, tokenizer_image_token, ) from decord import cpu, VideoReader tokenizer, model, image_processor, context_len = load_pretrained_model( "./checkpoints/longvu_qwen", None, "cambrian_qwen", ) model.eval() video_path = "./examples/video1.mp4" qs = "Describe this video in detail" vr = VideoReader(video_path, ctx=cpu(0), num_threads=1) fps = float(vr.get_avg_fps()) frame_indices = np.array([i for i in range(0, len(vr), round(fps),)]) video = [] for frame_index in frame_indices: img = vr[frame_index].asnumpy() video.append(img) video = np.stack(video) image_sizes = [video[0].shape[:2]] video = process_images(v...

Source context: 16 downloads · 1 likes · Pipeline video-text-to-text · Library transformers · Repo jadechoghari/LongVU_Qwen2_7B