model card: Doom demo section
Browse files
README.md
CHANGED
|
@@ -80,6 +80,31 @@ from transformers import AutoModel, AutoTokenizer
|
|
| 80 |
model = AutoModel.from_pretrained("iapp/OpenThai-SystemOne", trust_remote_code=True)
|
| 81 |
```
|
| 82 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
## Evaluation
|
| 84 |
|
| 85 |
All numbers are zero-shot: the model sees only the state, the instructions and the option names/descriptions.
|
|
|
|
| 80 |
model = AutoModel.from_pretrained("iapp/OpenThai-SystemOne", trust_remote_code=True)
|
| 81 |
```
|
| 82 |
|
| 83 |
+
## Demo: playing Doom, no vision, no text
|
| 84 |
+
|
| 85 |
+

|
| 86 |
+
|
| 87 |
+
The model controls a Doom marine ([ViZDoom](https://github.com/Farama-Foundation/ViZDoom)) in real time. Every 4 game
|
| 88 |
+
tics the engine's symbolic state is serialised to text, for example:
|
| 89 |
+
|
| 90 |
+
```text
|
| 91 |
+
health 100/100 | ammo 50 | kills 1
|
| 92 |
+
crosshair: empty; nearest visible enemy 39deg to the RIGHT
|
| 93 |
+
enemies: Zombieman 5m right -39deg VISIBLE; ChaingunGuy 19m right -24deg; Zombieman 19m ahead -12deg
|
| 94 |
+
items: GreenArmor 41m right -18deg
|
| 95 |
+
depth ahead: 35/255 (obstacle near)
|
| 96 |
+
last actions: ATTACK ATTACK ATTACK ATTACK
|
| 97 |
+
```
|
| 98 |
+
|
| 99 |
+
and the model answers two typed questions in one forward pass: a `choice` over the 7 actions (the key that gets
|
| 100 |
+
pressed) and a `noul` "is an enemy in the crosshair". About 41 ms per decision on one H100 (~24 decisions/s),
|
| 101 |
+
0 output tokens, and no Doom data in training: everything comes from reading the state and the option descriptions.
|
| 102 |
+
It misses shots and dies on hard levels; the point is the speed and the calibrated probabilities, the same mechanics
|
| 103 |
+
that route tickets or pick UI elements for an agent.
|
| 104 |
+
|
| 105 |
+
Run it on your machine (iApp API key or the local weights, live HUD in Thai or English, optional recording):
|
| 106 |
+
**https://github.com/iapp-technology/openthai-systemone-doom**
|
| 107 |
+
|
| 108 |
## Evaluation
|
| 109 |
|
| 110 |
All numbers are zero-shot: the model sees only the state, the instructions and the option names/descriptions.
|