Erroring on Firefox
Works on Chrome but errors in Firefox
Encountered one or more errors while creating shader module "Pad"
WebGPU compilation info for shader module "Pad" (1 error(s), 0 warning(s), 0 info)
�[1;31m2026-04-09 12:28:06.749999 [E:onnxruntime:, sequential_executor.cc:611 ExecuteKernel] Non-zero status code returned while running Pad node. Name:'/model/embeddings/pos_embed/padding/padded' Status Message: Failed to create a WebGPU compute pipeline: ShaderModule with 'Pad' label is invalid�[m 92f92d4b-a97b-481d-b488-dcadafd7ab61:83:232
An error occurred during model execution: "Error: failed to call OrtRun(). ERROR_CODE: 1, ERROR_MESSAGE: Non-zero status code returned while running Pad node. Name:'/model/embeddings/pos_embed/padding/padded' Status Message: Failed to create a WebGPU compute pipeline: ShaderModule with 'Pad' label is invalid". index-Ca5exp8a.js:4782:54068
Inputs given to model:
Object { pixel_values: {…}, pixel_attention_mask: {…}, spatial_shapes: {…} }
Thank you for bringing this up @KevinAHM !
We have identified the root cause (Firefox WebGPU does not support the Pad op) and have resolved it in commit 95c283d for the ONNX model
You will need to clear your transformers-cache to ensure the demo pulls the updated model:
Also please note that while it is now functional, performance on Firefox is still limited
Thank you for using the demo!