Downloads · 30 days
264
15% of all-time downloads
thekosmix/kids-scroll-models
kids-scroll-models is a text generation model from thekosmix. Use it when you need the model to write or continue text. It is set up for llama.cpp. The card lists the license as mit.
This repository hosts the on-device story generation model (story-model.gguf) and WebAssembly runtime (wllama.wasm) used by Kids Scroll — a lightweight, offline-first Progressive Web App (PWA) designed for toddlers an…
Downloads · 30 days
264
15% of all-time downloads
All-time downloads
1.7K
Public
Repo size
34.3 MB
Likes
0
Public
Click a slice to open those files.
.gguf26.7 MB · 78%
From the Hugging Face model README
This repository hosts the on-device story generation model (story-model.gguf) and WebAssembly runtime (wllama.wasm) used by Kids Scroll — a lightweight, offline-first Progressive Web App (PWA) designed for toddlers and young children.
story-model.gguf (~26 MB)wllama.wasm (~7.4 MB)roneneldan/TinyStories consisting of ~2.1 million synthetic short stories generated by GPT-3.5 / GPT-4.wllama (WebAssembly)import { Wllama } from '@wllama/wllama';
const wllama = new Wllama({
'wllama.wasm': 'https://huggingface.co/thekosmix/kids-scroll-models/resolve/main/wllama.wasm'
});
// Load the model
const response = await fetch('https://huggingface.co/thekosmix/kids-scroll-models/resolve/main/story-model.gguf');
const blob = await response.blob();
await wllama.loadModel([blob], { n_ctx: 192 });
// Generate a story segment
const output = await wllama.createCompletion({
prompt: 'Once upon a time, there was a little rabbit.',
max_tokens: 100,
temperature: 0.8,
top_p: 0.9,
stop: ['\n\n', 'The end.']
});
console.log(output.choices[0].text);
llama-cli -m story-model.gguf -p "Once upon a time, there was a friendly lion." -n 100 --temp 0.8
If you use this model or dataset, please cite the original TinyStories research:
@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}
}