Jellyfish042 commited on
Commit
ef602ff
·
1 Parent(s): b5aa171

period dependent scaling law

Browse files
Files changed (1) hide show
  1. app.py +10 -6
app.py CHANGED
@@ -307,12 +307,16 @@ def create_scaling_plot(all_data, period):
307
  fig.update_traces(
308
  hovertemplate="<b>%{hovertext}</b><br>Params(B): %{customdata[0]:.2f} B<br>Compression Rate (%): %{customdata[1]:.2f}<extra></extra>"
309
  )
310
-
311
- names_to_connect = ['Meta-Llama-3.1-8B',
312
- 'stablelm-3b-4e1t',
313
- 'Qwen2-1.5B',
314
- 'TinyLlama-1.1B-intermediate-step-1431k-3T',
315
- 'Mistral-Nemo-Base-2407']
 
 
 
 
316
  connection_points = new_df[new_df['Name'].isin(names_to_connect)]
317
 
318
  new_df['Color'] = new_df['Name'].apply(lambda name: '#39C5BB' if name in names_to_connect else '#636efa')
 
307
  fig.update_traces(
308
  hovertemplate="<b>%{hovertext}</b><br>Params(B): %{customdata[0]:.2f} B<br>Compression Rate (%): %{customdata[1]:.2f}<extra></extra>"
309
  )
310
+
311
+ names_to_connect_dict = {
312
+ '2024-05': ['Meta-Llama-3-8B', 'stablelm-3b-4e1t', 'Qwen2-1.5B', 'TinyLlama-1.1B-intermediate-step-1431k-3T', 'Mistral-Nemo-Base-2407'],
313
+ '2024-06': ['Meta-Llama-3-8B', 'stablelm-3b-4e1t', 'Qwen2-1.5B', 'TinyLlama-1.1B-intermediate-step-1431k-3T', 'Mistral-Nemo-Base-2407'],
314
+ '2024-07': ['Meta-Llama-3.1-8B', 'stablelm-3b-4e1t', 'Qwen2-1.5B', 'TinyLlama-1.1B-intermediate-step-1431k-3T', 'Mistral-Nemo-Base-2407'],
315
+ '2024-08': ['Meta-Llama-3.1-8B', 'Rene-v0.1-1.3b-pytorch', 'stablelm-3b-4e1t', 'Qwen2-1.5B', 'TinyLlama-1.1B-intermediate-step-1431k-3T', 'Mistral-Nemo-Base-2407'],
316
+ }
317
+
318
+ names_to_connect = names_to_connect_dict.get(period, names_to_connect_dict['2024-08'])
319
+
320
  connection_points = new_df[new_df['Name'].isin(names_to_connect)]
321
 
322
  new_df['Color'] = new_df['Name'].apply(lambda name: '#39C5BB' if name in names_to_connect else '#636efa')