/ Модель

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

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

music-flamingo-hf-fork

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

Производная модели nvidia/music-flamingo-hf. Аудиоязычная модель NVIDIA для анализа музыки и песен, отвечающая текстом на вопросы о звучании, структуре и содержании аудио.

24скачиваний за 30 дней0лайковвеса обновлены30 июл 2026

Бенчмарки

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

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

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

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

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

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

Карточка модели amandabenson/music-flamingo-hf-fork на Hugging Face совпадает с карточкой nvidia/music-flamingo-hf, поэтому описание составлено по ней.

Music Flamingo — разработанная NVIDIA крупная аудиоязыковая модель для понимания музыки и песен. Она принимает музыкальное аудио вместе с текстовым запросом и генерирует текстовые ответы; заявлены вопросы и рассуждения о гармонии, структуре, тембре, текстах песен и культурном контексте, а также анализ длинных записей продолжительностью до 20 минут.

Модель построена на архитектуре Audio Flamingo 3: использует аудиокодировщик AF-Whisper, MLP-адаптер и декодерную языковую модель Qwen2.5-7B. Размер модели — 8 млрд параметров; максимальная длина текста на входе — 24 000 токенов, на выходе — 2 048 токенов. Для работы предусмотрены Transformers и PyTorch, а README указывает на оптимизацию для GPU NVIDIA A100 и H100.

Модель предназначена для исследовательских и разработческих сценариев: анализа музыки, музыкальных вопросов и ответов, а также создания интерактивных музыкальных помощников. Карточка сообщает о сравнительных оценках на более чем десяти публичных задачах понимания музыки. Лицензия обозначена как other, а README ограничивает использование некоммерческими исследованиями. Как и другие генеративные модели, её выводы требуют проверки; использование в продукте требует дополнительной оценки на данных конкретного сценария.

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

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

Ограничения

README указывает некоммерческое исследовательское использование; лицензия в метаданных обозначена как other, поэтому перед применением следует проверить её условия. Для развёртывания рекомендуется дополнительная проверка качества и безопасности на данных целевого сценария.

Для каких профессий подходит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
Ревизия весов
691a9c5

0 моделей