/ Модель

Характеристики

Контекст
24 000 токенов
Размер весов
16,5 ГБ
Лицензия
Своя лицензия
Архитектура
audioflamingo3 · dense
Библиотека
transformers
Опубликована
10 ноя 2025

music-flamingo-hf

Распознавание речиАудио, текст → текст3 профессии

Music Flamingo от NVIDIA анализирует музыку и песни по аудио и отвечает на вопросы о звучании, структуре, гармонии и текстах.

4 681скачиваний за 30 дней112лайковвеса обновлены5 окт 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Music Flamingo — модель большого аудиоязыкового типа от NVIDIA для понимания музыки и песен. Архитектура Audio Flamingo 3 объединяет аудиоэнкодер AF-Whisper, MLP-адаптер и декодерную языковую модель Qwen2.5-7B; размер модели — 8 млрд параметров. Модель принимает аудио и текстовые инструкции и генерирует текстовые ответы.

Она предназначена для вопросов и рассуждений о музыке, создания подробных описаний с учётом музыкальной теории и анализа гармонии, структуры, тембра, текста песен и культурного контекста. Поддерживает длинные аудиозаписи: до 20 минут, а максимальная длина текстового контекста указана как 24 000 токенов. В карточке заявлен английский язык; модель обучалась на музыкальных данных из разных источников.

Модель доступна для исследовательского использования и разработки, включая музыкальных помощников и изучение понимания длинных аудиозаписей. Для инференса указаны Hugging Face Transformers и PyTorch; заявлена поддержка NVIDIA A100 и H100 под Linux. Лицензия обозначена как other, а README ограничивает использование некоммерческими исследовательскими целями.

Сценарии применения

  • ответы на вопросы о музыкальных записях
  • описание инструментов, тембра и гармонии в аудио
  • анализ структуры и содержания длинных песен
  • разбор текста песни и её культурного контекста
  • создание интерактивного помощника по музыкальному дизайну

Ограничения

Использование ограничено некоммерческими исследовательскими целями. Максимальная длительность аудио — 20 минут, максимальная длина текстового контекста — 24 000 токенов, длина ответа — до 2 048 токенов.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Model Overview

🚨 Note: We have released a new and more powerful checkpoint here.

Description:

Music Flamingo (MF) is a fully open, state-of-the-art Large Audio-Language Model (LALM) designed to advance music (including song) understanding in foundational audio models. MF brings together innovations in:

  • Deep music understanding across songs and instrumentals.
  • Rich, theory-aware captions and question answering (harmony, structure, timbre, lyrics, cultural context).
  • Reasoning-centric training using chain-of-thought + reinforcement learning with custom rewards for step-by-step reasoning.
  • Long-form song reasoning over full-length, multicultural audio (extended context).

Extensive evaluations confirm Music Flamingo's effectiveness, setting new benchmarks on over 10+ public music understanding and reasoning tasks.

This model is for non-commercial research purposes only.

Usage

Music Flamingo (MF) is supported in 🤗 Transformers. To run the model, first install Transformers:

pip install --upgrade pip
pip install --upgrade transformers accelerate

Note: MF processes audio in 30-second windows with a 10-minute total cap per sample. Longer inputs are truncated.

Single-turn: audio + text instruction

from transformers import AudioFlamingo3ForConditionalGeneration, AutoProcessor

model_id = "nvidia/music-flamingo-hf"
processor = AutoProcessor.from_pretrained(model_id)
model = AudioFlamingo3ForConditionalGeneration.from_pretrained(model_id, device_map="auto")

conversation = [
    {
        "role": "user",
        "content": [
            {"type": "text", "text": "Describe this track in full detail - tell me the genre, tempo, and key, then dive into the instruments, production style, and overall mood it creates."},
            {"type": "audio", "path": "https://huggingface.co/datasets/nvidia/MF-Skills/resolve/main/assets/song_1.mp3"},
        ],
    }
]

inputs = processor.apply_chat_template(
    conversation,
    tokenize=True,
    add_generation_prompt=True,
    return_dict=True,
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=1024)

decoded_outputs = processor.batch_decode(outputs[:, inputs.input_ids.shape[1]:], skip_special_tokens=True)
print(decoded_outputs)

Batch multiple conversations

from transformers import AudioFlamingo3ForConditionalGeneration, AutoProcessor

model_id = "nvidia/music-flamingo-hf"
processor = AutoProcessor.from_pretrained(model_id)
model = AudioFlamingo3ForConditionalGeneration.from_pretrained(model_id, device_map="auto")

conversations = [
    [
        {
            "role": "user",
            "content": [
                {
                    "type": "text",
                    "text": "Describe this track in full detail - tell me the genre, tempo, and key, then dive into the instruments, production style, and overall mood it creates."},
                {
                    "type": "audio",
                    "path": "https://huggingface.co/datasets/nvidia/MF-Skills/resolve/main/assets/song_1.mp3",
                },
            ],
        }
    ],
    [
        {
            "role": "user",
            "content": [
                {
                    "type": "text",
                    "text": "Write a rich caption that blends the technical details (genre, BPM, key, chords, mix) with how the song feels emotionally and dynamically as it unfolds.",
                },
                {
                    "type": "audio",
                    "path": "https://huggingface.co/datasets/nvidia/MF-Skills/resolve/main/assets/song_2.mp3"
                },
            ],
        }
    ],
]

inputs = processor.apply_chat_template(
    conversations,
    tokenize=True,
    add_generation_prompt=True,
    return_dict=True,
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=1024)

decoded_outputs = processor.batch_decode(outputs[:, inputs.input_ids.shape[1]:], skip_special_tokens=True)
print(decoded_outputs)

Text-only and audio-only prompts

# text-only
conv = [{"role": "user", "content": [{"type": "text", "text": "What is the capital of France?"}]}]
batch = processor.apply_chat_template(conv, tokenize=True, add_generation_prompt=True, return_dict=True).to(device)
print(processor.batch_decode(model.generate(**batch)[:, batch["input_ids"].shape[1]:], skip_special_tokens=True)[0])

# audio-only
conv = [{"role": "user", "content": [{"type": "audio", "path": "https://.../sample.wav"}]}]
batch = processor.apply_chat_template(conv, tokenize=True, add_generation_prompt=True, return_dict=True).to(device)
print(processor.batch_decode(model.generate(**batch)[:, batch["input_ids"].shape[1]:], skip_special_tokens=True)[0])

Training / Fine-tuning

from transformers import AudioFlamingo3ForConditionalGeneration, AutoProcessor

model_id = "nvidia/music-flamingo-hf"
processor = AutoProcessor.from_pretrained(model_id)
model = AudioFlamingo3ForConditionalGeneration.from_pretrained(model_id, device_map="auto")
model.train()

conversation = [
    [
        {
            "role": "user",
            "content": [
                {"type": "text", "text": "What's the key of this song?"},
                {"type": "audio", "path": "https://huggingface.co/datasets/nvidia/MF-Skills/resolve/main/assets/song_1.mp3"},
            ],
        },
        {
            "role": "assistant",
            "content": [{"type": "text", "text": "D major"}],
        }
    ],
    [
        {
            "role": "user",
            "content": [
                {
                    "type": "text",
                    "text": "What's the bpm of this song?",
                },
                {"type": "audio", "path": "https://huggingface.co/datasets/nvidia/MF-Skills/resolve/main/assets/song_2.mp3"},
            ],
        },
        {
            "role": "assistant",
            "content": [{"type": "text", "text": "87"}],
        }

    ]
]

inputs = processor.apply_chat_template(
    conversation,
    tokenize=True,
    add_generation_prompt=True,
    return_dict=True,
    output_labels=True,
).to(model.device)

loss = model(**inputs).loss
loss.backward()

Generation options

You can tune decoding similar to other text-generation models:

generate_kwargs = {
    "max_new_tokens": 256,
    "do_sample": True,
    "temperature": 0.7,
    "top_p": 0.9,
}
out = model.generate(**batch, **generate_kwargs)

Additional Speed & Memory Improvements

Flash Attention 2

If your GPU supports it and you are not using torch.compile, install Flash-Attention and enable it at load time:

pip install flash-attn --no-build-isolation
model = AudioFlamingo3ForConditionalGeneration.from_pretrained(
    model_id, torch_dtype=torch_dtype, low_cpu_mem_usage=True, attn_implementation="flash_attention_2"
).to(device)

Torch compile

MF’s forward pass is compatible with torch.compile for significant speed-ups:

import torch
torch.set_float32_matmul_precision("high")

model.generation_config.cache_implementation = "static"
model.generation_config.max_new_tokens = 256
model.forward = torch.compile(model.forward, mode="reduce-overhead", fullgraph=True)

torch.compile is not compatible with Flash Attention 2 at the same time.

PyTorch SDPA

If Flash-Attention isn’t available, MF will use PyTorch scaled-dot product attention (SDPA) by default on supported PyTorch versions. You can set it explicitly:

model = AudioFlamingo3ForConditionalGeneration.from_pretrained(
    model_id, torch_dtype=torch_dtype, low_cpu_mem_usage=True, attn_implementation="sdpa"
).to(device)

License / Terms of Use

The model is released under the NVIDIA OneWay Noncommercial License. Portions of the dataset generation are also subject to the Qwen Research License and OpenAI’s Terms of Use.

Deployment Geography

Global.

Use Case

Intended for researchers and developers to explore:

  • Music question answering and reasoning
  • Long-context music comprehension
  • Interactive music design assistants

References:

Model Architecture:

Architecture Type: Transformer
Network Architecture: Audio Flamingo 3 Number of model parameters: 8B

MF uses:

  • AF-Whisper unified audio encoder from Audio Flamingo 3
  • MLP-based audio adaptor
  • Decoder-only LLM backbone (Qwen2.5-7B)

This model was developed based on Audio Flamingo 3

Input:

Input Type: Music (song or instrumental), Text Input Format: WAV/MP3/FLAC, UTF-8 text Input Parameters: Audio is Two-Dimensional (2D) and Text is One-Dimensional (1D) Other Properties Related to Input: -Max Audio Length: 20 Minutes -Max Text Length: 24000 tokens

Output:

Output Type: Text (and optional speech) Text Format: UTF-8 string Output Parameters: One-Dimensional (1D) Other Properties Related to Output: -Max Text Length: 2048 tokens

Our AI models are designed and/or optimized to run on NVIDIA GPU-accelerated systems (A100/H100). By leveraging NVIDIA’s hardware (e.g. GPU cores) and software frameworks (e.g., CUDA libraries), the model achieves faster training and inference times compared to CPU-only solutions.

Software Integration:

Runtime Engine: PyTorch / HuggingFace Transformers

Supported Hardware:

  • NVIDIA Ampere (A100)
  • NVIDIA Hopper (H100)

Supported OS:

  • Linux

The integration of foundation and fine-tuned models into AI systems requires additional testing using use-case-specific data to ensure safe and effective deployment. Following the V-model methodology, iterative testing and validation at both unit and system levels are essential to mitigate risks, meet technical and functional requirements, and ensure compliance with safety and ethical standards before deployment.

Model Version:

  • v1.0

Training and Testing Datasets:

Training Dataset:

MF is trained entirely on music data collected from various sources. For each dataset, we mention whether the dataset annotations are collected by Human or they are Automated i.e. generated using AI models.

Data Modality: Audio Audio Training Data Size: 10,000 to 1 Million Hours

The data collection method noted below applies for all datasets used for training and testing: Data Collection Method: Human Labeling Collection Method: Please see below.


Testing Dataset:

Music Flamingo is evaluated on the test split of the following datasets.

Data Collection Method: Human (for all datasets noted below) Labeling Method: Please see below.


Inference:

Engine: HuggingFace Transformers
Test Hardware: NVIDIA A100 80 GB


Ethical Considerations:

NVIDIA believes Trustworthy AI is a shared responsibility and we have established policies and practices to enable development for a wide array of AI applications. When downloaded or used in accordance with our terms of service, developers should work with their internal model team to ensure this model meets requirements for the relevant industry and use case and addresses unforeseen product misuse. Please report model quality, risk, security vulnerabilities or NVIDIA AI Concerns here.


Acknowledgements

Built with Audio Flamingo 3, Qwen, NVILA and the open audio-ML community.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Нельзя запустить

Для архитектуры audioflamingo3 нет загрузчика под задачу speech-to-text.

Класс архитектуры
AudioFlamingo3ForConditionalGeneration
Ревизия весов
e560c33

0 моделей