Instructions to use LaplAI/gua with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use LaplAI/gua with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("LaplAI/gua") config = load_config("LaplAI/gua") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use LaplAI/gua with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "LaplAI/gua"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "LaplAI/gua" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use LaplAI/gua with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "LaplAI/gua"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default LaplAI/gua
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use LaplAI/gua with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "LaplAI/gua"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "LaplAI/gua" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
gua v2: continue v1 on 12,000 balanced questions from macos-cua v3 (adds Logic Pro, OBS, Plasticity)
Browse filesFiles changed (6)
21 unmodified lines2223242526272850 unmodified lines7980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191 unmodified line12112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618721 unmodified linesIt is [Qwen/Qwen3.5-4B](https://huggingface.co/Qwen/Qwen3.5-4B) fine-tuned (supervisedfine-tuning with LoRA, rank 8 on every linear layer of the language model) on GUItrajectories extracted from screen-recorded software tutorials. This repository holds theLoRA merged into the base weights (MLX, bf16) and, in `adapter/`, the LoRA itself.> Research model. The training data was derived from public YouTube tutorials and is not50 unmodified lines## Training| | ||---|---|| Method | Supervised fine-tuning with LoRA: rank 8, alpha 16, on every linear layer of the language model (`q/k/v/o_proj`, linear-attention `in_proj_*`/`out_proj`, MLP `gate/up/down_proj`); vision tower frozen || Objective | Log loss of the right option label (and end-of-turn token) only, never of the prompt || Data | The first 8,000 of 20,623 shuffled training questions of our dataset *macos-cua v2* (see below) || Optimiser | Adam, learning rate 5e-5, batch 1, gradient clipping 1.0, one pass || Hardware | One Apple Silicon Mac (MLX), gradient checkpointing, about 48 h, peak 161 GB |The recipe was chosen on a held-out dev split, never on the eval split: on the same 2,000samples, LoRA on every linear layer matched rank 64 and edged out attention-only LoRA, anda full-parameter run of the same model on earlier data did not beat LoRA.Dev score during training (mean accuracy of the three questions on 200 fixed dev steps):| Training samples | 0 (base) | 2,000 | 4,000 | 6,000 | 7,000 | 8,000 ||---|---|---|---|---|---|---|| Dev score | 0.322 | 0.429 | 0.421 | 0.441 | 0.445 | 0.447 |## Training dataTrajectories were extracted automatically from screen-recorded software tutorials onYouTube: videos were searched and screened (recording quality, platform), segmented andannotated into step-by-step actions by vision-language models, each click was located onthe frame, and before/after screenshots were cut. The **training split** of *macos-cua v2*:| Topic | Videos | Steps ||---|---|---|| Godot 4 (game engine) | 79 | 6,271 || Blender (3D) | 39 | 3,764 || macOS video editing (Final Cut Pro, Premiere Pro, CapCut, iMovie) | 7 | 640 || macOS system and productivity apps | 6 | 420 |Splits are by video (dev 14 videos, eval 30 videos, 20 applications appear only in eval).Godot typing steps were left out of training: an audit found their labels mostly wrong.Many Blender and Godot tutorials were recorded on Windows or full screen; steps thatwould be wrong on a Mac (Windows shortcuts, taskbar, native dialogs) were removed.**Label quality.** Labels are model-generated, not human-verified. A stronger model audited1 unmodified line| Topic | Audited steps | Element located correctly | Action correct ||---|---|---|---|| macOS system and productivity | 200 | 91.5% | 75.5% || macOS video editing | 395 | 92.4% | 78.2% || Blender | 150 | 89.3% | 70.7% || Godot | 270 | 87.0% | 54.8% |The dataset itself is not released.## EvaluationOn the eval split of *macos-cua v2* (3,442 steps from 30 videos never seen in training;2,079 steps with an element target), against the untrained base with the same prompt andcandidates:| Question | Base | This model | Difference (95% CI, bootstrap paired by trajectory) ||---|---|---|---|| `action` accuracy | 0.481 | 0.525 | +0.043 (+0.005, +0.089) || `grounding` accuracy | 0.443 | 0.603 | +0.160 (+0.132, +0.186) || `next_target` accuracy | 0.155 | 0.261 | +0.106 (+0.085, +0.127) || `action` and `next_target` both right | 0.117 | 0.183 | |On **applications never seen in training** (905 steps from software that appears only inthe eval split) the gains hold: action 0.439 → 0.550, grounding 0.501 → 0.650, next target0.221 → 0.313. A candidate covers the target in 83.4% of the element steps, which boundsthe element questions.Excluding the 527 Godot typing steps, whose labels an audit found mostly wrong, actionaccuracy is 0.505 → 0.617 (+0.111). Because those steps were left out of training, themodel rarely answers `type` (22 times against 588 typing steps in eval): expect low recallfor typing.**Selective accuracy.** Acting only on the most confident half of the answers, groundingaccuracy is 0.822 and action accuracy 0.636.**Calibration.** `temperatures.json` holds one temperature per question, fitted on the devsplit by log loss and applied as `p^(1/T)` renormalised (`inference/cua_decide.py--temperatures`). Expected calibration error on eval, which the fit never saw:| Question | Temperature | ECE before | ECE after ||---|---|---|---|| `action` | 2.05 | 0.259 | 0.047 || `grounding` | 1.20 | 0.145 | 0.107 || `next_target` | 0.90 | 0.064 | 0.085 |The action head is strongly overconfident without scaling; the next-target head isalready close to calibrated, and its fitted temperature slightly lowers log loss on evalwhile slightly raising ECE.## Limitations- **macOS screenshots only**, English UI and tasks; tutorials over-represent Godot andBlender.- **Candidate-bound.** The model picks among candidates; if no candidate covers the target(16.6% of the element steps in our eval), the element questions have no right answer.- **Noisy labels**, as audited above; action-type labels are the weakest.- **Not an agent by itself.** It decides the action kind and target; the text to type, thekeys of a shortcut and drag end points are not predicted.- **Merged weights round to bf16.** Against base plus adapter, option probabilities differby at most 0.04 in total variation on our check; use `adapter/` for exact reproduction.- Confidence is only meaningful after temperature scaling, and only for the question typesand candidate sources it was fitted with.- Rarely predicts `type` (see Evaluation).## Licence and provenance21 unmodified lines222324252627282950 unmodified lines80818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221 unmodified line12412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721 unmodified linesIt is [Qwen/Qwen3.5-4B](https://huggingface.co/Qwen/Qwen3.5-4B) fine-tuned (supervisedfine-tuning with LoRA, rank 8 on every linear layer of the language model) on GUItrajectories extracted from screen-recorded tutorials of seven kinds of software: macOSsystem apps, video editing, Blender, Godot, Logic Pro, OBS Studio and Plasticity. This repository holds theLoRA merged into the base weights (MLX, bf16) and, in `adapter/`, the LoRA itself.> Research model. The training data was derived from public YouTube tutorials and is not50 unmodified lines## Traininggua v2 continues the v1 adapter on a larger, more varied dataset.| | ||---|---|| Method | Supervised fine-tuning with LoRA: rank 8, alpha 16, on every linear layer of the language model (`q/k/v/o_proj`, linear-attention `in_proj_*`/`out_proj`, MLP `gate/up/down_proj`); vision tower frozen || Objective | Log loss of the right option label (and end-of-turn token) only, never of the prompt || Stage 1 (v1) | 8,000 questions from *macos-cua v2* (macOS system, video editing, Blender, Godot) || Stage 2 (v2) | 12,000 further questions from *macos-cua v3*, shared evenly across its seven topics (each topic at most about 1,940; smaller topics give all they have) || Optimiser | Adam, learning rate 5e-5, batch 1, gradient clipping 1.0 || Hardware | One Apple Silicon Mac (MLX), gradient checkpointing, about 110 h in total, peak 182 GB |The recipe was chosen on held-out dev splits, never on an eval split. The released weightsare the end of stage 2, which scored higher on the full v3 dev split (mean accuracy 0.453)than the checkpoint with the best interim dev check (0.442).## Training dataTrajectories were extracted automatically from screen-recorded software tutorials onYouTube: videos were searched and screened (recording quality, platform), segmented andannotated into step-by-step actions by vision-language models, each click was located onthe frame, and before/after screenshots were cut. The **training split** of *macos-cua v3*,and the questions stage 2 drew from it:| Topic | Videos | Steps | Questions used in stage 2 ||---|---|---|---|| Plasticity (CAD) | 162 | 16,656 | 1,937 || Godot 4 (game engine) | 79 | 6,271 | 1,937 || Blender (3D) | 40 | 3,833 | 1,937 || OBS Studio (recording) | 37 | 2,890 | 1,937 || Logic Pro (audio) | 43 | 2,020 | 1,937 || macOS video editing (Final Cut Pro, Premiere Pro, CapCut, iMovie) | 7 | 640 | 1,468 || macOS system and productivity apps | 6 | 420 | 844 |Splits are by video (dev 44 videos, eval 99 videos, 38 applications appear only in eval);every video of the earlier v2 release kept its split, so v2's eval is part of v3's eval andwas never trained on. Godot typing steps were left out of training: an audit found theirlabels mostly wrong. Many tutorials were recorded on Windows or full screen; steps thatwould be wrong on a Mac (Windows shortcuts, taskbar, native dialogs) were removed.**Label quality.** Labels are model-generated, not human-verified. A stronger model audited1 unmodified line| Topic | Audited steps | Element located correctly | Action correct ||---|---|---|---|| Logic Pro | 150 | 94.0% | 84.0% || OBS Studio | 150 | 92.0% | 81.3% || macOS video editing | 395 | 92.4% | 78.2% || macOS system and productivity | 200 | 91.5% | 75.5% || Blender | 180 | 89.4% | 71.7% || Plasticity | 570 | 79.6% | 71.4% || Godot | 270 | 87.0% | 54.8% |The dataset itself is not released.## Evaluation**macos-cua v3 eval split** (9,972 steps from 99 videos never seen in training, 6,509 withan element target), gua v2 against gua v1 with the same prompt and candidates, 95% CI bybootstrap paired by trajectory:| Question | gua v1 | gua v2 | Difference ||---|---|---|---|| `action` accuracy | 0.507 | 0.537 | +0.030 (+0.021, +0.040) || `grounding` accuracy | 0.516 | 0.524 | +0.008 (+0.002, +0.015) || `next_target` accuracy | 0.303 | 0.323 | +0.020 (+0.012, +0.029) || `action` and `next_target` both right | 0.182 | 0.216 | |On the 1,767 steps from **applications never seen in training**: action 0.602, grounding0.628, next target 0.357. By topic (gua v2):| Topic | `action` | `grounding` | `next_target` ||---|---|---|---|| OBS Studio | 0.806 | 0.803 | 0.453 || macOS system and productivity | 0.720 | 0.643 | 0.465 || Logic Pro | 0.687 | 0.566 | 0.341 || macOS video editing | 0.592 | 0.644 | 0.388 || Blender | 0.539 | 0.503 | 0.253 || Godot | 0.519 | 0.657 | 0.275 || Plasticity | 0.462 | 0.381 | 0.308 |**macos-cua v2 eval split** (3,442 steps, the eval gua v1 was published with), against theuntrained base:| Question | Base | gua v1 | gua v2 ||---|---|---|---|| `action` accuracy | 0.481 | 0.525 | 0.542 || `grounding` accuracy | 0.443 | 0.603 | 0.605 || `next_target` accuracy | 0.155 | 0.261 | 0.289 |A candidate covers the target in 70.2% of v3's element steps (83.4% in v2's), which boundsthe element questions; Plasticity's small, dense CAD icons are often missed. Excluding theGodot typing steps, whose labels are mostly wrong, v3 action accuracy is 0.563. Becausethose steps were left out of training, the model rarely answers `type`.**Selective accuracy** (v3 eval). Acting only on the most confident half of the answers:grounding 0.711, action 0.665, next target 0.444.**Calibration.** `temperatures.json` holds one temperature per question, fitted on the v3dev split by log loss and applied as `p^(1/T)` renormalised (`inference/cua_decide.py--temperatures`). Expected calibration error on the v3 eval split, which the fit never saw:| Question | Temperature | ECE before | ECE after ||---|---|---|---|| `action` | 2.15 | 0.294 | 0.060 || `grounding` | 1.25 | 0.259 | 0.173 || `next_target` | 1.20 | 0.253 | 0.141 |Without scaling the model is overconfident on every question; after it, element answersremain somewhat overconfident.## Limitations- **macOS screenshots only**, English UI and tasks.- **Candidate-bound.** The model picks among candidates; if no candidate covers the target(about 30% of element steps in v3's eval, most often in CAD), the element questions haveno right answer. On a live Mac, the accessibility tree is a better candidate source.- **Noisy labels**, as audited above; action-type labels are the weakest, and Plasticity'selement labels the least reliable.- **Weak on dense professional UIs**: Plasticity grounding is 0.38.- **Not an agent by itself.** It decides the action kind and target; the text to type, thekeys of a shortcut and drag end points are not predicted. It rarely predicts `type`.- **Merged weights round to bf16.** Against base plus adapter, option probabilities differby at most 0.035 in total variation on our check; use `adapter/` for exact reproduction.- Confidence is only meaningful after temperature scaling, and only for the question typesand candidate sources it was fitted with.## Versions| Version | Training | Notes ||---|---|---|| v2 (this) | v1 continued on 12,000 balanced questions from macos-cua v3 | adds Logic Pro, OBS Studio, Plasticity; better on every question || v1 | 8,000 questions from macos-cua v2 | first release; tagged `v1` in this repository |## Licence and provenance
123version https://git-lfs.github.com/spec/v1oid sha256:872135863fbb2c45785d965898d85819efe15052004c76eddf7a2923e9f6f365size 64991946123version https://git-lfs.github.com/spec/v1oid sha256:e125d445722f9f931e5473988f3cc44a942d230af1aff1669d68aa271ef79966size 64991946
12345{"fused_layers": 248,"check_steps": 5,"worst_total_variation_vs_adapter": 0.04049}12345{"fused_layers": 248,"check_steps": 5,"worst_total_variation_vs_adapter": 0.03447}
123version https://git-lfs.github.com/spec/v1oid sha256:83a8837096b98320146ea9705130cb70e9ee445bc74ae04f1338985b54a75687size 5366980383123version https://git-lfs.github.com/spec/v1oid sha256:b7c089d993c6939edf367da5cf6a1d250f0414cd9e9dcd38981541d0d7506b92size 5366980383
123version https://git-lfs.github.com/spec/v1oid sha256:6b6428660ef6d18286f9a92ef85263f178189eb4c099541ebc1b964f73818f18size 3711641426123version https://git-lfs.github.com/spec/v1oid sha256:b85549825e9a4785f4728ee780f114e1775f9545817208653f79294151236b84size 3711641426
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768{"dev": "experiments/decision/dev-v2-lora-v2b.jsonl","eval": "experiments/decision/eval-v2-lora-v2b.jsonl","questions": {"grounding": {"temperature": 1.2,"dev_items": 771,"dev_ece": {"before": 0.1964,"after": 0.145},"dev_log_loss": {"before": 1.2577,"after": 1.2158},"eval_items": 2079,"eval_ece": {"before": 0.1447,"after": 0.1069},"eval_log_loss": {"before": 1.2496,"after": 1.2284}},"action": {"temperature": 2.05,"dev_items": 1317,"dev_ece": {"before": 0.2948,"after": 0.0523},"dev_log_loss": {"before": 2.1282,"after": 1.6834},"eval_items": 3442,"eval_ece": {"before": 0.2593,"after": 0.0467},"eval_log_loss": {"before": 2.0045,"after": 1.6253}},"next_target": {"temperature": 0.9,"dev_items": 771,"dev_ece": {"before": 0.1169,"after": 0.1149},"dev_log_loss": {"before": 2.9552,"after": 2.9388},"eval_items": 2079,"eval_ece": {"before": 0.0635,"after": 0.0852},"eval_log_loss": {"before": 3.1757,"after": 3.1547}}}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768{"dev": "experiments/decision/dev-v3-lora-v3.jsonl","eval": "experiments/decision/eval-v3-lora-v3.jsonl","questions": {"grounding": {"temperature": 1.25,"dev_items": 2555,"dev_ece": {"before": 0.2877,"after": 0.2073},"dev_log_loss": {"before": 1.0868,"after": 1.0408},"eval_items": 6508,"eval_ece": {"before": 0.259,"after": 0.1725},"eval_log_loss": {"before": 1.1036,"after": 1.0632}},"action": {"temperature": 2.15,"dev_items": 4006,"dev_ece": {"before": 0.3158,"after": 0.0655},"dev_log_loss": {"before": 1.9669,"after": 1.4436},"eval_items": 9972,"eval_ece": {"before": 0.2941,"after": 0.0603},"eval_log_loss": {"before": 1.9069,"after": 1.4122}},"next_target": {"temperature": 1.2,"dev_items": 2555,"dev_ece": {"before": 0.2854,"after": 0.1744},"dev_log_loss": {"before": 2.5119,"after": 2.4338},"eval_items": 6508,"eval_ece": {"before": 0.2527,"after": 0.1405},"eval_log_loss": {"before": 2.5645,"after": 2.483}}}
README.md+90-60
adapter/adapters.safetensors+1-1
merge_check.json+1-1
model-00001-of-00002.safetensors+1-1
model-00002-of-00002.safetensors+1-1
temperatures.json+35-35