← 开源
gabotechs

MusicGPT

Generate music based on natural language prompts using LLMs running locally

ApplicationsContent creationRust
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
1.46k
Star
170
Fork
+1
本周
3
贡献者
创建于 2024-05-03 · 更新于 2026-10-14 · 今日第 10261 名
主要开发者
gabotechsArantxaMunizvitonsky

gabotechs/MusicGPT 排名第 10,261,有 1,462 个星标。

同类别比较

gabotechs/MusicGPT 排名第 10,261,此处有 8 个同类条目;SmartSchoolAI/ai-to-pptx 排名第 10,260。

同类别比较
名称排名指标
Danau5tin/multi-agent-coding-system10,247
语言:
Python
星标数:
1,466
分叉数:
189
简介:
Reached #13 on Stanford's Terminal Bench leaderboard. Orchestrator, explorer & coder agents working together with intelligent context sharing.
Rachnog/Deep-Trading10,255
语言:
OpenEdge ABL
星标数:
1,463
分叉数:
682
简介:
Algorithmic trading with deep learning experiments
qupath/qupath10,256
语言:
Java
星标数:
1,463
分叉数:
363
简介:
QuPath - Open-source bioimage analysis for research
SmartSchoolAI/ai-to-pptx10,260
语言:
TypeScript
星标数:
1,462
分叉数:
187
简介:
前端后端同时开源。 Ai-to-pptx是一个使用AI技术(DeepSeek)制作PPTX的助手,支持在线生成和导出PPTX。 主要功能: 1 使用DeepSeek等大语言模型来生成大纲 2 生成PPTX的时候可以选择不同的模板 3 支持导出PPTX
buaacyw/GaussianEditor10,264
语言:
C++
星标数:
1,461
分叉数:
75
简介:
[CVPR 2024] GaussianEditor: Swift and Controllable 3D Editing with Gaussian Splatting
datitran/face2face-demo10,265
语言:
Python
星标数:
1,461
分叉数:
410
简介:
pix2pix demo that learns from facial landmarks and translates this into a face
langchain-ai/openwork10,270
语言:
TypeScript
星标数:
1,459
分叉数:
194
scraed/LanPaint10,274
语言:
Python
星标数:
1,458
分叉数:
54
简介:
High quality training free inpaint for every stable diffusion model. Supports ComfyUI
关键参数与规格
关键参数与规格
参数值
语言Rust
类别Applications
子类别Content creation
关键词LocalAI, Music
星标数1,462
分叉数170
贡献者3
创建日期2024-05-03
更新日期2026-10-14
1 天星标数0
7 天星标数1
排名10,261
上次排名10,271
排名变化10
7 天星标排名9,821
上次 7 天星标排名6,951
7 天星标排名变化-2,870
总星标排名8,256
上次总星标排名8,247
总星标排名变化-9
国家Spain
README 摘录

Overview MusicGPT is an application that allows running the latest music generation AI models locally in a performant way, in any platform and without installing heavy dependencies like Python or machine learning frameworks. Right now it only supports MusicGen by Meta, but the plan is to support different music generation models transparently to the user. The main milestones for the project are: [x] Text conditioned music generation [ ] Melody conditioned music generation [ ] Indeterminately long / infinite music streams Install Mac and Linux

MusicGPT can be installed on Mac and Linux using : Windows Download and install MusicGPT's executable file following this link. All platforms Precompiled binaries are available for the following platforms: macOS Apple Silicon Linux x86_64 Windows Just downloading them and executing them should be enough. Docker (Recommend for running with CUDA) If you want to run MusicGPT with a CUDA enabled GPU, this is the best way, as you only need to have the basic NVIDIA drivers installed in your

system. Once the image is downloaded, you can run it with: With cargo If you have the Rust toolchain installed in your system, you can install it with . Usage There are two ways of interacting with MusicGPT: the UI mode and the CLI mode. UI mode This mode will display a chat-like web application for exchanging prompts with the LLM. It will: store your chat history allow you to play the generated music samples whenever you want generate music

samples in the background allow you to use the UI in a device different from the one executing the LLMs You can run the UI by just executing the following command: You can also choose different models for running inference, and whether to use a GPU or not, for example: [! WARNING] Most models require really powerful hardware for running inference If you want to use a CUDA enabled GPU, it's recommended that you run MusicGPT with Docker: CLI mode This

mode will generate and play music directly in the terminal, allowing you to provide multiple prompts and playing audio as soon as it's generated. You can generate audio based on a prompt with the following command: By default, it produces a sample of 10s, which can be configured up to 30s: There's multiple models available, it will use the smallest one by default, but you can opt into a bigger model: [! WARNING] Most models require really powerful hardware for running

inference If you want to use a CUDA enabled GPU, it's recommended that you run MusicGPT with Docker: You can review all the options available running: Benchmarks The following graph shows the inference time taken for generating 10 seconds of audio using different models on a Mac M1 Pro. For comparison, it's Python equivalent using is shown. The command used for generating the 10 seconds of audio was: This is the Python script used for generating the 10 seconds of

audio Storage MusicGPT needs access to your storage in order to save downloaded models and generated audios along with some

常见问题

记录了多少星标和分叉?

gabotechs/MusicGPT 有 1,462 个星标和 170 个分叉。

仓库排名是多少?

gabotechs/MusicGPT 排名第 10,261。

记录的语言和类别是什么?

gabotechs/MusicGPT 有 1,462 个星标,语言为 Rust,类别为 Applications。

哪个仓库排名最接近?

gabotechs/MusicGPT 与 SmartSchoolAI/ai-to-pptx 比较,后者排名第 10,260,有 1,462 个星标。

README
 MusicGPT
 ![Signway logo](assets/music-icon.svg) 





Generate music based on natural language prompts using LLMs running locally.

https://github.com/gabotechs/MusicGPT/assets/45515538/f0276e7c-70e5-42fc-817a-4d9ee9095b4c

☝️ Turn up the volume!

Overview

MusicGPT is an application that allows running the latest music generation AI models locally in a performant way, in any platform and without installing heavy dependencies like Python or machine learning frameworks.

Right now it only supports MusicGen by Meta, but the plan is to support different music generation models transparently to the user.

The main milestones for the project are:

  • [x] Text conditioned music generation
  • [ ] Melody conditioned music generation
  • [ ] Indeterminately long / infinite music streams

Install

Mac and Linux

MusicGPT can be installed on Mac and Linux using brew:

brew install gabotechs/taps/musicgpt

Windows

Download and install MusicGPT's executable file following this link.

All platforms

Precompiled binaries are available for the following platforms:

Just downloading them and executing them should be enough.

Docker (Recommend for running with CUDA)

If you want to run MusicGPT with a CUDA enabled GPU, this is the best way, as you only need to have the basic NVIDIA drivers installed in your system.

docker pull gabotechs/musicgpt

Once the image is downloaded, you can run it with:

docker run -it --gpus all -p 8642:8642 -v ~/.musicgpt:/root/.local/share/musicgpt gabotechs/musicgpt --gpu --ui-expose

With cargo

If you have the Rust toolchain installed in your system, you can install it with cargo.

cargo install musicgpt

Usage

There are two ways of interacting with MusicGPT: the UI mode and the CLI mode.

UI mode

This mode will display a chat-like web application for exchanging prompts with the LLM. It will:

  • store your chat history
  • allow you to play the generated music samples whenever you want
  • generate music samples in the background
  • allow you to use the UI in a device different from the one executing the LLMs

You can run the UI by just executing the following command:

musicgpt

You can also choose different models for running inference, and whether to use a GPU or not, for example:

musicgpt --gpu --model medium

[!WARNING]
Most models require really powerful hardware for running inference

If you want to use a CUDA enabled GPU, it's recommended that you run MusicGPT with Docker:

docker run -it --gpus all -p 8642:8642 -v ~/.musicgpt:/root/.local/share/musicgpt gabotechs/musicgpt --ui-expose --gpu

CLI mode

This mode will generate and play music directly in the terminal, allowing you to provide multiple prompts and playing audio as soon as it's generated. You can generate audio based on a prompt with the following command:

musicgpt "Create a relaxing LoFi song"

By default, it produces a sample of 10s, which can be configured up to 30s:

musicgpt "Create a relaxing LoFi song" --secs 30

There's multiple models available, it will use the smallest one by default, but you can opt into a bigger model:

musicgpt "Create a relaxing LoFi song" --model medium

[!WARNING]
Most models require really powerful hardware for running inference

If you want to use a CUDA enabled GPU, it's recommended that you run MusicGPT with Docker:

docker run -it --gpus all -v ~/.musicgpt:/root/.local/share/musicgpt gabotechs/musicgpt --gpu "Create a relaxing LoFi song"

You can review all the options available running:

musicgpt --help

Benchmarks

The following graph shows the inference time taken for generating 10 seconds of audio using different models on a Mac M1 Pro. For comparison, it's Python equivalent using https://github.com/huggingface/transformers is shown.

The command used for generating the 10 seconds of audio was:

musicgpt '80s pop track with bassy drums and synth'

This is the Python script used for generating the 10 seconds of audio

import scipy
import time
from transformers import AutoProcessor, MusicgenForConditionalGeneration

processor = AutoProcessor.from_pretrained("facebook/musicgen-small")
model = MusicgenForConditionalGeneration.from_pretrained("facebook/musicgen-small")

inputs = processor(
    text=["80s pop track with bassy drums and synth"],
    padding=True,
    return_tensors="pt",
)

start = time.time()
audio_values = model.generate(**inputs, max_new_tokens=500)
print(time.time() - start) # Log time taken in generation

sampling_rate = model.config.audio_encoder.sampling_rate
scipy.io.wavfile.write("musicgen_out.wav", rate=sampling_rate, data=audio_values[0, 0].numpy())

Storage

MusicGPT needs access to your storage in order to save downloaded models and generated audios along with some metadata needed for the application to work properly. Assuming your username is foo, it will store the data in the following locations:

  • Windows: C:\Users\foo\AppData\Roaming\gabotechs\musicgpt
  • MacOS: /Users/foo/Library/Application\ Support/com.gabotechs.musicgpt
  • Linux: /home/foo/.config/musicgpt

License

The code is licensed under a MIT License, but the AI model weights that get downloaded at application startup are licensed under the CC-BY-NC-4.0 License as they are generated based on the following repositories:

排名相邻
同类项目