Spaces:
Running
Running
Commit
β’
6f3a090
1
Parent(s):
ab5f5f1
update
Browse files- app.py +3 -3
- src/{text.py β content.py} +2 -0
app.py
CHANGED
@@ -9,7 +9,8 @@ from src.flashattentionv2 import create_fa2_plots
|
|
9 |
from src.bettertransformer import create_bt_plots
|
10 |
from src.llm_perf import get_llm_perf_df
|
11 |
from src.assets import custom_css
|
12 |
-
from src.
|
|
|
13 |
TITLE,
|
14 |
ABOUT,
|
15 |
INTRODUCTION,
|
@@ -19,15 +20,14 @@ from src.text import (
|
|
19 |
)
|
20 |
|
21 |
|
22 |
-
LOGO_URL = "https://huggingface.co/spaces/optimum/llm-perf-leaderboard/resolve/main/logo.png"
|
23 |
MACHINE_TO_HARDWARE = {"hf-dgx-01": "A100-80GB π₯οΈ"}
|
24 |
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
25 |
|
26 |
|
27 |
demo = gr.Blocks(css=custom_css)
|
28 |
with demo:
|
|
|
29 |
gr.HTML(TITLE, elem_classes="title")
|
30 |
-
gr.HTML(f'<img src="{LOGO_URL}">', elem_classes="logo")
|
31 |
gr.Markdown(INTRODUCTION, elem_classes="descriptive-text")
|
32 |
####################### HARDWARE TABS #######################
|
33 |
with gr.Tabs(elem_classes="tabs"):
|
|
|
9 |
from src.bettertransformer import create_bt_plots
|
10 |
from src.llm_perf import get_llm_perf_df
|
11 |
from src.assets import custom_css
|
12 |
+
from src.content import (
|
13 |
+
LOGO,
|
14 |
TITLE,
|
15 |
ABOUT,
|
16 |
INTRODUCTION,
|
|
|
20 |
)
|
21 |
|
22 |
|
|
|
23 |
MACHINE_TO_HARDWARE = {"hf-dgx-01": "A100-80GB π₯οΈ"}
|
24 |
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
25 |
|
26 |
|
27 |
demo = gr.Blocks(css=custom_css)
|
28 |
with demo:
|
29 |
+
gr.HTML(LOGO, elem_classes="logo")
|
30 |
gr.HTML(TITLE, elem_classes="title")
|
|
|
31 |
gr.Markdown(INTRODUCTION, elem_classes="descriptive-text")
|
32 |
####################### HARDWARE TABS #######################
|
33 |
with gr.Tabs(elem_classes="tabs"):
|
src/{text.py β content.py}
RENAMED
@@ -1,3 +1,5 @@
|
|
|
|
|
|
1 |
TITLE = """<h1 align="center" id="space-title">π€ LLM-Perf Leaderboard ποΈ</h1>"""
|
2 |
|
3 |
INTRODUCTION = """
|
|
|
1 |
+
LOGO = '<img src="https://huggingface.co/spaces/optimum/llm-perf-leaderboard/resolve/main/logo.png">'
|
2 |
+
|
3 |
TITLE = """<h1 align="center" id="space-title">π€ LLM-Perf Leaderboard ποΈ</h1>"""
|
4 |
|
5 |
INTRODUCTION = """
|