[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-115400":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":10,"languages":10,"totalLinesOfCode":10,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":10,"pushedAt":37,"updatedAt":38,"readmeContent":39,"aiSummary":40,"trendingCount":15,"starSnapshotCount":15,"syncStatus":41,"lastSyncTime":42,"discoverSource":43},115400,"Gamer","RainBowLuoCS\u002FGamer","RainBowLuoCS","Official Implementation of Gamer: A Generalist Vision-Language-Action Foundation Model for Long-Horizon Real-Time Game Agents","https:\u002F\u002Fmihoyo-gamer.github.io\u002F",null,1465,28,21,6,0,124,929,610,102.34,"Apache License 2.0",false,"main",true,[25,26,27,28,29,30,31,32,33,34,35,36],"continual-pretraining","embodied-agent","foundation-model","game-agent","game-ai","inference-engine","mihoyo","real-time","reinforcement-learning","scaling-laws","supervised-finetuning","vlm","2026-11-16 05:39:21","2026-11-23 20:38:02","\u003Cdiv align=\"center\">\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Flogos\u002Funiversities.svg\" alt=\"National University of Singapore · Tsinghua University · University of Chinese Academy of Sciences · University of Science and Technology of China\" width=\"100%\">\n\u003C\u002Fp>\n\n\u003Ch2 align=\"center\">\u003Cimg src=\"assets\u002Flogos\u002Fgamer-icon.svg\" alt=\"Gamer icon\" height=\"32\" align=\"top\">&nbsp;Gamer: A Generalist Vision-Language-Action Foundation Model for \u003Cbr> Long-Horizon Real-Time Game Agents\u003C\u002Fh2>\n\n\u003C!-- \u003Cp>\nRun&nbsp;Luo · Kuan&nbsp;Zhang · Qi&nbsp;Deng · Yukun&nbsp;Chen · Zhihao&nbsp;Yang · Yufei&nbsp;Zhang · Renrong&nbsp;Hu ·  Yi&nbsp;Zhang  \u003Cbr> Yinhe&nbsp;Zheng · Xiaobo&nbsp;Xia · Dawei&nbsp;Jiang · Shaoqing&nbsp;Ren\n\u003C\u002Fp> -->\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Flogos\u002Fmihoyo.svg\" alt=\"miHoYo\" width=\"100\" align=\"middle\"> &nbsp; \u003Cb> Honkai AI R&amp;D Team\u003C\u002Fb>\n\u003C\u002Fp>\n\n\u003C!-- Fill in the empty href values with the corresponding release URLs. -->\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002Fcollections\u002FTHUSI-Lab\u002Fgamescaling-model\">\u003Cimg src=\"assets\u002Fbadges\u002Fmodels.svg\" alt=\"Models\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002Fpapers\u002F2611.18397\">\u003Cimg src=\"assets\u002Fbadges\u002Fdaily-paper.svg\" alt=\"Daily Paper\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fmihoyo-gamer.github.io\u002F\">\u003Cimg src=\"assets\u002Fbadges\u002Fproject-page.svg\" alt=\"Project Page\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Farxiv.org\u002Fabs\u002F2611.18397\">\u003Cimg src=\"assets\u002Fbadges\u002Farxiv.svg\" alt=\"arXiv\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003C!-- \u003Cp>\n\u003Ca href=\"#abstract\">Abstract\u003C\u002Fa> &nbsp;|&nbsp;\n\u003Ca href=\"#highlights\">Highlights\u003C\u002Fa> &nbsp;|&nbsp;\n\u003Ca href=\"#todo-list\">TODO List\u003C\u002Fa> &nbsp;|&nbsp;\n\u003Ca href=\"#video-demos\">Video Demos\u003C\u002Fa> &nbsp;|&nbsp;\n\u003Ca href=\"#method-overview\">Method Overview\u003C\u002Fa> &nbsp;|&nbsp;\n\u003Ca href=\"#main-results\">Main Results\u003C\u002Fa> &nbsp;|&nbsp;\n\u003Ca href=\"#streaming-vllm\">Streaming-vLLM\u003C\u002Fa> &nbsp;|&nbsp;\n\u003Ca href=\"#system-prompt\">System Prompt\u003C\u002Fa> &nbsp;|&nbsp;\n\u003Ca href=\"#action-format\">Action Format\u003C\u002Fa> &nbsp;|&nbsp;\n\u003Ca href=\"#license\">License\u003C\u002Fa> &nbsp;|&nbsp;\n\u003Ca href=\"#citation\">Citation\u003C\u002Fa>\n\u003C\u002Fp> -->\n\n\u003C\u002Fdiv>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Fgamer-overview.png\" alt=\"Gamer: a generalist game agent combining screen observations, short-term history, long-term memory, and reasoning to generate keyboard and mouse actions across diverse games.\" width=\"100%\">\n\u003C\u002Fp>\n\n\u003Ch3 align=\"center\">\nIf you find Gamer useful, please upvote our \u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002Fpapers\u002F2611.18397\">Daily Paper\u003C\u002Fa> on Hugging Face.\u003Cbr>\nThank you for your support!\n\u003C\u002Fh3>\n\n## Abstract\n\nWe introduce Gamer, a generalist agent framework built for long-horizon tasks in complex interactive environments. Its end-to-end architecture combines perception, memory management, and multi-step reasoning. A shared training and deployment pipeline supports interaction with both conventional 2D graphical interfaces and complex 3D simulated worlds. We first continue pre-training on a dataset of tens of thousands of hours of device-level keyboard and mouse interaction. These trajectories span simulated games and embodied environments, allowing the model to learn environmental dynamics across both physical and virtual domains. Sparse-thinking instruction tuning then substantially reduces redundant computation while preserving the reasoning needed for complex decisions. We train the policy for long-horizon interaction with a stable multi-turn reinforcement learning method that addresses finite context windows, error accumulation during rollouts, and sparse rewards. For real-time interaction, a cloud–edge inference engine serves numerous simulated game environments concurrently, supports unbounded-context execution, and keeps online inference latency low. Across multiple challenging 3D open-world games, Gamer generalizes well and achieves operational efficiency comparable to that of skilled players. It also achieves competitive results on a range of conventional 2D game benchmarks. These results suggest that even repetitive keyboard and mouse trajectories can support substantial gains from scaling data and learning algorithms. Training on these trajectories helps Gamer learn complex skills more steadily in environments with both physical and digital properties. This approach offers a path toward generalist agents that can interact across digital and physical worlds.\n\n## Highlights\n\n- **Unified Visual Control.** Gamer observes screen images and acts through native keyboard and mouse inputs, using the same interface across games.\n- **Sparse Reasoning & Persistent Memory.** A single policy reasons at key decision points and uses memory summaries to retain task progress across context windows.\n- **Long-Horizon Reinforcement Learning.** Temporal-Aware GRPO (TA-GRPO) trains the policy on trajectory segments linked by memory summaries, using verifiable environment feedback and temporal credit assignment.\n- **Real-Time Streaming Inference.** Streaming-vLLM combines persistent context reuse, verified speculative decoding, and early action dispatch to support online rollouts, evaluation, and deployment.\n\n## TODO List\n\n- [x] **Paper release**\n- [x] **System prompt and action format documentation**\n- [x] **Gameplay demos and project page**\n- [ ] **Streaming-vLLM**\n\n## Video Demos\n\n\u003Ctable>\n  \u003Ctr>\n    \u003Cth align=\"center\" width=\"50%\">Long-Horizon Quest Execution\u003C\u002Fth>\n    \u003Cth align=\"center\" width=\"50%\">Puzzle Solving &amp; Real-Time Interaction\u003C\u002Fth>\n  \u003C\u002Ftr>\n  \u003Ctr>\n    \u003Ctd align=\"center\">\u003Cvideo src=\"https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002Ff3e9604f-8582-44c6-9c3b-61ae0431d4f9\" controls muted width=\"100%\">\u003C\u002Fvideo>\u003C\u002Ftd>\n    \u003Ctd align=\"center\">\u003Cvideo src=\"https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002F9158fd79-031b-41ab-8049-11a5a4ed82e3\" controls muted width=\"100%\">\u003C\u002Fvideo>\u003C\u002Ftd>\n  \u003C\u002Ftr>\n  \u003Ctr>\n    \u003Ctd align=\"center\">Navigation, dialogue, and quest progression with persistent task memory.\u003C\u002Ftd>\n    \u003Ctd align=\"center\">Rule interpretation, key decisions, and continuous keyboard and mouse control.\u003C\u002Ftd>\n  \u003C\u002Ftr>\n\u003C\u002Ftable>\n\n## Method Overview\n\nGamer is trained in three stages: continued pre-training (CPT), supervised fine-tuning (SFT), and online reinforcement learning (RL). All stages use the same interface for screen observations and keyboard and mouse actions.\n\n| Stage | Supervision | What the policy learns |\n|---|---|---|\n| **Continued Pre-Training** | Screen observations aligned with device-level actions from diverse games, combined with general multimodal data | Transferable visual control through a unified action representation |\n| **Sparse-Reasoning SFT** | Instructions at the operation, subgoal, and task levels, with reasoning and memory annotations | Task-conditioned actions, reasoning at key decision points, and memory summaries that preserve progress across context windows |\n| **Temporal-Aware GRPO** | Online rollouts with rewards based on verifiable environment outcomes | Improved long-horizon execution through memory-linked segments and temporal credit assignment |\n\nDuring interaction, the policy uses the game's control rules, the task instruction, recent observations and actions, and persistent memory to choose its next action. At routine steps, it acts directly; when needed, it first generates reasoning or updates memory. Memory summaries retain completed objectives, failed attempts, and remaining plans across context windows.\n\nStreaming-vLLM provides a shared inference backend for online RL rollouts, evaluation, and deployment. The policy receives visual observations and task context. The environment backend separately uses engine-side state to initialize tasks and verify rewards. See Sections 2–5 of the paper for the full method.\n\n## Main Results\n\nGamer's performance improves from CPT to SFT and further with online RL on held-out tasks in **Honkai: Star Rail**. The evaluation covers two side quests with 30 and 55 milestones, respectively, plus 40 minigame instances across seven game types. Side-quest scores measure successful milestone execution. The minigame score is the macro-average across the seven types.\n\n| Evaluation | Gamer-CPT | Gamer-SFT | Gamer-RL |\n|---|---:|---:|---:|\n| Opportunity Makes the Thief (Part I) | 34.4% | 72.2% | **80.0%** |\n| Bestial Ferocity | 47.9% | 69.1% | **83.6%** |\n| Minigame Benchmarks (macro-average) | 15.0% | 39.2% | **49.7%** |\n\nCompared with SFT, TA-GRPO increases the two side-quest scores by **7.8** and **14.5 percentage points**, respectively, and the minigame macro-average by **10.5 percentage points**.\n\n## Streaming-vLLM\n\n**Coming soon.** The implementation and usage instructions will be released in the [streaming-vllm](streaming-vllm\u002F) directory in a future update.\n\nStreaming-vLLM is Gamer's serving engine for sustained, real-time interaction. It supports online rollout collection, evaluation, and deployment through the same observation–action protocol.\n\n- **Persistent context and KV-cache reuse.** For each environment, Streaming-vLLM retains recent history, memory summaries, and KV-cache state. Memory compaction preserves useful task information while reusing cached context. Incremental RoPE refresh adjusts the retained keys when their positions shift.\n- **Verified FSM speculative decoding.** A finite-state machine (FSM) proposes predictable structural tokens in the output format, which the target model verifies in BF16. The model generates the action values.\n- **Early action dispatch.** The server sends the first verified action block as soon as it is available. Execution can then begin while the remaining blocks are still being generated.\n- **Concurrent, architecture-aware serving.** Streaming-vLLM maintains separate state for each environment and schedules requests around action deadlines to serve multiple game clients concurrently. It supports Qwen3-VL and Qwen3.5 dense and MoE backbones, with execution paths tailored to each architecture.\n\n### Inference Efficiency\n\nFor the **NVIDIA H200 \u002F Qwen3.5-35B-A3B MoE** configuration, cumulative runtime optimizations reduce end-to-end request latency from **1306.00 ms to 65.12 ms**, yielding a **20.1× speedup**.\n\n| Configuration | Tensor parallelism | Request latency ↓ |\n|---|---:|---:|\n| Baseline | TP1 | 1306.00 ms |\n| Full cumulative optimization (ours) | TP4 | **65.12 ms** |\n\n## System Prompt\n\nThe system prompt specifies the game, its rules, the available controls, and when the agent should reason before acting.\n\nFill in the following three placeholders in the template:\n\n| Placeholder | Content |\n|---|---|\n| `{GAME_NAME}` | Game name, used in both the opening sentence and the controls heading. |\n| `{GAME_RULES}` | Description of the environment, visible information, objectives, and scoring rules. |\n| `{KEY_BINDINGS}` | One `- \u003Ckey> -> \u003Ceffect>` entry per control, using the case-sensitive key names listed below. |\n\nFor games that use the mouse to aim or rotate the camera, include this entry in the key bindings:\n\n```text\n- Mouse X Y -> aim \u002F rotate the camera (X>0 right, Y>0 down)\n```\n\nReplace only the placeholders in the template below; preserve its output tags, punctuation, section headings, and line breaks. The asterisks in headings such as `**Output Format**` are part of the prompt text.\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>Full system prompt template\u003C\u002Fb>\u003C\u002Fsummary>\n\n```text\nYou are a gaming expert, and you are currently playing {GAME_NAME}. You are proficient in keyboard and mouse operations. You understand game mechanics and combat pacing, can quickly extract key information from the current screen, and can think and make precise decisions at critical moments. Based on the current screen, plan the next 200ms of actions, consisting of 6 steps spaced 33ms apart. Each step lasts 33ms, until the next step begins. If the current situation continues the previous strategy, output the action directly. Think only when the situation changes significantly, the previous analysis is no longer valid, or a new objective appears.\n**Game Rules**\n{GAME_RULES}\n**Common Keys in {GAME_NAME}**\n{KEY_BINDINGS}\n**Output Format**\n**Action only (usual)**\n\u003Cthink>\u003C\u002Fthink>\u003C|action_start|>X Y Z ; k1 k2 k3 ; k4 k5 ; k6 ; k7 ; k8 ; k9 k10\u003C|action_end|>\n**Thinking + action (when necessary)**\n\u003Cthink>reasoning\u003C\u002Fthink>\u003C|action_start|>X Y Z ; k1 k2 k3 ; k4 k5 ; k6 ; k7 ; k8 ; k9 k10\u003C|action_end|>\n**Explanation**\n1. **Mouse Movement**: First, specify the relative displacement X, Y (X>0 means move right, Y>0 means move down) and scroll amount Z (Z>0 means scroll up).\n2. **Key Sequence**: Then list 6 groups of keys; within each group, keys are separated by spaces, and groups are separated by semicolons.\n- Each group can contain up to 4 keys.\n- If a group has no keys, leave it empty but keep the `;`.\n3. Only output a plain string that conforms to the above format — no line breaks and no quotation marks.\n**Key Naming Rules**\n- Number keys `0-9`: use lowercase English words, e.g., `zero` for `0`, `one` for `1`, ... `nine` for `9`.\n- Function keys `F1-F12`: use capitalized English words, e.g., `One` represents `F1`, `Two` represents `F2`, and so on.\n- Mouse buttons: use `LB`, `RB`, `MB` for the left, right, and middle mouse button.\n- Letters: use the uppercase letter, e.g., `A`, `D`, `W`, `S`.\n- Arrow keys: use `Up`, `Down`, `Left`, `Right`.\n- Modifier\u002Fspecial keys: `Shift`, `Ctrl`, `Alt`, `Tab`, `Caps`, `Esc`, `Space`, `Enter`, `Back` (backspace), `Delete`, `Insert`, `Home`, `End`, `Pause`.\n```\n\n\u003C\u002Fdetails>\n\n## Action Format\n\nEach decision covers approximately **200 ms** of interaction, divided into **six steps of approximately 33 ms** each. Mouse displacement and scrolling apply to the entire action chunk.\n\n```text\n\u003C|action_start|>X Y Z ; g1 ; g2 ; g3 ; g4 ; g5 ; g6\u003C|action_end|>\n```\n\n| Field | Meaning |\n|---|---|\n| `X`, `Y` | Relative mouse displacement for the full chunk, measured in thousandths of the screen width and height, respectively. Each value is clipped to `[-1000, 1000]`. Positive `X` moves right; positive `Y` moves down. |\n| `Z` | Mouse-wheel scroll notches, clipped to `[-5, 5]`. Positive values scroll up. |\n| `g1` … `g6` | Keys held during each step. Each group contains at most four space-separated keys. An empty group releases all keys; its semicolon separator must remain. |\n\nConvert mouse displacement to pixels with `dx = X \u002F 1000 × screen_width` and `dy = Y \u002F 1000 × screen_height`. A key appearing in consecutive groups stays held across those steps.\n\n### Sparse Reasoning\n\nThe agent can act directly when its previous strategy still applies, or reason when the situation changes or a new objective requires it.\n\n**Action only:**\n\n```text\n\u003Cthink>\u003C\u002Fthink>\u003C|action_start|>0 0 0 ; W ; W ; W ; W ; W ; W\u003C|action_end|>\n```\n\n**Thinking followed by action (format template):**\n\n```text\n\u003Cthink>reasoning\u003C\u002Fthink>\u003C|action_start|>X Y Z ; g1 ; g2 ; g3 ; g4 ; g5 ; g6\u003C|action_end|>\n```\n\nThe action-only example holds `W` throughout the chunk without moving or scrolling the mouse.\n\n### Key Names\n\nThe action vocabulary contains 74 case-sensitive tokens:\n\n| Input | Tokens |\n|---|---|\n| Letter keys | `A`–`Z` |\n| Number keys | `zero` `one` `two` `three` `four` `five` `six` `seven` `eight` `nine` |\n| Function keys | `One` `Two` `Three` `Four` `Five` `Six` `Seven` `Eight` `Nine` `Ten` `Eleven` `Twelve` (F1–F12) |\n| Mouse buttons | `LB` `RB` `MB` |\n| Arrow keys | `Up` `Down` `Left` `Right` |\n| Other keys | `Shift` `Ctrl` `Alt` `Tab` `Caps` `Esc` `Space` `Enter` `Back` `Delete` `Insert` `Home` `End` `Pause` `Equal` `Minus` `Period` `Slash` `Quote` |\n\n### Parsing and Serving\n\nWhen serving the model and parsing its outputs:\n\n- Set `skip_special_tokens: false` to retain the action delimiters.\n- Parse the action after the final `\u003C\u002Fthink>` tag to avoid executing format examples included in the reasoning.\n- Treat incomplete reasoning or an unparseable response as a no-op.\n- The action parser also accepts actions without outer delimiters and ignores unknown key tokens.\n\nFor more details on usage, see our [GameScaling](https:\u002F\u002Fgithub.com\u002FTHUSI-Lab\u002FGameScaling).\n\n## License\n\nThe code and documentation in this repository are licensed under the [Apache License 2.0](LICENSE).\n\nGame screenshots, videos, names, logos, and other third-party assets belong to their respective owners and retain their original licensing terms. The Apache-2.0 license does not grant rights to those assets.\n\n## Citation\n\nIf you find our work useful, please cite:\n\n**Gamer**\n\n```bibtex\n@article{luo-gamer,\n  title = {Gamer: A Generalist Vision-Language-Action Foundation Model for Long-Horizon Real-Time Game Agent},\n  author = {Luo, Run and Zhang, Kuan and Deng, Qi and Chen, Yukun and Yang, Zhihao and Zhang, Yufei and Hu, Renrong and Zhang, Yi and Ma, Guiyu and Fan, Tianyu and Chen, Longze and Sun, Hao and Li, Jiaming and Yang, Jiaming and Liu, Xiaohao and Tan, Tao and Wang, Minzheng and Jia, Hangtian and Yuan, Shuai and Wang, Lvdi and Liu, Xiao and Ma, Chao and Zou, Yuting and Zheng, Yinhe and Xia, Xiaobo and Jiang, Dawei and Ren, Shaoqing},\n  journal = {arXiv preprint arXiv:2611.18397},\n  year = {2026}\n}\n\n```\n\n**GameScaling**\n\n```bibtex\n@article{zhang-scaling-games,\n  title = {Scaling in Games: Continued Pre-Training for Embodied Agents in Diverse Virtual Worlds},\n  author = {Zhang, Kuan and Chen, Yukun and Yang, Zhihao and Su, Yue and Wu, Xiangnan and Chen, Zirong and Luo, Run and Hou, Jinkun and Tan, Tao and Zheng, Yinhe and Li, Yiming},\n  journal = {arXiv preprint arXiv:2610.28698},\n  year = {2026}\n}\n```\n\n## Star History\n\n\u003Ca href=\"https:\u002F\u002Fwww.star-history.com\u002F?type=date&repos=RainBowLuoCS%2FGamer\">\n \u003Cpicture>\n   \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"https:\u002F\u002Fapi.star-history.com\u002Fchart?repos=RainBowLuoCS\u002FGamer&type=date&theme=dark&legend=top-left\" \u002F>\n   \u003Csource media=\"(prefers-color-scheme: light)\" srcset=\"https:\u002F\u002Fapi.star-history.com\u002Fchart?repos=RainBowLuoCS\u002FGamer&type=date&legend=top-left\" \u002F>\n   \u003Cimg alt=\"Star History Chart\" src=\"https:\u002F\u002Fapi.star-history.com\u002Fchart?repos=RainBowLuoCS\u002FGamer&type=date&legend=top-left\" \u002F>\n \u003C\u002Fpicture>\n\u003C\u002Fa>\n\n","Gamer 是一个面向长周期实时游戏场景的通用视觉-语言-动作基础模型，旨在构建能理解屏幕画面、结合短期交互历史与长期记忆、并自主生成键盘\u002F鼠标操作的游戏智能体。其核心采用端到端架构，支持跨2D图形界面与3D仿真环境的统一感知-推理-执行流程；技术上融合持续预训练（continual pretraining）、监督微调与强化学习策略，并集成轻量级推理引擎以保障实时性。适用于游戏AI研发、人机交互研究、具身智能验证及复杂GUI自动化测试等需要长程决策与多模态动作输出的场景。",2,"2026-11-24 04:50:53","CREATED_QUERY"]