Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spijkervet/gpt-2-lyrics
Using GPT-2 to generate lyrics
https://github.com/spijkervet/gpt-2-lyrics
Last synced: 16 days ago
JSON representation
Using GPT-2 to generate lyrics
- Host: GitHub
- URL: https://github.com/spijkervet/gpt-2-lyrics
- Owner: Spijkervet
- Created: 2020-01-15T19:56:19.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T18:51:30.000Z (almost 2 years ago)
- Last Synced: 2024-10-12T05:47:43.601Z (about 1 month ago)
- Language: Python
- Size: 10 MB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GPT-2-Lyrics
This repository is designed to fine tune existing GPT-2 models on lyric datasets.## Usage
To fine-tune a pre-trained GPT-2 medium model on lyrics, with all the lyrics in a file called `lyrics.txt`, use:
```
sh finetune.sh
```To generate samples from the finetuned model, use:
```
sh generate.sh
```## Server
You can spin up an inference server using:
```
uvicorn rest:app --reload --host 0.0.0.0
```