Download README.md from KangHui2200/PixelOne: direct link, hf CLI and curl.
- Browser
- Download file 6.19 kB
-
https://huggingface.co/KangHui2200/PixelOne/resolve/main/README.md
- Command line
-
hf download hf://KangHui2200/PixelOne/README.md
-
curl -L -o README.md https://huggingface.co/KangHui2200/PixelOne/resolve/main/README.md
license: mit
language:
- en
tags:
- gui-grounding
- pixelone
- computer-use
- custom-code
- safetensors
PixelOne
From Options to Pixels in a Single Forward for GUI Grounding
PixelOne predicts a precise click from a native-resolution screenshot and an instruction. Spatial search supplies supervision during training; inference uses one visual encoding and one model forward, without search or sequential coordinate decoding.
Choose a model
This repository contains two complete checkpoints and one shared inference-only runtime. Select a model subfolder rather than loading the repository root as a single checkpoint.
| Model | Mean accuracy | Mean latency | Weight size | Shards |
|---|---|---|---|---|
| PixelOne-Pro-4B | 80.62% | 0.323 s | 10.3 GB | 3 |
| PixelOne-Pro-35B-A3B | 83.77% | 0.431 s | 68.7 GB | 16 |
Accuracy and latency average four benchmarks equally. Latency is from the paper's H200 measurements at batch size 1. The figure's inset bars use a truncated 50–80% accuracy scale. GPU memory must also accommodate resolution-dependent activations; weight size is not total memory usage.
Quick start
Use Python 3.12 and a CUDA-enabled PyTorch 2.11 environment. If the repository is private, authenticate with hf auth login or your own HF_TOKEN environment variable first.
Download and install the shared runtime once for either model:
python -m pip install -U huggingface_hub
hf download KangHui2200/PixelOne \
--include 'runtime/*' --local-dir ./PixelOne
python -m pip install ./PixelOne/runtime
python -m pip install flash-linear-attention==0.4.2 causal-conv1d==1.7.0 --no-build-isolation
Then predict a click. The loader downloads only the chosen model's manifest and required files, not both variants:
pixelone infer \
--model KangHui2200/PixelOne \
--subfolder PixelOne-Pro-4B \
--image screenshot.png \
--instruction "Click the search button" \
--device cuda:0
For the larger model, change the subfolder to PixelOne-Pro-35B-A3B. No second runtime installation is needed.
from PIL import Image
from pixelone import PixelOnePredictor
predictor = PixelOnePredictor.from_pretrained(
"KangHui2200/PixelOne",
subfolder="PixelOne-Pro-4B",
device="cuda:0",
)
with Image.open("screenshot.png") as image:
result = predictor.predict(image, "Click the search button")
print(result["point"])
The output is [x, y] in original screenshot pixels. Pin both hf download --revision and the loader's revision to the same repository commit for reproducibility. For offline use, download runtime/* and either PixelOne-Pro-4B/* or PixelOne-Pro-35B-A3B/*, install the runtime, and pass that model directory to the loader.
What is included
Each model directory contains full safetensors weights, the trained decision/pixel heads, tokenizer and processor assets, pixelone.json, a weight index and evaluation counts. The root runtime/ contains only the prediction API, pixelone infer CLI and required model implementation. No separate base-model weights, LoRA adapter or search teacher are required at inference.
Training, teacher search, dataset preparation and checkpoint export are maintained in the GitHub research repository. They are not duplicated here. Optimizer states, training screenshots, teacher caches and credentials are not included. The inference-only runtime and full research package share a package name; install only one in a dedicated environment.
Use PixelOnePredictor, not AutoModelForCausalLM.generate. The root is a collection, and each package uses a custom direct readout. Retain the loader's BF16/FP32 partition; do not cast the entire model to FP16 or BF16. Only existing full-attention layers use bidirectional masks, while linear-attention layers retain their native computation and KV caching remains disabled.
Results
| Model | ScreenSpot | ScreenSpot V2 | ScreenSpot Pro | OSWorld-G |
|---|---|---|---|---|
| PixelOne-Pro-4B | 90.33 | 92.85 | 68.12 | 71.18 |
| PixelOne-Pro-35B-A3B | 91.67 | 94.50 | 72.04 | 76.86 |
These are the final step-1,954 Pro models. Each starts from a trained 22K Top20+KD student and continues on 500K targets with full-parameter updates, including the visual encoder. The 200K PixelOne branch is separate, not an intermediate step of Pro training.
Validation and attribution
Weights are losslessly repacked with a 5 GB target shard size. Every tensor's name, shape, dtype and byte-level SHA256 match the original release. File hashes and weight indexes were updated, while evaluation hit counts remain unchanged and match the paper. CPU tests compare this inference-only runtime with the previous release in separate processes: tiny dense/MoE logits, selected tokens, pixel predictions and padded batches match exactly. Tests also cover checkpoint loading, the CLI, selective subfolder downloads, padding masks and precision/kernel policies. CUDA was unavailable in the packaging environment, so full-scale GPU inference and H200 latency were not rerun.
The previous shard files were permanently retired from Hub history. Older pinned revisions may no longer load. Use the repacked release with its matching manifests for new deployments.
The repository retains its existing MIT license metadata. Upstream VideoJEV/Qwen licenses and notices remain included in each model directory as UPSTREAM_LICENSE and UPSTREAM_NOTICE; the runtime retains architecture attribution in runtime/THIRD_PARTY_NOTICES.md and runtime/third_party/. See the individual model cards for details.
Research code · Paper on arXiv · Training data
PixelOne predicts coordinates only. Applications should validate actions and enforce user permissions before executing clicks.