# Fine-Tune GPT2 for English Rap

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffine-tune-gpt2-for-english-rap%2F7096%3E%5C
**Category:** Flax/JAX Projects\
**Created:** [June 23, 2021, 12:06pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffine-tune-gpt2-for-english-rap%2F7096 "2021-06-23T12:06:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrickvonplaten](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/patrickvonplaten/32/2171_2.png) [@patrickvonplaten](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fpatrickvonplaten)%5C
**Post date:** [June 23, 2021, 12:06pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffine-tune-gpt2-for-english-rap%2F7096%2F1 "2021-06-23T12:06:55Z")

</div>

# GPT2 for English Rap

For this project, I propose to use a pretrained GPT2 model in English and fine-tune it to learn to English rap.

## Model

A GPT2 model, pretrained in English can be found here: [openai-community/gpt2 · Hugging Face](https://huggingface.co/gpt2)

## Datasets

The model can be fine-tuned on a variety of publicly available lyrics of rap songs. The team can choose whatever lyrics they like.

## Available training scripts

A training script to fine-tune a GPT2 model in Flax is available [here](https://github.com/huggingface/transformers/blob/master/examples/flax/language-modeling/run_clm_flax.py)

## (Optional) Desired project outcome

The desired project output is a GPT2 model that can [drop bars](https://hinative.com/en-US/questions/2837028). Ideally the model is able to generate a whole rap song.

## (Optional) Challenges

It might be difficult to find enough data and to homogenize it well.

## (Optional) Links to read upon

There are some nice articles on GPT2 models that can rap:

- [GitHub - ewenme/gpt-2-raps: generate lyrics with GPT-2](https://github.com/ewenme/gpt-2-raps)
- [https://medium.com/analytics-vidhya/create-a-rapping-ai-using-deep-learning-part-2-fine-tune-a-pre-trained-gpt-2-instance-for-a-1eb19ac557c3](https://medium.com/analytics-vidhya/create-a-rapping-ai-using-deep-learning-part-2-fine-tune-a-pre-trained-gpt-2-instance-for-a-1eb19ac557c3)

---

<div class="post-metadata">

**Author:** ![Shankhdhar](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@Shankhdhar](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FShankhdhar)%5C
**Post date:** [July 1, 2021, 12:53pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffine-tune-gpt2-for-english-rap%2F7096%2F2 "2021-07-01T12:53:30Z")

</div>

This is very interesting! I would like to work on it.

---

<div class="post-metadata">

**Author:** ![patrickvonplaten](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/patrickvonplaten/32/2171_2.png) [@patrickvonplaten](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fpatrickvonplaten)%5C
**Post date:** [July 2, 2021, 12:27am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffine-tune-gpt2-for-english-rap%2F7096%2F4 "2021-07-02T00:27:14Z")

</div>

Awesome 2 is enough - finalizing this project 🙂

---

<div class="post-metadata">

**Author:** ![Shankhdhar](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@Shankhdhar](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FShankhdhar)%5C
**Post date:** [July 2, 2021, 5:12pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffine-tune-gpt2-for-english-rap%2F7096%2F5 "2021-07-02T17:12:14Z")

</div>

hello @Cropinky are you on discord? I would like to contact you

---

<div class="post-metadata">

**Author:** ![yaswanth](https://avatars.discourse-cdn.com/v4/letter/y/94ad74/32.png) [@yaswanth](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fyaswanth)%5C
**Post date:** [July 4, 2021, 4:19am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffine-tune-gpt2-for-english-rap%2F7096%2F6 "2021-07-04T04:19:02Z")

</div>

# I know I am late, I am interested in this project. is it possible to add my name to this project?

---

<div class="post-metadata">

**Author:** ![patrickvonplaten](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/patrickvonplaten/32/2171_2.png) [@patrickvonplaten](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fpatrickvonplaten)%5C
**Post date:** [July 5, 2021, 1:08pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffine-tune-gpt2-for-english-rap%2F7096%2F7 "2021-07-05T13:08:57Z")

</div>

adding you!

---

<div class="post-metadata">

**Author:** ![yaswanth](https://avatars.discourse-cdn.com/v4/letter/y/94ad74/32.png) [@yaswanth](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fyaswanth)%5C
**Post date:** [July 5, 2021, 1:20pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffine-tune-gpt2-for-english-rap%2F7096%2F8 "2021-07-05T13:20:22Z")

</div>

Thank You !!!

---

<div class="post-metadata">

**Author:** ![yaswanth](https://avatars.discourse-cdn.com/v4/letter/y/94ad74/32.png) [@yaswanth](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fyaswanth)%5C
**Post date:** [July 5, 2021, 1:46pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffine-tune-gpt2-for-english-rap%2F7096%2F9 "2021-07-05T13:46:45Z")

</div>

Team , please let me know the plan of action.
