Views
No views yet
nvidia/audio-flamingo-next-captioner-hf is the long-form captioning checkpoint in the Audio Flamingo Next family. It is designed for rich, descriptive outputs over long and complex audio, including speech-heavy recordings, environmental sound scenes, and music.30 minutes.| Checkpoint | Use when you need |
|---|---|
nvidia/audio-flamingo-next-hf | default QA, chat, ASR / AST, and direct assistant-style answers |
nvidia/audio-flamingo-next-think-hf | explicit multi-step reasoning, timestamp-grounded evidence, and longer reasoning traces |
nvidia/audio-flamingo-next-captioner-hf | dense long-form captions, timestamped scene breakdowns, and more descriptive outputs |
nvidia/audio-flamingo-next-hf. If you want chat-oriented or safer assistant-style behavior, use the instruct checkpoint instead.audio-text-to-text model. The broader AF-Next project also discusses streaming TTS and voice-to-voice interaction, but those components are not part of this checkpoint.1pip install --upgrade pip
2pip install --upgrade transformers accelerate16 kHz audio.30-second windows.1800 seconds of audio, i.e. 30 minutes.| Task | Prompt | Recommended Checkpoint(s) |
|---|---|---|
| ASR | Transcribe the input speech. | Instruct, Think |
| AST | Translate any speech you hear from <src_lang> into <tgt_lang>. | Instruct, Think |
| Short Audio Captioning | Generate a caption for the input audio. | Captioner, Think |
| Long Audio Captioning | Generate a detailed caption for the input audio. In the caption, transcribe all spoken content by all speakers in the audio precisely. | Captioner, Think |
| Music Captioning | Summarize the track with precision: mention its musical style, BPM, key, arrangement, production choices, and the emotions or story it conveys. | Captioner, Instruct, Think |
| Lyrics | Generate a lyrics transcription from the input song. | Instruct, Captioner, Think |
| QA | What precise description did the commentator use for the punch that ended the fight? | Instruct, Think |
| Timestamped Multi-Talker ASR | Transcribe the input audio. If multiple speakers are present, provide diarized transcripts with speaker labels.[Speaker 1] ...[Speaker 2] ... | Instruct, Think |
1import torch
2from transformers import AutoModel, AutoProcessor
3
4model_id = "nvidia/audio-flamingo-next-captioner-hf"
5
6processor = AutoProcessor.from_pretrained(model_id)
7model = AutoModel.from_pretrained(
8 model_id,
9 torch_dtype=torch.bfloat16,
10 device_map="auto",
11).eval()
12
13conversation = [
14 [
15 {
16 "role": "user",
17 "content": [
18 {
19 "type": "text",
20 "text": (
21 "Write a detailed caption of this audio. Cover the speakers, "
22 "background sounds, major events, and how the scene changes over time."
23 ),
24 },
25 {
26 "type": "audio",
27 "path": "https://huggingface.co/datasets/nvidia/AudioSkills/resolve/main/assets/videoplayback_superman.wav",
28 },
29 ],
30 }
31 ]
32]
33
34batch = processor.apply_chat_template(
35 conversation,
36 tokenize=True,
37 add_generation_prompt=True,
38 return_dict=True,
39).to(model.device)
40
41if "input_features" in batch:
42 batch["input_features"] = batch["input_features"].to(model.dtype)
43
44generated = model.generate(
45 **batch,
46 max_new_tokens=2048,
47 repetition_penalty=1.2,
48)
49
50prompt_len = batch["input_ids"].shape[1]
51completion = generated[:, prompt_len:]
52text = processor.batch_decode(
53 completion,
54 skip_special_tokens=True,
55 clean_up_tokenization_spaces=False,
56)[0]
57
58print(text)30 minutes128K45K additional multi-talker speech samples200K+ long-form internet videos2M+ real-world short audio skill samples1M multi-audio instruction examples30K multi-turn chat examples386K safety and instruction-following examples128 NVIDIA H100 GPUsAudioFlamingoNextForConditionalGeneration with AudioFlamingoNextProcessor. At a high level, AF-Next combines:128-bin log-mel features30-second audio chunking2-layer MLP audio adaptoraudio_config.hidden_size = 1280audio_config.num_hidden_layers = 32text_config.hidden_size = 3584text_config.num_hidden_layers = 28text_config.max_position_embeddings = 131072MMAU v05.15.25 average: 75.76 for +CaptionerMMAR: 63.0 for +CaptionerMMSU: 63.3 for +Captionernvidia/audio-flamingo-next-hf. If you want explicit reasoning traces, use nvidia/audio-flamingo-next-think-hf.1@misc{ghosh2026audioflamingonext,
2 title={Audio Flamingo Next: Next-Generation Open Audio-Language Models for Speech, Sound, and Music},
3 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},
4 year={2026},
5 howpublished={Technical report},
6 url={https://afnext-umd-nvidia.github.io/}
7}