Downloads · 30 days
37
2% of all-time downloads
fabianmmueller/deep-haiku-gpt-2
deep-haiku-gpt-2 is a text generation model from fabianmmueller. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
37
2% of all-time downloads
All-time downloads
2.4K
Public
Parameters
137M
1 GB on disk
Likes
2
Public
Click a slice to open those files.
.bin510 MB · 50%
How the weights are stored.
F32124M · 91%
From the Hugging Face model README
This model is a fine-tuned version of gpt2 on the haiku dataset.
The model is a fine-tuned version of GPT-2 for generation of Haikus. The model, data and training procedure is inspired by a blog post by Robert A. Gonsalves. Instead of using a 8bit version of GPT-J 6B, we instead used vanilla GPT-2. From what we saw, the model performance comparable but is much easier to fine-tune.
We used the same multitask training approach as in der post, but significantly extended the dataset (almost double the size of the original on). A prepared version of the dataset can be found here.
The model is intended to generate Haikus. To do so, it was trained using a multitask learning approach (see Caruana 1997) with the following four different tasks: :
(keywords = text)<keyword_phonemes = text_phonemes>[text = text_phonemes]{text_phonemes = text}To use the model, use an appropriate prompt like "(dog rain =" and let the model generate a Haiku given the keyword.
We used a collection of existing haikus for training. Furthermore, all haikus were used in their graphemes version as well as a phonemes version. In addition, we extracted key word for all haikus using KeyBERT and sorted out haikus with a low text quality according to the GRUEN score.
The following hyperparameters were used during training: