Downloads · 30 days
96
2% of all-time downloads
jploski/retnet-mini-shakespeare
retnet-mini-shakespeare is a text generation model from jploski. Use it when you need the model to write or continue text. It is set up for transformers.
This model was trained from scratch on "tinyshakespeare" text file.
Downloads · 30 days
96
2% of all-time downloads
All-time downloads
4.2K
Public
Parameters
18.5M
153 MB on disk
Likes
11
Public
Click a slice to open those files.
.safetensors73.9 MB · 64%
From the Hugging Face model README
This model was trained from scratch on "tinyshakespeare" text file.
A tiny model similar to jploski/falcon-mini-shakespeare, to demonstrate training and recurrent inference using a retentive network (https://arxiv.org/pdf/2307.08621.pdf). The code utilizes Sehyun Choi's implementation of retentive network (https://github.com/syncdoth/RetNet) with configuration parameters changed to make it a very tiny model.
Intended to demonstrate training and (recurrent O(1)) inference using a retentive network
https://raw.githubusercontent.com/karpathy/char-rnn/master/data/tinyshakespeare/input.txt
Note: updated on 2023-11-10 to work with the current version of syncdoth/RetNet.
Just used the single tinyshakespeare text file as both the training and validation set (split up into paragraphs). See:
https://colab.research.google.com/drive/1wZnM7FCe4TsQpoamJ7NDAuQfA3DYiwHi?usp=sharing
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 3.6853 | 10.0 | 370 | 3.4459 |
| 2.1973 | 20.0 | 740 | 2.0213 |
| 1.3819 | 30.0 | 1110 | 1.3017 |
| 1.1658 | 40.0 | 1480 | 1.1566 |