Image-Text-to-Text
Transformers
Safetensors
English
qwen3_vl
gui-agent
mobile-gui
android
memory
context-management
conact
memgui-agent
long-horizon
conversational
Eval Results (legacy)
Instructions to use memgui-agent-anonymous/MemGUI-8B-SFT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use memgui-agent-anonymous/MemGUI-8B-SFT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="memgui-agent-anonymous/MemGUI-8B-SFT") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("memgui-agent-anonymous/MemGUI-8B-SFT") model = AutoModelForMultimodalLM.from_pretrained("memgui-agent-anonymous/MemGUI-8B-SFT", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use memgui-agent-anonymous/MemGUI-8B-SFT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "memgui-agent-anonymous/MemGUI-8B-SFT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "memgui-agent-anonymous/MemGUI-8B-SFT", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/memgui-agent-anonymous/MemGUI-8B-SFT
- SGLang
How to use memgui-agent-anonymous/MemGUI-8B-SFT with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "memgui-agent-anonymous/MemGUI-8B-SFT" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "memgui-agent-anonymous/MemGUI-8B-SFT", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "memgui-agent-anonymous/MemGUI-8B-SFT" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "memgui-agent-anonymous/MemGUI-8B-SFT", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use memgui-agent-anonymous/MemGUI-8B-SFT with Docker Model Runner:
docker model run hf.co/memgui-agent-anonymous/MemGUI-8B-SFT
File size: 4,123 Bytes
ff1ae92 | 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 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | ---
base_model: Qwen/Qwen3-VL-8B-Instruct
datasets:
- memgui-agent-anonymous/MemGUI-3K
language:
- en
library_name: transformers
license: apache-2.0
pipeline_tag: image-text-to-text
tags:
- qwen3_vl
- gui-agent
- mobile-gui
- android
- memory
- context-management
- conact
- memgui-agent
- long-horizon
model-index:
- name: MemGUI-8B-SFT
results:
- task:
type: image-text-to-text
name: Long-horizon mobile GUI control
dataset:
name: MemGUI-Bench
type: memgui-agent-anonymous/MemGUI-3K
metrics:
- type: pass_at_1
value: 23.4
name: Pass@1
- type: pass_at_3
value: 35.9
name: Pass@3
- type: irr
value: 30.2
name: Information Retention Rate
- task:
type: image-text-to-text
name: Out-of-distribution mobile GUI control
dataset:
name: MobileWorld GUI-Only
type: mobileworld-gui-only
metrics:
- type: success_rate
value: 17.9
name: Success Rate
---
# MemGUI-8B-SFT
[**Anonymous Project Page**](https://memgui-agent-anonymous.github.io/) |
[**Anonymous Code**](https://github.com/memgui-agent-anonymous/MemGUI-Agent) |
[**Anonymous Dataset**](https://huggingface.co/datasets/memgui-agent-anonymous/MemGUI-3K)
This repository is an anonymous artifact prepared for peer review.
MemGUI-8B-SFT is an 8B MemGUI-Agent model trained from
Qwen3-VL-8B-Instruct on MemGUI-3K. It is designed for long-horizon mobile GUI
control with proactive context management.
The model follows the ConAct Context-as-Action protocol. At each step, it
produces a structured response with reasoning, history folding, a UI or memory
tool call, a grounded UI observation, and the next action intent. This allows
the agent to manage three context fields while acting: Folded Action History,
Folded UI State, and Recent Step Record.
## Model Details
- **Model type:** multimodal mobile GUI agent
- **Base model:** `Qwen/Qwen3-VL-8B-Instruct`
- **Training data:** `memgui-agent-anonymous/MemGUI-3K`
- **Training recipe:** supervised fine-tuning with ms-swift
- **Output protocol:** ConAct 5-part structured output
- **License:** Apache 2.0
## Intended Use
MemGUI-8B-SFT is intended for research on mobile GUI agents, long-horizon GUI
control, context management, UI memory, and history folding. It can be used as
an action policy in mobile GUI environments that provide screenshots and
execute structured tool calls.
This model is not a general-purpose chatbot. It expects the MemGUI-Agent system
prompt, a screenshot, and a structured mobile GUI context state.
## Input and Output Format
The model expects a multimodal conversation with:
- a system prompt defining the MemGUI-Agent tools and response format,
- a user message containing `<image>` plus the task goal and structured context,
- one screenshot image.
The assistant response follows this order:
```xml
<thinking>...</thinking>
<folding>{"range": [start_step, current_step], "summary": "..."}</folding>
<tool_call>{"name": "mobile_use", "arguments": {...}}</tool_call>
<ui_observation>...</ui_observation>
<action_intent>...</action_intent>
```
For the first step of a trajectory, `<folding>` is omitted because there is no
previous step to fold.
## Evaluation
| Benchmark | Metric | Score |
| -------------------- | -----------: | ----: |
| MemGUI-Bench | Pass@1 | 23.4 |
| MemGUI-Bench | Pass@3 | 35.9 |
| MemGUI-Bench | IRR | 30.2 |
| MobileWorld GUI-Only | Success Rate | 17.9 |
On MemGUI-Bench, MemGUI-8B-SFT improves over the Qwen3-VL-8B-Instruct
baseline and achieves the best open-data 8B performance in our experiments.
On MobileWorld GUI-Only, it transfers beyond the source benchmark and reaches
17.9% success rate.
## Dataset
MemGUI-3K contains 2,956 successful mobile GUI trajectories and 64,430
reasonable step-level training samples with ConAct annotations. The dataset
includes full trajectories, screenshots, step-level reasonableness annotations,
and multimodal training files.
Dataset page:
<https://huggingface.co/datasets/memgui-agent-anonymous/MemGUI-3K>
|