Pequenas Estórias 88M
a compact language model for generating Portuguese fairy tales
2 min readupdated
This is an 88-million-parameter language model trained from scratch on a dataset of short children's stories in Portuguese. The model acts as a base model: it takes the beginning of a story and continues it to a logical conclusion. Its architecture is inspired by the Qwen3 series in a miniature 12-layer format, and its quantized Q4_K_M version takes up just 54 MB, running on any computer without a GPU via llama.cpp, Ollama, or LM Studio. The project demonstrates that a specialized corpus of a few million simple texts is enough for a small model to handle a language confidently.
Key features
- Training from scratch: the model is not a fine-tuned file, but was created with a clean slate in 19 hours on a home graphics card.
- Miniature size: weighs only 54 MB in GGUF format (Q4_K_M version) while maintaining the quality of the original 16-bit model.
- Efficient vocabulary: uses a compact tokenizer of 4,096 tokens, which reduces memory load.
- Ready to run: full compatibility with popular local runtimes like llama.cpp and Ollama without additional code.
What you can do
- Run locally: deploy the model in Ollama or LM Studio for fast text generation in Portuguese.
- Integrate into Python: use the llama-cpp-python library to generate stories in custom scripts and bots.
- Continue stories: use the model as an auto-completion engine for children's stories and creative drafts.
Example
llama-completion -hf DominuZ/PequenasEstorias-88M:Q4_K_M \
-p "Era uma vez uma menina chamada Clara" -n 400 --temp 0.8 --top-p 0.95
Read more
DetailsBenchmarks: in blind tests with language judges, the model's stories scored 84% of real text ratings (95% grammar, 79% coherence).
Hardware requirements: about 78 MB of RAM for the Q4_K_M version on the CPU.
Training details: 6 epochs, 2.9 billion tokens on the PequenasEstorias-88M dataset.
Limitations: context up to 1,024 tokens, the model is a base model (not conversational) and works strictly within the scope of children's fairy tales.










Comments