Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```