Spaces:
Running
Running
Jellyfish042
commited on
Commit
·
54a0a2e
1
Parent(s):
b852516
bug fix
Browse files
app.py
CHANGED
@@ -318,9 +318,14 @@ def create_scaling_plot(all_data, period):
|
|
318 |
x='Log Params(B)',
|
319 |
y='Log Compression Rate (%)',
|
320 |
title='Compression Rate Scaling Law',
|
321 |
-
hover_name='Name'
|
|
|
322 |
)
|
323 |
|
|
|
|
|
|
|
|
|
324 |
names_to_connect = ['Meta-Llama-3-8B',
|
325 |
'stablelm-3b-4e1t',
|
326 |
'stablelm-2-1_6b',
|
|
|
318 |
x='Log Params(B)',
|
319 |
y='Log Compression Rate (%)',
|
320 |
title='Compression Rate Scaling Law',
|
321 |
+
hover_name='Name',
|
322 |
+
custom_data=['Params(B)', 'Compression Rate (%)']
|
323 |
)
|
324 |
|
325 |
+
fig.update_traces(
|
326 |
+
hovertemplate="<b>%{hovertext}</b><br>Params(B): %{customdata[0]:.2f} B<br>Compression Rate (%): %{customdata[1]:.2f}<extra></extra>"
|
327 |
+
)
|
328 |
+
|
329 |
names_to_connect = ['Meta-Llama-3-8B',
|
330 |
'stablelm-3b-4e1t',
|
331 |
'stablelm-2-1_6b',
|