Downloads · 30 days
0
yasserrmd/cua-s1-forms-onnx
cua-s1-forms-onnx is a machine learning model from yasserrmd. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
ONNX conversion of the original cua-ai/cua-s1-forms model for local and browser inference experiments.
Downloads · 30 days
0
Access
Public
Updated Sep 19, 2026
Repo size
3 MB
Likes
1
Public
Click a slice to open those files.
.onnx3 MB · 100%
From the Hugging Face model README
ONNX conversion of the original
cua-ai/cua-s1-forms
model for local and browser inference experiments.
Original project:
https://github.com/trycua/cua/tree/main/libs/cua-s1
This repository only provides a deployment-format conversion of the original trained checkpoint. The architecture, weights, training, evaluation, and research belong to the original CUA-S1 project.
CUA-S1 Forms is a small specialist model for form-oriented computer-use tasks.
Instead of generating text token-by-token, it scores a bounded set of candidate actions in a single forward pass.
This makes it suitable for lightweight local inference using:
No server-side inference is required.
The original model uses:
Please refer to the original model card for the authoritative architecture, training details, evaluation results, limitations, and safety guidance:
https://huggingface.co/cua-ai/cua-s1-forms
cua-s1-forms.onnx
cua-s1-forms-web.json
context_ids
int64 [B, 224]
context_mask
bool [B, 224]
option_ids
int64 [B, N, 96]
option_token_mask
bool [B, N, 96]
option_mask
bool [B, N]
Output:
logits
float32 [B, N]
Where:
B = batch size
N = candidate options
CUA-S1 uses UTF-8 bytes directly:
byte_id = byte + 1
0 is reserved for padding.
This means browser implementations can use JavaScript TextEncoder
without requiring a tokenizer model.
import onnxruntime as ort
session = ort.InferenceSession(
"cua-s1-forms.onnx",
providers=["CPUExecutionProvider"]
)
logits = session.run(
["logits"],
{
"context_ids": context_ids,
"context_mask": context_mask,
"option_ids": option_ids,
"option_token_mask": option_token_mask,
"option_mask": option_mask,
}
)[0]
Google Colab, ONNX Runtime CPU, batch 1, 8 candidate options:
Median latency 15.0 ms
Mean latency 16.8 ms
P95 24.3 ms
Throughput ~60 decisions/sec
These are deployment measurements for this ONNX conversion, not official CUA-S1 benchmark results.
Browser WASM and WebGPU tests will be added separately.
Browser
|
v
TextEncoder
|
v
ONNX Runtime Web
|
+--> WASM
|
+--> WebGPU
|
v
CUA-S1 Forms
|
v
Action scores
All limitations of the original model still apply.
CUA-S1 Forms is a specialist form-oriented model, not a general-purpose computer-use agent.
Refer to the original model card for detailed scope, limitations, evaluation, and safety guidance.
Original model:
https://huggingface.co/cua-ai/cua-s1-forms
Original source:
https://github.com/trycua/cua/tree/main/libs/cua-s1
ONNX conversion:
https://huggingface.co/yasserrmd/cua-s1-forms-onnx
Converted for ONNX / browser deployment experiments by Mohamed Yasser.
This repository is not an official CUA-AI release.
MIT, following the original model repository.