Run this model with HF Jobs

Run aimagelab/CounterVid-InternVL3-9B-LoRA on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/aimagelab/CounterVid-InternVL3-9B-LoRA. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/aimagelab/CounterVid-InternVL3-9B-LoRA on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/aimagelab/CounterVid-InternVL3-9B-LoRA. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/aimagelab/CounterVid-InternVL3-9B-LoRA. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

CounterVid — InternVL3-9B

This repository contains the 9B CounterVid-aligned model from CounterVid: Counterfactual Video Generation for Mitigating Action and Temporal Hallucinations in Video-Language Models (EMNLP 2026).

CounterVid improves grounding in video-language models by combining textual and visual preferences generated from controlled counterfactual videos. The released weights are a standalone merge of the language-model LoRA, the trained multimodal projector, and the original InternVL3 base model.

Loading

import torch
from transformers import AutoModel, AutoTokenizer

model_id = "aimagelab/CounterVid-InternVL3-9B-LoRA"
model = AutoModel.from_pretrained(
    model_id,
    torch_dtype=torch.bfloat16,
    device_map="auto", trust_remote_code=True,
).eval()
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True, use_fast=False)

For complete video inference and evaluation examples, see the CounterVid repository and project page.

Training summary

  • Base model: OpenGVLab/InternVL3-9B-Instruct
  • Training data: CounterVid (26,167 synthetic visual and textual preference pairs)
  • Objective: MixDPO / PaMi-VDPO with CounterVid anchors
  • LoRA was merged before release; PEFT is not required at inference time
  • Vision encoder frozen during preference optimization

Intended use and limitations

This is a research model for video-language understanding, with a focus on action recognition and temporal reasoning. It inherits the capabilities, limitations, biases, and license conditions of its base model. It may still produce incorrect or unsupported answers and should not be used as the sole basis for high-stakes decisions.

Citation

@inproceedings{poppi2026countervid,
  title     = {{CounterVid}: Counterfactual Video Generation for Mitigating Action and Temporal Hallucinations in Video-Language Models},
  author    = {Poppi, Tobia and Uzkent, Burak and Garg, Amanmeet and Porto, Lucas and Kessler, Garin and Yang, Yezhou and Cornia, Marcella and Baraldi, Lorenzo and Cucchiara, Rita and Schiffers, Florian},
  booktitle = {Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing},
  year      = {2026}
}

This work was conducted during Tobia Poppi's Applied Scientist internship with the Amazon Prime Video team in Seattle.

Downloads last month
23
Safetensors
Model size
9B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for aimagelab/CounterVid-InternVL3-9B-LoRA

Finetuned
(2)
this model

Dataset used to train aimagelab/CounterVid-InternVL3-9B-LoRA

Collection including aimagelab/CounterVid-InternVL3-9B-LoRA