Qwen3-0.6B Multi-Game Decision Model (Full Merged Weights)
A specialized, high-performance decision-making language model fine-tuned on 1,092,754 game decisions across 23 distinct board, card, puzzle, and strategy games.
This repository contains the FULL merged 16-bit model weights (model.safetensors), combining the Qwen/Qwen3-0.6B base model, the fine-tuned LoRA adapters, and the Unsloth FastDecisionModel / CLEF multi-criteria classification head into a standalone model ready for immediate deployment.
Across a comprehensive 2,193-sample multi-game benchmark, this fine-tuned model increases overall decision accuracy from 28.04% (Zero-Shot Base) to 67.81% (+39.77% absolute gain / +141.8% relative improvement), with cross-entropy loss dropping from 1.5026 down to 0.7298.
Benchmark Highlights
- Overall Decision Accuracy: 67.81% vs. 28.04% (Zero-Shot Base) — +39.77% absolute gain
- Average Cross-Entropy Loss: 0.7298 vs. 1.5026 (Zero-Shot Base) — -0.7728 loss drop
- Flawless Mastery: 100.0% on Mastermind, 98.0% on Blackjack, 97.0% on Rock Paper Scissors, 96.0% on Yahtzee
- Strategic Leap: 88.0% on Dots and Boxes (up from 3.0%), 65.0% on Connect Four (up from 14.0%), 71.1% on Battleship (up from 8.9%)
- Training Dataset: Trained on
kaushik-harsh-99/boardgame-decision-models(1,092,754 training instances across 23 games) - Model Format: Full 16-bit merged weights (
model.safetensors, 1.14 GB + joint classification head 52 MB). No separate adapter merging required.
Category-Level Performance Breakdown
The 23 supported games are grouped into four core gameplay categories. Across all four categories, the model demonstrates dramatic capabilities over the base zero-shot model:
| Game Category | Test Samples | Base Zero-Shot Accuracy | Fine-Tuned Accuracy | Absolute Gain | Relative Gain |
|---|---|---|---|---|---|
| Arcade, Spatial & Puzzle | 600 | 34.67% | 82.00% | +47.33% | +136.5% |
| Logic, Deduction & Mathematics | 676 | 26.48% | 66.72% | +40.24% | +152.0% |
| Card & Casino Games | 300 | 41.00% | 66.33% | +25.33% | +61.8% |
| Classic Board & Strategy | 617 | 17.02% | 55.92% | +38.90% | +228.6% |
| OVERALL BENCHMARK | 2,193 | 28.04% | 67.81% | +39.77% | +141.8% |

Per-Game Benchmark (All 23 Games)
Evaluated on 2,193 out-of-distribution test states across all 23 games (~100 test samples per game):
| Board Game | Category | Base Zero-Shot | Fine-Tuned Model | Absolute Gain |
|---|---|---|---|---|
| Mastermind | Logic & Deduction | 31.0% | 100.0% | +69.0% (100/100 perfect!) |
| Blackjack | Card & Casino | 39.0% | 98.0% | +59.0% |
| Rock Paper Scissors | Logic & Game Theory | 24.0% | 97.0% | +73.0% |
| Yahtzee | Probability & Dice | 33.0% | 96.0% | +63.0% |
| Pacman | Arcade & Spatial | 49.0% | 92.0% | +43.0% |
| Dots and Boxes | Board & Strategy | 3.0% | 88.0% | +85.0% (Largest gain!) |
| Sokoban | Grid & Puzzle | 22.0% | 88.0% | +66.0% |
| Snake | Arcade & Spatial | 38.0% | 88.0% | +50.0% |
| 2048 | Grid & Tile | 32.0% | 86.0% | +54.0% |
| Poker | Card & Wagering | 60.0% | 78.0% | +18.0% |
| Battleship | Board & Deduction | 8.9% | 71.1% | +62.2% |
| Tetris | Arcade & Spatial | 24.0% | 70.0% | +46.0% |
| Sliding Puzzle | Spatial Puzzle | 43.0% | 68.0% | +25.0% |
| Connect Four | Board & Strategy | 14.0% | 65.0% | +51.0% |
| Tic Tac Toe | Board & Strategy | 41.0% | 55.0% | +14.0% |
| Reversi | Board & Strategy | 19.0% | 49.0% | +30.0% |
| Sudoku | Logic & Grid | 19.0% | 48.0% | +29.0% |
| Nim | Mathematical Game | 2.6% | 40.8% | +38.2% |
| Minesweeper | Deduction & Grid | 37.0% | 40.0% | +3.0% |
| Tower of Hanoi | Logic & Recursion | 33.0% | 39.0% | +6.0% |
| Checkers | Board & Strategy | 20.0% | 35.0% | +15.0% |
| Chess | Board & Strategy | 5.6% | 29.2% | +23.6% |
| Solitaire | Card Game | 24.0% | 23.0% | -1.0% |

Training Curves & Optimization
Trained over 34,149 steps (70.3 hours) using AdamW with a cosine learning rate schedule (warmup from 0 to 2e-4, decaying smoothly to 0). The loss drops steadily from 1.70 to ~0.73 with rock-solid gradient stability:

Quickstart & Inference
1. Installation
pip install unsloth torch transformers
2. High-Level Python API (runner.py)
The repository includes a ready-to-use high-level runner that wraps all CLEF schema details into an easy Python call:
from runner import GameDecisionRunner
# Initialize runner (loads weights directly from Hugging Face or local path)
runner = GameDecisionRunner.from_pretrained("kaushik-harsh-99/Qwen3-0.6B-Game-Decision-Model")
# Run decision on any game state
result = runner.predict(
game="blackjack",
state="Dealer shows 7. Player hand: [10 of Clubs, 6 of Hearts] (Hard 16).",
choices=["Hit", "Stand", "Double Down", "Surrender"],
instructions="Select optimal blackjack basic strategy action."
)
print(f"Optimal Action: {result['best_action']}")
print(f"Confidence: {result['confidence']:.1%}")
print(f"Probabilities: {result['probabilities']}")
3. Command-Line Testing & Interactive Mode
You can immediately test the model from the terminal without writing any code:
# Clone the repository
git clone https://huggingface.co/kaushik-harsh-99/Qwen3-0.6B-Game-Decision-Model
cd Qwen3-0.6B-Game-Decision-Model
# Test sample scenarios (Blackjack, Mastermind, 2048, Connect Four, Chess, etc.):
python test_inference.py
# Test a specific game:
python test_inference.py --game blackjack
python test_inference.py --game chess
# Launch interactive prompt loop:
python test_inference.py --interactive
4. Direct Unsloth / CLEF Low-Level Pipeline
For advanced users building custom collators or evaluation pipelines:
import torch
from unsloth.models.decision import FastDecisionModel, ClefDataCollator
# Load the full merged 16-bit model directly from Hugging Face or local path
model_id = "kaushik-harsh-99/Qwen3-0.6B-Game-Decision-Model"
model, tokenizer = FastDecisionModel.from_pretrained(
model_name=model_id,
max_seq_length=1024,
load_in_4bit=False, # Set to True for 4-bit quantization (<2 GB VRAM)
)
# Example game state (e.g. Blackjack)
sample_state = {
"game": "blackjack",
"state": "Game: Blackjack (blackjack).\nRules: Beat the dealer without exceeding 21.\nCurrent state: Dealer shows 7. Player hand total: 16 (Hard 16).",
"questions": {
"action": {
"type": "choice",
"instructions": "Select the optimal blackjack move.",
"criteria": {
"Hit": "Take another card",
"Stand": "End turn and keep current total",
"Double Down": "Double bet and take one card",
"Surrender": "Forfeit half bet"
}
}
},
"gold": {
"action": "Hit" # Placeholder for inference schema
}
}
# Format and tokenize
items, _ = FastDecisionModel.build_dataset([sample_state], tokenizer, model)
pad_token_id = getattr(tokenizer, "tokenizer", tokenizer).pad_token_id
collator = ClefDataCollator(pad_token_id, tokenizer=getattr(tokenizer, "tokenizer", tokenizer))
batch = collator(items)
batch.pop("target", None)
# Run inference
model.eval()
with torch.no_grad():
device = next(model.parameters()).device
inputs = {k: v.to(device) if torch.is_tensor(v) else v for k, v in batch.items()}
logits, _ = model(**inputs)
# Extract predicted action
logits = logits.float()
choices = list(sample_state["questions"]["action"]["criteria"].keys())
predicted_index = int(logits[0, :len(choices)].argmax().item())
best_action = choices[predicted_index]
print(f"Optimal Action: {best_action}")
Training Details
- Base Architecture:
Qwen/Qwen3-0.6B - Fine-Tuning Framework: Unsloth FastDecisionModel (CLEF joint head)
- Training Dataset:
kaushik-harsh-99/boardgame-decision-models - Total Training Samples: 1,092,754
- LoRA Parameters Merged: Rank = 16, Alpha = 32, Targets =
q_proj,k_proj,v_proj,o_proj,gate_proj,up_proj,down_proj - Effective Batch Size: 32 (Per-device batch 16, Gradient accumulation 2)
- Context Length: 1,024 tokens
- Training Duration: 70.27 hours on 1x NVIDIA RTX 3050 (6GB)
- Export Format: Standalone merged 16-bit safetensors (
model.safetensors+joint_head.safetensors)
Acknowledgements & Ecosystem
This model was trained 2x faster with Unsloth. Special thanks to the Unsloth team for their ultra-fast Triton-accelerated classification and decision architecture!