Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

magenta-community
/
magenta-realtime-2-small

Text-to-Audio
Transformers
Safetensors
magenta_rt2
image-feature-extraction
music-generation
real-time
magenta
audio
custom_code
Model card Files Files and versions
xet
Community

Instructions to use magenta-community/magenta-realtime-2-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use magenta-community/magenta-realtime-2-small with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-to-audio", model="magenta-community/magenta-realtime-2-small", trust_remote_code=True)
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("magenta-community/magenta-realtime-2-small", trust_remote_code=True, dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
magenta-realtime-2-small
1.13 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 17 commits
multimodalart's picture
multimodalart HF Staff
Move CudaGraphStreamer to transformers-free cudagraph.py (modeling re-exports)
efa4bbe verified 16 days ago
  • .gitattributes
    1.52 kB
    initial commit 16 days ago
  • README.md
    5.31 kB
    Card: real-time per-frame streaming usage 16 days ago
  • aoti.py
    5.95 kB
    Add optional CFG guidance + single-dispatch CUDA-graph streaming (additive; defaults unchanged) 16 days ago
  • codec_shapes.json
    2.82 kB
    Upload folder using huggingface_hub 16 days ago
  • config.json
    6.15 kB
    Upload folder using huggingface_hub 16 days ago
  • configuration_magenta_rt2.py
    4.09 kB
    Upload folder using huggingface_hub 16 days ago
  • cudagraph.py
    8.62 kB
    Move CudaGraphStreamer to transformers-free cudagraph.py (modeling re-exports) 16 days ago
  • depthformer.py
    18 kB
    Add optional CFG guidance + single-dispatch CUDA-graph streaming (additive; defaults unchanged) 16 days ago
  • layers.py
    14.4 kB
    Upload folder using huggingface_hub 16 days ago
  • model.safetensors
    1.13 GB
    xet
    Upload folder using huggingface_hub 16 days ago
  • modeling_magenta_rt2.py
    26.1 kB
    Move CudaGraphStreamer to transformers-free cudagraph.py (modeling re-exports) 16 days ago
  • musiccoca.py
    6.84 kB
    Upload folder using huggingface_hub 16 days ago
  • processing_musiccoca.py
    2.87 kB
    Upload folder using huggingface_hub 16 days ago
  • spectrostream.py
    14.9 kB
    Sync: stateful streaming codec decoder (decode_streaming/decode_stream/init_decode_state) 16 days ago