Views
No views yet
AnnaelleMyriam/videomaev2-finetuned-finebioQwen/Qwen2.5-VL-3B-Instruct1# Create model
2model = VideoMAEQwenFusion(
3 videomae_model_path="AnnaelleMyriam/videomaev2-finetuned-finebio",
4 qwen_model_path="Qwen/Qwen2.5-VL-3B-Instruct",
5 num_query_tokens=64,
6 resampler_num_heads=8,
7 resampler_num_layers=2,
8 mlp_hidden_dim=4096,
9 mlp_num_layers=3,
10 mlp_dropout=0.1,
11)
12
13# Download connector weights
14weights_path = hf_hub_download(
15 repo_id="AnnaelleMyriam/videomae-qwen-connectors",
16 filename="connector_weights.pth"
17)
18
19# Load weights
20connector_weights = torch.load(weights_path, map_location="cpu")
21model.load_state_dict(connector_weights, strict=False)
22
23model.eval()
24model.to("cuda")