rumor-village-e4b (GGUF)

Play in your browser game: Linux Β· Windows GitHub: manuelgscom/rumor-village GGUF: Q4_K_M Β· 5.34 GB made-up memories: 0 % license: Apache-2.0

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.

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

What it does

  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
  • The model proposes; the engine decides. No action is applied without validation, and the state travels as structured data: no neighbor ever decides from the text of a bubble.
  • Two tasks. 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.
  • Trained for one contract. It is not a general chat model. It follows the card format of the game and answers in the game's closed vocabulary (places, neighbors, kinds of news).
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

Results

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.

Frozen decision test, base against fine-tuned

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, base against 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:

Prompt tokens and time per simulated minute

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.

The batch panel

In the game

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 What did they think?
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 contract

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
  • There is no recipient field: the engine knows who is in front.
  • 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.
  • In the game, generation is constrained by a GBNF grammar built from the village's vocabulary, and every action is validated against the neighbor's memory before it is applied.
  • The engine that writes the cards, the grammar and the validator are in the GitHub repository (C++, MIT).

Training

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)

Intended use

  • For: running the neighbors of Rumor Village, or studying small fine-tuned models as agents behind a validating engine: structured actions, a closed vocabulary, batched decoding on a consumer GPU.
  • Not for: general chat, facts about the world, or any decision applied without validation. It knows only the village in its card.

License

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

Downloads last month
646
GGUF
Model size
8B params
Architecture
gemma4
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for manuelgscom/rumor-village-e4b-GGUF

Finetuned
(507)
this model

Evaluation results