A professional, self-contained music generation suite powered by HeartMuLa. This standalone edition runs independently without requiring Pinokio, featuring an integrated AI assistant, song extension capabilities, and a modern web interface.
HeartMuLa Suno UI is a complete music generation platform that combines the power of HeartMuLa's music generation model with an intuitive web interface and AI-powered assistance for lyrics and style prompts.
- ๐ต Advanced Music Generation: Create high-quality music from lyrics and style tags
- ๐ค Integrated AI Assistant: Built-in LLM (Qwen-2.5) generates lyrics and refines style prompts locallyโno external servers needed
- ๐ผ Physical Song Extension: Seamlessly continue any track with perfect transitions using audio token memory
- ๐จ Musical UX: Technical parameters presented in musician-friendly terms:
- Prompt Adherence (CFG Scale)
- Creative Freedom (Temperature)
- Sample Variety (Top-K)
- ๐ค Vocal Style Selector: Choose gender and tone (Male Vocals, Raspy Rock, etc.) from a dedicated menu
- ๐ Pro Music Library: Rename, delete, and manage your generations with style-coded cover art
- ๐ฅ๏ธ Cross-Platform: Works on Windows, Linux, and macOS
- GPU: NVIDIA GPU with 8GB VRAM (requires 4-bit precision for AI Engine)
- RAM: 16GB system memory
- Storage: ~15GB free disk space for models and dependencies
- OS: Windows 10/11, Linux (Ubuntu 20.04+), or macOS
- GPU: NVIDIA GPU with 12GB+ VRAM (RTX 3060 12GB, RTX 4070, or better)
- RAM: 32GB system memory
- Storage: 20GB+ free disk space (SSD recommended)
- Python: 3.8 or higher (3.10-3.12 recommended)
- Node.js: 16.x or higher
- Git: For cloning repositories
- CUDA: 11.8 or 12.1 (for NVIDIA GPUs)
-
Install Prerequisites:
- Download and install Python 3.10 (check "Add Python to PATH")
- Download and install Node.js (LTS version)
- Download and install Git for Windows
-
Clone the Repository:
git clone https://github.com/mrxmentalist/Heartmula-Suno-UI.git cd Heartmula-Suno-UI -
Run Installation Script:
install.bat
The installer will:
- Create a Python virtual environment
- Install all Python dependencies
- Clone the HeartMuLa repository
- Install HeartMuLa as a package
- Download AI models (~15GB total - LLM + HeartMuLa)
- Install frontend dependencies
- Create a desktop shortcut
-
Start the Application:
run_app.bat
Or double-click the desktop shortcut.
-
Install Prerequisites:
# Ubuntu/Debian sudo apt update sudo apt install python3 python3-venv python3-pip nodejs npm git # macOS (using Homebrew) brew install python@3.10 node git
-
Clone the Repository:
git clone https://github.com/mrxmentalist/Heartmula-Suno-UI.git cd Heartmula-Suno-UI -
Run Installation Script:
chmod +x install.sh ./install.sh
-
Start the Application:
./run.sh
Windows:
- Double-click
run_app.bator use the desktop shortcut - Or run from command prompt:
run_app.bat
Linux/macOS:
./run.shThe app will automatically:
- Start the backend API server (port 8000)
- Start the frontend development server (port 5173)
- Open your default browser to
http://localhost:5173
-
Generate Music:
- Enter your lyrics or use the AI to generate them
- Add style tags (genre, mood, instruments)
- Optionally select vocal style
- Click "Generate" and wait for your music
-
AI Assistant:
- Click the magic wand icon to load the AI assistant
- Use it to generate lyrics from a topic
- Or refine natural language into proper style tags
- Remember to unload the AI (trash icon) before generating music if you have limited VRAM
-
Song Extension:
- Find a completed generation in your library
- Click "Continue" to extend the song
- The model will seamlessly continue from where it left off
-
Library Management:
- View all your generations in the Library tab
- Rename songs by clicking the edit icon
- Delete unwanted generations
- Play audio directly in the browser
If you have 8GB VRAM or less:
- Load the AI Assistant when you need it (Settings tab)
- Generate lyrics/prompts
- Unload the AI before generating music (click trash icon)
- This frees up ~2-4GB VRAM for the music model
If you have 12GB+ VRAM:
- You can keep the AI loaded while generating music
- The app will manage memory automatically
Edit app_backend.py to customize:
- Model paths
- API port (default: 8000)
- CUDA settings
- Output directory
Edit frontend/vite.config.js to customize:
- Dev server port (default: 5173)
- API proxy settings
Heartmula-Suno-UI/
โโโ app_backend.py # FastAPI backend server
โโโ llm_engine.py # Local LLM management
โโโ download_models.py # Model downloader script
โโโ requirements.txt # Python dependencies
โโโ install.bat/sh # Installation scripts
โโโ run_app.bat/run.sh # Launch scripts
โโโ frontend/ # React + Vite frontend
โ โโโ src/
โ โโโ package.json
โ โโโ vite.config.js
โโโ heartmula/ # HeartMuLa repository (cloned during install)
โโโ ckpt/ # Model weights directory
โ โโโ llm/ # AI assistant models
โ โโโ heartmula/ # Music generation model
โโโ outputs/ # Generated music files
Python not found:
- Ensure Python is in your PATH
- On Windows, reinstall Python with "Add to PATH" checked
- Verify:
python --versionorpython3 --version
Node.js not found:
- Install Node.js from nodejs.org
- Verify:
node --version
Git not found:
- Install Git for your platform
- Verify:
git --version
Model download fails:
- Check your internet connection
- You can manually download models later:
python download_models.py
"CUDA out of memory" error:
- Unload the AI Assistant before generating music
- Reduce
max_audio_length_msin the generation settings - Use 4-bit precision for the AI model
- Close other GPU-intensive applications
Port already in use:
- Backend (8000): Check if another app is using port 8000
- Frontend (5173): Check if another Vite server is running
- Change ports in configuration files if needed
Models not loading:
- Ensure models were downloaded successfully
- Check
ckpt/llm/andckpt/heartmula/directories exist - Verify sufficient disk space
- Re-run:
python download_models.py
Frontend not connecting to backend:
- Ensure backend is running (check console for errors)
- Verify
http://localhost:8000is accessible - Check firewall settings
Edit app_backend.py:
PROJECT_ROOT_DIR = Path(__file__).resolve().parent
HEARTMULA_SRC_PATH = PROJECT_ROOT_DIR / "heartmula" / "src"Create a .env file for custom settings:
PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True
CUDA_VISIBLE_DEVICES=0- HeartMuLa: Built on the HeartMuLa music generation model
- AI Assistant: Powered by Qwen-2.5 (Alibaba Cloud)
- UI Framework: React + Vite + TailwindCSS
- Backend: FastAPI + PyTorch
This project is for creative and educational purposes. Please ensure you comply with the licensing terms of the underlying models:
Contributions are welcome! Please feel free to submit issues, feature requests, or pull requests.
- Issues: GitHub Issues
- Discussions: GitHub Discussions
Enjoy creating music with HeartMuLa! ๐ตโจ