Skip to content
Snippets Groups Projects
Commit 0f7444fc authored by Haoran Qiu's avatar Haoran Qiu :dart:
Browse files

nit

parent 2bb85aa0
Branches main
No related tags found
No related merge requests found
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
import matplotlib
matplotlib.rcParams['pdf.fonttype'] = 42
df = pd.read_csv('token_lengths_all.csv')
print(df.head())
......@@ -18,11 +21,10 @@ df = df[(df['output_token_length'] < 2048)]
df = df.replace('stablelm-tuned-alpha-7b', 'stablelm-alpha-7b')
fig, ax = plt.subplots(figsize=(6.4, 3.6))
sns.boxplot(data=df, x="model", y="output_token_length", fliersize=3, showfliers=False, whis=1.5)
sns.boxplot(data=df, x="model", y="output_token_length", fliersize=3, showfliers=False, whis=1.5, palette="Spectral")
plt.xticks(rotation=90)
plt.xlabel('')
plt.ylabel('Output Token Length')
# sns.color_palette("Spectral", as_cmap=True)
plt.grid(True, axis='y', zorder=-1, linestyle='dashed', color='gray', alpha=0.5)
plt.tight_layout()
# plt.show()
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment