Skip to content

Commit

Permalink
updated eval
Browse files Browse the repository at this point in the history
  • Loading branch information
bstadt committed Mar 28, 2023
1 parent 6d98aef commit 37cc5c8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
14 changes: 0 additions & 14 deletions configs/eval/generate_llama.yaml

This file was deleted.

8 changes: 6 additions & 2 deletions eval_figures.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from matplotlib import pyplot as plt

plt.figure()
for fpath in glob.glob('./eval_data/*multi*.pkl'):
for fpath in glob.glob('./eval_data/*.pkl'):
parts = fpath.split('__')
model_name = parts[1].replace('model-', '').replace('.pkl', '')
lora_name = parts[2].replace('lora-', '').replace('.pkl', '')
Expand All @@ -13,7 +13,11 @@
perplexities = data['perplexities']
perplexities = np.nan_to_num(perplexities, 100)
perplexities = np.clip(perplexities, 0, 100)
plt.hist(perplexities, label='{}-{}'.format(model_name, lora_name), alpha=.5)
if 'nomic' in fpath:
label = 'GPT4all-lora'
else:
label = 'alpaca-lora'
plt.hist(perplexities, label=label, alpha=.5)

plt.xlabel('Perplexity')
plt.ylabel('Frequency')
Expand Down
Binary file added figs/perplexity_hist.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 37cc5c8

Please sign in to comment.