Run this model with HF Jobs
Run BASH-Lab/RAVEN-AV-7B 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 to fine-tune https://huggingface.co/BASH-Lab/RAVEN-AV-7B. 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/BASH-Lab/RAVEN-AV-7B 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.
Instructions to use BASH-Lab/RAVEN-AV-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BASH-Lab/RAVEN-AV-7B with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("BASH-Lab/RAVEN-AV-7B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Improve model card: Add pipeline tag, library name, abstract, results, and GitHub link
Browse filesThis PR significantly enhances the model card by:
- Adding `pipeline_tag: video-text-to-text` to the metadata, which helps in categorizing the model on the Hub for easier discovery under the appropriate pipeline (https://huggingface.co/models?pipeline_tag=video-text-to-text).
- Including `library_name: transformers` in the metadata, indicating compatibility with the ๐ค Transformers library and enabling an automated "How to use" widget on the model page.
- Adding a direct link to the GitHub repository: https://github.com/BASHLab/RAVEN.
- Incorporating the paper's abstract for better context.
- Adding the "Main Results", "AVS-QA Dataset", and "Model Zoo" sections from the official GitHub README, providing crucial information about performance, data, and available variants.
- Renaming the "Inference" section to "Sample Usage" for clarity and consistency with Hugging Face conventions, while retaining the original code snippet.
Please review and merge this PR if these changes are appropriate.
1234569 unmodified lines1617181920212223242526272811 unmodified lines40414243444546---license: apache-2.0---<p align="center"><img src="./assets/raven_logo.png" width="100" style="margin-bottom: 0.2;"/><p>9 unmodified lines<a href="https://bashlab.github.io/raven_project/" style="color:#825987">https://bashlab.github.io/raven_project/</a></h5><p align="center"><img src="./assets/raven_architecture.png" width="800" /><p>---## ๐ ๏ธ Requirements and InstallationBasic Dependencies:* Python >= 3.811 unmodified lines```---## ๐ค Inference- **STEP 1:** Download $\texttt{siglip-so400m-patch14-384}$ from here [google/siglip-so400m-patch14-384](https://huggingface.co/google/siglip-so400m-patch14-384)- **STEP 2:** Download **RAVEN** checkpoint```bash1234567899 unmodified lines19202122232425262728293031323334353637383940414243444546474849505111 unmodified lines63646566676869707172737475---license: apache-2.0pipeline_tag: video-text-to-textlibrary_name: transformers---<p align="center"><img src="./assets/raven_logo.png" width="100" style="margin-bottom: 0.2;"/><p>9 unmodified lines<a href="https://bashlab.github.io/raven_project/" style="color:#825987">https://bashlab.github.io/raven_project/</a>• Code:<a href="https://github.com/BASHLab/RAVEN" style="color:#825987">https://github.com/BASHLab/RAVEN</a></h5><p align="center"><img src="./assets/raven_architecture.png" width="800" /><p>---## AbstractMultimodal question answering (QA) often requires identifying which video, audio, or sensor tokens are relevant to the question. Yet modality disagreements are common: off-camera speech, background noise, or motion outside the field of view often mislead fusion models that weight all streams equally. We present RAVEN, a unified QA architecture whose core is QuART, a query-conditioned cross-modal gating module that assigns scalar relevance scores to each token across modalities, enabling the model to amplify informative signals and suppress distractors before fusion. RAVEN is trained through a three-stage pipeline comprising unimodal pretraining, query-aligned fusion, and disagreement-oriented fine-tuning -- each stage targeting a distinct challenge in multi-modal reasoning: representation quality, cross-modal relevance, and robustness to modality mismatch. To support training and evaluation, we release AVS-QA, a dataset of 300K synchronized Audio--Video-Sensor streams paired with automatically generated question-answer pairs. Experimental results on seven multi-modal QA benchmarks -- including egocentric and exocentric tasks -- show that RAVEN achieves up to 14.5% and 8.0% gains in accuracy compared to state-of-the-art multi-modal large language models, respectively. Incorporating sensor data provides an additional 16.4% boost, and the model remains robust under modality corruption, outperforming SOTA baselines by 50.23%. Our code and dataset are available at this https URL .---## ๐ Main Results##### Comparison of **RAVEN** and prior MLLMs on *exocentric* open-ended video QA (MSVD-QA, MSRVTT-QA, ActivityNet-QA) and audio-visual QA (AVSD, MUSIC-QA) benchmarks. Best and second-best scores are in $\textbf{Bold}$ and $\underline{\text{underline}}$. $^*$ indicates scores reproduced by us.<p><img src="./assets/main_result_exo.png" width="800"></p>##### Comparison of **RAVEN** with MLLMs on the EgoThink (Reasoning) and AVS-QA benchmarks. **RAVEN** outperforms across metrics and excels in reasoning. $\textbf{Bold}$ and $\underline{\text{underline}}$ indicate the best and second-best scores.<p><img src="./assets/main_result_ego.png" width="800"></p>---## ๐ **AVS-QA** DatasetTrain and test split of **AVS-QA** is provided [here](./avs-qa-dataset/).<br>More details [here](./avs-qa-dataset/README.md).## ๐ ๏ธ Requirements and InstallationBasic Dependencies:* Python >= 3.811 unmodified lines```---## ๐ Model Zoo| Model Name | Modal Type ||:----------------|:------------:|| [RAVEN-7B-AV](https://huggingface.co/BASH-Lab/RAVEN-AV-7B)| AV || RAVEN-7B-AVS| AVS |## ๐ค Sample Usage- **STEP 1:** Download $\texttt{siglip-so400m-patch14-384}$ from here [google/siglip-so400m-patch14-384](https://huggingface.co/google/siglip-so400m-patch14-384)- **STEP 2:** Download **RAVEN** checkpoint```bash