Upload 4 files
Browse files- assets/index-DuMT2XS2.css +1 -0
- assets/index-DxdZCDTy.js +0 -0
- index.html +46 -53
assets/index-DuMT2XS2.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}h1{text-align:center}#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;margin-bottom:10px}details{position:fixed;background-color:#fff;right:0;top:0;padding:16px}summary{text-align:right}
|
assets/index-DxdZCDTy.js
ADDED
The diff for this file is too large to render.
See raw diff
|
|
index.html
CHANGED
@@ -1,54 +1,47 @@
|
|
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-
|
9 |
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
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" target="_blank">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
|
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
|
30 |
-
|
31 |
-
<
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
<input id="
|
43 |
-
<label>Log scale (
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
</div>
|
48 |
-
</details>
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
</body>
|
53 |
-
|
54 |
</html>
|
|
|
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-DxdZCDTy.js"></script>
|
9 |
+
<link rel="stylesheet" crossorigin href="/assets/index-DuMT2XS2.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" target="_blank">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>
|
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>
|
30 |
+
<summary>Options</summary>
|
31 |
+
<div>
|
32 |
+
<label>Batch sizes</label>
|
33 |
+
<input id="batch-sizes" value="1, 2, 4, 8, 16, 32" />
|
34 |
+
</div>
|
35 |
+
<div>
|
36 |
+
<label>Sequence length</label>
|
37 |
+
<input id="sequence-length" type="number" min="1" max="512" value="512" />
|
38 |
+
</div>
|
39 |
+
<div>
|
40 |
+
<input id="x-scale" type="checkbox" />
|
41 |
+
<label>Log scale (x)</label>
|
42 |
+
<input id="y-scale" type="checkbox" />
|
43 |
+
<label>Log scale (y)</label>
|
44 |
+
</div>
|
45 |
+
</details>
|
46 |
+
</body>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
</html>
|