A lightweight (15-18M parameters) story generation model specifically designed for children's content, featuring advanced architecture components like Mixture of Experts (MoE) and Multihead Latent Attention (MLA).
The model is built on a modified DeepSeek architecture, optimized for generating age-appropriate, engaging children's stories.
The training metrics show:
Prompt: "Once upon a time"
Generated Story:
it was a bright, sunny day, and lily and her little brother max were playing in their backyard. they found a piece of paper with two sentence written on it. "let's make sense of some of these sentences," said max, pointing to the first sentence. "these people are playing on the grass," "but i don't know," replied lily. she thought for a moment. "maybe they only talk with the others or not, right?" she asked. max nodded. "yeah, and what about 'he', 'he', 'an', 'man', and 'man'?" lily explained, "it means they're playing with their dogs. but they don't say anything about someone talking." max asked, "but what about the others? we don't talk to each other!" lily thought for a moment before answering, "that's right! sometimes, people try to talk to each other. when we talk about something, we need to tell others"
from transformers import AutoTokenizer, AutoModelForCausalLM
# Load model and tokenizer
model = AutoModelForCausalLM.from_pretrained("your-username/deepseek-children-stories")
tokenizer = AutoTokenizer.from_pretrained("your-username/deepseek-children-stories")
# Generate text
prompt = "Once upon a time"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=200, temperature=0.8)
story = tokenizer.decode(outputs[0])
print(story)
@misc{deepseek-children-stories,
author = {Prashant Lakhera},
title = {DeepSeek Children's Stories: A Lightweight Story Generation Model},
year = {2024},
publisher = {GitHub},
url = {https://github.com/ideaweaver-ai/DeepSeek-Children-Stories-15M-model}
}
This project is licensed under the MIT License. See the LICENSE file for details.