booydar commited on
Commit ·
701a854
1
Parent(s): 43b9e03
fix: models from main repo; handle nan columns
Browse files- draw_utils.py +3 -0
- setup.sh +3 -2
draw_utils.py
CHANGED
|
@@ -39,6 +39,9 @@ def load_results():
|
|
| 39 |
old_results_filtered = old_results[~old_results['normalized_name'].isin(duplicate_models)]
|
| 40 |
res = pd.concat([old_results_filtered, new_results])
|
| 41 |
res.drop('normalized_name', axis=1, inplace=True)
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
res['task'] = res['task'].str.replace('avg', 'avg(qa1-5)')
|
| 44 |
|
|
|
|
| 39 |
old_results_filtered = old_results[~old_results['normalized_name'].isin(duplicate_models)]
|
| 40 |
res = pd.concat([old_results_filtered, new_results])
|
| 41 |
res.drop('normalized_name', axis=1, inplace=True)
|
| 42 |
+
for col in LENGTHS:
|
| 43 |
+
if col not in res.columns:
|
| 44 |
+
res[col] = np.nan
|
| 45 |
|
| 46 |
res['task'] = res['task'].str.replace('avg', 'avg(qa1-5)')
|
| 47 |
|
setup.sh
CHANGED
|
@@ -1,8 +1,9 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
# Clone repositories
|
| 3 |
-
git clone https://github.com/booydar/babilong
|
| 4 |
git clone https://huggingface.co/datasets/RMT-team/babilong_evals babilong/babilong_evals_new
|
| 5 |
|
| 6 |
# Run the evaluation script
|
| 7 |
cd babilong
|
| 8 |
-
python -m babilong.collect_results --model_name all --save_path ./babilong_results --evals_path ./babilong_evals_new
|
|
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
# Clone repositories
|
| 3 |
+
git clone https://github.com/booydar/babilong
|
| 4 |
git clone https://huggingface.co/datasets/RMT-team/babilong_evals babilong/babilong_evals_new
|
| 5 |
|
| 6 |
# Run the evaluation script
|
| 7 |
cd babilong
|
| 8 |
+
python -m babilong.collect_results --model_name all --save_path ./babilong_results --evals_path ./babilong_evals_new
|
| 9 |
+
python -m babilong.collect_results --model_name all --save_path ./babilong_results --evals_path ./babilong_evals
|