A LoRA fine-tune of Google's Gemma 4 E4B, merged and quantized to GGUF Q4_K_M, that drives every villager of Rumor Village, a rumor simulation game for Linux and Windows. Each neighbor of a 3D village of up to 100 sends the model a short card (who they are, where, who is in front of them, what they know) and gets back one JSON action: greet, tell a rumor, ask about it, say goodbye, go somewhere or do nothing, plus a sentence for the speech bubble. All the neighbors decide in one batch on a single consumer GPU, offline, in real time. It reads and writes English and Spanish.
gemma-4-E4B-it-rumor-Q4_K_M.gguf · 5,335,287,008 bytes · SHA-256 bd894cbced4f3cde16b849183aafaa62bc020312cb3be487e47f8b7f2398a280The trailer, 1080p at 60 fps: real games played With AI with this model, edited by code from the game's own event logs.
The technical clip, 1080p at 60 fps: 100 neighbors deciding in one batch, the card the model read, the JSON it answered and the engine's verdict, base against fine-tuned.
every neighbor, every simulated minute
┌────────────────────────┐ ┌──────────────────────────┐ ┌───────────────────────┐ ┌────────────────────┐
│ card: who I am, what I │──►│ rumor-village-e4b │──►│ one JSON action, │──►│ the engine checks │──► memory, map,
│ know, who is near me │ │ (llama.cpp, all neighbors │ │ forced by a grammar: │ │ it against the │ bubbles,
│ ~256 tokens, shared │ │ in one batch) │ │ say / go / none + text │ │ rules: applies or │ event log
│ prefix cached │ │ │ │ │ │ rejects it │
└────────────────────────┘ └──────────────────────────┘ └───────────────────────┘ └────────────────────┘
the model proposes ─────────────────────────────────────► the engine decides
decide: the action of a neighbor from its card. extract: turn a rumor the player types in their own words ("party tonight in the square at nine") into a structured fact.| Fine-tuned (this model) | Gemma 4 E4B without fine-tuning | |
|---|---|---|
| Prompt per decision | short card, 256 tokens (shared prefix cached) | full prompt with instructions, 921 tokens |
| Made-up memories, frozen test | 0 % in both languages | 2.0 % (es), 2.3 % (en) |
| Failures (made up, contradiction, incoherent text) | 16.5× fewer (es), 5.0× fewer (en) | — |
| Rejected actions | 1.0 % (es), 0.9 % (en): worse | 0.1 % |
| Time per simulated minute, 100 neighbors | 0.36 s (es), 0.37 s (en) | 0.73 s (es), 0.77 s (en) |
| VRAM, 100 neighbors, batch up to 16 | 4.4–4.6 GB | 4.3–7.0 GB |
Both sides in Q4_K_M, with the same seeds. The base model gets its full prompt with instructions; the fine-tuned one, its short card. Frozen decision test: 1,000 cards per language that never entered the training data (checked by fingerprint), with the 95 % interval from resampling the cards.
| Language | Variant | Rejected | Made-up memories | Contradictions | Incoherent text | Failures base / fine-tuned |
|---|---|---|---|---|---|---|
| es | base / fine-tuned | 0.10 % [0.00–0.30] / 1.0 % [0.5–1.7] | 2.0 % [1.2–2.9] / 0 % | 0.60 % [0.20–1.10] / 0.20 % [0.00–0.50] | 0.80 % [0.30–1.40] / 0 % | 16.5× |
| en | base / fine-tuned | 0.10 % [0.00–0.30] / 0.90 % [0.40–1.50] | 2.3 % [1.4–3.3] / 0 % | 0.80 % [0.30–1.40] / 0.10 % [0.00–0.30] | 0.50 % [0.10–1.00] / 0.60 % [0.20–1.10] | 5.0× |
In the village (one run of the scenario per seed, the same seeds for both variants; rates over decisions, or over the slots that were said):
| Language | Scenario | Runs | Rejected (base / ft) | Made-up memories | Incoherent text | Failures base / fine-tuned |
|---|---|---|---|---|---|---|
| es | telephone-20 |
5 | 0.14 % / 2.8 % | 5.1 % / 0 % | 0.35 % / 0 % | no failures in the fine-tuned |
| es | party-25 |
2 | 0.18 % / 0.59 % | 0.27 % / 0 % | 1.9 % / 0 % | no failures in the fine-tuned |
| es | party-100 |
1 | 0.28 % / 2.5 % | 0.02 % / 0 % | 3.6 % / 0 % | no failures in the fine-tuned |
| en | telephone-20 |
5 | 0 % / 0.81 % | 9.6 % / 0 % | 0 % / 1.1 % | 17.7× |
| en | party-25 |
2 | 0 % / 0.41 % | 0.65 % / 0 % | 0.62 % / 0 % | 12.7× |
| en | party-100 |
1 | 0.05 % / 2.6 % | 0.04 % / 0 % | 0.22 % / 0 % | no failures in the fine-tuned |
Split screen in the game's viewer, same village and seed: the base model gets stuck in endless chats (143 at 21:05); the fine-tuned one closes them and makes nothing up.
Dialogue quality (the same frozen test, 100 answers per row, scored 1–5 by an LLM judge, with the 95 % interval):
| Language | Variant | Naturalness | Character |
|---|---|---|---|
| es | base / fine-tuned | 3.7 [3.5–4.0] / 4.2 [4.0–4.4] | 4.0 / 4.0 |
| en | base / fine-tuned | 3.6 [3.4–3.8] / 4.1 [3.9–4.3] | 4.0 / 4.0 |
Speed on an RTX 5070 Ti (16 GB), llama.cpp with CUDA, batch up to 16:
| Measure | Language | Base | Fine-tuned |
|---|---|---|---|
| Frozen test, full batch: decisions per second | es / en | 15.1 / 15.8 | 19.4 / 19.7 |
party-100, one day: decisions |
es / en | 7,927 / 7,755 | 2,717 / 2,938 |
party-100: seconds of generation per simulated minute (p95) |
es | 0.73 (1.24) | 0.36 (0.65) |
party-100: seconds of generation per simulated minute (p95) |
en | 0.77 (1.29) | 0.37 (0.65) |
The fine-tuned model closes conversations instead of looping, so a day needs about a third of the decisions; in the village its batch runs emptier, which is why its decisions per second there are lower (9.2–9.5 against 11.0–11.8) while each simulated minute takes half the time.
Rumor Village is one program for Linux (AppImage) and Windows (.zip), in a CUDA and a Vulkan build, with llama.cpp embedded. On the first start it checks the graphics card. If the card can run the AI, it downloads this file (5.34 GB) inside the game while the player plays Without AI, checks its SHA-256 and turns on With AI. The download resumes if it is cut. Without a usable GPU, the game plays Without AI: the same village, moved by rules with dice.
| Prepare the game: the rumor, whom you tell it to, each neighbor's character. | "What did they think?": the card the model read and what it decided, in plain words. |
The card (prefix shared by every card of a village, then the neighbor's situation):
Places: {places}.
Neighbors: {neighbors}.
You are Isabel, a farmer (discreet).
It is Tuesday, 10:59. You are at the river.
In front of you is Rafael, a neighbor and coworker.
What you know:
[1] party · who: Elena · where: bakery · when: tomorrow 12:30 · amount: 200 people
You know it first-hand. You have already told Rafael.
In this conversation:
Rafael greeted you.
Decision: turn.
The action (one JSON object; Spanish example from the contract):
{"action":"say","act":"tell","fact":1,
"claim":{"who":null,"where":"plaza","when":"hoy 22:00","amount":null,"guess":["when"]},
"text":"¿Sabes que hay fiesta en la plaza? Creo que era a las diez."}
| Field | Values | Notes |
|---|---|---|
action |
say, go, none |
Always first |
act |
greet, tell, ask, bye |
Only with say |
fact |
Number in the "What you know" list | With tell, ask and go |
claim |
who, where, when, amount, guess |
With tell and go: what the neighbor says, and which slots are a guess |
text |
One or two sentences | Only with say; always last, so generation can stop before it when no one is watching that neighbor |
go means "I plan to go": the engine writes the place and time of the claim in the neighbor's agenda. That is where people arriving late or at the wrong place come from.| Base | google/gemma-4-E4B-it |
| Method | LoRA in bf16 (rank 16, alpha 32, every linear layer of the text model), loss on the answer only, best checkpoint by validation loss, 2 epochs, merged into the base |
| Conversion | merged bf16 → GGUF bf16 → Q4_K_M with llama.cpp |
| Data | 12,146 card → answer pairs: 10,184 decide and 1,962 extract; 6,032 Spanish and 6,114 English; 11,539 for training and 607 for validation |
| Where the cards come from | real runs of the village, rebuilt from their event logs by the engine with the same code that writes them live, so the training format is the production format |
| Where the answers come from | two frontier models of different families, half of the cards each; every answer validated by the engine against the neighbor's memory and the vocabulary (254 discarded) |
| Leakage | 0 fingerprints shared with the frozen tests |
| Hardware | one rented RTX 5090 (32 GB) |
Apache-2.0, like Gemma 4 E4B (LICENSE, NOTICE). Fine-tuned from Google's Gemma 4 E4B (gemma-4-E4B-it) for Rumor Village and quantized to Q4_K_M; the modifications are the fine-tuning and the conversion. The game's code is MIT.
Made by Manuel García Sanz · https://manuelgs.com/en/rumor-village/ · web demo · Rumor Village on GitHub
google/gemma-4-E4B-it