Spaces:
Runtime error
Runtime error
Reference model full implementation
Browse files- app.py +9 -9
- data/queue.csv +17 -17
app.py
CHANGED
|
@@ -100,14 +100,14 @@ def worker_thread():
|
|
| 100 |
|
| 101 |
time.sleep(1)
|
| 102 |
|
| 103 |
-
def queue(model,model_type):
|
| 104 |
global modelQueue
|
| 105 |
-
modelQueue.append([model_type,model])
|
| 106 |
|
| 107 |
file_path = "data/queue.csv"
|
| 108 |
with open(file_path, "a") as f:
|
| 109 |
model = model.strip()
|
| 110 |
-
f.write(f"\n{model_type},{model}")
|
| 111 |
f.close()
|
| 112 |
print(f"QUEUE:\n{modelQueue}")
|
| 113 |
|
|
@@ -116,10 +116,10 @@ def queue(model,model_type):
|
|
| 116 |
def add_new_eval(
|
| 117 |
model: str,
|
| 118 |
revision: str,
|
| 119 |
-
|
| 120 |
model_type: str,
|
| 121 |
):
|
| 122 |
-
|
| 123 |
|
| 124 |
if model_type is None or model_type == "" or model_type == []:
|
| 125 |
return styled_error("Please select a model type.")
|
|
@@ -133,7 +133,7 @@ def add_new_eval(
|
|
| 133 |
return styled_error(f'Model "{model}" {error}')
|
| 134 |
|
| 135 |
print("Adding new eval")
|
| 136 |
-
queue(model,model_type)
|
| 137 |
return styled_message("Your request has been submitted to the evaluation queue!\n")
|
| 138 |
|
| 139 |
def select_columns(df, columns):
|
|
@@ -286,7 +286,7 @@ with demo:
|
|
| 286 |
):
|
| 287 |
with gr.Row():
|
| 288 |
finished_eval_table = gr.components.Dataframe(
|
| 289 |
-
value=pd.DataFrame(modelQueue, columns=['Type','Model']),
|
| 290 |
)
|
| 291 |
with gr.Row():
|
| 292 |
model_name = gr.Textbox(label="Model name")
|
|
@@ -294,7 +294,7 @@ with demo:
|
|
| 294 |
label="revision", placeholder="main"
|
| 295 |
)
|
| 296 |
with gr.Row():
|
| 297 |
-
|
| 298 |
choices=[
|
| 299 |
"mistralai/Mistral-7B-v0.1",
|
| 300 |
"huggyllama/llama-7b",
|
|
@@ -317,7 +317,7 @@ with demo:
|
|
| 317 |
submission_result = gr.Markdown()
|
| 318 |
submit_button.click(
|
| 319 |
add_new_eval,
|
| 320 |
-
inputs=[model_name, revision_name,
|
| 321 |
outputs=[submission_result],
|
| 322 |
)
|
| 323 |
gr.Markdown(SUBMISSION_TEXT_2)
|
|
|
|
| 100 |
|
| 101 |
time.sleep(1)
|
| 102 |
|
| 103 |
+
def queue(model,model_type,ref_model):
|
| 104 |
global modelQueue
|
| 105 |
+
modelQueue.append([model_type,model,ref_model])
|
| 106 |
|
| 107 |
file_path = "data/queue.csv"
|
| 108 |
with open(file_path, "a") as f:
|
| 109 |
model = model.strip()
|
| 110 |
+
f.write(f"\n{model_type},{model},{ref_model}")
|
| 111 |
f.close()
|
| 112 |
print(f"QUEUE:\n{modelQueue}")
|
| 113 |
|
|
|
|
| 116 |
def add_new_eval(
|
| 117 |
model: str,
|
| 118 |
revision: str,
|
| 119 |
+
ref_model: str,
|
| 120 |
model_type: str,
|
| 121 |
):
|
| 122 |
+
ref_model = ref_model
|
| 123 |
|
| 124 |
if model_type is None or model_type == "" or model_type == []:
|
| 125 |
return styled_error("Please select a model type.")
|
|
|
|
| 133 |
return styled_error(f'Model "{model}" {error}')
|
| 134 |
|
| 135 |
print("Adding new eval")
|
| 136 |
+
queue(model,model_type,ref_model)
|
| 137 |
return styled_message("Your request has been submitted to the evaluation queue!\n")
|
| 138 |
|
| 139 |
def select_columns(df, columns):
|
|
|
|
| 286 |
):
|
| 287 |
with gr.Row():
|
| 288 |
finished_eval_table = gr.components.Dataframe(
|
| 289 |
+
value=pd.DataFrame(modelQueue, columns=['Type','Model','Reference Model']),
|
| 290 |
)
|
| 291 |
with gr.Row():
|
| 292 |
model_name = gr.Textbox(label="Model name")
|
|
|
|
| 294 |
label="revision", placeholder="main"
|
| 295 |
)
|
| 296 |
with gr.Row():
|
| 297 |
+
ref_model = gr.Dropdown(
|
| 298 |
choices=[
|
| 299 |
"mistralai/Mistral-7B-v0.1",
|
| 300 |
"huggyllama/llama-7b",
|
|
|
|
| 317 |
submission_result = gr.Markdown()
|
| 318 |
submit_button.click(
|
| 319 |
add_new_eval,
|
| 320 |
+
inputs=[model_name, revision_name, ref_model, model_type],
|
| 321 |
outputs=[submission_result],
|
| 322 |
)
|
| 323 |
gr.Markdown(SUBMISSION_TEXT_2)
|
data/queue.csv
CHANGED
|
@@ -1,17 +1,17 @@
|
|
| 1 |
-
Type,Model
|
| 2 |
-
๐ถ finetuned,
|
| 3 |
-
๐ถ finetuned,
|
| 4 |
-
๐ถ finetuned,
|
| 5 |
-
๐ถ finetuned,
|
| 6 |
-
๐ถ finetuned,
|
| 7 |
-
๐ถ finetuned,
|
| 8 |
-
๐ถ finetuned,
|
| 9 |
-
๐ถ finetuned,
|
| 10 |
-
๐ถ finetuned,
|
| 11 |
-
๐ถ finetuned,
|
| 12 |
-
๐ถ finetuned,
|
| 13 |
-
๐ถ finetuned,
|
| 14 |
-
๐ถ finetuned,
|
| 15 |
-
๐ถ finetuned,
|
| 16 |
-
๐ถ finetuned,
|
| 17 |
-
๐ถ finetuned,
|
|
|
|
| 1 |
+
Type,Model,ref_model
|
| 2 |
+
๐ถ finetuned,AIDC-ai-business/Marcoroni-7B-v3,mistralai/Mistral-7B-v0.1
|
| 3 |
+
๐ถ finetuned,openchat/openchat_3.5,mistralai/Mistral-7B-v0.1
|
| 4 |
+
๐ถ finetuned,teknium/OpenHermes-2.5-Mistral-7B,mistralai/Mistral-7B-v0.1
|
| 5 |
+
๐ถ finetuned,WizardLM/WizardMath-7B-V1.1,mistralai/Mistral-7B-v0.1
|
| 6 |
+
๐ถ finetuned,Intel/neural-chat-7b-v3-3,mistralai/Mistral-7B-v0.1
|
| 7 |
+
๐ถ finetuned,mistralai/Mistral-7B-Instruct-v0.2,mistralai/Mistral-7B-v0.1
|
| 8 |
+
๐ถ finetuned,ehartford/dolphin-2.1-mistral-7b,mistralai/Mistral-7B-v0.1
|
| 9 |
+
๐ถ finetuned,HuggingFaceH4/zephyr-7b-beta,mistralai/Mistral-7B-v0.1
|
| 10 |
+
๐ถ finetuned,berkeley-nest/Starling-LM-7B-alpha,mistralai/Mistral-7B-v0.1
|
| 11 |
+
๐ถ finetuned,Open-Orca/Mistral-7B-OpenOrca,mistralai/Mistral-7B-v0.1
|
| 12 |
+
๐ถ finetuned,amazon/MistralLite,mistralai/Mistral-7B-v0.1
|
| 13 |
+
๐ถ finetuned,meta-math/MetaMath-Mistral-7B,mistralai/Mistral-7B-v0.1
|
| 14 |
+
๐ถ finetuned,microsoft/Orca-2-7b,mistralai/Mistral-7B-v0.1
|
| 15 |
+
๐ถ finetuned,01-ai/Yi-6B-200K,mistralai/Mistral-7B-v0.1
|
| 16 |
+
๐ถ finetuned,Yhyu13/LMCocktail-10.7B-v1,mistralai/Mistral-7B-v0.1
|
| 17 |
+
๐ถ finetuned,openchat/openchat-3.5-1210,mistralai/Mistral-7B-v0.1
|