/ Модель

Характеристики

Контекст
40 960 токенов
Параметры
508 млн
Лицензия
Apache 2.0
Архитектура
qwen3 · dense
Базовая модель
Qwen3-0.6B
Библиотека
transformers
Опубликована
16 ноя 2026

Qwen3-0.6B-Game-Decision-Model

Генерация текстаТекст → текст3 профессии
113скачиваний за 30 дней3лайкавеса обновлены16 ноя 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Дообученная Qwen3-0.6B выбирает решения по текстовым состояниям в 23 настольных, карточных, логических и стратегических играх.

Qwen3-0.6B Game Decision Model — модель для выбора решений в настольных, карточных, логических и стратегических играх. Её разработал kaushik-harsh-99 на основе Qwen/Qwen3-0.6B, дообучив на 1 092 754 игровых решениях из 23 игр. Модель содержит плотную архитектуру Qwen3ForCausalLM с примерно 508 млн параметров и объединённые 16-битные веса, включая классификационную голову; для запуска не требуется отдельно подключать адаптер.

Модель принимает текстовое описание игрового состояния и предназначена для выбора подходящего хода или действия. В карточке указаны генерация текста и классификация; автор приводит результаты тестирования на 2 193 состояниях, включая высокую точность в отдельных играх. Поддерживаемый язык карточки — английский, контекст — до 40 960 токенов. Лицензия — Apache-2.0.

Заявленные результаты относятся к бенчмарку автора и не гарантируют аналогичную точность на других играх или форматах описания состояния. Модель специализирована на игровых решениях и может быть непригодна для задач общего назначения.

Сценарии применения

  • выбор хода в настольной игре по описанию текущего состояния
  • выбор действия в карточных и казино-играх
  • решение игровых задач на логику и дедукцию
  • оценка вариантов в стратегических играх
  • эксперименты с игровыми агентами и классификацией решений

Ограничения

Заявленная точность измерена на бенчмарке автора и может не переноситься на другие игры или представления игровых состояний. Модель специализирована на игровых решениях.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Бенчмарки пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь рядом с другими моделями теста

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Qwen3-0.6B Multi-Game Decision Model (Full Merged Weights)

Trained with Unsloth Model Size 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 CategoryTest SamplesBase Zero-Shot AccuracyFine-Tuned AccuracyAbsolute GainRelative Gain
Arcade, Spatial & Puzzle60034.67%82.00%+47.33%+136.5%
Logic, Deduction & Mathematics67626.48%66.72%+40.24%+152.0%
Card & Casino Games30041.00%66.33%+25.33%+61.8%
Classic Board & Strategy61717.02%55.92%+38.90%+228.6%
OVERALL BENCHMARK2,19328.04%67.81%+39.77%+141.8%

Category Performance Breakdown


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 GameCategoryBase Zero-ShotFine-Tuned ModelAbsolute Gain
MastermindLogic & Deduction31.0%100.0%+69.0% (100/100 perfect!)
BlackjackCard & Casino39.0%98.0%+59.0%
Rock Paper ScissorsLogic & Game Theory24.0%97.0%+73.0%
YahtzeeProbability & Dice33.0%96.0%+63.0%
PacmanArcade & Spatial49.0%92.0%+43.0%
Dots and BoxesBoard & Strategy3.0%88.0%+85.0% (Largest gain!)
SokobanGrid & Puzzle22.0%88.0%+66.0%
SnakeArcade & Spatial38.0%88.0%+50.0%
2048Grid & Tile32.0%86.0%+54.0%
PokerCard & Wagering60.0%78.0%+18.0%
BattleshipBoard & Deduction8.9%71.1%+62.2%
TetrisArcade & Spatial24.0%70.0%+46.0%
Sliding PuzzleSpatial Puzzle43.0%68.0%+25.0%
Connect FourBoard & Strategy14.0%65.0%+51.0%
Tic Tac ToeBoard & Strategy41.0%55.0%+14.0%
ReversiBoard & Strategy19.0%49.0%+30.0%
SudokuLogic & Grid19.0%48.0%+29.0%
NimMathematical Game2.6%40.8%+38.2%
MinesweeperDeduction & Grid37.0%40.0%+3.0%
Tower of HanoiLogic & Recursion33.0%39.0%+6.0%
CheckersBoard & Strategy20.0%35.0%+15.0%
ChessBoard & Strategy5.6%29.2%+23.6%
SolitaireCard Game24.0%23.0%-1.0%

Per-Game Comparison


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:

Training Curves


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!

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
Qwen3ForCausalLM
Ревизия весов
9eec130

0 моделей