-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a22bd58
commit f51f960
Showing
6 changed files
with
171 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
# Backend de "La Leaderboard" | ||
|
||
- To evaluate the models in the requests dataset, run `python3 -m main_eval_queue.py` | ||
- To evaluate the combination of models and tasks in tasks_todo.json, run `python3 -m main_eval_json.py` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"flax-community/gpt-2-spanish": "float32", | ||
"google/gemma-2-9b": "float32", | ||
"google/gemma-2-2b": "float32", | ||
"bertin-project/bertin-gpt-j-6B": "float32", | ||
"gplsi/Aitana-6.3B": "bfloat16", | ||
"projecte-aina/aguila-7b": "float16", | ||
"01-ai/Yi-1.5-9B": "bfloat16", | ||
"microsoft/phi-1_5": "float16", | ||
"occiglot/occiglot-7b-es-en": "float32", | ||
"tiiuae/falcon-7b": "bfloat16", | ||
"HiTZ/latxa-7b-v1.2": "bfloat16", | ||
"meta-llama/Meta-Llama-3.1-8B": "bfloat16", | ||
"mistralai/Mistral-7B-v0.3": "bfloat16", | ||
"projecte-aina/FLOR-6.3B": "float16", | ||
"proxectonos/Carballo-bloom-1.3B": "float16", | ||
"BSC-LT/salamandra-2b": "bfloat16", | ||
"BSC-LT/salamandra-7b": "bfloat16", | ||
"meta-llama/Llama-3.2-1B": "bfloat16", | ||
"meta-llama/Llama-3.2-3B": "bfloat16", | ||
"bertin-project/Gromenauer-7B": "float32" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
{ | ||
"google/gemma-2-2b": [ | ||
"escola", | ||
"catcola", | ||
"parafraseja", | ||
"paws_ca", | ||
"xnli_ca" | ||
], | ||
"HiTZ/latxa-7b-v1.2": [], | ||
"proxectonos/Carballo-bloom-1.3B": [ | ||
"mgsm_direct_es", | ||
"mgsm_direct_ca", | ||
"mgsm_direct_gl" | ||
], | ||
"projecte-aina/aguila-7b": [ | ||
"escola", | ||
"mgsm_direct_gl" | ||
], | ||
"projecte-aina/FLOR-6.3B": [], | ||
"gplsi/Aitana-6.3B": [ | ||
"escola", | ||
"catcola", | ||
"paws_ca", | ||
"xnli_ca" | ||
], | ||
"occiglot/occiglot-7b-es-en": [ | ||
"eus_reading", | ||
"summarization_gl" | ||
], | ||
"bertin-project/bertin-gpt-j-6B": [ | ||
"escola", | ||
"mgsm_direct_es", | ||
"catcola", | ||
"mgsm_direct_ca", | ||
"paws_ca", | ||
"xnli_ca", | ||
"mgsm_direct_gl" | ||
], | ||
"meta-llama/Meta-Llama-3.1-8B": [], | ||
"mistralai/Mistral-7B-v0.3": [], | ||
"01-ai/Yi-1.5-9B": [ | ||
"escola", | ||
"mgsm_direct_es", | ||
"catcola", | ||
"paws_ca", | ||
"xnli_ca" | ||
], | ||
"microsoft/phi-1_5": [ | ||
"escola", | ||
"catcola", | ||
"mgsm_direct_ca", | ||
"paws_ca", | ||
"xnli_ca", | ||
"mgsm_direct_gl" | ||
], | ||
"tiiuae/falcon-7b": [ | ||
"escola", | ||
"catcola", | ||
"paws_ca", | ||
"xnli_ca" | ||
], | ||
"bertin-project/Gromenauer-7B": [ | ||
"escola", | ||
"mgsm_direct_es", | ||
"catcola", | ||
"paws_ca", | ||
"xnli_ca" | ||
], | ||
"BSC-LT/salamandra-2b": [ | ||
"escola", | ||
"mgsm_direct_es", | ||
"catcola", | ||
"paws_ca", | ||
"xnli_ca" | ||
], | ||
"BSC-LT/salamandra-7b": [ | ||
"escola", | ||
"catcola", | ||
"paws_ca", | ||
"xnli_ca" | ||
], | ||
"meta-llama/Llama-3.2-1B": [ | ||
"escola", | ||
"wnli_es", | ||
"catcola", | ||
"paws_ca", | ||
"wnli_ca", | ||
"xnli_ca" | ||
], | ||
"meta-llama/Llama-3.2-3B": [ | ||
"escola", | ||
"wnli_es", | ||
"catcola", | ||
"paws_ca", | ||
"wnli_ca", | ||
"xnli_ca" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import json | ||
|
||
from src.backend.manage_requests import EvalRequest | ||
from src.backend.run_eval_suite_harness import run_evaluation | ||
from src.envs import ( | ||
BATCH_SIZE, | ||
DEVICE, | ||
EVAL_RESULTS_PATH_BACKEND, | ||
LEADERBOARD_GROUP, | ||
LIMIT, | ||
LOGS_REPO, | ||
NUM_FEWSHOT, | ||
RESULTS_REPO, | ||
) | ||
|
||
if __name__ == "__main__": | ||
with open("internal_queue/tasks_todo.json", "r") as f: | ||
tasks_todo = json.load(f) | ||
with open("internal_queue/model_precision.json", "r") as f: | ||
model_precision = json.load(f) | ||
|
||
for model in tasks_todo: | ||
MODEL = model | ||
TASKS_HARNESS = tasks_todo[model] | ||
PRECISION = model_precision[model] | ||
EVAL_REQUEST = EvalRequest( | ||
model=MODEL, | ||
precision=PRECISION, | ||
base_model="", # TODO: Review arg | ||
status="", # TODO: Review arg | ||
json_filepath="", # TODO: Review arg | ||
) | ||
|
||
run_evaluation( | ||
eval_request=EVAL_REQUEST, | ||
task_names=TASKS_HARNESS, | ||
leaderboard_group=LEADERBOARD_GROUP, | ||
num_fewshot=NUM_FEWSHOT, | ||
batch_size=BATCH_SIZE, | ||
device=DEVICE, | ||
local_dir=EVAL_RESULTS_PATH_BACKEND, | ||
results_repo=RESULTS_REPO, | ||
logs_repo=LOGS_REPO, | ||
limit=LIMIT, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters