Sponsored by
Vmake Labs Video Enhancer
-Vmake Labs Video Enhancer uses AI to improve video quality, restore details, reduce blur, and upscale videos to 8K.
JAM: A Tiny Flow-based Song Generator with Fine-grained Controllability and Aesthetic Alignment
JAM is a rectified flow-based model for lyrics-to-song generation that addresses the lack of fine-grained word-level controllability in existing lyrics-to-song models. Built on a compact 530M-parameter architecture with 16 LLaMA-style Transformer layers as the Diffusion Transformer (DiT) backbone, JAM enables precise vocal control that musicians desire in their workflows. Unlike previous models, JAM provides word and phoneme-level timing control, allowing musicians to specify the exact placement of each vocal sound for improved rhythmic flexibility and expressive timing.
Features
Fine-grained Word and Phoneme-level Timing Control
: The first model to provide word-level timing and duration control in song generation, enabling precise prosody control for musicians
Compact 530M Parameter Architecture
: Less than half the size of existing models, enabling faster inference with reduced resource requirements
Enhanced Lyric Fidelity
: Achieves over 3× reduction in Word Error Rate (WER) and Phoneme Error Rate (PER) compared to prior work through precise phoneme boundary attention
Global Duration Control
: Controllable duration up to 3 minutes and 50 seconds.
Aesthetic Alignment through Direct Preference Optimization
: Iterative refinement using synthetic preference datasets to better align with human aesthetic preferences, eliminating manual annotation requirements
JAM Samples
Check out the example generated music in the
generated_examples/
folder to hear what JAM can produce:
Hybrid Minds, Brodie - Heroin.mp3
- Electronic music with synthesized beats and electronic elements
Jade Bird - Avalanche.mp3
- Country music with acoustic guitar and folk influences
Rizzle Kicks, Rachel Chinouriri - Follow Excitement!.mp3
- Rap music with rhythmic beats and hip-hop style
These samples demonstrate JAM's ability to generate high-quality music across different genres while maintaining vocal intelligence, style consistency and musical coherence.
Requirements
Python 3.10 or higher
CUDA-compatible GPU with sufficient VRAM (8GB+ recommended)
Installation
1. Clone the Repository
git clone https://github.com/declare-lab/jamify
cd jam
2. Run Installation Script
The project includes an automated installation script, run it in your own virtual environment:
bash install.sh
This script will:
Initialize and update git submodules (DeepPhonemizer)
Generated files are saved to the output directory:
outputs/
├── generated/ # Final trimmed audio files
├── generated_orig/ # Original generated audio
├── cfm_latents/ # Intermediate latent representations
├── local_files/ # Process-specific metadata
└── generation_config.yaml # Configuration used for generation
Performance Tips
GPU Memory
: Use
evaluation.batch_size=1
for large on limited VRAM
Multi-GPU
: Use
accelerate launch
for faster processing of multiple samples
Mixed Precision
: Add
--mixed_precision=fp16
to reduce memory usage
Troubleshooting
Common Issues
"Checkpoint path not found"
# Make sure to specify the checkpoint path
python -m jam.infer evaluation.checkpoint_path=path/to/your/model.safetensors
"CUDA out of memory"
# Reduce batch size or use mixed precision
accelerate launch --mixed_precision=fp16 -m jam.infer evaluation.checkpoint_path=model.safetensors
"Test set not found"
# Create input.json file in inputs/ directory or specify custom path
python -m jam.infer evaluation.test_set_path=path/to/your/input.json evaluation.checkpoint_path=model.safetensors
Model Downloads
The
inference.py
script automatically downloads the JAM-0.5 model. For manual download:
from huggingface_hub import snapshot_download
model_path = snapshot_download(repo_id="declare-lab/jam-0.5")
Citation
If you use JAM in your research, please cite:
@misc{jam2024,
title={JAM: A Tiny Flow-based Song Generator with Fine-grained Controllability and Aesthetic Alignment},
author={Renhang Liu and Chia-Yu Hung and Navonil Majumder and Taylor Gautreaux and Amir Ali Bagherzadeh and Chuan Li and Dorien Herremans and Soujanya Poria},
year={2025}
}
License
JAM
is the first open-sourced model released under
Project Jamify
, developed for facilitating academic research and creative exploration in AI-generated songs from lyrics. The model is subject to:
Project Jamify License
: Intended
solely for non-commercial, academic, and entertainment purposes
Stability AI Community License Agreement
: Required due to use of Stability AI model components
Key Restrictions:
No copyrighted material
was used in a way that would intentionally infringe on intellectual property rights
JAM is not designed
to reproduce or imitate any specific artist, label, or protected work
Outputs generated by JAM must
not be used to create or disseminate content that violates copyright laws
Commercial use of JAM or its outputs is strictly prohibited
Responsibility for the use of the model and its outputs lies entirely with the end user, who must ensure all uses comply with applicable legal and ethical standards.
JAM-0.5 huggingface.co is an AI model on huggingface.co that provides JAM-0.5's model effect (), which can be used instantly with this declare-lab JAM-0.5 model. huggingface.co supports a free trial of the JAM-0.5 model, and also provides paid use of the JAM-0.5. Support call JAM-0.5 model through api, including Node.js, Python, http.
JAM-0.5 huggingface.co is an online trial and call api platform, which integrates JAM-0.5's modeling effects, including api services, and provides a free online trial of JAM-0.5, you can try JAM-0.5 online for free by clicking the link below.
declare-lab JAM-0.5 online free url in huggingface.co:
JAM-0.5 is an open source model from GitHub that offers a free installation service, and any user can find JAM-0.5 on GitHub to install. At the same time, huggingface.co provides the effect of JAM-0.5 install, users can directly use JAM-0.5 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.