-
Notifications
You must be signed in to change notification settings - Fork 12
Remove Git LFS from repo #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,4 +2,5 @@ | |
| corpus.jsonl | ||
| corpus.jsonl.gz | ||
| results_dataset_to_upload | ||
| *.pyc | ||
| *.pyc | ||
| videos/*.mp4 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,6 +3,7 @@ | |
| import pandas as pd | ||
| import pickle | ||
| from yaml import safe_load | ||
| from .elo_analysis import load_results | ||
|
|
||
| RENAME_KEYS = { | ||
| "organization": "Organization", | ||
|
|
@@ -15,7 +16,7 @@ | |
| } | ||
|
|
||
| def main( | ||
| elo_rating_pkl: str, | ||
| elo_rating_folder: str, | ||
| output_csv: str | ||
| ): | ||
|
|
||
|
|
@@ -31,8 +32,7 @@ def main( | |
| if key in model_info[model]: | ||
| model_info[model][RENAME_KEYS[key]] = model_info[model].pop(key) | ||
|
|
||
| with open(elo_rating_pkl, "rb") as fin: | ||
| elo_rating_results = pickle.load(fin) | ||
| elo_rating_results = load_results(elo_rating_folder) | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Results are now saved and loaded as folders, but it does make the commits quite long as each dataframe is a separate file... sorry! |
||
|
|
||
| anony_elo_rating_results = elo_rating_results["anony"] | ||
| full_elo_rating_results = elo_rating_results["full"] | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,22 +1,25 @@ | ||
| #!/bin/bash | ||
|
|
||
| mkdir -p results | ||
|
|
||
| mkdir -p results/latest | ||
|
Comment on lines
3
to
+4
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably don't need |
||
| # For battle data | ||
|
|
||
| for task in "retrieval" "clustering" "sts"; do | ||
| python -m arena_elo.clean_battle_data --task_name $task | ||
| battle_cutoff_date=`cat cut_off_date.txt` && rm cut_off_date.txt && echo "$task battle data last updated on $battle_cutoff_date" | ||
| mkdir -p ./results/$battle_cutoff_date | ||
| cp clean_battle_${task}_$battle_cutoff_date.json ./results/latest/clean_battle_$task.json | ||
| mv clean_battle_${task}_$battle_cutoff_date.json ./results/$battle_cutoff_date/clean_results_${task}.json | ||
| python3 -m arena_elo.elo_analysis --clean-battle-file ./results/$battle_cutoff_date/clean_results_${task}.json --num-bootstrap 1 | ||
| mv ./elo_results_$battle_cutoff_date.pkl ./results/$battle_cutoff_date/elo_results_${task}.pkl | ||
| python -m arena_elo.generate_leaderboard \ | ||
| --elo_rating_pkl "./results/$battle_cutoff_date/elo_results_${task}.pkl" \ | ||
| --output_csv "./results/$battle_cutoff_date/${task}_leaderboard.csv" | ||
| mv ./elo_results_$battle_cutoff_date ./results/$battle_cutoff_date/elo_results_${task} | ||
| cmd="""python -m arena_elo.generate_leaderboard \ | ||
| --elo_rating_folder "./results/$battle_cutoff_date/elo_results_${task}" \ | ||
| --output_csv "./results/$battle_cutoff_date/${task}_leaderboard.csv"""" | ||
| echo $cmd | ||
| eval $cmd | ||
| mkdir -p ./results/latest | ||
| cp ./results/$battle_cutoff_date/${task}_leaderboard.csv ./results/latest/${task}_leaderboard.csv | ||
| cp ./results/$battle_cutoff_date/elo_results_${task}.pkl ./results/latest/elo_results_${task}.pkl | ||
| cp -R ./results/$battle_cutoff_date/elo_results_${task} ./results/latest/elo_results_${task} | ||
| echo "$task leaderboard updated" | ||
| done | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,3 +4,4 @@ gritlm | |
| mteb | ||
| plotly | ||
| umap-learn | ||
| kaleido | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Apparently is needed to write Plotly plots to file. We could not save to file, but it was saved in the pickle files, so I thought we might as well write it to file for now. |
||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| key,Model,Arena Elo rating (anony),Arena Elo rating (full),MTEB Overall Avg,MTEB Retrieval Avg,MTEB Clustering Avg,MTEB STS Avg,License,Organization,Link | ||
| sentence-transformers/all-MiniLM-L6-v2,sentence-transformers/all-MiniLM-L6-v2,1051.7304902423814,1036.2219844563203,56.26,41.95,42.35,78.9,Apache-2.0,Sentence Transformers,https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2 | ||
| intfloat/multilingual-e5-small,intfloat/multilingual-e5-small,948.2695097576186,963.7780155436797,57.87,46.64,37.08,79.1,MIT License,Microsoft,https://huggingface.co/intfloat/multilingual-e5-small | ||
| sentence-transformers/all-MiniLM-L6-v2,sentence-transformers/all-MiniLM-L6-v2,1051.7304902424,1036.2219844563,56.26,41.95,42.35,78.9,Apache-2.0,Sentence Transformers,https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2 | ||
| intfloat/multilingual-e5-small,intfloat/multilingual-e5-small,948.2695097576,963.7780155437,57.87,46.64,37.08,79.1,MIT License,Microsoft,https://huggingface.co/intfloat/multilingual-e5-small |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"index":0,"sentence-transformers\/all-MiniLM-L6-v2":1094.4361603648,"intfloat\/multilingual-e5-small":905.5638396352} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| {"index":"sentence-transformers\/all-MiniLM-L6-v2","0":1051.7304902424} | ||
| {"index":"intfloat\/multilingual-e5-small","0":948.2695097576} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 987.0071375154072 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 1012.9928624845928 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 2024-07-04 12:16:37 PDT |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 1720120597.967 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| | Rank | Model | Elo Rating | Description | | ||
| | --- | --- | --- | --- | | ||
| | 1 | 🥇 [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) | 1052 | all-MiniLM-L6-v2 by Sentence Transformers | | ||
| | 2 | 🥈 [intfloat/multilingual-e5-small](https://huggingface.co/intfloat/multilingual-e5-small) | 948 | multilingual-e5-small by Microsoft | |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| {"index":"intfloat\/multilingual-e5-small","rating":948.2695097576,"variance":null,"rating_q975":905.5638396352,"rating_q025":905.5638396352,"num_battles":24} | ||
| {"index":"sentence-transformers\/all-MiniLM-L6-v2","rating":1051.7304902424,"variance":null,"rating_q975":1094.4361603648,"rating_q025":1094.4361603648,"num_battles":24} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| bt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At runtime we download the videos from Huggingface. No need to keep them in this repo as I assume they are static and people won't be iterating on them.