Update index.html
Browse files- index.html +51 -50
index.html
CHANGED
@@ -1,53 +1,54 @@
|
|
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-BXZpYR6k.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 |
-
|
52 |
-
|
|
|
53 |
</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-BXZpYR6k.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" 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 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 |
+
|
52 |
+
</body>
|
53 |
+
|
54 |
</html>
|