Video-Text-to-Text
Transformers
Safetensors
English
audiovisualflamingo
text-generation
audio
video
image
audio-visual
multimodal
reasoning
video understanding
long-video
audio understanding
ASR
timestamp-grounding
instruction-tuned
dynamic-s2
CRTE
TAVIT
Instructions to use nvidia/nemotron-labs-audio-visual-flamingo-hf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nvidia/nemotron-labs-audio-visual-flamingo-hf with Transformers:
# Load model directly from transformers import AutoModelForSeq2SeqLM model = AutoModelForSeq2SeqLM.from_pretrained("nvidia/nemotron-labs-audio-visual-flamingo-hf", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
24dda61
1
Parent(s): 7c06bd4
Add model card
Browse files- .gitattributes +1 -0
- README.md +324 -154
- static/NVIDIA-OneWay-Noncommercial-License_22Mar2022-academic.docx +0 -0
- static/avf_architecture.png +3 -0
- static/avf_data_categories.png +3 -0
- static/avf_logo.png +3 -0
- static/avf_results_radar.png +3 -0
.gitattributes
CHANGED
|
@@ -34,3 +34,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -1,199 +1,369 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
library_name: transformers
|
| 3 |
-
tags: []
|
| 4 |
---
|
| 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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 136 |
|
| 137 |
-
|
| 138 |
|
| 139 |
-
|
| 140 |
|
| 141 |
-
|
| 142 |
|
| 143 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 144 |
|
| 145 |
-
|
| 146 |
|
| 147 |
-
- **
|
| 148 |
-
- **
|
| 149 |
-
- **
|
| 150 |
-
- **Compute Region:** [More Information Needed]
|
| 151 |
-
- **Carbon Emitted:** [More Information Needed]
|
| 152 |
|
| 153 |
-
##
|
| 154 |
|
| 155 |
-
|
| 156 |
|
| 157 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 158 |
|
| 159 |
-
|
| 160 |
|
| 161 |
-
|
| 162 |
|
| 163 |
-
|
| 164 |
|
| 165 |
-
[
|
| 166 |
|
| 167 |
-
##
|
| 168 |
|
| 169 |
-
[
|
| 170 |
|
| 171 |
-
##
|
| 172 |
|
| 173 |
-
|
| 174 |
|
| 175 |
-
|
| 176 |
|
| 177 |
-
|
| 178 |
|
| 179 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 180 |
|
| 181 |
-
|
| 182 |
|
| 183 |
-
##
|
| 184 |
|
| 185 |
-
|
| 186 |
|
| 187 |
-
|
| 188 |
|
| 189 |
-
|
| 190 |
|
| 191 |
-
|
| 192 |
|
| 193 |
-
##
|
| 194 |
|
| 195 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 196 |
|
| 197 |
-
##
|
| 198 |
|
| 199 |
-
|
|
|
|
| 1 |
---
|
| 2 |
+
license: other
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
tags:
|
| 6 |
+
- audio
|
| 7 |
+
- video
|
| 8 |
+
- image
|
| 9 |
+
- audio-visual
|
| 10 |
+
- multimodal
|
| 11 |
+
- reasoning
|
| 12 |
+
- video understanding
|
| 13 |
+
- long-video
|
| 14 |
+
- audio understanding
|
| 15 |
+
- ASR
|
| 16 |
+
- timestamp-grounding
|
| 17 |
+
- instruction-tuned
|
| 18 |
+
- dynamic-s2
|
| 19 |
+
- CRTE
|
| 20 |
+
- TAVIT
|
| 21 |
+
pipeline_tag: video-text-to-text
|
| 22 |
library_name: transformers
|
|
|
|
| 23 |
---
|
| 24 |
+
# Model Overview
|
| 25 |
+
|
| 26 |
+
<div align="center" style="display: flex; justify-content: center; align-items: center; text-align: center;">
|
| 27 |
+
<a href="https://avflamingo.github.io/" style="text-decoration: none; display: flex; align-items: center;">
|
| 28 |
+
<img src="static/avf_logo.png" alt="Audio-Visual Flamingo" width="150">
|
| 29 |
+
</a>
|
| 30 |
+
</div>
|
| 31 |
+
<div align="center" style="display: flex; justify-content: center; align-items: center; text-align: center;">
|
| 32 |
+
<h2>
|
| 33 |
+
Audio-Visual Flamingo: Open Audio-Visual Intelligence for Long and Complex Videos
|
| 34 |
+
</h2>
|
| 35 |
+
</div>
|
| 36 |
+
|
| 37 |
+
<div align="center" style="display: flex; justify-content: center; margin-top: 10px; flex-wrap: wrap; gap: 5px;">
|
| 38 |
+
<a href="https://avflamingo.github.io/"><img src="https://img.shields.io/badge/Project%20Page-AVF-DC2626" alt="Project Page"></a>
|
| 39 |
+
<a href="https://github.com/NVIDIA/audio-flamingo"><img src="https://img.shields.io/badge/GitHub-Audio--Flamingo-EA580C" alt="GitHub"></a>
|
| 40 |
+
<a href="https://github.com/NVIDIA/audio-flamingo/stargazers"><img src="https://img.shields.io/github/stars/NVIDIA/audio-flamingo.svg?style=social" alt="GitHub stars"></a>
|
| 41 |
+
<a href="https://github.com/lashahub/transformers/tree/add_AudioVisualFlamingo"><img src="https://img.shields.io/badge/Transformers-AVF%20fork-2563EB" alt="Transformers fork"></a>
|
| 42 |
+
</div>
|
| 43 |
+
|
| 44 |
+
<div align="center" style="display: flex; justify-content: center; margin-top: 10px; flex-wrap: wrap; gap: 5px;">
|
| 45 |
+
<a href="https://huggingface.co/nvidia/audio-visual-flamingo-hf">
|
| 46 |
+
<img src="https://img.shields.io/badge/HF-Checkpoint-ED5A22.svg" alt="Checkpoint">
|
| 47 |
+
</a>
|
| 48 |
+
<a href="https://huggingface.co/spaces/nvidia/audio-visual-flamingo">
|
| 49 |
+
<img src="https://img.shields.io/badge/HF-Gradio%20Demo-5F9EA0.svg" alt="Gradio Demo">
|
| 50 |
+
</a>
|
| 51 |
+
<img src="https://img.shields.io/badge/AV--Skills-7M%20caption%20and%20QA%20instances-F97316.svg" alt="AV-Skills">
|
| 52 |
+
<img src="https://img.shields.io/badge/TAVIT-Temporal%20AV%20Reasoning-DC2626.svg" alt="TAVIT">
|
| 53 |
+
</div>
|
| 54 |
+
|
| 55 |
+
Audio-Visual Flamingo (AVF) is a fully open audio-visual large language model for joint understanding and reasoning over audio, images, and videos. `nvidia/audio-visual-flamingo-hf` is the instruction-tuned checkpoint for multimodal understanding and text generation over long, complex, real-world videos.
|
| 56 |
+
|
| 57 |
+
AVF is designed for settings where the answer depends on both what is visible and what is audible: speech, background sounds, music, visual actions, scene transitions, temporal order, and cross-modal alignment. This checkpoint is text-output only. The broader AVF system includes a streaming TTS component, but speech output is not part of this checkpoint.
|
| 58 |
+
|
| 59 |
+
**This model is for non-commercial research purposes only.**
|
| 60 |
+
|
| 61 |
+
## Description
|
| 62 |
+
|
| 63 |
+
AVF extends the Audio Flamingo line from audio-only understanding into joint audio-visual reasoning. The model combines:
|
| 64 |
+
|
| 65 |
+
- a SigLIP vision tower for images and sampled video frames
|
| 66 |
+
- Dynamic-S2 visual preprocessing for high-resolution images and long videos
|
| 67 |
+
- an AF-Whisper audio encoder for speech, sound, and music
|
| 68 |
+
- separate 2-layer projectors for visual and audio features
|
| 69 |
+
- temporal audio-visual interleaving with Constrained Rotary Time Embeddings (CRTE)
|
| 70 |
+
- a Qwen2.5-7B-family decoder-only language backbone
|
| 71 |
+
|
| 72 |
+
Unlike systems that process video frames and audio as independent streams, AVF aligns synchronized visual and audio chunks, interleaves them along the time axis, and feeds the fused sequence to the language model. This helps the model attend across co-occurring visual and auditory events.
|
| 73 |
|
| 74 |
## Model Details
|
| 75 |
|
| 76 |
+
- **Developed by:** NVIDIA and University of Maryland
|
| 77 |
+
- **Model type:** audio-visual large language model for conditional text generation
|
| 78 |
+
- **Backbone:** Qwen2.5-7B-family decoder-only language model
|
| 79 |
+
- **Modalities:** text, image, audio, video
|
| 80 |
+
- **Language:** English-focused release
|
| 81 |
+
- **License:** NVIDIA OneWay Noncommercial License
|
| 82 |
+
|
| 83 |
+
## Model Sources
|
| 84 |
+
|
| 85 |
+
- **Checkpoint:** https://huggingface.co/nvidia/audio-visual-flamingo-hf
|
| 86 |
+
- **Demo:** https://huggingface.co/spaces/nvidia/audio-visual-flamingo
|
| 87 |
+
- **Project page:** https://avflamingo.github.io/
|
| 88 |
+
- **Audio Flamingo repository:** https://github.com/NVIDIA/audio-flamingo
|
| 89 |
+
- **Transformers integration fork:** https://github.com/lashahub/transformers/tree/add_AudioVisualFlamingo
|
| 90 |
+
|
| 91 |
+
## Best For
|
| 92 |
+
|
| 93 |
+
- video question answering where both audio and visual evidence matter
|
| 94 |
+
- detailed audio-visual captioning for real-world videos
|
| 95 |
+
- temporal reasoning over event order, scene changes, and long-range context
|
| 96 |
+
- audio-visual event alignment, such as identifying which sound matches a visual moment
|
| 97 |
+
- reasoning over speech, environmental sounds, music, and visual actions together
|
| 98 |
+
- image, audio, video, and text prompts in a single chat-template interface
|
| 99 |
+
|
| 100 |
+
## Usage
|
| 101 |
+
|
| 102 |
+
### Install
|
| 103 |
+
|
| 104 |
+
AVF support is currently available through the AVF Transformers integration fork while the upstream Transformers PR is pending.
|
| 105 |
+
|
| 106 |
+
```bash
|
| 107 |
+
pip install --upgrade pip
|
| 108 |
+
pip install "transformers[video] @ git+https://github.com/lashahub/transformers.git@add_AudioVisualFlamingo"
|
| 109 |
+
pip install accelerate torch torchaudio librosa soundfile
|
| 110 |
+
```
|
| 111 |
+
|
| 112 |
+
For video and audio decoding, make sure `ffmpeg` and `libsndfile1` are available in your system environment.
|
| 113 |
+
|
| 114 |
+
### Notes
|
| 115 |
+
|
| 116 |
+
- Use `load_audio_in_video=True` when a video file should contribute both sampled frames and its audio track.
|
| 117 |
+
- The processor expects audio at `16 kHz` mono internally and extracts `128`-bin log-mel features.
|
| 118 |
+
- Audio is processed in `30`-second windows.
|
| 119 |
+
- The released processor defaults to `num_video_frames=32`; examples below use `128` frames for stronger video coverage.
|
| 120 |
+
- AVF is trained for long videos up to `15` minutes and `32K` context in long-context stages. Very long, dense videos can still be challenging.
|
| 121 |
+
- Prompting matters. Ask explicitly for audio-visual evidence, timestamps, scene transitions, speech, sounds, or temporal order when those details matter.
|
| 122 |
+
|
| 123 |
+
### Video + Audio From One Container
|
| 124 |
+
|
| 125 |
+
```python
|
| 126 |
+
import torch
|
| 127 |
+
from transformers import AudioVisualFlamingoForConditionalGeneration, AutoProcessor
|
| 128 |
+
|
| 129 |
+
model_id = "nvidia/audio-visual-flamingo-hf"
|
| 130 |
+
dtype = torch.bfloat16 if torch.cuda.is_available() else torch.float32
|
| 131 |
+
|
| 132 |
+
model = AudioVisualFlamingoForConditionalGeneration.from_pretrained(
|
| 133 |
+
model_id,
|
| 134 |
+
device_map="auto",
|
| 135 |
+
dtype=dtype,
|
| 136 |
+
load_audio_in_video=True,
|
| 137 |
+
).eval()
|
| 138 |
+
|
| 139 |
+
processor = AutoProcessor.from_pretrained(
|
| 140 |
+
model_id,
|
| 141 |
+
padding_side="left",
|
| 142 |
+
use_fast=False,
|
| 143 |
+
load_audio_in_video=True,
|
| 144 |
+
num_video_frames=128,
|
| 145 |
+
audio_chunk_length="max_3600",
|
| 146 |
+
)
|
| 147 |
+
|
| 148 |
+
conversation = [
|
| 149 |
+
{
|
| 150 |
+
"role": "user",
|
| 151 |
+
"content": [
|
| 152 |
+
{"type": "video", "video": "/path/to/video.mp4"},
|
| 153 |
+
{
|
| 154 |
+
"type": "text",
|
| 155 |
+
"text": (
|
| 156 |
+
"Describe the full video. Include the visual scene, spoken content, "
|
| 157 |
+
"important sounds or music, and how the audio and visuals align over time."
|
| 158 |
+
),
|
| 159 |
+
},
|
| 160 |
+
],
|
| 161 |
+
}
|
| 162 |
+
]
|
| 163 |
+
|
| 164 |
+
inputs = processor.apply_chat_template(
|
| 165 |
+
conversation,
|
| 166 |
+
tokenize=True,
|
| 167 |
+
add_generation_prompt=True,
|
| 168 |
+
return_dict=True,
|
| 169 |
+
).to(model.device)
|
| 170 |
+
|
| 171 |
+
generated_ids = model.generate(
|
| 172 |
+
**inputs,
|
| 173 |
+
max_new_tokens=1024,
|
| 174 |
+
do_sample=False,
|
| 175 |
+
)
|
| 176 |
+
|
| 177 |
+
new_tokens = generated_ids[:, inputs["input_ids"].shape[1] :]
|
| 178 |
+
print(processor.batch_decode(new_tokens, skip_special_tokens=True)[0])
|
| 179 |
+
```
|
| 180 |
+
|
| 181 |
+
### Image, Audio, Video, and Text Items
|
| 182 |
+
|
| 183 |
+
AVF uses one chat-template interface for all modalities:
|
| 184 |
+
|
| 185 |
+
```python
|
| 186 |
+
conversation = [
|
| 187 |
+
{
|
| 188 |
+
"role": "user",
|
| 189 |
+
"content": [
|
| 190 |
+
{"type": "image", "image": "/path/to/reference_frame.jpg"},
|
| 191 |
+
{"type": "audio", "path": "/path/to/audio.wav"},
|
| 192 |
+
{"type": "video", "video": "/path/to/video.mp4"},
|
| 193 |
+
{
|
| 194 |
+
"type": "text",
|
| 195 |
+
"text": "What does the audio reveal that is not obvious from the image and video frames alone?",
|
| 196 |
+
},
|
| 197 |
+
],
|
| 198 |
+
}
|
| 199 |
+
]
|
| 200 |
+
```
|
| 201 |
+
|
| 202 |
+
### Prompt Guide
|
| 203 |
+
|
| 204 |
+
| Task | Prompt pattern |
|
| 205 |
+
| --- | --- |
|
| 206 |
+
| Detailed AV captioning | `Generate a detailed caption of the full video, covering both visual events and the audio track.` |
|
| 207 |
+
| Audio-visual alignment | `Explain how the audio and visuals align over time. Mention key timestamps or scene transitions.` |
|
| 208 |
+
| Temporal order | `Arrange the major audio-visual events in chronological order and explain the evidence.` |
|
| 209 |
+
| Spoken-content analysis | `Transcribe the speech, identify speakers if possible, and relate the speech to the visual scene.` |
|
| 210 |
+
| Sound-grounded QA | `What sound occurs when the camera shows <event>, and what visual evidence supports it?` |
|
| 211 |
+
| Visual-grounded audio QA | `Which visible action best explains the sound heard around <time/event>?` |
|
| 212 |
+
| Long-video reasoning | `Answer using evidence from the whole video, not a single moment. Cite the relevant audio and visual cues.` |
|
| 213 |
+
|
| 214 |
+
## Architecture
|
| 215 |
+
|
| 216 |
+
<center><img src="static/avf_architecture.png" width="900"></center>
|
| 217 |
+
|
| 218 |
+
At a high level, AVF contains:
|
| 219 |
+
|
| 220 |
+
- **Vision encoder:** SigLIP vision tower with `448 x 448` image processing and Dynamic-S2 multi-scale tiling.
|
| 221 |
+
- **Audio encoder:** AF-Whisper-style encoder with `128` mel bins, `16 kHz` input audio, and long-audio chunking.
|
| 222 |
+
- **Projectors:** separate visual and audio MLP projectors that map encoder outputs into the LLM hidden size.
|
| 223 |
+
- **Temporal fusion:** synchronized visual and audio chunks are interleaved over time and augmented with CRTE.
|
| 224 |
+
- **Language model:** Qwen2.5-7B-family decoder-only backbone for multimodal reasoning and text generation.
|
| 225 |
+
|
| 226 |
+
The released config uses:
|
| 227 |
+
|
| 228 |
+
- `vision_tower_cfg.hidden_size = 1152`
|
| 229 |
+
- `vision_tower_cfg.image_size = 448`
|
| 230 |
+
- `sound_tower_cfg.d_model = 1280`
|
| 231 |
+
- `sound_tower_cfg.encoder_layers = 32`
|
| 232 |
+
- `llm_cfg.hidden_size = 3584`
|
| 233 |
+
- `llm_cfg.num_hidden_layers = 28`
|
| 234 |
+
- `llm_cfg.max_position_embeddings = 32768`
|
| 235 |
+
- `num_video_frames = 32` by default
|
| 236 |
+
- `interleaved_video_segment_duration = 30`
|
| 237 |
+
- `load_audio_in_video = true`
|
| 238 |
+
- `interleaved_vis_aud_in_video = true`
|
| 239 |
+
|
| 240 |
+
## Training Summary
|
| 241 |
+
|
| 242 |
+
AVF uses a three-stage training curriculum:
|
| 243 |
+
|
| 244 |
+
| Stage | Main data mixture | Max input / context | Output checkpoint |
|
| 245 |
+
| --- | --- | --- | --- |
|
| 246 |
+
| Short-context SFT | AV-Skills-Short plus audio, music, image, video, and speech data | `5` min / `16K` tokens | AVF short-context model |
|
| 247 |
+
| Long-context SFT | AV-Skills-Long plus downsampled short/audio/music/speech data | `15` min / `32K` tokens | **AVF-Instruct** |
|
| 248 |
+
| CoT post-training | AV-Think reasoning triplets with SFT and GRPO | `15` min / `32K` tokens | AVF-Think |
|
| 249 |
|
| 250 |
+
The AV-Skills data mixture includes:
|
| 251 |
|
| 252 |
+
<center><img src="static/avf_data_categories.png" width="760"></center>
|
| 253 |
|
| 254 |
+
- `100K` hours of short video and `3.8M` AV-Skills-Short training instances
|
| 255 |
+
- about `140K` hours of long video and `3.2M` long-video caption/QA instances
|
| 256 |
+
- about `4.8M` QA pairs across the full AV-Skills collection
|
| 257 |
+
- long-video skill categories such as needle-in-the-haystack reasoning, temporal reasoning, sub-scene understanding, holistic reasoning, counting, audio-visual referring, event alignment, event sequence reasoning, inference, comparative reasoning, and context understanding
|
| 258 |
+
- AV-Think, with about `24K` temporally grounded audio-visual reasoning samples
|
| 259 |
|
| 260 |
+
Training uses bf16 precision on `512` NVIDIA H100 GPUs, with ZeRO-3, sequence parallelism for long-context stages, cosine learning-rate decay, warmup ratio `0.03`, and GRPO post-training for the AVF-Think variant.
|
| 261 |
|
| 262 |
+
## Results
|
| 263 |
|
| 264 |
+
<center><img src="static/avf_results_radar.png" width="520"></center>
|
| 265 |
|
| 266 |
+
ACC is higher-is-better and WER is lower-is-better.
|
| 267 |
|
| 268 |
+
This repository hosts AVF-Instruct. AVF-Think entries summarize the post-trained reasoning variant where it was evaluated.
|
| 269 |
|
| 270 |
+
| Area | Benchmark | AVF-Instruct | AVF-Think |
|
| 271 |
+
| --- | --- | ---: | ---: |
|
| 272 |
+
| Omni understanding | WorldSense ACC | **50.3** | 51.6 |
|
| 273 |
+
| Omni understanding | DailyOmni ACC | **72.4** | 73.9 |
|
| 274 |
+
| Omni understanding | OmniBench ACC | **48.5** | 50.6 |
|
| 275 |
+
| Omni understanding | MMOU ACC | 56.9 | 60.2 |
|
| 276 |
+
| Audio hallucination | CMM Hallucination ACC | **86.7** | - |
|
| 277 |
+
| Audio reasoning | MMAR ACC | **60.1** | - |
|
| 278 |
+
| Audio reasoning | MMSU ACC | **61.5** | - |
|
| 279 |
+
| Audio reasoning | MMAU avg ACC | **73.49** | - |
|
| 280 |
+
| Video understanding | Video-MME ACC, no subtitles / with subtitles | **70.7 / 71.2** | - |
|
| 281 |
+
| Video understanding | LongVideoBench ACC | 60.1 | - |
|
| 282 |
+
| Video understanding | MVHBench ACC | **71.7** | - |
|
| 283 |
+
| ASR | LibriSpeech test-clean / test-other WER | **1.64 / 3.5** | - |
|
| 284 |
+
| ASR | SPGISpeech WER | **2.8** | - |
|
| 285 |
+
| ASR | TEDLIUM WER | 3.0 | - |
|
| 286 |
+
| ASR | GigaSpeech WER | 10.2 | - |
|
| 287 |
+
| ASR | VoxPopuli WER | **5.8** | - |
|
| 288 |
|
| 289 |
+
AVF-Instruct improves over OmniVinci on WorldSense, DailyOmni, Video-MME, MMAR, and several ASR settings, while AVF-Think further improves temporally grounded reasoning where evaluated.
|
| 290 |
|
| 291 |
+
## Input and Output
|
| 292 |
|
| 293 |
+
**Input**
|
| 294 |
|
| 295 |
+
- **Modalities:** text, image, audio, video, or mixed audio-visual video containers
|
| 296 |
+
- **Image format:** common image formats supported by the Transformers image loader
|
| 297 |
+
- **Audio format:** WAV/MP3/FLAC or audio track from video containers, decoded to mono `16 kHz`
|
| 298 |
+
- **Video format:** local or remote video files supported by the Transformers video loader and PyAV/ffmpeg stack
|
| 299 |
+
- **Recommended video setting:** `load_audio_in_video=True` for joint frame/audio understanding
|
| 300 |
|
| 301 |
+
**Output**
|
| 302 |
|
| 303 |
+
- **Type:** generated text
|
| 304 |
+
- **Format:** UTF-8 string
|
| 305 |
+
- **Typical max generation:** task dependent; examples use `512` to `1024` new tokens
|
|
|
|
|
|
|
| 306 |
|
| 307 |
+
## Limitations
|
| 308 |
|
| 309 |
+
Known limitations:
|
| 310 |
|
| 311 |
+
- AV-Skills is built from public datasets and open-internet videos, which can introduce source bias and possible overlap with prior training data.
|
| 312 |
+
- Very long and highly dense videos remain difficult, especially when the relevant evidence is sparse, subtle, or far apart in time.
|
| 313 |
+
- Current benchmarks do not fully capture open-ended real-world deployment.
|
| 314 |
+
- The public checkpoint generates text only; it does not include the broader AVF streaming TTS component.
|
| 315 |
+
- The Transformers integration is currently available through an AVF fork while upstream support is pending.
|
| 316 |
|
| 317 |
+
Users should evaluate the model on their own target data before deployment, especially for safety-sensitive, privacy-sensitive, or high-stakes settings.
|
| 318 |
|
| 319 |
+
## Ethical Considerations
|
| 320 |
|
| 321 |
+
AVF can support beneficial applications such as accessibility, lecture and documentary understanding, audio description, media analysis, and multimodal research. It can also be misused for surveillance, deepfake analysis workflows, or multimodal disinformation at scale. The model and associated assets are released for non-commercial research use only, and downstream users are responsible for applying appropriate safeguards, privacy controls, and domain-specific evaluation.
|
| 322 |
|
| 323 |
+
Please report security vulnerabilities or NVIDIA AI concerns through [NVIDIA's vulnerability disclosure channel](https://www.nvidia.com/en-us/support/submit-security-vulnerability/).
|
| 324 |
|
| 325 |
+
## License / Terms of Use
|
| 326 |
|
| 327 |
+
The model is released under the [NVIDIA OneWay Noncommercial License](static/NVIDIA-OneWay-Noncommercial-License_22Mar2022-academic.docx). Underlying datasets and components retain their original licenses and distribution terms. AVF uses Qwen2.5-7B as the base LLM and Apache 2.0 component, with AF-Whisper/OmniVinci-derived components under NVIDIA OneWay Noncommercial terms.
|
| 328 |
|
| 329 |
+
## Deployment Geography
|
| 330 |
|
| 331 |
+
Global.
|
| 332 |
|
| 333 |
+
## Intended Use
|
| 334 |
|
| 335 |
+
This checkpoint is intended for researchers and developers exploring:
|
| 336 |
|
| 337 |
+
- joint audio-visual understanding
|
| 338 |
+
- long-video question answering and captioning
|
| 339 |
+
- temporal audio-visual reasoning
|
| 340 |
+
- multimodal assistant research
|
| 341 |
+
- evaluation of open audio-visual models
|
| 342 |
|
| 343 |
+
It is not intended for production surveillance, biometric identification, rights enforcement, medical diagnosis, legal decision-making, or other high-stakes decisions without extensive independent validation and safeguards.
|
| 344 |
|
| 345 |
+
## Software Integration
|
| 346 |
|
| 347 |
+
**Runtime engine:** PyTorch / Hugging Face Transformers AVF integration fork
|
| 348 |
|
| 349 |
+
**Recommended hardware:** NVIDIA A100/H100-class GPUs for long video inputs
|
| 350 |
|
| 351 |
+
**Supported OS:** Linux
|
| 352 |
|
| 353 |
+
The integration of foundation and fine-tuned models into AI systems requires use-case-specific testing. Developers should validate quality, latency, safety, privacy, and failure modes on representative data before deployment.
|
| 354 |
|
| 355 |
+
## Citation
|
| 356 |
|
| 357 |
+
```bibtex
|
| 358 |
+
@misc{ghosh2026audiovisualflamingo,
|
| 359 |
+
title={Audio-Visual Flamingo: Open Audio-Visual Intelligence for Long and Complex Videos},
|
| 360 |
+
author={Sreyan Ghosh and Arushi Goel and Kaousheik Jayakumar and Lasha Koroshinadze and Nishit Anand and Zhifeng Kong and Siddharth Gururani and Sang-gil Lee and Jaehyeon Kim and Aya Aljafari and Chao-Han Huck Yang and Sungwon Kim and Ramani Duraiswami and Dinesh Manocha and Mohammad Shoeybi and Bryan Catanzaro and Ming-Yu Liu and Wei Ping},
|
| 361 |
+
year={2026},
|
| 362 |
+
howpublished={Technical report},
|
| 363 |
+
url={https://avflamingo.github.io/}
|
| 364 |
+
}
|
| 365 |
+
```
|
| 366 |
|
| 367 |
+
## Acknowledgements
|
| 368 |
|
| 369 |
+
Audio-Visual Flamingo builds on the Audio Flamingo series, AF-Whisper, OmniVinci, Qwen2.5, NVILA-style Dynamic-S2 processing, and the broader open audio, video, and multimodal learning community.
|
static/NVIDIA-OneWay-Noncommercial-License_22Mar2022-academic.docx
ADDED
|
Binary file (20.7 kB). View file
|
|
|
static/avf_architecture.png
ADDED
|
Git LFS Details
|
static/avf_data_categories.png
ADDED
|
Git LFS Details
|
static/avf_logo.png
ADDED
|
Git LFS Details
|
static/avf_results_radar.png
ADDED
|
Git LFS Details
|