musicgen-melody
Will it run on your hardware?
Pick your GPU memory - see which quantizations fit, and the cheapest card for the rest
Need an exact figure for your context length? Use the VRAM calculator.
Run it locally
Copy-paste - running in under a minute
vllm serve facebook/musicgen-melodyNew to this? Start with Ollama · serve to many users with vLLM.
Deep dive
Notes, sources, and the full write-up
musicgen-melody is an open-weight audio and music generation model from facebook, published on Hugging Face in June 2023. It has 1.6B parameters and is released under the cc-by-nc-4.0 license.
HardwareLink to this section
At full FP16 precision the weights need about 3 GB of memory; 8-bit quantization brings that to roughly 2 GB. That is small enough for most consumer GPUs, Apple Silicon Macs, and many CPUs.
PopularityLink to this section
musicgen-melody had 7,277 downloads on Hugging Face in the last month and has 266 likes.
Run it locallyLink to this section
The weights are on Hugging Face and load with Hugging Face Transformers. Follow the model card for the exact setup and license terms.
Frequently asked
Quick answers to common questions
How much VRAM does musicgen-melody need?
musicgen-melody with 1.6B parameters needs approximately 1 GB at Q4_K_M quantization. Use our VRAM calculator for an exact estimate.
Is musicgen-melody better than other facebook models?
musicgen-melody has 1.6B parameters with 8,192 context - a strong choice for audio-generation.
What license is musicgen-melody under?
musicgen-melody is released under the cc-by-nc-4.0 license, making it suitable for most commercial and personal projects.
What hardware runs musicgen-melody well?
With 1.6B parameters, musicgen-melody requires adequate VRAM. High-end GPUs like the RTX 4090 (24GB), RTX 5090 (32GB), or Mac Studio with unified memory are good options. Check our hardware directory for specific recommendations.
What is the best quantization for musicgen-melody?
Q4_K_M is the recommended sweet spot - ~98% of FP16 quality at ~27% of the size. Q5_K_M (~1 GB) is an option if you have spare VRAM. Use our VRAM calculator to compare.
What models compete with musicgen-melody?
musicgen-melody competes with other models in its class. Browse our model directory for comparisons, benchmarks, and community reviews to find the best fit.
Nearby options
Similar models and compatible hardware by spec