Upload 11 files
Browse files- assets/index-CfdOY117.css +1 -0
- assets/index-Cz6LjLeh.js +0 -0
- assets/ort.webgpu.min-BaaO-cT5.js +0 -0
- index.html +53 -19
- ort-training-wasm-simd.wasm +3 -0
- ort-wasm-simd-threaded.jsep.wasm +3 -0
- ort-wasm-simd-threaded.wasm +3 -0
- ort-wasm-simd.jsep.wasm +3 -0
- ort-wasm-simd.wasm +3 -0
- ort-wasm-threaded.wasm +3 -0
- ort-wasm.wasm +3 -0
assets/index-CfdOY117.css
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
*{box-sizing:border-box;padding:0;margin:0;font-family:sans-serif}html,body{height:100%}body{padding:16px 32px;display:flex;flex-direction:column;justify-content:center;align-items:center}#controls{display:flex;padding:1rem;gap:1rem}#controls>div{text-align:center}h1,h4{text-align:center}h4{margin-top:.5rem}#status{min-height:16px;margin:8px 0}button{transition:all .25s;background:#282c340d;border:1px solid transparent;border-radius:6px;color:#3080d0;text-decoration:none!important;display:inline-block;font-size:14px;font-weight:500;padding:8px 16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}button:disabled{background:#282c341a;color:#a0a0a0;cursor:not-allowed}button:hover{background:#282c341a}p{text-align:center;font-size:12px;max-width:600px;padding:8px}#chart-container{position:relative;height:60vh;width:min(90vw,800px);padding-right:50px}
|
assets/index-Cz6LjLeh.js
ADDED
The diff for this file is too large to render.
See raw diff
|
|
assets/ort.webgpu.min-BaaO-cT5.js
ADDED
The diff for this file is too large to render.
See raw diff
|
|
index.html
CHANGED
@@ -1,19 +1,53 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
|
4 |
+
<head>
|
5 |
+
<meta charset="UTF-8" />
|
6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
7 |
+
<title>Transformers.js | WebGPU Benchmark</title>
|
8 |
+
<script type="module" crossorigin src="/assets/index-Cz6LjLeh.js"></script>
|
9 |
+
<link rel="stylesheet" crossorigin href="/assets/index-CfdOY117.css">
|
10 |
+
</head>
|
11 |
+
|
12 |
+
<body>
|
13 |
+
<h1>
|
14 |
+
<a href="http://github.com/xenova/transformers.js" target="_blank">🤗 Transformers.js</a> WebGPU Benchmark
|
15 |
+
</h1>
|
16 |
+
<p>
|
17 |
+
This benchmark measures the execution time of <a
|
18 |
+
href="https://huggingface.co/Xenova/all-MiniLM-L6-v2">Xenova/all-MiniLM-L6-v2</a> (bert-based embedding model)
|
19 |
+
using the WASM and WebGPU execution providers across different batch sizes.
|
20 |
+
</p>
|
21 |
+
<div id="chart-container">
|
22 |
+
<canvas id="chart"></canvas>
|
23 |
+
</div>
|
24 |
+
<div style="margin-top: 10px;">
|
25 |
+
<button id="start" disabled>Start Benchmark</button>
|
26 |
+
<button id="stop" disabled>Stop Benchmark</button>
|
27 |
+
</div>
|
28 |
+
<label id="status"></label>
|
29 |
+
<details open style="position: fixed; background-color: white; right: 0; top: 0; padding: 16px;">
|
30 |
+
|
31 |
+
<summary style="text-align: right;">Options</summary>
|
32 |
+
|
33 |
+
<div>
|
34 |
+
<label>Batch sizes</label>
|
35 |
+
<input id="batch-sizes" value="1, 2, 4, 8, 16, 32" />
|
36 |
+
</div>
|
37 |
+
<div>
|
38 |
+
<label>Sequence length</label>
|
39 |
+
<input id="sequence-length" type="number" min="1" max="512" value="512" />
|
40 |
+
</div>
|
41 |
+
<div>
|
42 |
+
<input id="x-scale" type="checkbox" />
|
43 |
+
<label>Log scale (x)</label>
|
44 |
+
|
45 |
+
<input id="y-scale" type="checkbox" />
|
46 |
+
<label>Log scale (y)</label>
|
47 |
+
</div>
|
48 |
+
</details>
|
49 |
+
|
50 |
+
|
51 |
+
</body>
|
52 |
+
|
53 |
+
</html>
|
ort-training-wasm-simd.wasm
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:17a47dfb0e0c62a92ceaea1d538ecc5d5bdca2e29fc79a1a4523cd52d639c953
|
3 |
+
size 11270629
|
ort-wasm-simd-threaded.jsep.wasm
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b081048a1c9973a0e054d9966a23c1925be414235b0507b2ac612136b67b6c8d
|
3 |
+
size 19514999
|
ort-wasm-simd-threaded.wasm
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:785344bd598d3cd8abe3c7fa018b26e736601bc5c4c145f91a371470bcd001c3
|
3 |
+
size 10646922
|
ort-wasm-simd.jsep.wasm
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:adf595aa5fab7390d413dd259ceb28711b0591a52059f1ea9e5efe6040479681
|
3 |
+
size 17411110
|
ort-wasm-simd.wasm
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0855759fb0ef86d4c64df1ccaaabead0ec402a68a658ad107cf2e3616b5fd48f
|
3 |
+
size 10550433
|
ort-wasm-threaded.wasm
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:024ccaec1f9925493e760e76f41e61864233be941465218e0c6287ff603f180f
|
3 |
+
size 9817579
|
ort-wasm.wasm
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dc387b876b7ea68d30be94a619d7d6f0edfe99df06edbb1dd0461465a870919a
|
3 |
+
size 9725745
|