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 
 
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502


<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>LLM Benchmarks — Overall Rank</title>

<style>
  /* ====== Base page ====== */
  :root {
    --bg: #0b1220;         /* page background */
    --panel: #0e1626;      /* table background */
    --panel-2: #0b1220;    /* zebra alt */
    --border: #1f2937;     /* borders */
    --text: #e5e7eb;       /* body text */
    --muted: #a3aab8;      /* caption */
    --head-bg: #111827;    /* header background */
    --head-fg: #ffffff;    /* header text */
    --accent: #60a5fa;     /* subtle accents */
    --shadow: 0 8px 24px rgba(0,0,0,.35);
  }
  html, body { height: 100%; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 14px/1.45 Inter, Roboto, "Helvetica Neue", Arial, system-ui, -apple-system, Segoe UI, Noto Sans, sans-serif;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "tnum" 1, "lnum" 1; /* tabular lining numbers */
  }

  /* ====== Layout ====== */
  .wrap {
    max-width: 1200px;
    margin: 32px auto 48px;
    padding: 0 16px;
  }
  .title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .2px;
  }
  .subtitle {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 13px;
  }

  /* ====== Table container (scroll if narrow) ====== */
  .table-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: auto; /* horizontal scroll if needed */
  }

  /* ====== Table ====== */
  table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 720px; /* avoid cramped columns */
  }
  thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--head-bg);
    color: var(--head-fg);
    text-align: left;
    font-weight: 700;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
  }
  tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
  }
  tbody tr:nth-child(odd)  { background: var(--panel-2); }
  tbody tr:nth-child(even) { background: var(--panel); }
  tbody tr:hover { outline: 2px solid rgba(96,165,250,.35); outline-offset: -2px; }

  /* Align text vs numbers */
  /* Left-align the model name; right-align time/rank columns by default */
  tbody td:first-child, thead th:first-child { text-align: left; }
  tbody td:not(:first-child), thead th:not(:first-child) { text-align: right; }

  /* Rounded corners for the sticky header */
  thead th:first-child  { border-top-left-radius: 14px; }
  thead th:last-child   { border-top-right-radius: 14px; }
  tbody tr:last-child td:first-child { border-bottom-left-radius: 14px; }
  tbody tr:last-child td:last-child  { border-bottom-right-radius: 14px; }

  /* Top-3 emphasis (will be added as a class via JS) */
  .top1 td, .top2 td, .top3 td { font-weight: 800; }
  .medal { margin-left: 6px; font-size: 13px; opacity: .95; }

  /* Caption style if your dump includes <caption> */
  caption {
    caption-side: top;
    padding: 14px 14px 6px;
    text-align: left;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: .2px;
  }

  /* Make links subtle if you add them later */
  a { color: var(--accent); text-decoration: none; }
  a:hover { text-decoration: underline; }
</style>
</head>
<body>
  <div class="wrap">
    <h1 class="title">Overall Rank (Average Rank)</h1>

    <div class="table-card">
      <!-- 🔽 Paste your raw HTML table inside this div -->
      <div id="table-slot">
        <!-- Example: your pandas to_html dump goes here -->
        <!-- <table> ... </table> -->
        <table border="1" class="dataframe">
  <thead>
    <tr style="text-align: right;">
      <th>Model Name</th>
      <th>Total Time</th>
      <th>GPU Util Time</th>
      <th>Mean Score</th>
      <th>Overall Rank</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>google_gemma-3-12b-it</td>
      <td>15h 45m</td>
      <td>14h 8m</td>
      <td>0.6038</td>
      <td>1</td>
    </tr>
    <tr>
      <td>Qwen_Qwen3-14B (8bit)</td>
      <td>29h 45m</td>
      <td>17h 29m</td>
      <td>0.5961</td>
      <td>2</td>
    </tr>
    <tr>
      <td>openchat_openchat-3.6-8b-20240522</td>
      <td>7h 51m</td>
      <td>6h 59m</td>
      <td>0.5871</td>
      <td>3</td>
    </tr>
    <tr>
      <td>Qwen_Qwen3-8B</td>
      <td>15h 31m</td>
      <td>13h 44m</td>
      <td>0.5859</td>
      <td>4</td>
    </tr>
    <tr>
      <td>Qwen_Qwen2.5-7B-Instruct</td>
      <td>9h 36m</td>
      <td>8h 33m</td>
      <td>0.5788</td>
      <td>5</td>
    </tr>
    <tr>
      <td>Qwen_Qwen2.5-14B-Instruct (8bit)</td>
      <td>52h 44m</td>
      <td>29h 32m</td>
      <td>0.5775</td>
      <td>6</td>
    </tr>
    <tr>
      <td>01-ai_Yi-1.5-9B</td>
      <td>11h 43m</td>
      <td>10h 26m</td>
      <td>0.5676</td>
      <td>7</td>
    </tr>
    <tr>
      <td>Qwen_Qwen2.5-7B-Instruct-1M</td>
      <td>11h 17m</td>
      <td>10h 10m</td>
      <td>0.5672</td>
      <td>8</td>
    </tr>
    <tr>
      <td>meta-llama_Llama-3.1-8B-Instruct</td>
      <td>12h 19m</td>
      <td>10h 52m</td>
      <td>0.5653</td>
      <td>9</td>
    </tr>
    <tr>
      <td>01-ai_Yi-1.5-9B-Chat</td>
      <td>13h 54m</td>
      <td>12h 15m</td>
      <td>0.5621</td>
      <td>10</td>
    </tr>
    <tr>
      <td>mistralai_Ministral-8B-Instruct-2410</td>
      <td>10h 46m</td>
      <td>9h 27m</td>
      <td>0.5576</td>
      <td>11</td>
    </tr>
    <tr>
      <td>meta-llama_Meta-Llama-3-8B-Instruct</td>
      <td>6h 30m</td>
      <td>5h 46m</td>
      <td>0.5528</td>
      <td>12</td>
    </tr>
    <tr>
      <td>Qwen_Qwen3-4B</td>
      <td>5h 51m</td>
      <td>5h 3m</td>
      <td>0.5510</td>
      <td>13</td>
    </tr>
    <tr>
      <td>NousResearch_Hermes-2-Pro-Mistral-7B</td>
      <td>8h 27m</td>
      <td>7h 28m</td>
      <td>0.5480</td>
      <td>14</td>
    </tr>
    <tr>
      <td>mistralai_Mistral-7B-Instruct-v0.3</td>
      <td>8h 38m</td>
      <td>7h 41m</td>
      <td>0.5451</td>
      <td>15</td>
    </tr>
    <tr>
      <td>google_gemma-3-4b-it</td>
      <td>4h 51m</td>
      <td>3h 50m</td>
      <td>0.5368</td>
      <td>16</td>
    </tr>
    <tr>
      <td>01-ai_Yi-1.5-6B-Chat</td>
      <td>8h 4m</td>
      <td>7h 1m</td>
      <td>0.5335</td>
      <td>17</td>
    </tr>
    <tr>
      <td>01-ai_Yi-1.5-6B</td>
      <td>4h 28m</td>
      <td>3h 54m</td>
      <td>0.5312</td>
      <td>18</td>
    </tr>
    <tr>
      <td>Qwen_Qwen2-7B-Instruct</td>
      <td>11h 30m</td>
      <td>10h 11m</td>
      <td>0.5271</td>
      <td>19</td>
    </tr>
    <tr>
      <td>deepseek-ai_DeepSeek-R1-0528-Qwen3-8B</td>
      <td>17h 57m</td>
      <td>15h 30m</td>
      <td>0.5219</td>
      <td>20</td>
    </tr>
    <tr>
      <td>meta-llama_Llama-3.2-3B-Instruct</td>
      <td>7h 12m</td>
      <td>5h 57m</td>
      <td>0.5048</td>
      <td>21</td>
    </tr>
    <tr>
      <td>Qwen_Qwen2.5-3B-Instruct</td>
      <td>7h 48m</td>
      <td>6h 30m</td>
      <td>0.4939</td>
      <td>22</td>
    </tr>
    <tr>
      <td>Qwen_Qwen2.5-Math-7B</td>
      <td>27h 21m</td>
      <td>24h 38m</td>
      <td>0.4907</td>
      <td>23</td>
    </tr>
    <tr>
      <td>deepseek-ai_deepseek-llm-7b-chat</td>
      <td>10h 6m</td>
      <td>9h 8m</td>
      <td>0.4869</td>
      <td>24</td>
    </tr>
    <tr>
      <td>deepseek-ai_DeepSeek-R1-Distill-Llama-8B</td>
      <td>11h 46m</td>
      <td>10h 36m</td>
      <td>0.4830</td>
      <td>25</td>
    </tr>
    <tr>
      <td>meta-llama_Llama-2-13b-hf</td>
      <td>19h 21m</td>
      <td>17h 38m</td>
      <td>0.4819</td>
      <td>26</td>
    </tr>
    <tr>
      <td>meta-llama_Llama-2-13b-chat-hf</td>
      <td>17h 8m</td>
      <td>15h 37m</td>
      <td>0.4813</td>
      <td>27</td>
    </tr>
    <tr>
      <td>deepseek-ai_DeepSeek-R1-Distill-Qwen-7B</td>
      <td>6h 28m</td>
      <td>5h 43m</td>
      <td>0.4644</td>
      <td>28</td>
    </tr>
    <tr>
      <td>Qwen_Qwen2.5-1.5B-Instruct</td>
      <td>3h 20m</td>
      <td>2h 36m</td>
      <td>0.4608</td>
      <td>29</td>
    </tr>
    <tr>
      <td>Qwen_Qwen3-1.7B</td>
      <td>4h 25m</td>
      <td>3h 36m</td>
      <td>0.4597</td>
      <td>30</td>
    </tr>
    <tr>
      <td>Qwen_Qwen2.5-Math-7B-Instruct</td>
      <td>5h 37m</td>
      <td>4h 57m</td>
      <td>0.4596</td>
      <td>31</td>
    </tr>
    <tr>
      <td>meta-llama_Llama-2-7b-chat-hf</td>
      <td>6h 57m</td>
      <td>6h 7m</td>
      <td>0.4525</td>
      <td>32</td>
    </tr>
    <tr>
      <td>meta-llama_Llama-2-7b-hf</td>
      <td>5h 42m</td>
      <td>4h 59m</td>
      <td>0.4516</td>
      <td>33</td>
    </tr>
    <tr>
      <td>deepseek-ai_deepseek-llm-7b-base</td>
      <td>7h 11m</td>
      <td>6h 26m</td>
      <td>0.4451</td>
      <td>34</td>
    </tr>
    <tr>
      <td>deepseek-ai_deepseek-math-7b-rl</td>
      <td>8h 2m</td>
      <td>7h 12m</td>
      <td>0.4419</td>
      <td>35</td>
    </tr>
    <tr>
      <td>meta-llama_Llama-3.2-1B-Instruct</td>
      <td>3h 30m</td>
      <td>2h 35m</td>
      <td>0.4219</td>
      <td>36</td>
    </tr>
    <tr>
      <td>google_gemma-3-1b-it</td>
      <td>6h 50m</td>
      <td>4h 52m</td>
      <td>0.4013</td>
      <td>37</td>
    </tr>
    <tr>
      <td>deepseek-ai_DeepSeek-R1-Distill-Qwen-1.5B</td>
      <td>3h 40m</td>
      <td>2h 52m</td>
      <td>0.3986</td>
      <td>38</td>
    </tr>
    <tr>
      <td>Qwen_Qwen2.5-Math-1.5B-Instruct</td>
      <td>3h 25m</td>
      <td>2h 39m</td>
      <td>0.3838</td>
      <td>39</td>
    </tr>
    <tr>
      <td>Qwen_Qwen3-0.6B</td>
      <td>3h 45m</td>
      <td>2h 53m</td>
      <td>0.3816</td>
      <td>40</td>
    </tr>
    <tr>
      <td>Qwen_Qwen2.5-0.5B-Instruct</td>
      <td>2h 34m</td>
      <td>1h 48m</td>
      <td>0.3799</td>
      <td>41</td>
    </tr>
  </tbody>
</table>

      </div>
    </div>
  </div>

<script>
/* ========= Post-processing “magic” =========
   - Finds the “Overall Rank” column by header text.
   - Marks rows with ranks 1,2,3 as .top1/.top2/.top3.
   - Appends 🥇/🥈/🥉 after the rank cell.
   - Right/left aligns based on header names (fallback if your dump
     didn’t preserve <thead> or orders change).
*/
(function () {
  const slot = document.getElementById('table-slot');
  const table = slot.querySelector('table');
  if (!table) return;

  // Ensure we have a THEAD; some dumps put <tr> directly
  let thead = table.querySelector('thead');
  if (!thead) {
    const firstRow = table.querySelector('tr');
    if (firstRow) {
      thead = document.createElement('thead');
      const headRow = firstRow.cloneNode(true);
      thead.appendChild(headRow);
      table.insertBefore(thead, firstRow);
      firstRow.remove(); // move first row into thead
      const tbody = table.querySelector('tbody') || table.createTBody();
      // move remaining rows into tbody if they aren't already
      Array.from(table.querySelectorAll('tr')).forEach(tr => tbody.appendChild(tr));
    }
  }

  const headCells = Array.from(table.querySelectorAll('thead th, thead td')).map(th => th.textContent.trim());
  const bodyRows  = Array.from(table.querySelectorAll('tbody tr'));

  // Column indices
  const nameIdx = headCells.findIndex(h => /model\s*name/i.test(h));
  const rankIdx = headCells.findIndex(h => /overall\s*rank/i.test(h));
  const totalIdx = headCells.findIndex(h => /total\s*time/i.test(h));
  const utilIdx  = headCells.findIndex(h => /gpu\s*util\s*time/i.test(h));

  // Fallback alignments if header order is unusual
  bodyRows.forEach(row => {
    const cells = row.children;
    if (nameIdx >= 0 && cells[nameIdx]) cells[nameIdx].style.textAlign = 'left';
    [rankIdx, totalIdx, utilIdx].forEach(i => {
      if (i >= 0 && cells[i]) cells[i].style.textAlign = 'right';
    });
  });

  // Top-3 visuals
  if (rankIdx >= 0) {
    bodyRows.forEach(row => {
      const cell = row.children[rankIdx];
      if (!cell) return;
      const n = parseInt((cell.textContent || '').replace(/[^\d]/g, ''), 10);
      if (n === 1) { row.classList.add('top1'); cell.insertAdjacentHTML('beforeend', '<span class="medal">🥇</span>'); }
      if (n === 2) { row.classList.add('top2'); cell.insertAdjacentHTML('beforeend', '<span class="medal">🥈</span>'); }
      if (n === 3) { row.classList.add('top3'); cell.insertAdjacentHTML('beforeend', '<span class="medal">🥉</span>'); }
    });
  }

  // Optional: shrink overly long model names gracefully
  if (nameIdx >= 0) {
    bodyRows.forEach(row => {
      const c = row.children[nameIdx];
      if (c) { c.style.whiteSpace = 'nowrap'; c.style.textOverflow = 'ellipsis'; c.style.overflow = 'hidden'; maxNameWidth(c, 520); }
    });
  }
  function maxNameWidth(td, px) { td.style.maxWidth = px + 'px'; }
})();
</script>
</body>
</html>