Spaces:
Running
Running
Commit
Β·
5e92e3d
1
Parent(s):
ce4c25e
Move static HTML and MD to its own file
Browse files- static/html_content.py +107 -0
static/html_content.py
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""HTML content for the TuRTLe leaderboard."""
|
| 2 |
+
|
| 3 |
+
HEADER_HTML = """
|
| 4 |
+
<div align="center">
|
| 5 |
+
<img src='/gradio_api/file=logo_new.png' alt='TuRTLe Logo' width='220'/>
|
| 6 |
+
</div>
|
| 7 |
+
"""
|
| 8 |
+
|
| 9 |
+
NAV_BUTTONS_HTML = """
|
| 10 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
|
| 11 |
+
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/js/all.min.js"></script>
|
| 12 |
+
<div style="text-align: center; margin-bottom: 0px; margin-top: 0px;">
|
| 13 |
+
<a href="https://github.com/HPAI-BSC/TuRTLe" target="_blank" style="text-decoration: none; margin-right: 10px;">
|
| 14 |
+
<button style="background: #333; color: white; padding: 10px 14px; border-radius: 8px; border: none; font-size: 16px; cursor: pointer;">
|
| 15 |
+
GitHub Repo
|
| 16 |
+
</button>
|
| 17 |
+
</a>
|
| 18 |
+
|
| 19 |
+
<a href="http://arxiv.org/abs/2504.01986" target="_blank" style="text-decoration: none; margin-right: 10px;">
|
| 20 |
+
<button style="background: #b31b1b; color: white; padding: 10px 14px; border-radius: 8px; border: none; font-size: 16px; cursor: pointer;">
|
| 21 |
+
arXiv MLCAD 2025
|
| 22 |
+
</button>
|
| 23 |
+
</a>
|
| 24 |
+
|
| 25 |
+
<a href="mailto:hpai@bsc.es?subject=TuRTLe%20leaderboard%20new%20entry&body=Link%20to%20HuggingFace%20Model:" style="text-decoration: none;">
|
| 26 |
+
<button style="background: #00674F; color: white; padding: 10px 14px; border-radius: 8px; border: none; font-size: 16px; cursor: pointer;">
|
| 27 |
+
How to submit
|
| 28 |
+
</button>
|
| 29 |
+
</a>
|
| 30 |
+
<p style="margin-top: 15px;">If you have any inquiries or wish to collaborate:
|
| 31 |
+
<a href="mailto:hpai@bsc.es">hpai@bsc.es</a>
|
| 32 |
+
</p>
|
| 33 |
+
</div>
|
| 34 |
+
"""
|
| 35 |
+
|
| 36 |
+
INTRO_HTML = """
|
| 37 |
+
<div style=" margin-top:-10px !important;">
|
| 38 |
+
<p style="margin-bottom: 15px; text-align: start !important;">
|
| 39 |
+
Welcome to the TuRTLe Model Leaderboard! TuRTLe is a
|
| 40 |
+
<b>unified evaluation framework designed to systematically assess Large Language Models (LLMs) in RTL (Register-Transfer Level) generation</b>
|
| 41 |
+
for hardware design.
|
| 42 |
+
Evaluation criteria include <b>syntax correctness, functional accuracy, synthesizability, and post-synthesis quality</b>
|
| 43 |
+
(PPA: Power, Performance, Area). TuRTLe integrates multiple benchmarks to highlight strengths and weaknesses of available LLMs.
|
| 44 |
+
Use the filters below to explore different RTL benchmarks, simulators and models.
|
| 45 |
+
</p>
|
| 46 |
+
<p style="margin-top:10px; text-align:start !important;">
|
| 47 |
+
<span style="font-variant:small-caps; font-weight:bold;">UPDATE (SEPT 2025):</span> Added <span>gpt-oss-20b</span> and <span>gpt-oss-120b</span> to the leaderboard
|
| 48 |
+
</p>
|
| 49 |
+
<p style="margin-top:-6px; text-align:start !important;">
|
| 50 |
+
<span style="font-variant:small-caps; font-weight:bold;">UPDATE (JULY 2025):</span> Our TuRTLe paper was accepted to
|
| 51 |
+
<a href="https://mlcad.org/symposium/2025/" target="_blank">MLCAD 2025</a> in September (Santa Cruz, CA), plus we've added Verilator as a new simulator alongside Icarus Verilog
|
| 52 |
+
</p>
|
| 53 |
+
<p style="margin-top: -6px; text-align: start !important;">
|
| 54 |
+
<span style="font-variant: small-caps; font-weight: bold;">UPDATE (JUNE 2025):</span> We make our framework open-source on GitHub and we add 7 new recent models! For a total of 40 base and instruct models and 5 RTL benchmarks
|
| 55 |
+
</p>
|
| 56 |
+
</div>
|
| 57 |
+
"""
|
| 58 |
+
|
| 59 |
+
LC_FOOTNOTE_HTML = """
|
| 60 |
+
<div id="lc-footnote" style="font-size: 13px; opacity: 0.6; margin-top: -5px; z-index:999; text-align: left;">
|
| 61 |
+
<span style="font-weight: 600; opacity: 1;">β </span>
|
| 62 |
+
<em>Line Completion</em> excludes "reasoning" models since this task targets quick auto-completion<br/>
|
| 63 |
+
Additionally, for <em>Line Completion</em> and <em>Code Completion</em> benchmarks we use <b>Base</b> model variant (if available), and for <em>Spec-to-RTL</em> we use <b>Instruct</b> model variant
|
| 64 |
+
</div>
|
| 65 |
+
"""
|
| 66 |
+
|
| 67 |
+
ABOUT_US_HTML = """
|
| 68 |
+
<div style="max-width: 800px; margin: auto; padding: 20px; border: 1px solid #ccc; border-radius: 10px;">
|
| 69 |
+
<div style="display: flex; justify-content: center; align-items: center; gap: 5%; margin-bottom: 20px;">
|
| 70 |
+
<img src='/gradio_api/file=hpai_logo_grad.png' alt='HPAI Group Logo' style="width: 45%;"/>
|
| 71 |
+
<img src='/gradio_api/file=bsc-logo.png' alt='BSC Logo' style="width: 25%;"/>
|
| 72 |
+
</div>
|
| 73 |
+
|
| 74 |
+
<p style="font-size: 16px; text-align: start;">
|
| 75 |
+
The <b>High-Performance Artificial Intelligence (HPAI)</b> group is part of the
|
| 76 |
+
<a href="https://bsc.es/" target="_blank">Barcelona Supercomputing Center (BSC)</a>.
|
| 77 |
+
This leaderboard is maintained by HPAI as part of our commitment to <b>open science</b>.
|
| 78 |
+
</p>
|
| 79 |
+
|
| 80 |
+
<ul style="font-size: 16px; margin-bottom: 20px; margin-top: 20px;">
|
| 81 |
+
<li><a href="https://hpai.bsc.es/" target="_blank">HPAI Website</a></li>
|
| 82 |
+
<li><a href="https://github.com/HPAI-BSC/" target="_blank">HPAI GitHub Organization Page</a></li>
|
| 83 |
+
<li><a href="https://huggingface.co/HPAI-BSC/" target="_blank">HPAI Hugging Face Organization Page</a></li>
|
| 84 |
+
</ul>
|
| 85 |
+
|
| 86 |
+
<p style="font-size: 16px; margin-top: 15px;">
|
| 87 |
+
Feel free to contact us:
|
| 88 |
+
</p>
|
| 89 |
+
|
| 90 |
+
<p style="font-size: 16px;">Email: <a href="mailto:hpai@bsc.es"><b>hpai@bsc.es</b></a></p>
|
| 91 |
+
</div>
|
| 92 |
+
"""
|
| 93 |
+
|
| 94 |
+
REFERENCES_HTML = """
|
| 95 |
+
<div style="max-width: 800px; margin: auto; padding: 20px; border: 1px solid #ccc; border-radius: 10px;">
|
| 96 |
+
<ul style="font-size: 16px; margin-bottom: 20px; margin-top: 20px;">
|
| 97 |
+
<li><a href="https://github.com/bigcode-project/bigcode-evaluation-harness" target="_blank">Code Generation LM Evaluation Harness</a></li>
|
| 98 |
+
<li>Williams, S. Icarus Verilog [Computer software]. <a href="https://github.com/steveicarus/iverilog" target="_blank">https://github.com/steveicarus/iverilog</a></li>
|
| 99 |
+
<li>Snyder, W., Wasson, P., Galbi, D., & et al. Verilator [Computer software]. <a href="https://github.com/verilator/verilator" target="_blank">https://github.com/verilator/verilator</a></li>
|
| 100 |
+
<li>RTL-Repo: Allam and M. Shalan, "Rtl-repo: A benchmark for evaluating llms on large-scale rtl design projects," in 2024 IEEE LLM Aided Design Workshop (LAD). IEEE, 2024, pp. 1β5.</li>
|
| 101 |
+
<li>VeriGen: S. Thakur, B. Ahmad, H. Pearce, B. Tan, B. Dolan-Gavitt, R. Karri, and S. Garg, "Verigen: A large language model for verilog code generation," ACM Transactions on Design Automation of Electronic Systems, vol. 29, no. 3, pp. 1β31, 2024. </li>
|
| 102 |
+
<li>VerilogEval (I): M. Liu, N. Pinckney, B. Khailany, and H. Ren, "Verilogeval: Evaluating large language models for verilog code generation," in 2023 IEEE/ACM International Conference on Computer Aided Design (ICCAD). IEEE, 2023, pp. 1β8.</li>
|
| 103 |
+
<li>VerilogEval (II): N. Pinckney, C. Batten, M. Liu, H. Ren, and B. Khailany, "Revisiting VerilogEval: A Year of Improvements in Large-Language Models for Hardware Code Generation," ACM Trans. Des. Autom. Electron. Syst., feb 2025. https://doi.org/10.1145/3718088</li>
|
| 104 |
+
<li>RTLLM: Y. Lu, S. Liu, Q. Zhang, and Z. Xie, "Rtllm: An open-source benchmark for design rtl generation with large language model," in 2024 29th Asia and South Pacific Design Automation Conference (ASP-DAC). IEEE, 2024, pp. 722β727.</li>
|
| 105 |
+
</ul>
|
| 106 |
+
</div>
|
| 107 |
+
"""
|