RO-FABULA-0.1: a 25M-parameter Romanian story model at 0.49 bits per character, with a chat on one shared vCPU
RO-FABULA-0.1 is a Romanian language model of 25,226,134 parameters that continues children's stories. On the held-out stories of its training pack it reaches 0.4900 bits per character. Gemma 4 12B read 12 of 30 of its continuations as whole stories, with a problem, attempts and an ending.
The chat below runs the model on the CPU of the server that serves this page: one shared virtual CPU, with no GPU. Pick one of four Romanian story openings and a seed, and the model writes the rest.
Research preview. Nobody filtered the Romanian web text of the first training stage for tone or content. Outside story openings the model can write text unsuitable for children, and no safety gate has run on it. It is not for unsupervised use by or with children. The demo cuts a continuation that reaches a word on a short list; that cut is crude and is no safety measure.
Try it
Pick a story, and give a seed or leave it random. The model adds at most 900 tokens, about 550 words. The same story with the same seed gives the same continuation.
Într-o dimineață, Mara a găsit în iarbă un clopoțel cât o alună.
Model
| Parameters | 25,226,134 |
| Architecture | decoder-only transformer, 12 blocks of width 384 |
| Attention | 6 causal heads of 64; RMSNorm on queries and keys; RoPE, θ = 10,000; value residual from block 1 |
| Feed-forward | SwiGLU, width 1,024 |
| Normalisation | RMSNorm before the attention and before the feed-forward of each block, and a final RMSNorm |
| Embeddings | tied: the output layer reuses the 10,368 × 384 token embedding |
| Tokenizer | FABULA's own byte-level BPE: 48 reserved ids, then 10,240 byte and subword entries |
| Context | 1,024 tokens |
| Weights | FP32, about 101 MB |
Each block applies attention, then a SwiGLU feed-forward. Each of the two sits behind an RMSNorm and adds its output back to the residual stream. Block 1 passes its values on; blocks 2 to 12 mix them into their own with two learned weights each. The output layer reuses the token embedding. A fixed mask hides the padding and reserved ids from the sampler, except the end-of-story token.
| Part | Parameters | Share |
|---|---|---|
| Token embedding, shared with the output layer | 3,981,312 | 15.8 % |
| Attention, 12 blocks | 7,077,888 | 28.1 % |
| SwiGLU feed-forward, 12 blocks | 14,155,776 | 56.1 % |
| Norm gains and value-mix weights | 11,158 | 0.04 % |
| Total | 25,226,134 | 100 % |
Training
Two stages ran on one NVIDIA RTX 5060 Ti 16 GB, power-capped at 150 W, with bf16 compute. A position is one token slot of a packed sequence.
- Base. 32,768 steps of 32,768 positions, 1,073,741,824 positions in all: one pass over a sample of FABULA's deduplicated Romanian web corpus, from FuLG and HPLT 2.0 cleaned. Muon trained the matrices and AdamW the rest. The stage took 3 h 55 min at 78,692 positions a second.
- Stories. 4,096 steps from the base weights, each step half story sequences and half web sequences: about four passes over the training split of a pack of about 58,000 Romanian children's stories. FABULA's story pipeline wrote those stories with Gemma 4 26B-A4B. The stage took 28 minutes at 79,730 positions a second.
What was measured, and on what
| Held-out set | RO-FABULA-0.1 | Earlier base |
|---|---|---|
| Romanian web text, a held-out selection | 1.2441 | 1.2865 |
| Stories of the training pack's held-out families | 0.4900 | 0.4957 |
| Stories of an earlier pack, unseen by both | 1.0208 | 1.0520 |
The base alone, before the story stage, reaches 1.1853 bits per character on the web set.
| Samples that | RO-FABULA-0.1 | Earlier base |
|---|---|---|
| end by themselves, with the end-of-story token | 21 | 21 |
| repeat a passage of 20 words or more | 4 | 6 |
| read as a whole story to Gemma 4 12B | 12 | 16 |
With 30 samples, 12 against 16 is within sampling noise. A Romanian dictionary speller finds 9.1 unknown words in 1,000 in this model's continuations, against 5.8 for the earlier base.
An example
Given the opening „Într-o dimineață, Mara a găsit în iarbă un clopoțel cât o alună.”, the model at seed 1 writes 197 words with dialogue and ends with a traditional closing formula. The bell of the opening never comes back. The story starts:
Copila stătea pe malul unui râu curgător, privind apa. Deodată, a auzit un
sunet slab. Un bătrân numit moș Gheorghe stătea pe o piatră mare. El părea
foarte trist și căuta ceva prin iarbă.
— Ce s-a întâmplat, moș Gheorghe? a întrebat Mara.
and it ends:
— Prietenia ne ajută să rezolvăm orice problemă grea, a spus moș Gheorghe.
Mara a înțeles că a fost foarte bună.
Și-am încălecat pe-o roată și v-am spus povestea toată.
Limitations
- It often drops the problem of the opening: the story it tells is not the one the opening starts.
- Characters appear without an introduction, and references slip.
- About 9 words in 1,000 are not Romanian words.
- The plot logic is weak: objects change, and endings state a moral the story did not earn.
- It knows only what a model of 25 million parameters learns from about one billion web tokens, and it states wrong facts.
How the demo runs
The page sends the number of the story and the seed to a small service on the same server, which takes no text, and the continuation streams back as the model writes it. The service runs the model's own inference code with one CPU thread. Its bounds keep the server's load short and capped:
- one continuation at a time, and at most two waiting, each for at most 60 s; with two waiting, the answer says at once that the model is busy;
- from one address, one request at a time and two continuations a minute; the first request over that answers at once with the wait, a later one waits 10 s for its refusal, and five refusals within 10 minutes block the address for 30 minutes;
- at most 900 new tokens and 45 s a continuation;
- no new continuation once the continuations of the last hour used 720 s of CPU, a fifth of one CPU, and never more than 70 % of the CPU at any moment.
Privacy
The service keeps no continuation and no address. It holds a table of addresses in memory to count requests, and drops each address about an hour after its last request. Like every request to this site, a request to the demo leaves the address, the path and the request headers, not the story number or the seed, in the web server's access log, which keeps 14 days.
Licence and attributions
CODEFICUM 42 S.R.L. licenses the weights, the tokenizer files and the inference code under the Apache License 2.0. This site does not distribute them.
- FuLG, a Romanian web corpus, under ODC-By 1.0: Vlad-Andrei Bădoiu, Mihai-Valentin Dumitru, Alexandru M. Gherghescu, Alexandru Agache and Costin Raiciu, FuLG: 150B Romanian Corpus for Language Model Pretraining, arXiv:2407.13657, 2024. Its users are also bound by the terms of the original data sources.
- HPLT 2.0 cleaned, the Romanian part, under CC0-1.0 for the dataset.
- FABULA's story pipeline wrote the stories of the second stage with Gemma 4 26B-A4B. Google licenses that model with the Apache License 2.0.
The web text in FuLG and HPLT remains the work of its authors.