Yeyito commited on
Commit
9259578
โ€ข
1 Parent(s): 3163ba6

Reference model full implementation

Browse files
Files changed (2) hide show
  1. app.py +9 -9
  2. 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
- precision: str,
120
  model_type: str,
121
  ):
122
- precision = precision
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
- precision = gr.Dropdown(
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, precision, model_type],
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, AIDC-ai-business/Marcoroni-7B-v3
3
- ๐Ÿ”ถ finetuned, openchat/openchat_3.5
4
- ๐Ÿ”ถ finetuned, teknium/OpenHermes-2.5-Mistral-7B
5
- ๐Ÿ”ถ finetuned, WizardLM/WizardMath-7B-V1.1
6
- ๐Ÿ”ถ finetuned, Intel/neural-chat-7b-v3-3
7
- ๐Ÿ”ถ finetuned, mistralai/Mistral-7B-Instruct-v0.2
8
- ๐Ÿ”ถ finetuned, ehartford/dolphin-2.1-mistral-7b
9
- ๐Ÿ”ถ finetuned, HuggingFaceH4/zephyr-7b-beta
10
- ๐Ÿ”ถ finetuned, berkeley-nest/Starling-LM-7B-alpha
11
- ๐Ÿ”ถ finetuned, Open-Orca/Mistral-7B-OpenOrca
12
- ๐Ÿ”ถ finetuned, amazon/MistralLite
13
- ๐Ÿ”ถ finetuned, meta-math/MetaMath-Mistral-7B
14
- ๐Ÿ”ถ finetuned, microsoft/Orca-2-7b
15
- ๐Ÿ”ถ finetuned, 01-ai/Yi-6B-200K
16
- ๐Ÿ”ถ finetuned, Yhyu13/LMCocktail-10.7B-v1
17
- ๐Ÿ”ถ finetuned, openchat/openchat-3.5-1210
 
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