predbrad commited on
Commit
5cfce08
·
1 Parent(s): 92aa4f6

Model card

Browse files
Files changed (1) hide show
  1. README.md +103 -1
README.md CHANGED
@@ -2,10 +2,112 @@
2
  license: apache-2.0
3
  base_model: Qwen/Qwen3-0.6B
4
  base_model_relation: finetune
 
 
 
 
5
  pipeline_tag: text-generation
6
  library_name: transformers
 
 
 
 
 
 
 
 
7
  ---
8
 
9
  # Genaro Poker 0.6B
10
 
11
- Model card coming in the next commit.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  license: apache-2.0
3
  base_model: Qwen/Qwen3-0.6B
4
  base_model_relation: finetune
5
+ datasets:
6
+ - predbrad/genaro-poker-sft
7
+ language:
8
+ - en
9
  pipeline_tag: text-generation
10
  library_name: transformers
11
+ tags:
12
+ - poker
13
+ - game-ai
14
+ - on-device
15
+ - gguf
16
+ - llama.cpp
17
+ - pokersi
18
+ - json
19
  ---
20
 
21
  # Genaro Poker 0.6B
22
 
23
+ A phone-sized poker player. Genaro is a full fine-tune of
24
+ [Qwen3-0.6B](https://huggingface.co/Qwen/Qwen3-0.6B) built to be the opponents in
25
+ [**PokerSI**](https://github.com/bradflaugher/PokerSI), an Android poker game where every seat
26
+ is a small language model running on the phone with llama.cpp. It is PokerSI's recommended
27
+ model.
28
+
29
+ Given PokerSI's prompt for one decision (a persona, the rules, what the seat can see, the
30
+ legal moves), Genaro answers with one JSON object: a sound, legal move and, on talk turns, a
31
+ short line in the character's voice that never gives its cards away.
32
+
33
+ ```json
34
+ {"action": "call", "amount": 55, "say": "The pot looks like it's brewing a little sunshine."}
35
+ {"action": "check", "amount": 0, "say": "Ahoy, these doubloons are worth a fortune!"}
36
+ {"action": "raise", "amount": 240, "say": "Get those reps in, I see potential!"}
37
+ ```
38
+
39
+ | File | Use |
40
+ |---|---|
41
+ | `genaro-poker-0.6b-Q4_K_M.gguf` (397 MB) | **On-device / llama.cpp.** What PokerSI downloads. Chat template embedded. |
42
+ | `model.safetensors` + config/tokenizer (bf16) | transformers, further fine-tuning, other quantizations |
43
+
44
+ Bigger sibling for 6 GB+ phones: [predbrad/Genaro-poker-1.7B](https://huggingface.co/predbrad/Genaro-poker-1.7B).
45
+ Code, data pipeline and evals: [github.com/bradflaugher/genaro-poker](https://github.com/bradflaugher/genaro-poker).
46
+ Training data: [predbrad/genaro-poker-sft](https://huggingface.co/datasets/predbrad/genaro-poker-sft).
47
+
48
+ ## Results
49
+
50
+ 600 held-out PokerSI decisions over all six variants (Texas Hold'em, Omaha, Five-Card Draw,
51
+ Seven-Card Stud, Short Deck, Crazy Pineapple). Every model runs through llama.cpp exactly as
52
+ the app runs it: same prompt, GBNF grammar and sampling (persona temperature 0.6-0.9,
53
+ top-k 40, top-p 0.95, max 96 tokens).
54
+
55
+ | model | GGUF | agreement | blunders /100 | leaks | card talk | repeats | >12 words | live play bb/100 |
56
+ |---|---|---|---|---|---|---|---|---|
57
+ | Qwen3 0.6B (base) | 484 MB | 46.0% | 10.3 | 10.5% | 39.8% | 23.9% | 22.7% | — |
58
+ | LFM2.5 1.2B (PokerSI's previous default) | 731 MB | 55.8% | 12.6 | 2.6% | 29.8% | 8.5% | 9.4% | -80 ± 80 |
59
+ | **Genaro Poker 0.6B** | 397 MB | 78.5% | 9.1 | 0.0% | 0.3% | 0.0% | 0.0% | -84 ± 52 |
60
+
61
+ *Agreement*: same move as the majority of 9 House Bot teachers. *Blunder*: folding with
62
+ equity ≥ 10 points above the pot odds, or calling/raising with equity ≥ 15 points below
63
+ them (bluffs by bluffing personas excepted). *Leak*: a line PokerSI's own `HandBlur` would
64
+ censor. *Card talk*: any card, rank or hand word at all. Live play and every other model:
65
+ [results](https://github.com/bradflaugher/genaro-poker/blob/main/results/README.md).
66
+
67
+ ## Use
68
+
69
+ **In PokerSI:** MODELS → Genaro Poker 0.6B → download. That's it.
70
+
71
+ **llama.cpp:** PokerSI-style messages, with a grammar and thinking off:
72
+
73
+ ```bash
74
+ llama-server -m genaro-poker-0.6b-Q4_K_M.gguf --jinja -c 4096
75
+ ```
76
+
77
+ The prompt format is PokerSI's (`llm/PokerPrompt.kt`); real examples are in the
78
+ [dataset](https://huggingface.co/datasets/predbrad/genaro-poker-sft). Outside that format
79
+ Genaro is just a small, poker-obsessed Qwen3; it is not a general chat model.
80
+
81
+ **transformers:**
82
+
83
+ ```python
84
+ from transformers import AutoModelForCausalLM, AutoTokenizer
85
+ tok = AutoTokenizer.from_pretrained("predbrad/Genaro-poker")
86
+ model = AutoModelForCausalLM.from_pretrained("predbrad/Genaro-poker", dtype="auto")
87
+ text = tok.apply_chat_template(messages, tokenize=False, add_generation_prompt=True, enable_thinking=False)
88
+ ```
89
+
90
+ ## Training
91
+
92
+ - **Prompts:** 33k self-play hands of PokerSI's own Kotlin engine and prompt builder,
93
+ compiled into a bridge, so every prompt is byte-for-byte what the app sends.
94
+ - **Moves:** the majority of 9 House Bot teachers (PokerSI's heuristic, each with the
95
+ persona's style and 1,000-sample Monte Carlo equity).
96
+ - **Table talk:** written by Gemma 4 E4B for the chosen move, kept only if it passes the
97
+ grammar's rules, 2-12 words, no card or hand vocabulary, PokerSI's repeat rules and
98
+ PokerSI's `HandBlur`. Quiet turns have no line, like the app's quiet-turn grammar.
99
+ - **Recipe:** 22,941 conversations, full fine-tune, bf16, 2 epochs, lr 3e-5 cosine, effective
100
+ batch 64, loss on the reply only. ~70 min on one NVIDIA RTX Spark N1X laptop.
101
+ See `training_config.yaml`.
102
+
103
+ ## Limits
104
+
105
+ - Genaro imitates PokerSI's House Bot. That makes it a reasonable, readable game-night
106
+ opponent, not a strong poker player; in live play it does not beat House Bots.
107
+ - Trained only for PokerSI's prompt format, in English.
108
+ - Lines are family-friendly by construction; personas come from PokerSI.
109
+
110
+ ## License
111
+
112
+ Apache 2.0, inherited from Qwen3-0.6B. Training data was generated with PokerSI (MIT) and
113
+ Gemma 4 (Apache 2.0).