Codeficum 42

Measured notes from the workshop and the rack.

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ă.

The chat needs JavaScript.

Model

RO-FABULA-0.1, version 0.1.0 of the FABULA models, trained 2026-11-23 to 2026-11-24.
Parameters25,226,134
Architecturedecoder-only transformer, 12 blocks of width 384
Attention6 causal heads of 64; RMSNorm on queries and keys; RoPE, θ = 10,000; value residual from block 1
Feed-forwardSwiGLU, width 1,024
NormalisationRMSNorm before the attention and before the feed-forward of each block, and a final RMSNorm
Embeddingstied: the output layer reuses the 10,368 × 384 token embedding
TokenizerFABULA's own byte-level BPE: 48 reserved ids, then 10,240 byte and subword entries
Context1,024 tokens
WeightsFP32, 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.

RO-FABULA-0.1 inference path Opening text, byte-level BPE tokenizer, token embedding, 12 decoder blocks with attention and SwiGLU MLP on a residual stream, final RMSNorm, tied output layer with a fixed logit mask, sampler, continuation text. RO-FABULA-0.1: from an opening to its continuation opening text (plain Romanian) byte-level BPE tokenizer 48 reserved + 256 bytes + 9,984 merges = 10,288 ids input: <bos> + the opening's ids opening + output ≤ 1,023 tokens token embedding E: 10,368 × 384 rows 10,288 to 10,367 are padding 3,981,312 parameters (15.8 %) shared with the output layer decoder block × 12 per block: 896 norm gains, 2 × 384 for the two RMSNorms and 2 × 64 for Q and K, shared by the heads; no linear layer has a bias residual stream, width 384 RMSNorm Q 384→384 K 384→384 V 384→384 RMSNorm on Q and K, 6 × 64 RoPE, θ = 10,000 value mix (2–12) λ₀·v₁ + λ₁·v v₁: the values of block 1. Block 1 uses them as they are; blocks 2 to 12 mix them in with 2 learned weights each causal attention, 6 heads KV cache at inference the cache holds each block's mixed values, so v₁ needs no cache of its own; training: FlexAttention, document mask output projection O 384→384 attention: 589,824 per block, 7,077,888 in all (28.1 %) RMSNorm gate 384→1,024 up 384→1,024 SwiGLU MLP: 1,179,648 per block, 14,155,776 in all (56.1 %) SiLU(gate) × up down 1,024→384 12 blocks: 21,244,438 parameters final RMSNorm 384 parameters logits = h · ET + fixed mask −∞ on <pad>, <bos> and the 80 padding rows the output layer reuses E (tied); the mask is a constant, not a learned bias sampler temperature 0.8, nucleus 0.95 also masks the other reserved ids, except <eos>; stops at <eos> or at the token limit next token, one step at a time continuation text total: 25,226,134 parameters = 3,981,312 embedding + 21,244,438 in the blocks + 384 final norm FP32, 100.9 MB in model.safetensors; context 1,024 tokens
The inference path of RO-FABULA-0.1: tokenizer, token embedding, 12 decoder blocks on the residual stream, the tied output layer with its fixed logit mask, and the sampler. From the model card of release commit f0f9df9.
Where the parameters sit.
PartParametersShare
Token embedding, shared with the output layer3,981,31215.8 %
Attention, 12 blocks7,077,88828.1 %
SwiGLU feed-forward, 12 blocks14,155,77656.1 %
Norm gains and value-mix weights11,1580.04 %
Total25,226,134100 %

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.

  1. 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.
  2. 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

Bits per character on held-out text, lower is better. Measured 2026-11-24. The comparison column is the same story stage on the 134-million-position base of 2026-11-15.
Held-out setRO-FABULA-0.1Earlier base
Romanian web text, a held-out selection1.24411.2865
Stories of the training pack's held-out families0.49000.4957
Stories of an earlier pack, unseen by both1.02081.0520

The base alone, before the story stage, reaches 1.1853 bits per character on the web set.

Continuations of 15 fixed story openings at two sampler seeds: 30 samples, temperature 0.8, nucleus 0.95, at most 900 new tokens. Measured 2026-11-24.
Samples thatRO-FABULA-0.1Earlier base
end by themselves, with the end-of-story token2121
repeat a passage of 20 words or more46
read as a whole story to Gemma 4 12B1216

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

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:

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.

The web text in FuLG and HPLT remains the work of its authors.


Measured on 2026-11-24. The evaluation counts are 30 samples of one model, judged by one model.