Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

docs(cua-s1): document pinned weights and reproducible inference setup (#4186)

Francesco Bonaccifa6868da813c
diff --git a/libs/cua-driver/examples/jev-use/decision-models.md b/libs/cua-driver/examples/jev-use/decision-models.md
index 4c6512eea6..260bf7472c 100644
--- a/libs/cua-driver/examples/jev-use/decision-models.md
+++ b/libs/cua-driver/examples/jev-use/decision-models.md
@@ -95,20 +95,25 @@ uv run --frozen python/choose_decision.py --model jev \
```
The S1 path runs locally and needs the separately installed `cua-s1` Python
-package, PyTorch, PEFT, and a Transformers build that recognizes
-`Qwen/Qwen3.5-4B`. Install the `cua-s1[four-b]` inference extra from the
-source that includes the Transformers 5 dependency update proposed in #4060;
-the main-branch extra still pins Transformers below 5. From the repository
-root, use `uv sync --project libs/cua-s1/python --extra four-b`, then run this
-chooser with `libs/cua-s1/python/.venv/bin/python`. The isolated pinned-weight
-proof used Transformers 5.17.0. This is a local source recipe, not a published
-package or a guarantee that every allowed dependency version loads the model.
+package with its `four-b` inference extra, which supplies PyTorch, PEFT, and
+Transformers 5. From the repository root, create that environment from the
+checked-in lock with
+`uv sync --frozen --project libs/cua-s1/python --extra four-b --extra pdf --group test`
+(Transformers 5.17.0 and torch 2.14.0), then run this chooser with
+`libs/cua-s1/python/.venv/bin/python`. This is a local source recipe, not a
+published package or a guarantee that every allowed dependency version loads
+the model.
The published `cua-ai/cua-s1-4b-0.2` artifact is a PEFT adapter, not a
-standalone model. Pin and locally download both the base revision
+standalone model. Download the base revision
`851bf6e806efd8d0a36b00ddf55e13ccb7b8cd0a` and adapter revision
-`16818868b0cc7813808aae4e87b417657046ab79`, then set
-`S1_BASE_MODEL_PATH` and `S1_ADAPTER_PATH` to those local directories:
+`16818868b0cc7813808aae4e87b417657046ab79` to local directories, then set
+`S1_BASE_MODEL_PATH` and `S1_ADAPTER_PATH` to them. `S1_DEVICE` defaults to
+`cpu` and `S1_DTYPE` to `float16`. The Cua-S1 README's
+[Get the weights and run inference](../../../cua-s1/README.md#get-the-weights-and-run-inference)
+section has the pinned download commands for every checkpoint, hardware
+guidance, and the expected smoke output. The 4B base needs more than 9.3 GB
+of memory, so 8 GB hosts cannot run this path.
```bash
S1_DEVICE=cpu S1_DTYPE=float16 \
@@ -117,6 +122,10 @@ S1_DEVICE=cpu S1_DTYPE=float16 \
< fixtures/jev-choice-request-v1.json
```
+On Apple silicon, use `S1_DEVICE=mps` with the default `float16` or with
+`bfloat16`. `cua_s1` loads `mps` weights sequentially, because Transformers'
+concurrent loader crashed or hung with `mps` and `float16` (#4198).
+
The S1 text adapter renders OmniParser regions, including confidence and
interactivity, as text and labels the result
`Visual-region-derived observation`. It is not a genuine accessibility tree,
diff --git a/libs/cua-s1/MODEL_CARD.md b/libs/cua-s1/MODEL_CARD.md
index d2c40651cb..0e9e7f9ad6 100644
--- a/libs/cua-s1/MODEL_CARD.md
+++ b/libs/cua-s1/MODEL_CARD.md
@@ -18,8 +18,14 @@ form-oriented user-interface tasks.
**Intended scope:** research on form-oriented user-interface tasks.
-**Status:** research profile. Source code only; no weights, training
-datasets, or checkpoint artifact manifest distributed.
+**Status:** research profile. The public Hugging Face repository
+[`cua-ai/cua-s1-forms`](https://huggingface.co/cua-ai/cua-s1-forms)
+(revision `f54adbf447f4ca6ec259f529ee3f2e3e09f8cc71`, MIT) publishes a
+related `tinyx` form checkpoint with 706,048 parameters. Its safetensors and
+JSON pair loads with `cua_s1.model.load_checkpoint`; its pickle `.pt` copy is
+refused by design (#3977). The results on that repository's card are its
+own and are not reproduced in this component. No training dataset or
+checkpoint artifact manifest is distributed here.
**Model design:** the reference `tinyx` configuration uses a byte-level
transformer encoder with an option-attention classification head. For each
@@ -65,7 +71,9 @@ Evaluation below).
**Status:** research profile. Inference-only Python implementation
(`cua_s1.four_b`). Adapter weights at
-[`cua-ai/cua-s1-4b-0.1`](https://huggingface.co/cua-ai/cua-s1-4b-0.1).
+[`cua-ai/cua-s1-4b-0.1`](https://huggingface.co/cua-ai/cua-s1-4b-0.1),
+pinned to revision `88d8b8a90c2da4470d005cc23ec8665a6442ebe1`. At that
+revision the repository declares no license and has no model card.
**Decoding contract:** a chat-template prompt asks the model to answer with
a single letter identifying the chosen option; each option letter is a
@@ -99,7 +107,9 @@ complete, or correctly scoped.
decisions, not specific to form-filling.
**Status:** research profile. Source code (`cua_s1.nano`). Weights at
-[`cua-ai/cua-s1-nano-0.1`](https://huggingface.co/cua-ai/cua-s1-nano-0.1).
+[`cua-ai/cua-s1-nano-0.1`](https://huggingface.co/cua-ai/cua-s1-nano-0.1),
+pinned to revision `1f93fd0fdcbe33740334948f967dff9f6c8e9f34`. At that
+revision the repository declares no license and has no model card.
**Model design:** a from-scratch, single-pass option-attention classifier
with approximately 855,000 trainable parameters. Scores every candidate
@@ -165,7 +175,9 @@ and `multimodal/` subdirectories under the same HF repo, exactly as
**Status:** research profile. Inference-only Python implementation
(`cua_s1.four_b`). Adapter weights at
-[`cua-ai/cua-s1-4b-0.2`](https://huggingface.co/cua-ai/cua-s1-4b-0.2).
+[`cua-ai/cua-s1-4b-0.2`](https://huggingface.co/cua-ai/cua-s1-4b-0.2),
+pinned to revision `16818868b0cc7813808aae4e87b417657046ab79`, Apache-2.0
+for the adapter only.
**Decoding contract:** identical to `cua-s1-4b-0.1`'s.
@@ -197,6 +209,83 @@ measured on 13 single-widget research environments under a hard step cap,
with 6 excluded because they are not reliably rewardable under the provider
used.
+## Verification scope and known failure modes
+
+This section records what has been checked outside the offline benchmark and
+what has not. The download and setup commands are in the README's
+[Get the weights and run inference](README.md#get-the-weights-and-run-inference)
+section.
+
+**Pinned inputs.** Every result below used `Qwen/Qwen3.5-4B` at
+`851bf6e806efd8d0a36b00ddf55e13ccb7b8cd0a`, `cua-s1-4b-0.2` at
+`16818868b0cc7813808aae4e87b417657046ab79`, and `cua-s1-4b-0.1` at
+`88d8b8a90c2da4470d005cc23ec8665a6442ebe1`, loaded by `cua_s1.four_b` through
+the jev-use closed-candidate chooser with the `four-b` lock (torch 2.14.0,
+Transformers 5.17.0, PEFT 0.21.0).
+
+**Local fixture runs (2026-09-25).** One Apple M1 Ultra host with 128 GB of
+unified memory, macOS 26, Python 3.12, `mps`. Each row is one deterministic
+decision per fixture; the value is the selected option's probability. The
+positive and negative requests are the checked-in
+`libs/cua-driver/examples/jev-use/fixtures/jev-choice-request-v1.json` and
+`jev-choice-negative-v1.json`. The 12-region, 8-candidate request and the
+synthetic screenshots used for the multimodal rows are not checked in.
+
+| Model and modality | dtype | Positive (expects `submit-form`) | Negative (expects `abstain`) | 8-candidate (expects `click-r11`) |
+| ----------------------------------- | ---------- | -------------------------------- | ---------------------------- | --------------------------------- |
+| `cua-s1-4b-0.2` text | `float16` | `submit-form` 0.975 | `abstain` 0.430 | `click-r11` 0.932 |
+| `cua-s1-4b-0.2` text | `bfloat16` | `submit-form` 0.973 | `abstain` 0.455 | not run |
+| `cua-s1-4b-0.2` multimodal | `float16` | `submit-form` 0.979 | `abstain` 0.857 | `click-r11` 0.984 |
+| `cua-s1-4b-0.1` text | `float16` | `abstain` 0.418 (wrong) | `abstain` 0.437 | `click-r9` 0.159 (wrong) |
+| `cua-s1-4b-0.1` multimodal | `float16` | `abstain` 0.561 (wrong) | `abstain` 0.569 | `click-r0` 0.283 (wrong) |
+| `Qwen/Qwen3.5-4B`, no adapter, text | `float16` | `submit-form` 0.426 | `abstain` 0.745 | `click-r2` 0.523 (wrong) |
+
+These are runtime smokes on three synthetic requests, not an accuracy
+estimate. The base model without an adapter passes the two checked-in
+fixtures, so passing them does not by itself show adapter quality.
+
+**Desktop counterexample.** In an earlier private primary-desktop probe,
+packaged OmniParser observed `Send`, the only action candidate required an
+exact `Save`, and `cua-s1-4b-0.2` text selected that action with probability
+0.777 instead of abstaining. No click was dispatched. A caller must not treat
+a high S1 score as proof that a candidate's condition holds; see
+`libs/cua-driver/examples/jev-use/decision-models.md`.
+
+**Not yet covered.**
+
+- Cua-S1 is not yet covered by canonical Cua Driver desktop E2E on any
+ platform. The fixture runs above involve no Cua Driver session, so no
+ Driver version applies to them.
+- No CI job loads real weights. `CI: cua-s1` runs the unit suite with fake
+ models on Ubuntu with Python 3.11, 3.12, and 3.13, checks that the `four-b`
+ dependencies import, and runs the unit suite with the `four-b` extra on
+ macOS arm64.
+- 4B inference on Linux, Windows, and CUDA has not been measured. On the
+ macOS host above, `cpu` with `float32` took 19.5 to 50.2 s per warm
+ decision while other workloads loaded the host (see the README's hardware
+ table).
+- `cua-s1-nano-0.1` and `cua-s1-forms` load with the package's safetensors
+ loaders, but no chooser or Driver integration runs them, and they were not
+ part of the fixture runs.
+- Peak memory for 4B inference has not been measured. The base weights alone
+ are 9.32 GB, so 8 GB hosts and guests cannot load the model.
+
+**Known failure modes.**
+
+- `cua-s1-4b-0.1` abstained on the positive fixture in both modalities and
+ chose the wrong target on the 8-candidate request.
+- `cua-s1-4b-0.2` can select an action whose stated condition does not match
+ the observation, as in the desktop counterexample above.
+- On Apple silicon with Transformers 5.17.0 and torch 2.14.0, `mps` with
+ `float16` crashed or hung during weight loading with Transformers'
+ concurrent loader (#4198). `cua_s1.four_b` now loads `mps` weights
+ sequentially; the fixture runs above used sequential loading.
+- The one-letter-per-option readout supports at most 26 options. The
+ chooser returns `option_limit` instead of truncating.
+- The chooser's `model` field names the adapter, its revision when it can be
+ read locally, and the modality (#4204), but not the base model. Evidence
+ logs must record the base revision separately.
+
## Limitations (all checkpoints)
Computer-use behavior can fail because of unfamiliar layouts, changed
@@ -218,8 +307,9 @@ idempotent.
## Evaluation methodology notes
-No model result is claimed by this source-only component beyond what is
-published in `libs/cua-bench-s1/README.md`. Offline evaluation utilities
+No model result is claimed by this component beyond what is published in
+`libs/cua-bench-s1/README.md` and the runtime smokes recorded in
+[Verification scope and known failure modes](#verification-scope-and-known-failure-modes). Offline evaluation utilities
report abstention, coverage, selective accuracy, wrong actions, wrong
targets, and unsafe actions. Synthetic splits are disjoint by form
signature, and model selection uses validation rather than test results. A
@@ -242,8 +332,12 @@ See [`SECURITY.md`](SECURITY.md) for threat-model and reporting guidance.
## Data, architecture, and licensing
-This component does not grant rights to future checkpoint weights, external
-training data, or unlisted third-party materials. A checkpoint release must
+This component does not grant rights to checkpoint weights, external
+training data, or unlisted third-party materials. At the pinned revisions,
+the Hugging Face repositories declare these licenses: `cua-s1-4b-0.2`
+Apache-2.0 (adapter only), `cua-s1-forms` MIT, and `Qwen/Qwen3.5-4B`
+Apache-2.0 under Qwen's own terms. `cua-s1-4b-0.1` and `cua-s1-nano-0.1`
+declare no license. A checkpoint release must
document its exact artifact license, data provenance, and applicable
third-party notices before distribution or use decisions are made. The source
code is MIT-licensed, but an official checkpoint may use separate terms that
diff --git a/libs/cua-s1/README.md b/libs/cua-s1/README.md
index 9101b40c64..a58bcd312f 100644
--- a/libs/cua-s1/README.md
+++ b/libs/cua-s1/README.md
@@ -92,6 +92,244 @@ use a vision backbone:
uv sync --project libs/cua-s1/python --extra nano-vision
```
+## Get the weights and run inference
+
+This section is the reproducible path from a clean checkout to one Cua-S1-4B
+decision on a checked-in fixture. All published Cua-S1 artifacts are public on
+Hugging Face and download without a token.
+
+### Pinned artifacts
+
+Pin every download to the commit SHA below. A branch name such as `main` can
+move; these revisions are the ones the commands and measurements in this
+section were verified against on 2026-09-25.
+
+| Artifact | Hugging Face repository | Revision (commit SHA) | Pairs with | Download size | Declared license |
+| ----------------- | ------------------------------------------------------------------------- | ------------------------------------------ | --------------------------------------- | ----------------------------------------- | -------------------------------------------- |
+| Base model | [`Qwen/Qwen3.5-4B`](https://huggingface.co/Qwen/Qwen3.5-4B) | `851bf6e806efd8d0a36b00ddf55e13ccb7b8cd0a` | Base for both 4B adapters | 9.34 GB (two safetensors shards, 9.32 GB) | Apache-2.0 (Qwen's model card and `LICENSE`) |
+| `cua-s1-4b-0.2` | [`cua-ai/cua-s1-4b-0.2`](https://huggingface.co/cua-ai/cua-s1-4b-0.2) | `16818868b0cc7813808aae4e87b417657046ab79` | `Qwen/Qwen3.5-4B` at the revision above | 187 MB | Apache-2.0 (adapter only) |
+| `cua-s1-4b-0.1` | [`cua-ai/cua-s1-4b-0.1`](https://huggingface.co/cua-ai/cua-s1-4b-0.1) | `88d8b8a90c2da4470d005cc23ec8665a6442ebe1` | `Qwen/Qwen3.5-4B` at the revision above | 272 MB | None declared on Hugging Face |
+| `cua-s1-nano-0.1` | [`cua-ai/cua-s1-nano-0.1`](https://huggingface.co/cua-ai/cua-s1-nano-0.1) | `1f93fd0fdcbe33740334948f967dff9f6c8e9f34` | Standalone (no base model) | 6.9 MB | None declared on Hugging Face |
+| `cua-s1-forms` | [`cua-ai/cua-s1-forms`](https://huggingface.co/cua-ai/cua-s1-forms) | `f54adbf447f4ca6ec259f529ee3f2e3e09f8cc71` | Standalone (no base model) | 2.8 MB (safetensors pair only) | MIT |
+
+Layouts and loaders:
+
+- Both 4B repositories contain two PEFT adapters, `text/` and `multimodal/`,
+ each with `adapter_config.json` and `adapter_model.safetensors`. Both
+ adapter configurations name `Qwen/Qwen3.5-4B` as the base (LoRA rank 16).
+ Pass the repository root as the adapter path; `cua_s1.four_b.FourBModel`
+ selects the subdirectory for its `modality`. `cua-s1-4b-0.1` also carries a
+ root-level `adapter_model.safetensors` that is byte-identical to its
+ `text/` adapter.
+- `cua-s1-nano-0.1` contains `text/` and `multimodal/` checkpoints
+ (`model.safetensors` plus `config.json`, 855,296 parameters each). Load a
+ subdirectory with `cua_s1.nano.load_nano_checkpoint`. The multimodal
+ checkpoint also needs a frozen vision backbone from the `nano-vision` extra.
+- `cua-s1-forms` contains a `tinyx` checkpoint (`cua-s1-forms.safetensors`
+ plus `cua-s1-forms.json`, 706,048 parameters). Load it with
+ `cua_s1.model.load_checkpoint`. The repository also ships a pickle
+ `cua-s1-forms.pt`, which `cua_s1` refuses to load by design (see #3977).
+ Exclude it from downloads (`--exclude "*.pt"`) and load only the
+ safetensors pair. Unpickling a checkpoint can run arbitrary code, so do not
+ open the `.pt` file with `torch.load` or `pickle`.
+- The Apache-2.0 license on `cua-s1-4b-0.2` covers only the adapter. The base
+ model is governed by its own license and is downloaded from Qwen's
+ repository, not redistributed by Cua. At the pinned revisions,
+ `cua-s1-4b-0.1` and `cua-s1-nano-0.1` declare no license and ship no model
+ card; no license grant for those weights is documented here.
+
+### Hardware
+
+The 4B base weights are stored in 16-bit precision and occupy 9.32 GB, so the
+loaded model needs more than that in RAM, unified memory, or GPU memory before
+activations. An 8 GB host or guest cannot run Cua-S1-4B inference, which
+includes the default 8 GB macOS guests used for desktop E2E. Plan for at least
+16 GB of free memory. That figure is an estimate from the weight size; peak
+memory has not been measured.
+
+The only measured 4B runs so far used one Apple M1 Ultra host with 128 GB of
+unified memory, macOS 26, Python 3.12, torch 2.14.0, and Transformers 5.17.0
+from the `four-b` lock, with sequential weight loading on `mps` (see
+[Known local issues](#known-local-issues)). Each decision is one forward pass;
+times are medians of five warm calls:
+
+| Adapter and modality | Device and dtype | Load time | 3-candidate fixture | 12-region, 8-candidate request |
+| -------------------------- | ----------------- | --------- | ------------------- | ------------------------------ |
+| `cua-s1-4b-0.2` text | `mps`, `float16` | 16.3 s | 1.07 s | 2.83 s |
+| `cua-s1-4b-0.2` text | `mps`, `bfloat16` | 6.8 s | 1.23 s | 3.23 s |
+| `cua-s1-4b-0.2` multimodal | `mps`, `float16` | 4.8 s | 5.55 s | 5.81 s |
+| `cua-s1-4b-0.2` multimodal | `mps`, `bfloat16` | 3.7 s | 6.70 s | 6.66 s |
+| `cua-s1-4b-0.2` text | `cpu`, `float32` | 18.3 s | 19.5 s | 32.1 s |
+| `cua-s1-4b-0.2` multimodal | `cpu`, `float32` | 7.8 s | 34.2 s | 50.2 s |
+
+Multimodal rows used 1280x800 screenshots; a 2560x1600 screenshot took 22 to
+30 s per decision on `mps`, so downscale large captures before scoring. The
+CPU rows ran while other workloads kept the host's load average near 16, so
+treat them as an upper bound rather than a CPU benchmark. Load times depend
+on whether the weights were already in the operating-system file cache; rows
+measured after the first load were faster. CUDA latency and Linux or Windows
+hosts have not been measured. Qwen3.5 logs that it falls back to reference
+PyTorch kernels because `causal_conv1d` and `flash-linear-attention` are not
+installed; both are CUDA-oriented packages.
+
+Plan live loops around the Cua Driver's 60-second capture lifetime: the
+decision must return, and the action must be dispatched with the same
+`capture_id`, before the capture expires. A cold `choose_decision.py`
+invocation, which loads the model for one decision, took 10 to 35 s of wall
+time on `mps` and 30 to 43 s on `cpu`. Keep one process with a loaded
+`FourBModel` resident (for example, a small local service) and send each
+decision to it; warm `mps` decisions then take about 1 to 3 s for text and 6 s
+for multimodal. On CPU, a single warm decision can take 20 to 50 s, which leaves
+little or no margin inside the capture lifetime.
+
+### 1. Create the pinned environment
+
+From the repository root, create the inference environment from the
+checked-in lock on Python 3.11, 3.12, or 3.13 (change `--python` as needed):
+
+```bash
+uv sync --frozen --project libs/cua-s1/python --python 3.12 \
+ --extra four-b --extra pdf --group test
+```
+
+The lock resolves torch 2.14.0, Transformers 5.17.0, PEFT 0.21.0, and
+torchvision 0.29.0. The `pdf` extra is optional for inference; it adds PDF
+entity extraction and its tests. The `four-b` extra cannot share an
+environment with `nano-vision`, `four-b-train`, `four-b-rl`, or `all`.
+
+Confirm the environment without loading any model weights:
+
+```bash
+uv run --frozen --project libs/cua-s1/python --extra four-b --extra pdf --group test \
+ pytest libs/cua-s1/python/tests
+```
+
+### 2. Download the weights
+
+The `hf` command-line tool is installed with `huggingface_hub`, which the
+`four-b` environment already contains. Choose a models directory with at
+least 10 GB free:
+
+```bash
+HF=libs/cua-s1/python/.venv/bin/hf
+S1_MODELS="$HOME/cua-s1-models"
+
+"$HF" download Qwen/Qwen3.5-4B \
+ --revision 851bf6e806efd8d0a36b00ddf55e13ccb7b8cd0a \
+ --local-dir "$S1_MODELS/Qwen3.5-4B"
+"$HF" download cua-ai/cua-s1-4b-0.2 \
+ --revision 16818868b0cc7813808aae4e87b417657046ab79 \
+ --local-dir "$S1_MODELS/cua-s1-4b-0.2"
+```
+
+Download the other checkpoints the same way as needed:
+
+```bash
+"$HF" download cua-ai/cua-s1-4b-0.1 \
+ --revision 88d8b8a90c2da4470d005cc23ec8665a6442ebe1 \
+ --local-dir "$S1_MODELS/cua-s1-4b-0.1"
+"$HF" download cua-ai/cua-s1-nano-0.1 \
+ --revision 1f93fd0fdcbe33740334948f967dff9f6c8e9f34 \
+ --local-dir "$S1_MODELS/cua-s1-nano-0.1"
+"$HF" download cua-ai/cua-s1-forms \
+ --revision f54adbf447f4ca6ec259f529ee3f2e3e09f8cc71 \
+ --exclude "*.pt" \
+ --local-dir "$S1_MODELS/cua-s1-forms"
+```
+
+Add `--dry-run` to any command to list the files and total size without
+downloading. The equivalent Python call is
+`huggingface_hub.snapshot_download(repo_id, revision=<sha>, local_dir=<dir>)`.
+
+### 3. Run the smoke decision
+
+The [jev-use closed-candidate chooser](../cua-driver/examples/jev-use/decision-models.md)
+loads Cua-S1-4B from local directories. It reads these environment variables:
+
+| Variable | Required | Default | Meaning |
+| --------------------- | -------- | --------- | ----------------------------------------------------------------------- |
+| `S1_BASE_MODEL_PATH` | Yes | None | Local directory containing `Qwen/Qwen3.5-4B` |
+| `S1_ADAPTER_PATH` | Yes | None | Local adapter root, such as `cua-s1-4b-0.2` |
+| `S1_DEVICE` | No | `cpu` | Torch device passed to Transformers, such as `cpu`, `cuda`, or `mps` |
+| `S1_DTYPE` | No | `float16` | Torch dtype name, such as `float16`, `bfloat16`, or `float32` |
+| `S1_MODALITY` | No | `text` | `text` or `multimodal`; `--s1-modality` overrides it |
+| `S1_ADAPTER_ID` | No | Detected | Adapter name reported in `model`, such as `cua-ai/cua-s1-4b-0.2` |
+| `S1_ADAPTER_REVISION` | No | Detected | Adapter revision reported in `model` when it cannot be detected locally |
+
+The multimodal adapter also needs `--screenshot <png>` and
+`--screenshot-capture-id <capture_id>` from the same capture as the request.
+The chooser supports only the 4B adapters; `cua-s1-nano-0.1` and
+`cua-s1-forms` fail setup. It rejects paths that are not existing directories
+and never downloads weights itself.
+
+From the repository root, run the verifier. It pipes the checked-in
+`fixtures/jev-choice-request-v1.json` request to `choose_decision.py` with the
+same Python interpreter, validates the response, and prints a summary:
+
+```bash
+export S1_BASE_MODEL_PATH="$S1_MODELS/Qwen3.5-4B"
+export S1_ADAPTER_PATH="$S1_MODELS/cua-s1-4b-0.2"
+export S1_DEVICE=cpu S1_DTYPE=float16 # on Apple silicon: S1_DEVICE=mps
+
+libs/cua-s1/python/.venv/bin/python \
+ libs/cua-driver/examples/jev-use/verify_decision_cli.py --model s1
+```
+
+Expected output on success:
+
+```text
+{"model": "cua-s1-4b-0.2@16818868b0cc7813808aae4e87b417657046ab79:text", "kind": "selected", "selected_id": "submit-form"}
+```
+
+The verifier exits nonzero if the response is not a `cua.decision_choice_v1`
+object, names a different `capture_id`, omits or adds a candidate, or selects
+anything other than `submit-form`. To check the checked-in negative fixture,
+add `--fixture negative --expected-id abstain`. To run the multimodal
+adapter, add `--screenshot <png>` with an image of the fixture's form; the
+verifier binds it to the fixture's capture ID.
+
+To see the full response, run the chooser directly:
+
+```bash
+libs/cua-s1/python/.venv/bin/python \
+ libs/cua-driver/examples/jev-use/python/choose_decision.py --model s1 \
+ < libs/cua-driver/examples/jev-use/fixtures/jev-choice-request-v1.json
+```
+
+It prints one JSON object with this shape; the probabilities are
+model-dependent:
+
+```text
+{"schema":"cua.decision_choice_v1","kind":"selected","capture_id":"capture-fixture-1","selected_id":"submit-form","model":"cua-s1-4b-0.2@16818868b0cc7813808aae4e87b417657046ab79:text","confidence":0.97,"probabilities":{"submit-form":0.97,"reobserve":0.02,"abstain":0.01},"reason":null}
+```
+
+`kind` is one of `selected`, `reobserve`, `abstain`, or `error`. The
+`probabilities` keys are exactly the request's candidate IDs. `model` is
+`<adapter>[@<revision>]:<modality>`; the revision comes from the metadata that
+`hf download --local-dir` writes or from a Hugging Face cache snapshot path,
+and is omitted when neither is present. The base model is not part of it, so
+record the base revision with your evidence. Replace `--model s1` with `--model mock` in either command to
+check the plumbing without weights.
+
+This smoke proves that the environment, pinned weights, and chooser load and
+produce a valid decision. It is not a quality measurement: on the same
+positive fixture, the base model without an adapter also selected
+`submit-form`, and `cua-s1-4b-0.1` abstained. See the
+[model card](MODEL_CARD.md#verification-scope-and-known-failure-modes) for
+the recorded results and limits.
+
+### Known local issues
+
+- On Apple silicon, Transformers 5's concurrent weight loader crashed with
+ `SIGSEGV` or hung when loading the 4B base with `mps` and `float16`
+ (#4198). `FourBModel` now sets `HF_DEACTIVATE_ASYNC_LOAD=1` for `mps`
+ loads, so `S1_DEVICE=mps` works with the default `float16` and with
+ `bfloat16`. If you set `HF_DEACTIVATE_ASYNC_LOAD` yourself, your value is
+ kept; do not set it to a false value on `mps`.
+- The chooser supports at most 26 candidates, including `reobserve` and
+ `abstain`. A larger request returns `kind: "error"` with
+ `reason: "option_limit"`.
+
## Safety boundary
Planning and execution are separate. The optional runtime defaults to a dry
@@ -138,12 +376,12 @@ entry.
## Checkpoints
-| Checkpoint | Scope | Status |
-| --- | --- | --- |
-| `cua-s1-form-v0` | Form-oriented computer-use research (finetuned, text-only variant of `cua-s1-nano-0.1`) | Profile defined; weights not distributed |
-| `cua-s1-nano-0.1` | General closed-option GUI decision research (element + action selection) | Profile defined; weights at [`cua-ai/cua-s1-nano-0.1`](https://huggingface.co/cua-ai/cua-s1-nano-0.1) |
-| `cua-s1-4b-0.1` | General computer-use element/action decisions (LoRA on frozen `Qwen/Qwen3.5-4B`), text and multimodal (screenshot) input | Profile defined; adapter weights at [`cua-ai/cua-s1-4b-0.1`](https://huggingface.co/cua-ai/cua-s1-4b-0.1) |
-| `cua-s1-4b-0.2` | General computer-use element/action decisions (LoRA on frozen `Qwen/Qwen3.5-4B`), text and multimodal (screenshot) input, plus agentic multi-step rollouts in live GUI environments | Profile defined; adapter weights at [`cua-ai/cua-s1-4b-0.2`](https://huggingface.co/cua-ai/cua-s1-4b-0.2) |
+| Checkpoint | Scope | Status |
+| ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `cua-s1-form-v0` | Form-oriented computer-use research (finetuned, text-only variant of `cua-s1-nano-0.1`) | Profile defined; a related `tinyx` form checkpoint is published at [`cua-ai/cua-s1-forms`](https://huggingface.co/cua-ai/cua-s1-forms) (see [Pinned artifacts](#pinned-artifacts)) |
+| `cua-s1-nano-0.1` | General closed-option GUI decision research (element + action selection) | Profile defined; weights at [`cua-ai/cua-s1-nano-0.1`](https://huggingface.co/cua-ai/cua-s1-nano-0.1) |
+| `cua-s1-4b-0.1` | General computer-use element/action decisions (LoRA on frozen `Qwen/Qwen3.5-4B`), text and multimodal (screenshot) input | Profile defined; adapter weights at [`cua-ai/cua-s1-4b-0.1`](https://huggingface.co/cua-ai/cua-s1-4b-0.1) |
+| `cua-s1-4b-0.2` | General computer-use element/action decisions (LoRA on frozen `Qwen/Qwen3.5-4B`), text and multimodal (screenshot) input, plus agentic multi-step rollouts in live GUI environments | Profile defined; adapter weights at [`cua-ai/cua-s1-4b-0.2`](https://huggingface.co/cua-ai/cua-s1-4b-0.2) |
Do not assume that results transfer across applications, operating systems,
languages, layouts, accessibility settings, or task distributions.