Instructions to use TLNKhanh/tinystories with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use TLNKhanh/tinystories with 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
- Llama new
- LM Studio
- Jan
- vLLM
How to use TLNKhanh/tinystories with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TLNKhanh/tinystories" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TLNKhanh/tinystories", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/TLNKhanh/tinystories:F16
- Ollama
How to use TLNKhanh/tinystories with Ollama:
ollama run hf.co/TLNKhanh/tinystories:F16
- Unsloth Desktop
- Docker Model Runner
How to use TLNKhanh/tinystories with Docker Model Runner:
docker model run hf.co/TLNKhanh/tinystories:F16
- Lemonade
How to use TLNKhanh/tinystories with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull TLNKhanh/tinystories:F16
Run and chat with the model
lemonade run user.tinystories-F16
List all available models
lemonade list
- Atomic Chat
|
Download README.md from TLNKhanh/tinystories: direct link, hf CLI and curl.
- Browser
- Download file 964 Bytes
-
https://huggingface.co/TLNKhanh/tinystories/resolve/main/README.md
- Command line
-
hf download hf://TLNKhanh/tinystories/README.md
-
curl -L -o README.md https://huggingface.co/TLNKhanh/tinystories/resolve/main/README.md
964 Bytes
| library: gguf | |
| pipeline_tag: text-generation | |
| tags: | |
| - gguf | |
| - ollama | |
| - tinystories | |
| - story-generation | |
| # 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 | |
| ```bash | |
| 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. | |