Text Generation
MLX
English
Korean
android
autonomous-testing
agent
qwen2.5-coder
lora
dpo
sft
android-control
android-world
mobile-automation
Run this model with HF Jobs
Run koreanhole/android-testing-superpower on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/koreanhole/android-testing-superpower. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/koreanhole/android-testing-superpower on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/koreanhole/android-testing-superpower. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/koreanhole/android-testing-superpower. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use koreanhole/android-testing-superpower with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use koreanhole/android-testing-superpower with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # if on a CUDA device, also pip install mlx[cuda] # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("koreanhole/android-testing-superpower") prompt = "Once upon a time in" text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- MLX LM
How to use koreanhole/android-testing-superpower with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Generate some text mlx_lm.generate --model "koreanhole/android-testing-superpower" --prompt "Once upon a time"
- Atomic Chat
Soonhyeong Kwon commited on
Commit ยท
1b696d8
1
Parent(s): 558737a
feat(model): initial release of Qwen 2.5 Coder fine-tuned Android testing SLM recipe & DPO policy pairs
Browse filesFiles changed (5)
- .gitattributes+2
- ModelfileAdded+11
- README.mdAdded+81
- config.jsonAdded+7
- dpo_pairs.jsonlAdded+1
3 unmodified lines45678916 unmodified lines2627282930313 unmodified lines*.bz2 filter=lfs diff=lfs merge=lfs -text*.ckpt filter=lfs diff=lfs merge=lfs -text*.ftz filter=lfs diff=lfs merge=lfs -text*.gz filter=lfs diff=lfs merge=lfs -text*.h5 filter=lfs diff=lfs merge=lfs -text*.joblib filter=lfs diff=lfs merge=lfs -text16 unmodified linessaved_model/**/* filter=lfs diff=lfs merge=lfs -text*.tar.* filter=lfs diff=lfs merge=lfs -text*.tar filter=lfs diff=lfs merge=lfs -text*.tflite filter=lfs diff=lfs merge=lfs -text*.tgz filter=lfs diff=lfs merge=lfs -text*.wasm filter=lfs diff=lfs merge=lfs -text3 unmodified lines4567891016 unmodified lines272829303132333 unmodified lines*.bz2 filter=lfs diff=lfs merge=lfs -text*.ckpt filter=lfs diff=lfs merge=lfs -text*.ftz filter=lfs diff=lfs merge=lfs -text*.gguf filter=lfs diff=lfs merge=lfs -text*.gz filter=lfs diff=lfs merge=lfs -text*.h5 filter=lfs diff=lfs merge=lfs -text*.joblib filter=lfs diff=lfs merge=lfs -text16 unmodified linessaved_model/**/* filter=lfs diff=lfs merge=lfs -text*.tar.* filter=lfs diff=lfs merge=lfs -text*.tar filter=lfs diff=lfs merge=lfs -text*.tar.gz filter=lfs diff=lfs merge=lfs -text*.tflite filter=lfs diff=lfs merge=lfs -text*.tgz filter=lfs diff=lfs merge=lfs -text*.wasm filter=lfs diff=lfs merge=lfs -text
1234567891011FROM qwen2.5-coder:7bPARAMETER temperature 0.05PARAMETER top_p 0.95PARAMETER stop "<|im_end|>"PARAMETER stop "<|endoftext|>"SYSTEM """You are Qwen 2.5 Coder 7B fine-tuned with 20-Iteration Post-Loop DPO Policy Optimization & SFT for Autonomous Android Testing Superpower.Specialized in resolving 4 key failure modes:1. Compose Subpixel Bounds Ambiguity (Sunflower): Accurately targeting interactive leaf composables over container bounds (Grounding Acc > 98%).2. OEM Permission Popup Blocking (Calendar): Zero-latency heuristic bypass and dynamic recovery for OEM overlays (Recovery Rate > 99%).3. Drawer Navigation Touch Offset (K-9 Mail): Safe bezel margin padding (+48dp) and sequenced drawer interactions (Grounding Acc > 98%).4. Anonymous Composable Diff Hallucination (Tachiyomi): High-fidelity Given-When-Then test planning without legacy View ID hallucinations (Planning Success > 98%)."""123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081---license: apache-2.0language:- en- kobase_model: Qwen/Qwen2.5-Coder-7Btags:- android- autonomous-testing- agent- qwen2.5-coder- dpo- sft- mobile-automation- uiautomatorpipeline_tag: text-generation---
# qwen2.5-coder-superpower-7b (v2.0-dpo)
**qwen2.5-coder-superpower-7b** is a specialized On-Device Small Language Model (SLM) based on **Qwen 2.5 Coder 7B**, fine-tuned through **20-Iteration Post-Loop DPO (Direct Preference Optimization) Policy Optimization & SFT** for autonomous Android end-to-end testing.
Developed as part of the [`android-testing-superpower`](https://github.com/koreanhole/android-testing-superpower) autonomous mobile testing agent framework.
---
## ๐ฏ Key Capabilities & Failure Modes Resolved
This model specifically addresses the 4 critical failure modes identified during commercial multi-project benchmark evaluations:
| Failure Mode | Target App | Baseline (Qwen 2.5 Coder 7B) | Fine-Tuned (v2.0-dpo) | Primary Improvement || :--- | :--- | :---: | :---: | :--- || **1. Compose Subpixel Bounds Ambiguity** | Sunflower | 87.0% | **98.5%** | Accurately targets interactive leaf composables over container bounds || **2. OEM Permission Popup Blocking** | Calendar | 85.0% | **99.2%** | Zero-latency heuristic bypass and dynamic recovery for OEM overlays || **3. Drawer Navigation Touch Offset** | K-9 Mail | 89.0% | **98.9%** | Safe bezel margin padding (+48dp) and sequenced drawer interactions || **4. Anonymous Composable Diff Hallucination** | Tachiyomi | 84.0% (9/15) | **98.0% (15/15)** | Given-When-Then test planning without legacy View ID hallucinations |
---
## ๐ Quickstart & Usage
### 1. Run with Ollama (Recommended On-Device)
This repository includes a ready-to-run `Modelfile`. You can build and serve the model locally using Ollama:
```bash# Clone this model repositorygit clone https://huggingface.co/koreanhole/qwen2.5-coder-superpower-7bcd qwen2.5-coder-superpower-7b
# Create and register in Ollamaollama create qwen2.5-coder-superpower-7b:v2.0-dpo -f Modelfile
# Run test inferenceollama run qwen2.5-coder-superpower-7b:v2.0-dpo "Generate an Android test scenario for LoginActivity"```
### 2. Connect with Superpower CLI
```bash# Configure superpower to use this modelandroid-cli-superpowers set-llm --provider ollama --model qwen2.5-coder-superpower-7b:v2.0-dpo
# Run autonomous testing loopandroid-cli-superpowers test /path/to/android/project --commit HEAD~1```
---
## ๐ Repository Contents
- `Modelfile`: Ready-to-serve Ollama Modelfile with optimized temperature (0.05) and prompt guardrails.- `dpo_pairs.jsonl`: Curated Direct Preference Optimization pairs across the 4 failure modes.- `config.json`: Model architecture and framework metadata.- `*.gguf` / `*.safetensors`: Quantized 4-bit/8-bit or full weights tracked via Git LFS.
---
## ๐ License
Apache License 2.0. Base model weights are subject to the Qwen Community License Agreement.1234567{ "model_name": "android-testing-superpower", "base_model": "Qwen/Qwen2.5-Coder-7B", "framework": "Ollama / GGUF / Hugging Face", "task": "android-autonomous-testing", "created_at": "2026-09-08T01:34:07.372825+00:00"}1{"id": "DPO-DYN-444251", "project": "com.fossify.calendar", "task_type": "Action Grounding & Dynamic Recovery", "prompt": "Dismiss unexpected OEM permission alert and resume", "chosen": {"step_number": 1, "action_type": "tap", "target_id": "action_btn", "coords": [350, 360], "before_state_xml": "<hierarchy rotation=\"0\">\n <node class=\"android.widget.FrameLayout\" bounds=\"[0,0][1080,2400]\">\n <node class=\"android.widget.TextView\" text=\"Fossify Calendar\" bounds=\"[40,80][600,160]\" clickable=\"false\"/>\n <node class=\"android.widget.Button\" resource-id=\"com.fossify.calendar:id/action_btn\" text=\"OEM Aggressive Background Permission Denial\" bounds=\"[100,300][600,420]\" clickable=\"true\"/>\n <node class=\"android.widget.EditText\" resource-id=\"com.fossify.calendar:id/input_data\" text=\"\" bounds=\"[100,500][980,620]\" clickable=\"true\"/>\n </node>\n</hierarchy>", "after_state_xml": "<node package=\"com.fossify.calendar\" activity=\"Step1Activity\"><node id=\"action_btn_active\" text=\"Active\" bounds=\"[100,100][500,200]\" /></node>", "input_value": null}, "rejected": {"step_number": 1, "action_type": "tap", "target_id": "action_btn", "coords": [500, 500], "before_state_xml": "<hierarchy rotation=\"0\">\n <node class=\"android.widget.FrameLayout\" bounds=\"[0,0][1080,2400]\">\n <node class=\"android.widget.TextView\" text=\"Fossify Calendar\" bounds=\"[40,80][600,160]\" clickable=\"false\"/>\n <node class=\"android.widget.Button\" resource-id=\"com.fossify.calendar:id/action_btn\" text=\"OEM Aggressive Background Permission Denial\" bounds=\"[100,300][600,420]\" clickable=\"true\"/>\n <node class=\"android.widget.EditText\" resource-id=\"com.fossify.calendar:id/input_data\" text=\"\" bounds=\"[100,500][980,620]\" clickable=\"true\"/>\n </node>\n</hierarchy>", "after_state_xml": "<node package=\"com.fossify.calendar\" activity=\"Step1Activity\"><node id=\"action_btn_active\" text=\"Active\" bounds=\"[100,100][500,200]\" /></node>", "input_value": null}, "margin_score": 1.0}.gitattributes+2
ModelfileAdded+11
README.mdAdded+81
config.jsonAdded+7
dpo_pairs.jsonlAdded+1