Downloads · 30 days
490
77% of all-time downloads
sdobson/tinystories-llama-15m
tinystories-llama-15m is a text generation model from sdobson. Use it when you need the model to write or continue text. The card lists the license as mit.
This is a small Llama-architecture language model trained on the TinyStories dataset. The model is designed to generate simple, coherent children's stories using a vocabulary and concepts that a typical 3-4 year old w…
Downloads · 30 days
490
77% of all-time downloads
All-time downloads
640
Public
Parameters
15.2M
122 MB on disk
Likes
0
Public
Click a slice to open those files.
.bin60.8 MB · 50%
From the Hugging Face model README
This is a small Llama-architecture language model trained on the TinyStories dataset. The model is designed to generate simple, coherent children's stories using a vocabulary and concepts that a typical 3-4 year old would understand.
Model Architecture: Llama 2
Training Framework: PyTorch
Implementation: Based on llama2.c
Total Parameters: ~15M
Tokens per Iteration: ~65,536 (4 grad accum × 1 process × 64 batch × 256 seq len)
This model is intended for:
The model was trained on the TinyStories dataset, which consists of short stories generated to contain only words that a typical 3-4 year old would understand. The dataset was created to study the capabilities of small language models.
Dataset Size: ~2.1M stories
Vocabulary: Words understandable by 3-4 year olds
Content: Simple narratives, common objects, basic emotions and actions
Prompt: "Once upon a time, there was a little girl named Lily."
Generation (temperature=0.8, top_p=0.9):
She loved to play outside in the park. One day, she saw a big, red ball.
She wanted to play with it, but it was too high. Lily's mom said, "Let's
go get it together!" They worked together and got the ball down. Lily was
so happy! She played with the ball all day long.
If you use this model or the llama2.c implementation, please cite:
@misc{llama2c,
author = {Andrej Karpathy},
title = {llama2.c: Inference Llama 2 in one file of pure C},
year = {2023},
publisher = {GitHub},
url = {https://github.com/karpathy/llama2.c}
}
@article{eldan2023tinystories,
title={TinyStories: How Small Can Language Models Be and Still Speak Coherent English?},
author={Eldan, Ronen and Li, Yuanzhi},
journal={arXiv preprint arXiv:2305.07759},
year={2023}
}
MIT License - See the LICENSE file for details.