File size: 1,803 Bytes
2019b9d 7f912a1 2019b9d 7f912a1 2019b9d 7f912a1 a291054 2019b9d 7f912a1 a291054 7f912a1 a291054 7f912a1 a291054 7f912a1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | ---
title: Ai Training Simulator
emoji: π§
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 6.16.0
python_version: '3.13'
app_file: app.py
pinned: false
license: mit
short_description: Idle/strategy game
hf_oauth: true
---
# AI Training Simulator
**Build Small Hackathon 2026 β Chapter Two (Adventure in Thousand Token Wood)**
A browser strategy/idle game where you manage a fake AI startup, all in a terminal-like interface.
## How it works
- Start with **$100**
- Buy upgrades (model size, dataset size/quality, architecture, hardware)
- Run **Train Model** - cost and reward are simulated based on your upgrade combination
- The chat interface uses FlameF0X/Qwen3-4B-Distilled-Claude-4.6 with huggingface inference. It's a CoT model.
- Low quality β high temperature β incoherent word salad
- Upgrade your stack β temperature drops β coherent output
- Unlock **Cloud Inference** for recurring revenue
## Badges targeted
- π¨ Off-Brand β fully custom UI (no default Gradio look)
## Files
| File | Purpose |
|------|---------|
| `app.py` | Gradio app + action handler |
| `state.py` | Pure Python game logic (train, upgrade, cloud) |
| `game_config.py` | **All balance numbers** β edit this to tune the game |
| `requirements.txt` | Only `gradio` needed (model runs in browser) |
## Customising / balancing
Everything tunable is in `game_config.py`:
- `STARTING_MONEY` β how much the player starts with
- `UPGRADES` β levels, costs, quality scores per upgrade
- `BASE_TRAIN_COST` / multiplier tables β training run economics
- `BASE_REWARD` + `QUALITY_EXPONENT` β reward curve shape
- `REWARD_NOISE_PCT` β variance per run
- `CLOUD_*` constants β cloud inference economics
- `CHAT_TEMP_*` β how temperature maps to model quality
Author: Martico2432
|