Downloads · 30 days
5
7% of all-time downloads
AnnaelleMyriam/videomae-qwen-connectors
videomae-qwen-connectors is a machine learning model from AnnaelleMyriam. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Trained connector layers for fusing VideoMAE-v2 with Qwen2.5-VL for video captioning.
Downloads · 30 days
5
7% of all-time downloads
All-time downloads
75
Public
Repo size
170 MB
Likes
0
Public
Click a slice to open those files.
.pth170 MB · 100%
From the Hugging Face model README
Trained connector layers for fusing VideoMAE-v2 with Qwen2.5-VL for video captioning.
This repository contains only the trained connector weights (Perceiver Resampler + MLP Projector), not the full model.
Base models (frozen during training):
AnnaelleMyriam/videomaev2-finetuned-finebioQwen/Qwen2.5-VL-3B-Instruct# Create model
model = VideoMAEQwenFusion(
videomae_model_path="AnnaelleMyriam/videomaev2-finetuned-finebio",
qwen_model_path="Qwen/Qwen2.5-VL-3B-Instruct",
num_query_tokens=64,
resampler_num_heads=8,
resampler_num_layers=2,
mlp_hidden_dim=4096,
mlp_num_layers=3,
mlp_dropout=0.1,
)
# Download connector weights
weights_path = hf_hub_download(
repo_id="AnnaelleMyriam/videomae-qwen-connectors",
filename="connector_weights.pth"
)
# Load weights
connector_weights = torch.load(weights_path, map_location="cpu")
model.load_state_dict(connector_weights, strict=False)
model.eval()
model.to("cuda")
Apache 2.0