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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

facebook
/
musicgen-stereo-medium

Text-to-Audio
Transformers
PyTorch
Safetensors
Audiocraft
musicgen
Model card Files Files and versions
xet
Community
7

Instructions to use facebook/musicgen-stereo-medium with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use facebook/musicgen-stereo-medium with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-to-audio", model="facebook/musicgen-stereo-medium")
    # Load model directly
    from transformers import AutoProcessor, AutoModelForTextToWaveform
    
    processor = AutoProcessor.from_pretrained("facebook/musicgen-stereo-medium")
    model = AutoModelForTextToWaveform.from_pretrained("facebook/musicgen-stereo-medium", device_map="auto")
  • Audiocraft

    How to use facebook/musicgen-stereo-medium with Audiocraft:

    from audiocraft.models import MusicGen
    
    model = MusicGen.get_pretrained("facebook/musicgen-stereo-medium")
    
    descriptions = ['happy rock', 'energetic EDM', 'sad jazz']
    wav = model.generate(descriptions)  # generates 3 samples.
  • Notebooks
  • Google Colab
  • Kaggle
musicgen-stereo-medium
11.9 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 5 commits
reach-vb's picture
reach-vb
Update README.md
6fd9945 almost 3 years ago
  • .gitattributes
    1.52 kB
    initial commit almost 3 years ago
  • README.md
    13.6 kB
    Update README.md almost 3 years ago
  • compression_state_dict.bin
    589 Bytes
    xet
    Upload 2 files almost 3 years ago
  • config.json
    7.75 kB
    Add HF Weights (#1) almost 3 years ago
  • generation_config.json
    224 Bytes
    Add HF Weights (#1) almost 3 years ago
  • model.safetensors
    4.07 GB
    xet
    Add HF Weights (#1) almost 3 years ago
  • model.safetensors.index.fp32.json
    104 kB
    Add HF Weights (#1) almost 3 years ago
  • preprocessor_config.json
    275 Bytes
    Add HF Weights (#1) almost 3 years ago
  • pytorch_model.bin
    4.07 GB
    xet
    Add HF Weights (#1) almost 3 years ago
  • pytorch_model.bin.index.fp32.json
    104 kB
    Add HF Weights (#1) almost 3 years ago
  • pytorch_model.bin.index.json
    98.7 kB
    Add HF Weights (#1) almost 3 years ago
  • special_tokens_map.json
    2.2 kB
    Add HF Weights (#1) almost 3 years ago
  • spiece.model
    792 kB
    xet
    Add HF Weights (#1) almost 3 years ago
  • state_dict.bin
    3.73 GB
    xet
    Upload 2 files almost 3 years ago
  • tokenizer.json
    2.42 MB
    Add HF Weights (#1) almost 3 years ago
  • tokenizer_config.json
    20.8 kB
    Add HF Weights (#1) almost 3 years ago