File size: 1,685 Bytes
20be0fa
 
 
 
 
 
 
cb9e6ca
20be0fa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Transformers.js | WebGPU Benchmark</title>
  <script type="module" crossorigin src="/assets/index-BXZpYR6k.js"></script>
  <link rel="stylesheet" crossorigin href="/assets/index-CfdOY117.css">
</head>

<body>
  <h1>
    <a href="http://github.com/xenova/transformers.js" target="_blank">🤗 Transformers.js</a> WebGPU Benchmark
  </h1>
  <p>
    This benchmark measures the execution time of <a

      href="https://huggingface.co/Xenova/all-MiniLM-L6-v2">Xenova/all-MiniLM-L6-v2</a> (bert-based embedding model)
    using the WASM and WebGPU execution providers across different batch sizes.
  </p>
  <div id="chart-container">
    <canvas id="chart"></canvas>
  </div>
  <div style="margin-top: 10px;">
    <button id="start" disabled>Start Benchmark</button>
    <button id="stop" disabled>Stop Benchmark</button>
  </div>
  <label id="status"></label>
  <details open style="position: fixed; background-color: white; right: 0; top: 0; padding: 16px;">

    <summary style="text-align: right;">Options</summary>

    <div>
      <label>Batch sizes</label>
      <input id="batch-sizes" value="1, 2, 4, 8, 16, 32" />
    </div>
    <div>
      <label>Sequence length</label>
      <input id="sequence-length" type="number" min="1" max="512" value="512" />
    </div>
    <div>
      <input id="x-scale" type="checkbox" />
      <label>Log scale (x)</label>

      <input id="y-scale" type="checkbox" />
      <label>Log scale (y)</label>
    </div>
  </details>



</body>

</html>