Spaces:
Runtime error
Runtime error
Clémentine commited on
Commit ·
3d8dbe8
1
Parent(s): 06b0c2d
simplified some parts of the code + updated requirements
Browse filesFiles changed (7)
21 unmodified lines2223242526279 unmodified lines37383940414243444546474849505152535455565758596061124 unmodified lines186187188189190191192193123 unmodified lines3173183193203213223232 unmodified lines32632732832933033133233333433533633733833921 unmodified linesAutoEvalColumn,ModelType,fields,)from src.envs import API, EVAL_REQUESTS_PATH, EVAL_RESULTS_PATH, H4_TOKEN, IS_PUBLIC, QUEUE_REPO, REPO_ID, RESULTS_REPOfrom src.populate import get_evaluation_queue_df, get_leaderboard_df9 unmodified linesdef restart_space():API.restart_space(repo_id=REPO_ID, token=H4_TOKEN)try:print(EVAL_REQUESTS_PATH)snapshot_download(repo_id=QUEUE_REPO, local_dir=EVAL_REQUESTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30)except Exception:restart_space()try:print(EVAL_RESULTS_PATH)snapshot_download(repo_id=RESULTS_REPO, local_dir=EVAL_RESULTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30)except Exception:restart_space()raw_data, original_df = get_leaderboard_df(EVAL_RESULTS_PATH, EVAL_REQUESTS_PATH, COLS, BENCHMARK_COLS)update_collections(original_df.copy())leaderboard_df = original_df.copy()plot_df = create_plot_df(create_scores_df(raw_data))124 unmodified lines)filter_columns_precision = gr.CheckboxGroup(label="Precision",choices=["torch.float16", "torch.bfloat16", "torch.float32", "8bit", "4bit", "GPTQ"],value=["torch.float16", "torch.bfloat16", "torch.float32", "8bit", "4bit", "GPTQ"],interactive=True,elem_id="filter-columns-precision",)123 unmodified linesrevision_name_textbox = gr.Textbox(label="Revision commit", placeholder="main")private = gr.Checkbox(False, label="Private", visible=not IS_PUBLIC)model_type = gr.Dropdown(choices=[t.to_str(" : ") for t in ModelType],label="Model type",multiselect=False,value=None,2 unmodified lineswith gr.Column():precision = gr.Dropdown(choices=["float16", "bfloat16", "8bit (LLM.int8)", "4bit (QLoRA / FP4)", "GPTQ"],label="Precision",multiselect=False,value="float16",interactive=True,)weight_type = gr.Dropdown(choices=["Original", "Delta", "Adapter"],label="Weights type",multiselect=False,value="Original",21 unmodified lines22232425262728299 unmodified lines39404142434445464748495051525354555657585960616263124 unmodified lines188189190191192193194195123 unmodified lines3193203213223233243252 unmodified lines32832933033133233333433533633733833934034121 unmodified linesAutoEvalColumn,ModelType,fields,WeightType,Precision)from src.envs import API, EVAL_REQUESTS_PATH, EVAL_RESULTS_PATH, H4_TOKEN, IS_PUBLIC, QUEUE_REPO, REPO_ID, RESULTS_REPOfrom src.populate import get_evaluation_queue_df, get_leaderboard_df9 unmodified linesdef restart_space():API.restart_space(repo_id=REPO_ID, token=H4_TOKEN)if False:try:print(EVAL_REQUESTS_PATH)snapshot_download(repo_id=QUEUE_REPO, local_dir=EVAL_REQUESTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30)except Exception:restart_space()try:print(EVAL_RESULTS_PATH)snapshot_download(repo_id=RESULTS_REPO, local_dir=EVAL_RESULTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30)except Exception:restart_space()raw_data, original_df = get_leaderboard_df(EVAL_RESULTS_PATH, EVAL_REQUESTS_PATH, COLS, BENCHMARK_COLS)# update_collections(original_df.copy())leaderboard_df = original_df.copy()plot_df = create_plot_df(create_scores_df(raw_data))124 unmodified lines)filter_columns_precision = gr.CheckboxGroup(label="Precision",choices=[i.value.name for i in Precision],value=[i.value.name for i in Precision],interactive=True,elem_id="filter-columns-precision",)123 unmodified linesrevision_name_textbox = gr.Textbox(label="Revision commit", placeholder="main")private = gr.Checkbox(False, label="Private", visible=not IS_PUBLIC)model_type = gr.Dropdown(choices=[t.to_str(" : ") for t in ModelType if t != ModelType.Unknown],label="Model type",multiselect=False,value=None,2 unmodified lineswith gr.Column():precision = gr.Dropdown(choices=[i.value.name for i in Precision if i != Precision.Unknown],label="Precision",multiselect=False,value="float16",interactive=True,)weight_type = gr.Dropdown(choices=[i.value.name for i in WeightType],label="Weights type",multiselect=False,value="Original",
14 unmodified lines15161718192014 unmodified linesrequests==2.28.2semantic-version==2.10.0tqdm==4.65.0git+https://github.com/clefourrier/transformers.git@req-fix#egg=transformers#transformers==4.35.1tokenizers>=0.15.014 unmodified lines151617181914 unmodified linesrequests==2.28.2semantic-version==2.10.0tqdm==4.65.0transformers==4.35.2tokenizers>=0.15.0
6 unmodified lines78910111213141516171819202122232425262728291 unmodified line31323334353637383940414243444546474849505152535455565758596061626364656667686970717273746 unmodified linesAPI = HfApi()LLAMAS = ["huggingface/llama-7b","huggingface/llama-13b","huggingface/llama-30b","huggingface/llama-65b",]KOALA_LINK = "https://huggingface.co/TheBloke/koala-13B-HF"VICUNA_LINK = "https://huggingface.co/lmsys/vicuna-13b-delta-v1.1"OASST_LINK = "https://huggingface.co/OpenAssistant/oasst-sft-4-pythia-12b-epoch-3.5"DOLLY_LINK = "https://huggingface.co/databricks/dolly-v2-12b"MODEL_PAGE = "https://huggingface.co/models"LLAMA_LINK = "https://ai.facebook.com/blog/large-language-model-llama-meta-ai/"VICUNA_LINK = "https://huggingface.co/CarperAI/stable-vicuna-13b-delta"ALPACA_LINK = "https://crfm.stanford.edu/2023/03/13/alpaca.html"def model_hyperlink(link, model_name):return f'<a target="_blank" href="{link}" style="color: var(--link-text-color); text-decoration: underline;text-decoration-style: dotted;">{model_name}</a>'1 unmodified linedef make_clickable_model(model_name):link = f"https://huggingface.co/{model_name}"if model_name in LLAMAS:link = LLAMA_LINKmodel_name = model_name.split("/")[1]elif model_name == "HuggingFaceH4/stable-vicuna-13b-2904":link = VICUNA_LINKmodel_name = "stable-vicuna-13b"elif model_name == "HuggingFaceH4/llama-7b-ift-alpaca":link = ALPACA_LINKmodel_name = "alpaca-13b"if model_name == "dolly-12b":link = DOLLY_LINKelif model_name == "vicuna-13b":link = VICUNA_LINKelif model_name == "koala-13b":link = KOALA_LINKelif model_name == "oasst-12b":link = OASST_LINKdetails_model_name = model_name.replace("/", "__")details_link = f"https://huggingface.co/datasets/open-llm-leaderboard/details_{details_model_name}"if not bool(os.getenv("DEBUG", "False")):# We only add these checks when not debugging, as they are extremely slowprint(f"details_link: {details_link}")try:check_path = list(API.list_files_info(repo_id=f"open-llm-leaderboard/details_{details_model_name}",paths="README.md",repo_type="dataset",))print(f"check_path: {check_path}")except Exception as err:# No details repo for this modelprint(f"No details repo for this model: {err}")return model_hyperlink(link, model_name)return model_hyperlink(link, model_name) + " " + model_hyperlink(details_link, "📑")6 unmodified lines7891011121 unmodified line1415161718192021226 unmodified linesAPI = HfApi()def model_hyperlink(link, model_name):return f'<a target="_blank" href="{link}" style="color: var(--link-text-color); text-decoration: underline;text-decoration-style: dotted;">{model_name}</a>'1 unmodified linedef make_clickable_model(model_name):link = f"https://huggingface.co/{model_name}"details_model_name = model_name.replace("/", "__")details_link = f"https://huggingface.co/datasets/open-llm-leaderboard/details_{details_model_name}"return model_hyperlink(link, model_name) + " " + model_hyperlink(details_link, "📑")
123456787 unmodified lines16171819202122232425262728293031323334353637383940414243444546474849505147 unmodified lines9910010110210310410510610710810911011111211311411510 unmodified lines126127128129130131132133134135136137138139140141142143144145146147from dataclasses import dataclassfrom enum import Enumimport pandas as pd# These classes are for user facing column names,# to avoid having to change them all around the code7 unmodified linesnever_hidden: bool = Falsedummy: bool = Falsedef fields(raw_class):return [v for k, v in raw_class.__dict__.items() if k[:2] != "__" and k[-2:] != "__"]@dataclass(frozen=True)class AutoEvalColumn: # Auto evals columnmodel_type_symbol = ColumnContent("T", "str", True, never_hidden=True)model = ColumnContent("Model", "markdown", True, never_hidden=True)average = ColumnContent("Average ⬆️", "number", True)arc = ColumnContent("ARC", "number", True)hellaswag = ColumnContent("HellaSwag", "number", True)mmlu = ColumnContent("MMLU", "number", True)truthfulqa = ColumnContent("TruthfulQA", "number", True)winogrande = ColumnContent("Winogrande", "number", True)gsm8k = ColumnContent("GSM8K", "number", True)drop = ColumnContent("DROP", "number", True)model_type = ColumnContent("Type", "str", False)architecture = ColumnContent("Architecture", "str", False)weight_type = ColumnContent("Weight type", "str", False, True)precision = ColumnContent("Precision", "str", False) # , True)license = ColumnContent("Hub License", "str", False)params = ColumnContent("#Params (B)", "number", False)likes = ColumnContent("Hub ❤️", "number", False)still_on_hub = ColumnContent("Available on the hub", "bool", False)revision = ColumnContent("Model sha", "str", False, False)dummy = ColumnContent("model_name_for_query", "str", False, dummy=True) # dummy col to implement search bar (hidden by custom CSS)@dataclass(frozen=True)class EvalQueueColumn: # Queue column47 unmodified lines}@dataclassclass ModelTypeDetails:name: strsymbol: str # emojiclass ModelType(Enum):PT = ModelTypeDetails(name="pretrained", symbol="🟢")FT = ModelTypeDetails(name="fine-tuned", symbol="🔶")IFT = ModelTypeDetails(name="instruction-tuned", symbol="⭕")RL = ModelTypeDetails(name="RL-tuned", symbol="🟦")Unknown = ModelTypeDetails(name="", symbol="?")def to_str(self, separator=" "):return f"{self.value.symbol}{separator}{self.value.name}"10 unmodified linesreturn ModelType.IFTreturn ModelType.Unknown@dataclassclass Task:benchmark: strmetric: strcol_name: strclass Tasks(Enum):arc = Task("arc:challenge", "acc_norm", AutoEvalColumn.arc.name)hellaswag = Task("hellaswag", "acc_norm", AutoEvalColumn.hellaswag.name)mmlu = Task("hendrycksTest", "acc", AutoEvalColumn.mmlu.name)truthfulqa = Task("truthfulqa:mc", "mc2", AutoEvalColumn.truthfulqa.name)winogrande = Task("winogrande", "acc", AutoEvalColumn.winogrande.name)gsm8k = Task("gsm8k", "acc", AutoEvalColumn.gsm8k.name)drop = Task("drop", "f1", AutoEvalColumn.drop.name)# Column selection12345678910111213141516171819202122232425267 unmodified lines343536373839404142434445464748495051525354555657585960616247 unmodified lines11011111211311411511611711811912012112212312412512610 unmodified lines137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169from dataclasses import dataclass, make_dataclassfrom enum import Enumimport pandas as pddef fields(raw_class):return [v for k, v in raw_class.__dict__.items() if k[:2] != "__" and k[-2:] != "__"]@dataclassclass Task:benchmark: strmetric: strcol_name: strclass Tasks(Enum):arc = Task("arc:challenge", "acc_norm", "ARC")hellaswag = Task("hellaswag", "acc_norm", "HellaSwag")mmlu = Task("hendrycksTest", "acc", "MMLU")truthfulqa = Task("truthfulqa:mc", "mc2", "TruthfulQA")winogrande = Task("winogrande", "acc", "Winogrande")gsm8k = Task("gsm8k", "acc", "GSM8K")drop = Task("drop", "f1", "DROP")# These classes are for user facing column names,# to avoid having to change them all around the code7 unmodified linesnever_hidden: bool = Falsedummy: bool = Falseauto_eval_column_dict = []# Initauto_eval_column_dict.append(["model_type_symbol", ColumnContent, ColumnContent("T", "str", True, never_hidden=True)])auto_eval_column_dict.append(["model", ColumnContent, ColumnContent("Model", "markdown", True, never_hidden=True)])#Scoresauto_eval_column_dict.append(["average", ColumnContent, ColumnContent("Average ⬆️", "number", True)])for task in Tasks:auto_eval_column_dict.append([task.name, ColumnContent, ColumnContent(task.value.col_name, "number", True)])# Model informationauto_eval_column_dict.append(["model_type", ColumnContent, ColumnContent("Type", "str", False)])auto_eval_column_dict.append(["architecture", ColumnContent, ColumnContent("Architecture", "str", False)])auto_eval_column_dict.append(["weight_type", ColumnContent, ColumnContent("Weight type", "str", False, True)])auto_eval_column_dict.append(["precision", ColumnContent, ColumnContent("Precision", "str", False)])auto_eval_column_dict.append(["license", ColumnContent, ColumnContent("Hub License", "str", False)])auto_eval_column_dict.append(["params", ColumnContent, ColumnContent("#Params (B)", "number", False)])auto_eval_column_dict.append(["likes", ColumnContent, ColumnContent("Hub ❤️", "number", False)])auto_eval_column_dict.append(["still_on_hub", ColumnContent, ColumnContent("Available on the hub", "bool", False)])auto_eval_column_dict.append(["revision", ColumnContent, ColumnContent("Model sha", "str", False, False)])# Dummy column for the search bar (hidden by the custom CSS)auto_eval_column_dict.append(["dummy", ColumnContent, ColumnContent("model_name_for_query", "str", False, dummy=True)])# We use make dataclass to dynamically fill the scores from TasksAutoEvalColumn = make_dataclass("AutoEvalColumn", auto_eval_column_dict, frozen=True)@dataclass(frozen=True)class EvalQueueColumn: # Queue column47 unmodified lines}@dataclassclass ModelDetails:name: strsymbol: str = "" # emoji, only for the model typeclass ModelType(Enum):PT = ModelDetails(name="pretrained", symbol="🟢")FT = ModelDetails(name="fine-tuned", symbol="🔶")IFT = ModelDetails(name="instruction-tuned", symbol="⭕")RL = ModelDetails(name="RL-tuned", symbol="🟦")Unknown = ModelDetails(name="", symbol="?")def to_str(self, separator=" "):return f"{self.value.symbol}{separator}{self.value.name}"10 unmodified linesreturn ModelType.IFTreturn ModelType.Unknownclass WeightType(Enum):Adapter = ModelDetails("Adapter")Original = ModelDetails("Original")Delta = ModelDetails("Delta")class Precision(Enum):float16 = ModelDetails("float16")bfloat16 = ModelDetails("bfloat16")qt_8bit = ModelDetails("8bit")qt_4bit = ModelDetails("4bit")qt_GPTQ = ModelDetails("GPTQ")Unknown = ModelDetails("?")def from_str(precision):if precision in ["torch.float16", "float16"]:return Precision.float16if precision in ["torch.bfloat16", "bfloat16"]:return Precision.bfloat16if precision in ["8bit"]:return Precision.qt_8bitif precision in ["4bit"]:return Precision.qt_4bitif precision in ["GPTQ", "None"]:return Precision.qt_GPTQreturn Precision.Unknown# Column selection
9 unmodified lines101112131415166 unmodified lines23242526272829303111 unmodified lines4344454647484950512 unmodified lines54555657585960616263646566676843 unmodified lines1121131141151161171181191201211221231246 unmodified lines13113213313413513613713813914026 unmodified lines1671681691701711721739 unmodified linesimport numpy as npfrom src.display.formatting import make_clickable_modelfrom src.display.utils import AutoEvalColumn, ModelType, Tasksfrom src.submission.check_validity import is_model_on_hub6 unmodified linesmodel: strrevision: str # commit hash, "" if mainresults: dictprecision: str = ""model_type: ModelType = ModelType.Unknown # Pretrained, fine tuned, ...weight_type: str = "Original" # Original or Adapterarchitecture: str = "Unknown" # From config filelicense: str = "?"likes: int = 011 unmodified linesconfig = data.get("config", data.get("config_general", None))# Precisionprecision = config.get("model_dtype")if precision == "None":precision = "GPTQ"# Get model and orgorg_and_model = config.get("model_name", config.get("model_args", None))2 unmodified linesif len(org_and_model) == 1:org = Nonemodel = org_and_model[0]result_key = f"{model}_{precision}"else:org = org_and_model[0]model = org_and_model[1]result_key = f"{org}_{model}_{precision}"full_model = "/".join(org_and_model)still_on_hub, error, model_config = is_model_on_hub(full_model, config.get("model_sha", "main"), trust_remote_code=True)architecture = "?"if model_config is not None:43 unmodified linesdef update_with_request_file(self, requests_path):"""Finds the relevant request file for the current model and updates info with it"""request_file = get_request_file_for_model(requests_path, self.full_model, self.precision)try:with open(request_file, "r") as f:request = json.load(f)self.model_type = ModelType.from_str(request.get("model_type", ""))self.weight_type = request.get("weight_type", "?")self.license = request.get("license", "?")self.likes = request.get("likes", 0)self.num_params = request.get("params", 0)6 unmodified linesaverage = sum([v for v in self.results.values() if v is not None]) / len(Tasks)data_dict = {"eval_name": self.eval_name, # not a column, just a save name,AutoEvalColumn.precision.name: self.precision,AutoEvalColumn.model_type.name: self.model_type.value.name,AutoEvalColumn.model_type_symbol.name: self.model_type.value.symbol,AutoEvalColumn.weight_type.name: self.weight_type,AutoEvalColumn.architecture.name: self.architecture,AutoEvalColumn.model.name: make_clickable_model(self.full_model),AutoEvalColumn.dummy.name: self.full_model,26 unmodified lineswith open(tmp_request_file, "r") as f:req_content = json.load(f)if (req_content["status"] in ["FINISHED", "PENDING_NEW_EVAL"]and req_content["precision"] == precision.split(".")[-1]):request_file = tmp_request_file9 unmodified lines101112131415166 unmodified lines23242526272829303111 unmodified lines434445464748492 unmodified lines52535455565758596061626364656643 unmodified lines1101111121131141151161171181191201211226 unmodified lines12913013113213313413513613713826 unmodified lines1651661671681691701719 unmodified linesimport numpy as npfrom src.display.formatting import make_clickable_modelfrom src.display.utils import AutoEvalColumn, ModelType, Tasks, Precision, WeightTypefrom src.submission.check_validity import is_model_on_hub6 unmodified linesmodel: strrevision: str # commit hash, "" if mainresults: dictprecision: Precision = Precision.Unknownmodel_type: ModelType = ModelType.Unknown # Pretrained, fine tuned, ...weight_type: WeightType = WeightType.Original # Original or Adapterarchitecture: str = "Unknown" # From config filelicense: str = "?"likes: int = 011 unmodified linesconfig = data.get("config", data.get("config_general", None))# Precisionprecision = Precision.from_str(config.get("model_dtype"))# Get model and orgorg_and_model = config.get("model_name", config.get("model_args", None))2 unmodified linesif len(org_and_model) == 1:org = Nonemodel = org_and_model[0]result_key = f"{model}_{precision.value.name}"else:org = org_and_model[0]model = org_and_model[1]result_key = f"{org}_{model}_{precision.value.name}"full_model = "/".join(org_and_model)still_on_hub, error, model_config = is_model_on_hub(full_model, config.get("model_sha", "main"), trust_remote_code=True, test_tokenizer=False)architecture = "?"if model_config is not None:43 unmodified linesdef update_with_request_file(self, requests_path):"""Finds the relevant request file for the current model and updates info with it"""request_file = get_request_file_for_model(requests_path, self.full_model, self.precision.value.name)try:with open(request_file, "r") as f:request = json.load(f)self.model_type = ModelType.from_str(request.get("model_type", ""))self.weight_type = WeightType[request.get("weight_type", "Original")]self.license = request.get("license", "?")self.likes = request.get("likes", 0)self.num_params = request.get("params", 0)6 unmodified linesaverage = sum([v for v in self.results.values() if v is not None]) / len(Tasks)data_dict = {"eval_name": self.eval_name, # not a column, just a save name,AutoEvalColumn.precision.name: self.precision.value.name,AutoEvalColumn.model_type.name: self.model_type.value.name,AutoEvalColumn.model_type_symbol.name: self.model_type.value.symbol,AutoEvalColumn.weight_type.name: self.weight_type.value.name,AutoEvalColumn.architecture.name: self.architecture,AutoEvalColumn.model.name: make_clickable_model(self.full_model),AutoEvalColumn.dummy.name: self.full_model,26 unmodified lineswith open(tmp_request_file, "r") as f:req_content = json.load(f)if (req_content["status"] in ["FINISHED"]and req_content["precision"] == precision.split(".")[-1]):request_file = tmp_request_file
86 unmodified lines878889909192939486 unmodified linesdef get_model_arch(model_info: ModelInfo):return model_info.config.get("architectures", "Unknown")def user_submission_permission(submission_name, users_to_submission_dates, rate_limit_period, rate_limit_quota):org_or_user, _ = submission_name.split("/")if org_or_user not in users_to_submission_dates:return True, ""submission_dates = sorted(users_to_submission_dates[org_or_user])86 unmodified lines8788899091929386 unmodified linesdef get_model_arch(model_info: ModelInfo):return model_info.config.get("architectures", "Unknown")def user_submission_permission(org_or_user, users_to_submission_dates, rate_limit_period, rate_limit_quota):if org_or_user not in users_to_submission_dates:return True, ""submission_dates = sorted(users_to_submission_dates[org_or_user])
29 unmodified lines3031323334352 unmodified lines383940414243444546474850 unmodified lines9910010110210310410510610710810911029 unmodified linesif not REQUESTED_MODELS:REQUESTED_MODELS, USERS_TO_SUBMISSION_DATES = already_submitted_models(EVAL_REQUESTS_PATH)precision = precision.split(" ")[0]current_time = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")2 unmodified linesreturn styled_error("Please select a model type.")# Is the user rate limited?user_can_submit, error_msg = user_submission_permission(model, USERS_TO_SUBMISSION_DATES, RATE_LIMIT_PERIOD, RATE_LIMIT_QUOTA)if not user_can_submit:return styled_error(error_msg)# Did the model authors forbid its submission to the leaderboard?if model in DO_NOT_SUBMIT_MODELS or base_model in DO_NOT_SUBMIT_MODELS:50 unmodified lines"license": license,}user_name = ""model_path = modelif "/" in model:user_name = model.split("/")[0]model_path = model.split("/")[1]# Check for duplicate submissionif f"{model}_{revision}_{precision}" in REQUESTED_MODELS:return styled_warning("This model has been already submitted.")29 unmodified lines30313233343536373839402 unmodified lines43444546474849505152535450 unmodified lines10510610710810911029 unmodified linesif not REQUESTED_MODELS:REQUESTED_MODELS, USERS_TO_SUBMISSION_DATES = already_submitted_models(EVAL_REQUESTS_PATH)user_name = ""model_path = modelif "/" in model:user_name = model.split("/")[0]model_path = model.split("/")[1]precision = precision.split(" ")[0]current_time = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")2 unmodified linesreturn styled_error("Please select a model type.")# Is the user rate limited?if user_name != "":user_can_submit, error_msg = user_submission_permission(user_name, USERS_TO_SUBMISSION_DATES, RATE_LIMIT_PERIOD, RATE_LIMIT_QUOTA)if not user_can_submit:return styled_error(error_msg)# Did the model authors forbid its submission to the leaderboard?if model in DO_NOT_SUBMIT_MODELS or base_model in DO_NOT_SUBMIT_MODELS:50 unmodified lines"license": license,}# Check for duplicate submissionif f"{model}_{revision}_{precision}" in REQUESTED_MODELS:return styled_warning("This model has been already submitted.")
app.py+23-21
requirements.txt+1-2
src/display/formatting.py-52
src/display/utils.py+75-53
src/leaderboard/read_evals.py+12-14
src/submission/check_validity.py+1-2
src/submission/submit.py+11-11