CoolFace
Modelpublic

pierretokns/pix2act-weblinx-base-onnx

sourceHugging Faceapache-2.0updated 8mo agoView on Hugging Face
0likes11downloads
Model Card

Pix2Act-WebLINX-Base ONNX

ONNX export of Pix2Act-WebLINX-Base optimized for browser automation with Transformers.js/WebGPU.

Model Details

  • —Original Model: See source model card
  • —Export Format: ONNX (opset 17)
  • —Quantization: INT8 dynamic (optimized for browser)
  • —Total Size: 1168.9 MB
  • —Browser Eligible: Yes

Files

  • —decoder_with_past_model.onnx (169.6 MB)
  • —decoder_model.onnx (183.3 MB)
  • —encoder_model.onnx (88.5 MB)
  • —decoder_model_merged.onnx (727.6 MB)

Usage

With ONNX Runtime (Python/Server)

python
import onnxruntime as ort

# Load with automatic provider selection (CUDA > CoreML > CPU)
providers = ort.get_available_providers()
session = ort.InferenceSession("encoder_model.onnx", providers=providers)
outputs = session.run(None, inputs)

With Transformers.js (Browser/WebGPU)

javascript
import { pipeline } from "@xenova/transformers";

// Load the quantized ONNX model
const pipe = await pipeline("image-to-text", "pix2act-weblinx-base-onnx", {
  quantized: true,  // Use INT8 quantized version
});

// Run inference on a screenshot
const result = await pipe(image);
console.log(result);

Browser Requirements:

  • —WebGPU-enabled browser (Chrome 113+, Edge 113+, or Firefox Nightly)
  • —Falls back to WebAssembly (WASM) if WebGPU unavailable
  • —Recommended: 4GB+ system RAM for optimal performance

Export Details

Exported using HotelBench ONNX export utilities.

bash
# Export with INT8 quantization (recommended for browser)
hotelbench export-onnx pix2act-weblinx-base -o models/pix2act-weblinx-base-onnx --quantize

# Push to HuggingFace Hub
hotelbench export-onnx pix2act-weblinx-base -o models/pix2act-weblinx-base-onnx -q \
  --push-to-hub username/pix2act-weblinx-base-onnx

Performance Notes

  • —Browser (WebGPU): ~200-500ms inference time on modern GPU
  • —Browser (WASM): ~1-3s inference time (CPU fallback)
  • —Server (CUDA): ~50-100ms inference time
  • —Server (CPU): ~500ms-1s inference time

License

Apache 2.0 - See original model for full license details.