google/magenta-realtime-2
Summary
Google DeepMind released Magenta RealTime 2, an open music generation model for on-device streaming with low-latency control via text, audio examples, and MIDI.
View Cached Full Text
Cached at: 06/08/26, 03:28 AM
google/magenta-realtime-2 · Hugging Face
Source: https://huggingface.co/google/magenta-realtime-2
https://huggingface.co/google/magenta-realtime-2#model-card-for-magenta-realtime-2Model Card for Magenta RealTime 2
Authors: Google DeepMind
Resources:
https://huggingface.co/google/magenta-realtime-2#terms-of-useTerms of Use
Magenta RealTime 2 is offered under a combination of licenses: the codebase is licensed underApache 2.0, and the model weights underCreative Commons Attribution 4.0 International. In addition, we specify the following usage terms:
Copyright 2026 Google LLC
Use these materials responsibly and do not generate content, including outputs, that infringe or violate the rights of others, including rights in copyrighted content.
Google claims no rights in outputs you generate using Magenta RealTime 2. You and your users are solely responsible for outputs and their subsequent uses.
Unless required by applicable law or agreed to in writing, all software and materials distributed here under the Apache 2.0 or CC-BY licenses are distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the licenses for the specific language governing permissions and limitations under those licenses. You are solely responsible for determining the appropriateness of using, reproducing, modifying, performing, displaying or distributing the software and materials, and any outputs, and assume any and all risks associated with your use or distribution of any of the software and materials, and any outputs, and your exercise of rights and permissions under the licenses.
https://huggingface.co/google/magenta-realtime-2#model-detailsModel Details
Magenta RealTime 2 is an open music generation model from Google built for on device streaming generation with low-latency control. It is alive music modeland a follow up to the priorMagenta RealTime modelandLyria RealTime API, offering on-device generation with richer control and lower latency. Magenta RealTime 2 enables the continuous generation of musical audio steered by text prompts, audio examples, and MIDI.
https://huggingface.co/google/magenta-realtime-2#system-componentsSystem Components
Magenta RealTime 2 is composed of three components: SpectroStream, MusicCoCa, and an LLM. The structure is similar to that of the original Magenta RealTime, detailedhere. The primary difference is the LLM, which is now a Decoder-only model supporting frame-wise autoregression (rather than chunk-wise) and tuned for on-device streaming with frame-level control.
- SpectroStream(Li+ 25) is a discrete audio codec that converts stereo 48kHz audio into tokens.
- MusicCoCais a contrastive-trained model capable of embedding audio and text into a common embedding space, building onYu+ 22andHuang+ 22.
- Adecoder-only Transformer LLMgenerates audio tokens given context audio tokens, a tokenized MusicCoCa embedding, and MIDI tokens. There are two configurations:1. A
baseconfiguration with 2.4B parameters 2. Asmallconfiguration with 230M parameters
https://huggingface.co/google/magenta-realtime-2#inputs-and-outputsInputs and outputs
- SpectroStream RVQ codec: Tokenizes high-fidelity music audio- Encoder input / Decoder output: Music audio waveforms, 48kHz stereo - Encoder output / Decoder input: Discrete audio tokens, 25Hz frame rate, 64 RVQ depth, 10 bit codes, 16kbps
- MusicCoCa: Joint embeddings of text and music audio- Input: Music audio waveforms, 16kHz mono, or text representation of music style e.g. “heavy metal” - Output: 768 dimensional embedding, quantized to 12 RVQ depth, 10 bit codes
- Decoder Transformer LLM: Generates audio tokens given context, MIDI, and style. At each timestep (codec frame), the model receives:- Input:- (Context) SpectroStream tokens-
base: 25 frame (1s) windowed attention per layer, 20 layers -small: 41 frame (~1.6s) windowed attention per layer, 12 layers - Yields 20s effective receiptive field for both models - (Style) 12 MusicCoCa tokens - (MIDI) 128-dim multihot vector representing the state of each MIDI pitch during this frame (0 = Off, 1 = Sustain, 2 = Onset, 3 = Sustain or onset, model decides) - Output: 1 generated frame, 12 RVQ tokens
https://huggingface.co/google/magenta-realtime-2#usesUses
Music generation models, in particular ones targeted for continuous real-time generation and control, have a wide range of applications across various industries and domains. The following list of potential uses is not comprehensive. The purpose of this list is to provide contextual information about the possible use-cases that the model creators considered as part of model training and development.
- Interactive Music Creation- Live Performance / Improvisation: These models can be used to generate music in a live performance setting, controlled by performers manipulating style embeddings or the audio context - Accessible Music-Making & Music Therapy: People with impediments to using traditional instruments (skill gaps, disabilities, etc.) can participate in communal jam sessions or solo music creation. - Video Games: Developers can create a custom soundtrack for users in real-time based on their actions and environment.
- Research- Transfer learning: Researchers can leverage representations from MusicCoCa and Magenta RT 2 to recognize musical information.
- Personalization- Musicians can finetune models with their own catalog to customize the model to their style (fine tuning support coming soon).
- Education- Exploring Genres, Instruments, and History: Natural language prompting enables users to quickly learn about and experiment with musical concepts.
https://huggingface.co/google/magenta-realtime-2#out-of-scope-useOut-of-Scope Use
See ourTerms of Useabove for usage we consider out of scope.
https://huggingface.co/google/magenta-realtime-2#bias-risks-and-limitationsBias, Risks, and Limitations
Magenta RT 2 supports the real-time generation and steering of instrumental music. The purpose and intention of this capability is to foster the development of new real-time, interactive co-creation workflows that seamlessly integrate with human-centered forms of musical creativity.
Every AI music generation model, including Magenta RT 2, carries a risk of impacting the economic and cultural landscape of music. We aim to mitigate these risks through the following avenues:
- Prioritizing human-AI interaction as fundamental in the design of Magenta RT 2.
- Distributing the model under a terms of service that prohibit developers from generating outputs that infringe or violate the rights of others, including rights in copyrighted content.
- Training on primarily instrumental data. With specific prompting, this model has been observed to generate some vocal sounds and effects, though those vocal sounds and effects tend to be non-lexical.
https://huggingface.co/google/magenta-realtime-2#known-limitationsKnown limitations
Magenta RealTime 2 has similar limitations to Magenta RealTime in terms of genre coverage and non lexical vocalizations,refer here for details.
https://huggingface.co/google/magenta-realtime-2#benefitsBenefits
At the time of release, Magenta RealTime 2 represents the only open weights model supporting real-time, continuous musical audio generation with low latency control (~200ms). It is designed specifically to enable live, interactive musical creation, bringing new capabilities to musical performances, art installations, video games, and many other applications.
https://huggingface.co/google/magenta-realtime-2#how-to-get-started-with-the-modelHow to Get Started with the Model
See ourGet Started PageandGitHub repositoryfor usage examples.
https://huggingface.co/google/magenta-realtime-2#training-detailsTraining Details
https://huggingface.co/google/magenta-realtime-2#training-dataTraining Data
Magenta RealTime 2 was trained on ~71k hours of stock music from multiple sources, mostly instrumental.
https://huggingface.co/google/magenta-realtime-2#hardwareHardware
Magenta RealTime 2 was trained usingTensor Processing Unit (TPU)hardware.
https://huggingface.co/google/magenta-realtime-2#softwareSoftware
Training was done usingJAXandSequence Layers. JAX allows researchers to take advantage of the latest generation of hardware, including TPUs, for faster and more efficient training of large models.
https://huggingface.co/google/magenta-realtime-2#evaluationEvaluation
Model evaluation metrics and results will be shared in our forthcoming technical report.
https://huggingface.co/google/magenta-realtime-2#citationCitation
A paper about Magenta RealTime 2 is forthcoming. For now, please cite our previous technical report:
BibTeX:
@inproceedings{gdmlyria2025live,
title={Live Music Models},
author={Caillon, Antoine and McWilliams, Brian and Tarakajian, Cassie and Simon, Ian and Manco, Ilaria and Engel, Jesse and Constant, Noah and Li, Pen and Denk, Timo I. and Lalama, Alberto and Agostinelli, Andrea and Huang, Anna and Manilow, Ethan and Brower, George and Erdogan, Hakan and Lei, Heidi and Rolnick, Itai and Grishchenko, Ivan and Orsini, Manu and Kastelic, Matej and Zuluaga, Mauricio and Verzetti, Mauro and Dooley, Michael and Skopek, Ondrej and Ferrer, Rafael and Borsos, Zal{\'a}n and van den Oord, {\"A}aron and Eck, Douglas and Collins, Eli and Baldridge, Jason and Hume, Tom and Donahue, Chris and Han, Kehang and Roberts, Adam},
booktitle={NeurIPS Creative AI},
year={2025}
}
Similar Articles
@HuggingPapers: Google just released Magenta RealTime 2 on Hugging Face The only open-weights model for real-time continuous music gene…
Google released Magenta RealTime 2 on Hugging Face, an open-weights model for real-time continuous music generation on device with ~200ms latency, steerable by text, audio, or MIDI.
Infinite Music Glitch on my Arduino with Magenta Realtime 2
A developer built a local voice-controlled music system using an ESP32 microcontroller, a MacBook, Magenta Realtime 2 for real-time music generation, MLX Whisper for transcription, and a Qwen model for tool calling, enabling conversational control over music elements like genre and instruments.
Music AI Sandbox, now with new features and broader access
Google DeepMind expands Music AI Sandbox with new features including Lyria 2 music generation model and broader access to musicians in the U.S., enabling AI-assisted music creation through tools for generating, extending, and editing musical content.
google/gemma-4-31B-it-assistant
Google DeepMind releases Gemma 4, a family of open-weights multimodal models featuring Multi-Token Prediction (MTP) for up to 2x decoding speedups, supporting text, image, video, and audio with enhanced reasoning and coding capabilities.
MuseNet
OpenAI released MuseNet, a deep neural network based on GPT-2 architecture that generates 4-minute musical compositions with 10 instruments by learning patterns from hundreds of thousands of MIDI files. The model can combine multiple music styles and blend them in novel ways.