anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Continues the start of a story you type, using a 30M-parameter language model trained from scratch on TinyStories and served by the project's own inference server. A learning demo of routing on free CPUs.
tiny-llm is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U huggingface_hub hf download CoolDip00/tiny-llm --repo-type space --local-dir tiny-llm cd tiny-llm
tiny-llm is a small language model with 30 million parameters, trained from scratch on TinyStories. The project serves it with its own inference engine, which does continuous batching, streaming and load shedding. This Space is a small router in front of two private copies of the server, running on Hugging Face's free CPU tier. The author calls it a learning demo of routing.
It suits people who want to see a small language model and a hand-built serving stack work end to end, and developers who study routing, rate limits and status pages.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Software | Backend engineers | Study a router that sits in front of model replicas | Read how requests are shed when both replicas are busy |
| AI engineering | Inference engineers | See a from-scratch server with batching and streaming | Watch latency and throughput on the status page |
| Education | Students | Try a tiny model and learn what it can and cannot do | Type the start of a story and read the rest |
| Research | Small model hobbyists | Compare a 30M model with larger ones | Send the same story opening to the API |
You can skip it if you need good writing or steady uptime, since the stories are simple and the Space sleeps when nobody visits.
| Use case | Who | What they get back |
|---|---|---|
| Continue a story | Anyone | A short story that carries on from your opening |
| Check the service | Operators | Live latency, throughput, goals and replica state on the status path |
| Call the API | Developers | An OpenAI-style completion reply |
The hosted page needs nothing from you. A local copy needs these things first.
pip install -U huggingface_hub hf download CoolDip00/tiny-llm --repo-type space --local-dir tiny-llm cd tiny-llm docker build -t tiny-llm . docker run -it -p 7860:7860 tiny-llm
On the Space page, write how a story begins and the model keeps writing from there. For the API, send a JSON POST to the completions path with a prompt and a token limit. The status path shows live latency, throughput and the state of each replica.
{"prompt": "Once upon a time", "max_tokens": 60}| Tool | What it does |
|---|---|
| Demo page | Continues the story you start |
| /status | Shows latency, throughput, service goals and replica state |
| /v1/completions | Takes an OpenAI-style completion request |
| /stats | Shows the commit the replicas run |
You type Once upon a time on the demo page. The model continues with a short, simple story. If both replicas are busy you get a 429 reply straight away, and after the Space has slept you get a waking up message, so you retry a minute later.
If you are new, open the page and type one story opening. Expect plain and sometimes odd stories, because the model is tiny. Check the status path afterwards to see what the service measured.
If you know the field, the stated goals are a 95th percentile time to first token of 2 seconds or less and 99 percent availability. A visitor gets 20 requests a minute, with a burst of up to 5. When both replicas are full, the reply is an immediate 429 and nobody waits in line. The Space runs a router build from the project repository on two private replicas on 2 vCPUs.
The model is small and runs on shared CPUs, so stories are simple and sometimes odd. After 48 hours with no visitors the Spaces go to sleep, and no job wakes them.
Continues the start of a story you type, using a 30M-parameter language model trained from scratch on TinyStories and served by the project's own inference server. A learning demo of routing on free CPUs.
Made by CoolDip00 on Hugging Face. These notes are Mindket's, written from its Space page and README; the app's own files and license are on Hugging Face.
What it is: tiny-llm is a small language model with 30 million parameters, trained from scratch on TinyStories. The project serves it with its own inference engine, which does continuous batching, streaming and load shedding. This Space is a small router in front of two private copies of the server, running on Hugging Face's free CPU tier. The author calls it a learning demo of routing.
Who it suits: It suits people who want to see a small language model and a hand-built serving stack work end to end, and developers who study routing, rate limits and status pages.
Industry | Who uses it | How they use it | Example
Software | Backend engineers | Study a router that sits in front of model replicas | Read how requests are shed when both replicas are busy
AI engineering | Inference engineers | See a from-scratch server with batching and streaming | Watch latency and throughput on the status page
Education | Students | Try a tiny model and learn what it can and cannot do | Type the start of a story and read the rest
Research | Small model hobbyists | Compare a 30M model with larger ones | Send the same story opening to the API
You can skip it if you need good writing or steady uptime, since the stories are simple and the Space sleeps when nobody visits.
Where to use it:
Use case | Who | What they get back
Continue a story | Anyone | A short story that carries on from your opening
Check the service | Operators | Live latency, throughput, goals and replica state on the status path
Call the API | Developers | An OpenAI-style completion reply
How to set it up: The hosted page needs nothing from you. A local copy needs these things first.
pip install -U huggingface_hub
hf download CoolDip00/tiny-llm --repo-type space --local-dir tiny-llm
cd tiny-llm
docker build -t tiny-llm .
docker run -it -p 7860:7860 tiny-llm
How to use it: On the Space page, write how a story begins and the model keeps writing from there. For the API, send a JSON POST to the completions path with a prompt and a token limit. The status path shows live latency, throughput and the state of each replica.
{"prompt": "Once upon a time", "max_tokens": 60}
Tool | What it does
Demo page | Continues the story you start
/status | Shows latency, throughput, service goals and replica state
/v1/completions | Takes an OpenAI-style completion request
/stats | Shows the commit the replicas run
Example: You type Once upon a time on the demo page. The model continues with a short, simple story. If both replicas are busy you get a 429 reply straight away, and after the Space has slept you get a waking up message, so you retry a minute later.
For newcomers and experts: If you are new, open the page and type one story opening. Expect plain and sometimes odd stories, because the model is tiny. Check the status path afterwards to see what the service measured.
If you know the field, the stated goals are a 95th percentile time to first token of 2 seconds or less and 99 percent availability. A visitor gets 20 requests a minute, with a burst of up to 5. When both replicas are full, the reply is an immediate 429 and nobody waits in line. The Space runs a router build from the project repository on two private replicas on 2 vCPUs.
You send a prompt to the router
The router checks your rate limit
It picks a replica that has room
The replica streams the continuation back
A full pair of replicas returns 429 at once
Good to know: The model is small and runs on shared CPUs, so stories are simple and sometimes odd. After 48 hours with no visitors the Spaces go to sleep, and no job wakes them.
Open the Space in your browser, or copy it to your own Hugging Face account from its page. Nothing in this kit runs by itself.
README.md 5 KB
Listed Hugging Face Spaces in the same category that share the most tags with this one.
| Product | Likes | Built with | License | Last change |
|---|---|---|---|---|
| tiny-llm This page | 1 | docker | mit | |
| Zero GPU SpacesShares docker | 985 | docker | mit | |
| KimodoShares docker | 340 | docker | apache-2.0 | |
| Harness LeaderboardShares docker | 323 | docker | apache-2.0 | |
| FlowiseShares docker | 132 | docker | mit | |
| Multitrack Midi Music GeneratorShares docker | 130 | docker | mit |
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
block · Kit
Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…
backnotprop · Kit
Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.