Views
No views yet
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)1import onnxruntime as ort
2
3# Load with automatic provider selection (CUDA > CoreML > CPU)
4providers = ort.get_available_providers()
5session = ort.InferenceSession("encoder_model.onnx", providers=providers)
6outputs = session.run(None, inputs)1import { pipeline } from "@xenova/transformers";
2
3// Load the quantized ONNX model
4const pipe = await pipeline("image-to-text", "pix2act-weblinx-base-onnx", {
5 quantized: true, // Use INT8 quantized version
6});
7
8// Run inference on a screenshot
9const result = await pipe(image);
10console.log(result);1# Export with INT8 quantization (recommended for browser)
2hotelbench export-onnx pix2act-weblinx-base -o models/pix2act-weblinx-base-onnx --quantize
3
4# Push to HuggingFace Hub
5hotelbench export-onnx pix2act-weblinx-base -o models/pix2act-weblinx-base-onnx -q \
6 --push-to-hub username/pix2act-weblinx-base-onnx