MAI-Gym-9B is an open 9B-parameter GUI agent trained end to end with MAI-Gym. Initialized from Qwen3.5-9B with a mixed mobile–computer SFT warm-up followed by a single joint online reinforcement learning run (GRPO) on synthesized MobileWorld and OSWorld tasks, MAI-Gym-9B achieves state-of-the-art performance among open GUI agents under 10B parameters across mobile and desktop benchmarks.


Benchmark Performance#

All results below report native benchmark metrics (%) from Section 4 of the technical report, evaluated through the shared MAI-Gym harness (temperature=0.0). Gains show absolute percentage-point improvements over the base Qwen3.5-9B model.

MAI-Gym-9B benchmark comparison across Mobile and Computer GUI benchmarks
MAI-Gym-9B benchmark comparison across Mobile and Computer GUI benchmarks
DomainGeneralizationBenchmarkQwen3.5-9B (Base)MAI-Gym-9BGain
MobileTask OODMobileWorld (GUI-only)18.078.4+60.4
MobileEnv OODAndroidWorld57.875.9+18.1
MobileEnv OODMobileGym (partial)9.046.5+37.5
ComputerTask OODOSWorld-Verified41.876.2+34.4
ComputerEnv OODOSWorld 2.0 (binary / partial)0.0 / 2.53.7 / 11.3+3.7 / +8.8
ComputerEnv OODMacAgentBench20.741.3+20.6
ComputerEnv OODMyPCBench6.515.2+8.7

Key Empirical Highlights#

  • Single Joint Policy Across Mobile & Computer: A single online RL run across mobile and desktop environments generalizes strongly not only to unseen tasks (Task OOD: 78.4% on MobileWorld, 76.2% on OSWorld-Verified), but also to unseen operating systems and benchmark suites (Env OOD: AndroidWorld, MobileGym, OSWorld 2.0, MacAgentBench, and MyPCBench).
  • Clone-to-Real Transfer (Mocked Apps → Physical Phone): Training with online RL inside the resettable Railway12306 Real-World Clone transfers directly to the real production Railway12306 app on a physical smartphone, raising task success from 28.8% → 48.1% without live production side effects during training.
  • Novel-App Adaptation (42 Novel Mocked Apps): On previously unseen browser-based Novel Apps (Mocked Apps gallery), online RL adapts rapidly to unfamiliar layouts and workflows from verifier reward alone.
Note

For complete frontier & open-model baseline comparisons, SFT-vs-RL ablations, infrastructure scaling up to 20,000 concurrent environments, joint RL vs. model merging, and task-scaling curves, see Section 4 of the technical report.


Running MAI-Gym-9B#

Download and Evaluate Locally (Auto-Served SGLang)#

Download the checkpoint from Hugging Face and let mai-gym eval launch and tear down SGLang automatically:

bash
uvx --from huggingface-hub hf download Tongyi-MAI/MAI-Gym-9B --local-dir "$HOME/mai-gym-data/hf-model"

uv run --with sglang mai-gym eval --config "$HOME/mai-gym-eval/eval.yaml" \
  --model "$HOME/mai-gym-data/hf-model" --benchmarks mobileworld --trials 1

Evaluate Against an OpenAI-Compatible Endpoint#

If Tongyi-MAI/MAI-Gym-9B is already served (e.g., via SGLang or vLLM):

bash
uv run mai-gym eval --config "$HOME/mai-gym-eval/eval.yaml" \
  --model http://127.0.0.1:8000/v1 --model-name Tongyi-MAI/MAI-Gym-9B \
  --benchmarks mobileworld osworld-verified --trials 1

Training Reference#

Use configs/mai-gym-9b.yaml as a starting point for joint mobile and computer GRPO training. The Online RL Training guide explains how to prepare task pools and run the preset with the prebuilt Slime image.


Next Steps#