We trained a Chinese language model with 1,243 words

We trained a tiny Chinese language model to see what it could write with just 1,243 words.
This started out of curiosity. Low HSK levels give you a small word list; we wanted to see what kind of language model we could build if those were the only words it could choose.
Dengdeng, our reading app, offers stories at three reading levels, with pinyin and meanings for unfamiliar words. This model is a separate experiment we built for fun.
The model has 986,624 parameters, and its first run took about 66 seconds of CPU optimization. It can finish short Chinese sentences. Some make sense; some copy the training data or put familiar words together badly.
Try an opening below. This is a completion model: it predicts what comes next, without any training to chat or follow instructions.
Try the model
1,243 words · 987k parametersWrite the start of a sentence. The model predicts what comes next.
有一天,。
The vocabulary
We built the word list into the model’s output layer. Every generated token must be an entry on that list, a punctuation mark, or the end marker.
Our saved HSK 1 file contains 497 entries. Combining it with HSK 2 gives 1,243 unique entries. We used both levels to give the experiment more vocabulary to work with. These are counts from our pinned files, not the current official exam syllabus or the older 150/300-word HSK lists.
With nine punctuation marks and two control tokens, beginning and end, the network has 1,254 token scores. We block the beginning token during generation. “Word” here means an inventory entry; some entries contain several characters.
That limits the pieces the model can use. It can still put allowed tokens next to each other to form an unfamiliar compound, or use them in a sentence with difficult grammar.
Finding enough sentences
We started with too little data. Instead of commissioning a new synthetic corpus, we looked for existing text that could be adapted.
Tatoeba supplied a Mandarin sentence export. For story-like text, we used the Chinese TinyStories-Zh-2M dataset, examining the first 10,000 stories in one shard. That is a convenience sample, not a random sample of its roughly two million stories.
The original TinyStories work by Ronen Eldan and Yuanzhi Li explored how small language models could become while still producing coherent English, using short synthetic stories with simple vocabulary. Our pilot uses a Chinese derivative and a much smaller adapted corpus; it is not a reproduction of their results.
We first tried replacing unfamiliar nouns with familiar nouns, and doing the same for verbs. That lets more text pass the vocabulary check. It can also change the meaning: two nouns are not interchangeable just because they share a part of speech.
Our first adaptation version allowed that rough fallback. The version used for this model disables it. It uses explicit replacement rules, normalizes names, and splits some compounds into permitted smaller entries. It only keeps sentences with at most 20% out-of-list source words, then rejects any result that still contains unsupported text.
No complete story from the 10,000-story sample passed those rules. We kept sentence excerpts that passed, with their source metadata and replacement logs.
| Source | Accepted excerpts | Excerpts with replacements |
|---|---|---|
| Tatoeba Mandarin export | 13,950 | 1,996 |
| TinyStories Chinese sample | 11,434 | 5,912 |
Removing 90 exact duplicates across those two sets left 25,294 records and 214,037 lexical/punctuation tokens. These counts include training, validation, and test splits. They are short sentence records, not 25,294 full stories.
The adapted copies are in separate version folders; the original downloads are unchanged. Their source metadata and hashes are preserved. The Chinese dataset’s licence label does not by itself establish the terms for every upstream source.
The filter rejected most of what we examined: it kept 15.7% of Tatoeba’s sentence records and 7.3% of the candidate sentence excerpts from the Chinese stories. Those are different source units, so this is a description of our preparation pipeline, not a ranking of the datasets.
Among the accepted records, 14.3% of Tatoeba sentences needed replacements, compared with 51.7% of the story excerpts. Adapting the stories gave us more sentences to train on, but also more edited text to check for changes in meaning.
The model
We wrote a small decoder-only transformer in PyTorch: four blocks, four attention heads, width 128, and a context of 256 tokens. The input embeddings and output weights are shared.
The training task is ordinary next-token prediction. Give it the beginning of an adapted sentence, and adjust its weights to make the next training token more likely.
We used 20,269 records for training and 2,414 for validation. Another 2,611 records were held aside as test data and were not evaluated for this article. Variants and excerpts from the same source family stay in the same split, and exact output duplicates are removed. Near duplicates and repeated narrative patterns can still cross those boundaries.
The run used 4,000 optimizer steps, batches of 32, AdamW with a learning rate of 0.001, and two CPU threads. It processed about 1.21 million target tokens through repeated sampling. The reported 66 seconds covers the optimization loop, excluding corpus preparation and the full before/after evaluations.
| Measurement | Value |
|---|---|
| Parameters | 986,624 |
| Initial training loss | 7.203 |
| Final training loss | 2.339 |
| Validation loss | 2.750 |
The model got better at predicting tokens in this adapted corpus. Loss alone cannot tell us whether you would want to read its sentences.
Variety and copying
We ran a small sampling audit: 12 manually chosen openings, 10 seeds for each, and three temperatures. Each run could generate up to 80 new tokens. Those 360 completions are an exploratory check, not a language-quality benchmark.
At temperature zero, sampling always takes the highest-scoring next token, so changing the seed does nothing. The 120 runs produced 12 distinct texts. Three of those 12 texts were exact matches for complete training records; repeated across seeds, that is 30 of 120 runs.
At temperature 0.8, there were 117 distinct texts in 120 runs, and 16 exact training matches. At 1.2, all 120 texts differed, with seven exact matches.
A nonmatching sentence may still copy a familiar phrase or recombine memorized fragments. More randomness can also make a sentence less coherent. We haven't collected blinded human ratings that would justify calling either setting better.
Output length
The median continuation was six new tokens at temperatures zero and 0.8, and seven at 1.2. Even the longest continuation in the audit was just 19 tokens. Every run chose the end marker before reaching the 80-token limit.
The higher temperature produced more varied text, but the outputs stayed short. That fits the sentence excerpts we trained on. We would need a comparison run with longer training examples to test how much the corpus explains the output length.
What we learned
A fixed vocabulary is easy to check. Every output token either belongs to the inventory or it doesn’t. That check says much less about the sentence than we initially wanted it to.
The model can stay within the list while changing who did what, using an odd combination of words, or repeating a sentence it saw during training. Lower HSK vocabulary does not establish that a piece of text is good beginner reading.
For this run, the work that needs the most attention is the data. Replacements increased the number of usable sentence records, but each one can change the scene. A native speaker still needs to read the adapted text and judge the result.
If we run another experiment, we’ll compare a smaller, manually checked corpus with this larger adapted one. The architecture, training budget, and prompts would stay the same. We’d rate outputs without showing which training set produced them, and check for copied phrases as well as complete sentences.
That would let us test whether cleaner examples improve the completions enough to justify keeping less data.
Sources and experiment notes
- Eldan and Li, TinyStories (2023): the original English-language research and synthetic-data approach.
- RobinChen2001/TinyStories-Zh-2M: the Chinese dataset used here; first 10,000 rows of its first training shard.
- Tatoeba downloads: the Mandarin detailed sentence export used for adaptation.
- PyTorch documentation: the training and inference framework.
The internal experiment is versioned as combined-hsk2-v001, the checkpoint as combined-hsk2-pilot-v001, and the sampling audit as article-audit-v001. The audit compares the complete prompt plus continuation with training records only. It uses seeds 0–9 at temperatures 0, 0.8, and 1.2. No test-set score or learning-outcome claim is reported here.
For reading material you can use today, try a Dengdeng reader preview. In the app, one story from each daily edition is free.

A week of reading Chinese
Seven short Chinese texts about everyday life in China, one a day, with the hard words explained.
Also on the Blog
Dengdeng now teaches intermediate Chinese at HSK 3 and HSK 4
HSK 3 and HSK 4 add 292 Mandarin lessons to Dengdeng. You’ll read school notices, follow travel updates and compare places to live. One new lesson a day is free.

Chinese buzzwords and internet slang of 2026
The ten Chinese buzzwords 《咬文嚼字》 chose on December 1, what each one means, and six internet slang picks from Dengdeng.

