Skip to content

About

"HeartMuLa Suno UI Pro: A self-contained, high-performance music generation dashboard with built-in LLM assistants and optimized VRAM management.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

HeartMuLa Suno UI (Standalone Edition) ๐ŸŽนโœจ

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.

๐ŸŒŸ Overview

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.

๐Ÿ”ฅ Key Features

  • ๐ŸŽต 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

โš™๏ธ System Requirements

Minimum Requirements

  • 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

Recommended Requirements

  • GPU: NVIDIA GPU with 12GB+ VRAM (RTX 3060 12GB, RTX 4070, or better)
  • RAM: 32GB system memory
  • Storage: 20GB+ free disk space (SSD recommended)

Software Prerequisites

  • 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)

๐Ÿš€ Installation

Windows Installation

  1. Install Prerequisites:

  2. Clone the Repository:

    git clone https://github.com/mrxmentalist/Heartmula-Suno-UI.git
    cd Heartmula-Suno-UI
  3. 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
  4. Start the Application:

    run_app.bat

    Or double-click the desktop shortcut.

Linux/macOS Installation

  1. 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
  2. Clone the Repository:

    git clone https://github.com/mrxmentalist/Heartmula-Suno-UI.git
    cd Heartmula-Suno-UI
  3. Run Installation Script:

    chmod +x install.sh
    ./install.sh
  4. Start the Application:

    ./run.sh

๐ŸŽฎ Usage

Starting the App

Windows:

  • Double-click run_app.bat or use the desktop shortcut
  • Or run from command prompt: run_app.bat

Linux/macOS:

./run.sh

The app will automatically:

  1. Start the backend API server (port 8000)
  2. Start the frontend development server (port 5173)
  3. Open your default browser to http://localhost:5173

Using the Interface

  1. 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
  2. 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
  3. 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
  4. 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

โš ๏ธ VRAM Management Tips

If you have 8GB VRAM or less:

  1. Load the AI Assistant when you need it (Settings tab)
  2. Generate lyrics/prompts
  3. Unload the AI before generating music (click trash icon)
  4. 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

๐Ÿ› ๏ธ Configuration

Backend Configuration

Edit app_backend.py to customize:

  • Model paths
  • API port (default: 8000)
  • CUDA settings
  • Output directory

Frontend Configuration

Edit frontend/vite.config.js to customize:

  • Dev server port (default: 5173)
  • API proxy settings

๐Ÿ“ Project Structure

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

๐Ÿ› Troubleshooting

Installation Issues

Python not found:

  • Ensure Python is in your PATH
  • On Windows, reinstall Python with "Add to PATH" checked
  • Verify: python --version or python3 --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

Runtime Issues

"CUDA out of memory" error:

  • Unload the AI Assistant before generating music
  • Reduce max_audio_length_ms in 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/ and ckpt/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:8000 is accessible
  • Check firewall settings

๐Ÿ”ง Advanced Configuration

Custom Model Paths

Edit app_backend.py:

PROJECT_ROOT_DIR = Path(__file__).resolve().parent
HEARTMULA_SRC_PATH = PROJECT_ROOT_DIR / "heartmula" / "src"

Environment Variables

Create a .env file for custom settings:

PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True
CUDA_VISIBLE_DEVICES=0

๐Ÿ“œ Credits & License

  • 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

โš–๏ธ License

This project is for creative and educational purposes. Please ensure you comply with the licensing terms of the underlying models:

๐Ÿค Contributing

Contributions are welcome! Please feel free to submit issues, feature requests, or pull requests.

๐Ÿ“ž Support


Enjoy creating music with HeartMuLa! ๐ŸŽตโœจ

About

"HeartMuLa Suno UI Pro: A self-contained, high-performance music generation dashboard with built-in LLM assistants and optimized VRAM management.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages