GameDecider v0.3 - LoRA adapter for game state evaluation
2 min readupdated
GameDecider v0.3 is a rank 16 LoRA (small add-on for a base model) for the google/gemma-4-26B-A4B-it model, designed to answer questions about game states. The model analyzes supplied JSON or text data about NPCs, the player, and events, returning calibrated probabilities for in-game decision making. It supports question types ranging from simple yes/no to multiple choice, scale rating, and short precise answers. The tool is useful for game developers and researchers who need to integrate LLM-based NPC logic with predictable response confidence.
Key features
- Probability calibration: response temperatures are calibrated on validation datasets.
- Variety of formats: support for noul (yes/no), choice, score, multi (multiple choice), and free (text) question types.
- Efficient architecture: rank 16 LoRA add-on on top of Gemma 4 26B-A4B-it.
- Safety check: scripts include unwanted content filtering and multi-criteria protection.
What you can do
- Game integration: use scripts to generate character reactions, evaluate offers, or check player inventory.
- Plot analysis: check logical consistency of game events and world states.
- Scenario testing: automate quest and dialogue runs using the launch script.
Example
Running the model to evaluate game states via the Python script from the repository:
pip install torch transformers safetensors
python gamedecider_gemma.py --adapter . --row row.json --device cudaRead more
DetailsBenchmarks: accuracy on the bench set is 0.927, on realgames 0.888, and on heldout_v3 0.772.
Hardware: bf16 inference peaks at 51 GB VRAM (requires an 80 GB GPU or multi-card base splitting).
Limitations: works in English only and is not intended for making real-world decisions about people.
Training: 1 epoch on a dataset of 135,334 rows using a single NVIDIA H200.










Comments