Xenova HF staff commited on
Commit
fde729d
1 Parent(s): dadafec

Upload 4 files

Browse files
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-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>
 
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>