Lumine 2: The First Generalist Agent that Completes Full-Length AAA Games

Project Page GitHub Dataset Technical Report

中文 | English

Lumine 2

Lumine 2 is an open generalist game agent that watches the screen, plays with a keyboard and mouse, and thinks when it needs to, like a human player. It is the first agent to complete the full main storylines of modern AAA games, and it plays games it never saw during training. Built on Qwen3.5-9B, it runs in real time on a single RTX 5090 alongside the game.

Choosing a model

Model Description
Lumine2 (this repo) The model in the technical report; all reported results come from it. It usually thinks in Chinese, even in games with an English UI.
Lumine2-EN Same recipe and data, with a higher share of English. With a Chinese system prompt and Chinese HUD, it thinks in Chinese; with an English system prompt and English HUD, it thinks in English. It has not been as thoroughly evaluated as Lumine2. Recommended for English-speaking users.

Use Lumine2 to reproduce the paper or for games with a Chinese UI. Use Lumine2-EN if you want English thoughts in games with an English UI.

Highlights

  • Completes full AAA main storylines: Finishes the entire main story of Cyberpunk 2077 (23.7 h, faster than the average human player) and Marvel's Spider-Man 2 (~23 h) autonomously. From a fresh account, it completes the Mondstadt storyline of Genshin Impact in 14.3 h and levels a new World of Warcraft character to level 31 in 21 h.
  • Generalizes to unseen games: Completes the Cyberpunk 2077: Phantom Liberty expansion without training on it, and makes hours of progress across 35 evaluated games, 14 of them unseen.
  • Real time on one consumer GPU: Sees the screen at 5 Hz and presses keys at 30 Hz, averaging 136 ms per step and peaking at 14.1 GB VRAM while sharing a single RTX 5090 D v2 with Genshin Impact.
  • Two-timescale memory: Keeps the last 24 s of frames plus up to 15 earlier reasoning episodes spanning minutes, managed by SASH inference so it can play for tens of hours.

Model

Lumine 2 model overview

At each step, Lumine 2 takes the current frame and its history and either acts directly or reasons first, then acts. Steps where it reasons are kept as episodes in long-term memory, so minutes later it still knows what it decided and why.

Base model Qwen3.5-9B (Gated DeltaNet + full attention)
Input 720p screenshots at 5 Hz + game system prompt + task instruction
Output Optional thought, then one keyboard/mouse action per 200 ms
Context 128K tokens: up to 120 recent frames (24 s) + 15 reasoning episodes
Modes Adaptive Thinking (reasons when needed; recommended) and Instant (actions only)

Output format

Lumine 2 adds five special tokens to the Qwen3.5 vocabulary. Images and chat turns use Qwen3.5's own tokens (<|vision_start|>, <|image_pad|>, <|vision_end|>, <|im_start|>, <|im_end|>).

Token Role
<|thought_start|> / <|thought_end|> Wrap a thought (Adaptive Thinking mode only)
<|action_start|> / <|action_end|> Wrap the action; every step ends with exactly one action
<|action_sep|> Separates the mouse field and the six key chunks

The first token of each step decides the mode: <|thought_start|> means the model reasons before acting, and <|action_start|> means it acts directly. In Adaptive Thinking mode the model decides; if it has not reasoned for 119 consecutive steps (about 24 s), the inference server forces a thought. In Instant mode, it always acts directly.

Acting directly (most steps):

<|action_start|>24 -6 0<|action_sep|> W Shift<|action_sep|> W Shift<|action_sep|> W Shift<|action_sep|> W Shift<|action_sep|> W<|action_sep|> W<|action_end|>

Reasoning, then acting:

<|thought_start|>The dialogue has ended and the quest marker points to the elevator on the right. Turn right, walk to the elevator panel, then press F to call it.<|thought_end|><|action_start|>180 0 0<|action_sep|> W<|action_sep|> W<|action_sep|> W<|action_sep|> W<|action_sep|> W<|action_sep|> W<|action_end|>

Both examples are illustrative outputs from Cyberpunk 2077. In practice, Lumine2 usually thinks in Chinese even when the game UI is in English (see Choosing a model).

Reading an action. Each action covers the next 200 ms:

  • dx dy wheel: relative mouse movement over the step (dx > 0 right, dy > 0 down, within ±10,000 per step) and scroll (> 0 up, within ±120).
  • Six key chunks of 33 ms each, giving 30 Hz keyboard control. Each chunk lists the keys held, starting with a space; an empty chunk means no key is held. A key in consecutive chunks stays pressed, and a key not listed is released. In the first example, the view turns slightly right and up while W and Shift are held for the first four chunks (133 ms, sprinting forward) and only W for the last two (67 ms, walking forward).

The vocabulary has 85 keys: LB RB MB, A–Z, Zero–Nine (number keys 0–9), F1–F12, left/right modifiers (Shift Ctrl Alt RShift RCtrl RAlt), and common control, navigation, and punctuation keys. What each key does in a game comes from that game's system prompt; if you remap keys in-game, update the prompt to match.

SASH inference

Over hours of play, any fixed context fills up, and a real-time agent cannot pause the game to summarize its history. Lumine 2 manages its 128K context with SASH (Sliding-And-Sawtooth Hybrid), named after the two sashes of a double-hung window.

SASH context management

(a) Context layout: system prompt, upper sash (episodic history), lower sash (recent history). (b) How the context changes step by step, with the upper sash limited to 3 episodes for illustration.

  • Upper sash, episodic history (sliding): up to 15 reasoning episodes, each holding the observation, thought, and action of one reasoning step. When full, the oldest episode slides out.
  • Lower sash, recent history (sawtooth): consecutive observation–action turns, one added every 200 ms, up to 120 turns (24 s).
  • When the model thinks: that step is promoted into the upper sash as a new episode, and the lower sash is cleared at once (a sawtooth reset). If no thought comes for 119 steps, the server forces one, so the lower sash never overflows.

The result is that the model always sees the last few seconds in full detail plus the key decisions from the last several minutes, at a bounded context size, for sessions of any length.

SASH is also built to be fast on Qwen3.5's hybrid backbone (8 full-attention + 24 Gated DeltaNet layers). New turns are only appended, so the KV cache is reused. After each promotion the server snapshots the recurrent state, so a sawtooth reset is a single memory copy with no recomputation. When an episode slides out, the attention cache is compacted in place and its rotary positions are shifted (~5 ms) instead of re-encoding the remaining images. All of this runs asynchronously while the client executes the 200 ms action.

Mode Upper sash Lower sash Server flags
Adaptive Thinking (default) 15 episodes 120 frames, sawtooth reset --reasoning-history-rounds 15 --action-window-frames 120 --force-thinking-steps 120
Instant none 135 frames, sliding window --no-reasoning --action-window-frames 135

Training

Lumine 2 is trained in two stages on 256 H100 GPUs.

Stage Data Tokens Time
Continual pretraining 10K+ h of gameplay across 134 games, 263 h of instruction data, general multimodal data (LLaVA-OneVision), a little reasoning data 399.2B 250 h
Reasoning training 288 h of gameplay with human-annotated thoughts 32.3B 21 h

8,788 hours of the gameplay data are released as Lumine2-data.

Evaluation

35 evaluated games

The 35 evaluation games. Top three rows: seen in training. Bottom two rows: unseen.

See the technical report for per-game results and failure analysis.

Usage

Lumine 2 is served by a custom real-time engine (FP8, SASH memory, OpenAI-compatible API) and driven by a Windows client that captures the screen and sends OS-level input. Both are in the GitHub repo; follow its Quick Start to set up.

Deployment Step time Peak VRAM
1× RTX 5090 D v2 (game + model on one GPU) 136 ms avg 14.1 GB
Remote 1× H100 77–100 ms 14.2 GB
Remote 2× H100 (TP=2) 69–73 ms 9.0 GB / GPU

Only RTX 5090 and H100 have been tested so far.

# Server (Linux / WSL2)
cd server && bash install.sh && bash start.sh --idle-reset-secs 3600
# Client (Windows), with the game open
cd client; powershell -ExecutionPolicy Bypass -File .\install.ps1
$env:MODEL_API_URL="http://127.0.0.1:8000/v1/chat/completions"
.\.venv\Scripts\python.exe run.py --process-name "Cyberpunk2077.exe" --game "cyberpunk_2077_en" --instruction "Progress through the main storyline"

For best results, run games at 1080p with 100% Windows display scaling, default pointer sensitivity, "Enhance pointer precision" off, and the in-game UI in Chinese or English.

Safety and responsible use

Lumine 2 sends real OS-level keyboard and mouse input, so its actions are not confined to the game window. Run it on a dedicated machine or VM without personal data, and supervise it. Press Ctrl+F12 to stop at any time.

Lumine 2 is intended for research, single-player play, game testing, and interactive assistance. Do not use it to cheat, to gain an unfair advantage in online multiplayer games, or in ways that violate a game's terms of service.

License

The model weights are released under the Apache License 2.0. Games and game content shown in this card belong to their respective owners.


Looking for our previous work? See Lumine 1 (Project Page · Technical Report).

Downloads last month
39
Safetensors
Model size
10B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for LumineResearch/Lumine2

Finetuned
Qwen/Qwen3.5-9B
Finetuned
(1,614)
this model

Dataset used to train LumineResearch/Lumine2

Space using LumineResearch/Lumine2 1

Papers for LumineResearch/Lumine2