Hch Li
commited on
Commit
·
c91973c
1
Parent(s):
584c000
fixed visualization bug
Browse files
app.py
CHANGED
|
@@ -63,6 +63,10 @@ def create_prefill_visualization(filtered_data):
|
|
| 63 |
hover_data=['Model', 'Dataset'],
|
| 64 |
title='Prefill Stage: Quality vs TTFT (s) by Method'
|
| 65 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
return fig
|
| 67 |
|
| 68 |
def create_decode_visualization(filtered_data):
|
|
@@ -76,6 +80,10 @@ def create_decode_visualization(filtered_data):
|
|
| 76 |
hover_data=['Model', 'Dataset'],
|
| 77 |
title='Decode Stage: Quality vs Throughput by Method'
|
| 78 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
return fig
|
| 80 |
|
| 81 |
# Load the data from the /data folder
|
|
@@ -84,7 +92,6 @@ data = load_data(data_dir)
|
|
| 84 |
|
| 85 |
# Gradio app UI and functionality
|
| 86 |
def create_gradio_app():
|
| 87 |
-
print(plotly.__version__)
|
| 88 |
|
| 89 |
with gr.Blocks() as app:
|
| 90 |
with gr.Row():
|
|
@@ -197,8 +204,6 @@ This demo leaderboard allows users to explore and compare different KV cache imp
|
|
| 197 |
with gr.Row():
|
| 198 |
gr.Markdown("### Decode-Stage Visualization")
|
| 199 |
with gr.Row():
|
| 200 |
-
print(create_decode_visualization(decode_default))
|
| 201 |
-
|
| 202 |
decode_plot = gr.Plot(
|
| 203 |
value=create_decode_visualization(decode_default)
|
| 204 |
)
|
|
|
|
| 63 |
hover_data=['Model', 'Dataset'],
|
| 64 |
title='Prefill Stage: Quality vs TTFT (s) by Method'
|
| 65 |
)
|
| 66 |
+
fig.update_layout(
|
| 67 |
+
yaxis=dict(range=[0, 100]), # Set y-axis (Quality) range from 0 to 1
|
| 68 |
+
xaxis=dict(range=[0, None]) # Set x-axis (TTFT (s)) to start from 0
|
| 69 |
+
)
|
| 70 |
return fig
|
| 71 |
|
| 72 |
def create_decode_visualization(filtered_data):
|
|
|
|
| 80 |
hover_data=['Model', 'Dataset'],
|
| 81 |
title='Decode Stage: Quality vs Throughput by Method'
|
| 82 |
)
|
| 83 |
+
fig.update_layout(
|
| 84 |
+
yaxis=dict(range=[0, 100]), # Set y-axis (Quality) range from 0 to 1
|
| 85 |
+
xaxis=dict(range=[0, None]) # Set x-axis (Throughput (token/s)) to start from 0
|
| 86 |
+
)
|
| 87 |
return fig
|
| 88 |
|
| 89 |
# Load the data from the /data folder
|
|
|
|
| 92 |
|
| 93 |
# Gradio app UI and functionality
|
| 94 |
def create_gradio_app():
|
|
|
|
| 95 |
|
| 96 |
with gr.Blocks() as app:
|
| 97 |
with gr.Row():
|
|
|
|
| 204 |
with gr.Row():
|
| 205 |
gr.Markdown("### Decode-Stage Visualization")
|
| 206 |
with gr.Row():
|
|
|
|
|
|
|
| 207 |
decode_plot = gr.Plot(
|
| 208 |
value=create_decode_visualization(decode_default)
|
| 209 |
)
|
data/decode_H2O_Mistral-7B-v0.3_LongGenBench.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"Quality":
|
| 3 |
"Throughput (token/s)": 626.708,
|
| 4 |
"Link": "http://example.com/decode"
|
| 5 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"Quality": 90,
|
| 3 |
"Throughput (token/s)": 626.708,
|
| 4 |
"Link": "http://example.com/decode"
|
| 5 |
}
|
data/decode_StreamingLLM_Mistral-7B-v0.3_LongGenBench.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"Quality":
|
| 3 |
"Throughput (token/s)": 893.68,
|
| 4 |
"Link": "http://example.com/decode"
|
| 5 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"Quality": 90,
|
| 3 |
"Throughput (token/s)": 893.68,
|
| 4 |
"Link": "http://example.com/decode"
|
| 5 |
}
|
data/decode_vLLM_Mistral-7B-v0.3_LongGenBench.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"Quality":
|
| 3 |
"Throughput (token/s)": 278.95,
|
| 4 |
"Link": "http://example.com/decode"
|
| 5 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"Quality": 90,
|
| 3 |
"Throughput (token/s)": 278.95,
|
| 4 |
"Link": "http://example.com/decode"
|
| 5 |
}
|