Download build/webgpu/bench.json from webgpu-kernels/ai.onnx.Clip: direct link, hf CLI and curl.
- Browser
- Download file 3.11 kB
-
https://huggingface.co/kernels/webgpu-kernels/ai.onnx.Clip/resolve/v1/build/webgpu/bench.json
- Command line
-
hf download hf://webgpu-kernels/ai.onnx.Clip@v1/build/webgpu/bench.json
-
curl -L -o bench.json https://huggingface.co/kernels/webgpu-kernels/ai.onnx.Clip/resolve/v1/build/webgpu/bench.json
3.11 kB
| { | |
| "tunableSpace": { "WORKGROUP_SIZE": [64, 128, 256] }, | |
| "cases": [ | |
| { | |
| "name": "1m_f32", | |
| "inputs": { | |
| "input": { "dtype": "float32", "shape": [1048576] }, | |
| "min": { "dtype": "float32", "shape": [], "dist": "constant", "value": -1 }, | |
| "max": { "dtype": "float32", "shape": [], "dist": "constant", "value": 1 } | |
| }, | |
| "outputs": { "output": { "dtype": "float32", "shape": [1048576] } } | |
| }, | |
| { | |
| "name": "clip-f32-8m", | |
| "preset": "smoke", | |
| "vars": { "dtype": "float32", "count": 8388608 }, | |
| "inputs": { | |
| "input": { "shape": [8388608], "dtype": "float32", "seed": 7025, "dist": "normal", "scale": 2 }, | |
| "min": { "dtype": "float32", "shape": [], "dist": "constant", "value": -1 }, | |
| "max": { "dtype": "float32", "shape": [], "dist": "constant", "value": 1 } | |
| }, | |
| "outputs": { "output": { "shape": [8388608], "dtype": "float32" } }, | |
| "bench": { "metrics": [{ "type": "bandwidth", "value": "args.count * dtypeBytes(args.dtype) * 2" }] } | |
| }, | |
| { | |
| "name": "clip-f16-8m", | |
| "preset": "smoke", | |
| "vars": { "dtype": "float16", "count": 8388608 }, | |
| "inputs": { | |
| "input": { "shape": [8388608], "dtype": "float16", "seed": 7026, "dist": "normal", "scale": 2 }, | |
| "min": { "dtype": "float16", "shape": [], "dist": "constant", "value": -1 }, | |
| "max": { "dtype": "float16", "shape": [], "dist": "constant", "value": 1 } | |
| }, | |
| "outputs": { "output": { "shape": [8388608], "dtype": "float16" } }, | |
| "bench": { "metrics": [{ "type": "bandwidth", "value": "args.count * dtypeBytes(args.dtype) * 2" }] } | |
| }, | |
| { | |
| "name": "clip-f32-input-bounds-large-scalar-path", | |
| "provenance": { | |
| "source": "local fixture", | |
| "notes": "An 8,388,608-element float32 input divisible by four with both input bounds present." | |
| }, | |
| "preset": "stress", | |
| "vars": { "dtype": "float32", "count": 8388608 }, | |
| "inputs": { | |
| "input": { "shape": [8388608], "dtype": "float32", "dist": "normal", "seed": 7101, "scale": 2 }, | |
| "min": { "shape": [], "dtype": "float32", "dist": "constant", "value": -1 }, | |
| "max": { "shape": [], "dtype": "float32", "dist": "constant", "value": 1 } | |
| }, | |
| "outputs": { "output": { "shape": [8388608], "dtype": "float32", "dist": "empty" } }, | |
| "bench": { "metrics": [{ "type": "bandwidth", "value": "args.count * dtypeBytes(args.dtype) * 2" }] } | |
| }, | |
| { | |
| "name": "clip-f16-8m-default-bounds-vec4", | |
| "provenance": { | |
| "source": "local fixture", | |
| "notes": "Clip without min or max inputs measures the vec4 unary path independently of scalar input-bound handling." | |
| }, | |
| "preset": "smoke", | |
| "vars": { "dtype": "float16", "count": 8388608 }, | |
| "inputs": { "input": { "shape": [8388608], "dtype": "float16", "seed": 7026, "dist": "normal", "scale": 2 } }, | |
| "outputs": { "output": { "shape": [8388608], "dtype": "float16" } }, | |
| "bench": { "metrics": [{ "type": "bandwidth", "value": "args.count * dtypeBytes(args.dtype) * 2" }] } | |
| } | |
| ] | |
| } | |