Text Generation
Transformers
Safetensors
GGUF
English
qwen3
poker
game-ai
on-device
llama.cpp
pokersi
json
distillation
conversational
text-generation-inference
Instructions to use predbrad/Genaro-poker with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use predbrad/Genaro-poker with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="predbrad/Genaro-poker") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("predbrad/Genaro-poker") model = AutoModelForCausalLM.from_pretrained("predbrad/Genaro-poker", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use predbrad/Genaro-poker with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf predbrad/Genaro-poker:Q4_K_M # Run inference directly in the terminal: llama cli -hf predbrad/Genaro-poker:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf predbrad/Genaro-poker:Q4_K_M # Run inference directly in the terminal: llama cli -hf predbrad/Genaro-poker:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf predbrad/Genaro-poker:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf predbrad/Genaro-poker:Q4_K_M
Use Docker
docker model run hf.co/predbrad/Genaro-poker:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use predbrad/Genaro-poker with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "predbrad/Genaro-poker" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "predbrad/Genaro-poker", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/predbrad/Genaro-poker:Q4_K_M
- SGLang
How to use predbrad/Genaro-poker with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "predbrad/Genaro-poker" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "predbrad/Genaro-poker", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "predbrad/Genaro-poker" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "predbrad/Genaro-poker", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use predbrad/Genaro-poker with Ollama:
ollama run hf.co/predbrad/Genaro-poker:Q4_K_M
- Unsloth Desktop
- Pi
How to use predbrad/Genaro-poker with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf predbrad/Genaro-poker:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "predbrad/Genaro-poker:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use predbrad/Genaro-poker with Docker Model Runner:
docker model run hf.co/predbrad/Genaro-poker:Q4_K_M
- Lemonade
How to use predbrad/Genaro-poker with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull predbrad/Genaro-poker:Q4_K_M
Run and chat with the model
lemonade run user.Genaro-poker-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use predbrad/Genaro-poker with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf predbrad/Genaro-poker:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default predbrad/Genaro-poker:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use predbrad/Genaro-poker with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf predbrad/Genaro-poker:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "predbrad/Genaro-poker:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Model card
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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).
|