How to use from
llama.cpp
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf TLNKhanh/tinystories:F16
# Run inference directly in the terminal:
llama cli -hf TLNKhanh/tinystories:F16
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf TLNKhanh/tinystories:F16
# Run inference directly in the terminal:
llama cli -hf TLNKhanh/tinystories:F16
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-app
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama serve -hf TLNKhanh/tinystories:F16
# Run inference directly in the terminal:
./build/bin/llama cli -hf TLNKhanh/tinystories:F16
Use Docker
docker model run hf.co/TLNKhanh/tinystories:F16
Quick Links

tinystories

A 29.5M-parameter decoder-only GPT trained from scratch on 543M tokens of TinyStories V2 (GPT-4). Its task is prompt-conditioned English story completion.

Use with Ollama

ollama pull hf.co/TLNKhanh/tinystories
ollama run hf.co/TLNKhanh/tinystories "Once upon a time"

The repo also contains Ollama template and params files so no Modelfile is needed. Context is 256 tokens (the training block size). This is a base completion model, not a chatbot: give it a story opening, e.g. "Once upon a time, there was a little girl named Lucy".

Files

  • tinystories-f16.gguf - the model (GGUF, F16)
  • template - Ollama Go template (raw prompt, no chat wrapper)
  • params - Ollama sampling parameters
  • Modelfile - for local ollama create if preferred

Trained on an RTX 3060 over ~6 hours. Validation loss 1.1885.

Downloads last month
75
GGUF
Model size
29.5M params
Architecture
gpt2
Hardware compatibility
Log In to add your hardware

16-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support