Downloads · 30 days
109
10% of all-time downloads
build-small-hackathon/mafia-gemma-4-12B-it-gguf
mafia-gemma-4-12B-it-gguf is a text generation model from build-small-hackathon. Use it when you need the model to write or continue text. It is set up for gguf. The card lists the license as apache-2.0.
<div align="center" <h1Mafia Gemma 4 12B IT GGUF</h1 </div
Downloads · 30 days
109
10% of all-time downloads
All-time downloads
1.1K
Public
Repo size
12.8 GB
Likes
1
Public
Click a slice to open those files.
.gguf12.8 GB · 100%
From the Hugging Face model README
[!NOTE] This repository contains the GGUF Q8_0 runtime build for
mafia-gemma-4-12B-it, a role-conditioned social-deduction fine-tune of Gemma 4 12B IT. The benchmark tables below report BF16 and Q8_0 together as one model family,mafia-gemma-4-12B-it, because the two repositories are deployment formats of the same trained agent policy.
Mafia Gemma 4 12B IT is designed for seven-player Mafia / Werewolf style games where an agent may be assigned Mafia, Detective, Doctor, or Villager at random. This GGUF repository is intended for llama.cpp-based local or server inference.
The model was trained to improve:
| File | Purpose |
|---|---|
gemma-4-12b-it.Q8_0.gguf | Q8_0 quantized language model |
gemma-4-12b-it.BF16-mmproj.gguf | Multimodal projector file from the conversion pipeline |
For text-only Mafia play, use gemma-4-12b-it.Q8_0.gguf.
Fine-tuning used the unified
Alfaxad/mafia-dataset,
a canonical event-log corpus built for social-deduction agents. The dataset
combines converted and normalized examples from:
The schema separates public transcript, private role information, legal action sets, hidden state, votes, night actions, claims, and outcome labels. Hidden information is intentionally represented in the training rows only where the acting role is allowed to see it.
unsloth/gemma-4-12b-ite1c320c43638bb0fde6986f669eada9850ac89d02acf7ba627efb87ea69e0572Use a Gemma 4 capable llama.cpp build. Older llama.cpp builds may fail with an
unknown architecture error for gemma4.
Download the files:
hf download Alfaxad/mafia-gemma-4-12B-it-gguf \
gemma-4-12b-it.Q8_0.gguf \
gemma-4-12b-it.BF16-mmproj.gguf \
--local-dir ./mafia-gemma-4-12b-it-gguf
Run text-only inference:
llama-cli \
-m ./mafia-gemma-4-12b-it-gguf/gemma-4-12b-it.Q8_0.gguf \
--jinja \
--temp 1.0 \
--top-p 0.95 \
--top-k 64 \
-p "Role: Doctor. Alive players: Ada, Blake, Casey, Devon. Night 2 action: choose one player to protect. Return compact JSON."
Run a local server:
llama-server \
-m ./mafia-gemma-4-12b-it-gguf/gemma-4-12b-it.Q8_0.gguf \
--jinja \
-c 4096 \
--temp 1.0 \
--top-p 0.95 \
--top-k 64 \
--host 0.0.0.0 \
--port 8080
The table below combines the results of merged BF16 and GGUF Q8_0 deployments as one
model family, mafia-gemma-4-12B-it. Results come from 24 full seven-player games, with every player
using HOLY GRAIL v4 and the non-player moderator fixed to base Gemma 4 12B
BF16 using a Time-to-Talk scheduler plus generator. The benchmark included
20 pairwise local-vs-frontier games and 4 mixed all-star games. Total
API/player/moderator errors: 0.
| Model | Player slots | Team win rate | Alive final | Avg messages | Avg votes cast | Avg votes received | False claim rate |
|---|---|---|---|---|---|---|---|
| mafia-gemma-4-12B-it | 78 | 0.615 | 0.538 | 1.333 | 1.936 | 1.756 | 0.013 |
| GPT-5 medium | 18 | 0.611 | 0.722 | 1.167 | 1.778 | 1.222 | 0.056 |
| GPT-5-mini | 18 | 0.444 | 0.389 | 1.444 | 1.944 | 2.222 | 0.000 |
| Claude Opus 4.8 | 18 | 0.611 | 0.444 | 1.500 | 2.167 | 2.556 | 0.000 |
| Claude Sonnet 4.6 | 18 | 0.111 | 0.333 | 1.278 | 1.667 | 2.667 | 0.000 |
| Gemini 2.5 Pro OSV | 18 | 0.889 | 0.556 | 1.500 | 2.222 | 1.889 | 0.000 |
mafia-gemma-4-12B-it combines BF16 and Q8_0 rows. Each opponent has four
local-side trials: two with Mafia Gemma controlling Mafia and two with Mafia
Gemma controlling Good.
| Opponent | Local wins overall | Local as Mafia | Local as Good |
|---|---|---|---|
| GPT-5 medium | 1/4 | 1/2 | 0/2 |
| GPT-5-mini | 3/4 | 1/2 | 2/2 |
| Claude Opus 4.8 | 2/4 | 0/2 | 2/2 |
| Claude Sonnet 4.6 | 4/4 | 2/2 | 2/2 |
| Gemini 2.5 Pro OSV | 1/4 | 0/2 | 1/2 |
| Role | Slots | Team win rate | Alive final | Vote accuracy | Avg messages | Avg claims | False claims |
|---|---|---|---|---|---|---|---|
| Mafia | 21 | 0.381 | 0.381 | 1.000 | 1.476 | 0.048 | 0.048 |
| Detective | 10 | 0.700 | 0.500 | 0.588 | 1.100 | 0.900 | 0.000 |
| Doctor | 14 | 0.714 | 0.643 | 0.700 | 1.357 | 0.857 | 0.000 |
| Villager | 33 | 0.697 | 0.606 | 0.661 | 1.303 | 0.000 | 0.000 |
Latency is runtime and provider dependent, so use this as an operational reference rather than a pure capability ranking.
| Model | Calls | Avg latency sec | Max latency sec | Avg output chars | Failed calls |
|---|---|---|---|---|---|
| mafia-gemma-4-12B-it | 104 | 5.926 | 103.935 | 218.2 | 0 |
| GPT-5 medium | 21 | 31.484 | 102.330 | 229.8 | 0 |
| GPT-5-mini | 26 | 5.888 | 20.425 | 225.3 | 0 |
| Claude Opus 4.8 | 27 | 3.228 | 6.578 | 249.7 | 0 |
| Claude Sonnet 4.6 | 23 | 2.835 | 3.746 | 240.6 | 0 |
| Gemini 2.5 Pro OSV | 27 | 19.449 | 138.644 | 143.7 | 0 |
This model is intended for game agents, research harnesses, and AI-native social-deduction experiences. It works best when paired with:
This model is distributed under the Apache 2.0 license, following the base Gemma 4 license information provided by the upstream model card.