dmusingu / lapvqa-vqa

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: June 06 2026
visual-question-answering

Introduction of lapvqa-vqa

Model Details of lapvqa-vqa

LAPVQA — VQA (Frozen Off-the-shelf Encoders)

Part of the LAPVQA collection .

Description

Lightweight task heads for Visual Question Answering on MIMIC-Diff-VQA, trained on top of five frozen off-the-shelf vision encoders. Each .pt file contains only the task head weights; load the encoder separately.

Architecture — VQAHead
vis_proj   : Linear(vis_dim → 512)
tok_emb    : Embedding(50257, 512)   # GPT-2 vocab, weight-tied with lm_head
pos_emb    : Embedding(150, 512)
decoder    : 6 × TransformerDecoderLayer (pre-norm, cross-attn to visual tokens)
lm_head    : Linear(512 → 50257, bias=False)
File Encoder vis_dim
clip-vit-l14_best.pt CLIP ViT-L/14 1024
siglip_best.pt SigLIP ViT-SO400M-14-384 1152
florence2_best.pt Florence-2 1024
coca_best.pt CoCa 768
owlv2_best.pt OWLv2 1024
Results (test set, overall)
Encoder BLEU-1 BLEU-4 ROUGE-L RadGraph-s
CLIP ViT-L/14 0.602 0.243 0.725 0.222
SigLIP 0.586 0.253 0.717 0.214
Florence-2 0.575 0.207 0.700 0.217
CoCa 0.532 0.173 0.642 0.170
Loading
import torch
import tiktoken
from lapvqa.vqa.model import VQAHead

# checkpoint is a plain state dict
ckpt = torch.load("clip-vit-l14_best.pt", map_location="cpu")
head = VQAHead(vis_dim=1024)
head.load_state_dict(ckpt)
head.eval()

# vis_tokens: [B, N, vis_dim] — patch tokens from the frozen encoder
# prompt_ids: [B, Q]           — tokenised question (GPT-2 tokeniser)
enc = tiktoken.get_encoding("gpt2")
bos_id, eos_id = enc.eot_token, enc.eot_token

answers = head.generate(
    vis_tokens  = vis_tokens,
    prompt_ids  = prompt_ids,
    bos_id      = bos_id,
    eos_id      = eos_id,
    max_new_tokens = 64,
)
decoded = [enc.decode(ids) for ids in answers]

Runs of dmusingu lapvqa-vqa on huggingface.co

0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About lapvqa-vqa huggingface.co Model

More lapvqa-vqa license Visit here:

https://choosealicense.com/licenses/apache-2.0

lapvqa-vqa huggingface.co

lapvqa-vqa huggingface.co is an AI model on huggingface.co that provides lapvqa-vqa's model effect (), which can be used instantly with this dmusingu lapvqa-vqa model. huggingface.co supports a free trial of the lapvqa-vqa model, and also provides paid use of the lapvqa-vqa. Support call lapvqa-vqa model through api, including Node.js, Python, http.

dmusingu lapvqa-vqa online free

lapvqa-vqa huggingface.co is an online trial and call api platform, which integrates lapvqa-vqa's modeling effects, including api services, and provides a free online trial of lapvqa-vqa, you can try lapvqa-vqa online for free by clicking the link below.

dmusingu lapvqa-vqa online free url in huggingface.co:

https://huggingface.co/dmusingu/lapvqa-vqa

lapvqa-vqa install

lapvqa-vqa is an open source model from GitHub that offers a free installation service, and any user can find lapvqa-vqa on GitHub to install. At the same time, huggingface.co provides the effect of lapvqa-vqa install, users can directly use lapvqa-vqa installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

lapvqa-vqa install url in huggingface.co:

https://huggingface.co/dmusingu/lapvqa-vqa

Url of lapvqa-vqa

lapvqa-vqa huggingface.co Url

Provider of lapvqa-vqa huggingface.co

dmusingu
ORGANIZATIONS

Other API from dmusingu

huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:June 06 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:June 06 2026