onnx-webgpu-converter
Installation
SKILL.md
ONNX WebGPU Model Converter
Convert any HuggingFace model to ONNX and run it in the browser with Transformers.js + WebGPU.
Workflow Overview
- Check if ONNX version already exists on HuggingFace
- Set up Python environment with optimum
- Export model to ONNX with optimum-cli
- Quantize for target deployment (WebGPU vs WASM)
- Upload to HuggingFace Hub (optional)
- Use in Transformers.js with WebGPU
Step 1: Check for Existing ONNX Models
Before converting, check if the model already has an ONNX version: