AppleSwing commited on
Commit
99ee183
1 Parent(s): 0e4197b

Solve submission issue

Browse files
Files changed (1) hide show
  1. src/submission/submit.py +3 -2
src/submission/submit.py CHANGED
@@ -113,13 +113,14 @@ def add_new_eval(
113
  }
114
 
115
  # Check for duplicate submission
116
- if f"{model}_{revision}_{precision}" in REQUESTED_MODELS:
117
  return styled_warning("This model has been already submitted.")
118
 
119
  print("Creating eval file")
120
  OUT_DIR = f"{EVAL_REQUESTS_PATH}/{user_name}"
121
  os.makedirs(OUT_DIR, exist_ok=True)
122
- out_path = f"{OUT_DIR}/{model_path}_eval_request_{private}_{precision}_{weight_type}.json"
 
123
 
124
  with open(out_path, "w") as f:
125
  f.write(json.dumps(eval_entry))
 
113
  }
114
 
115
  # Check for duplicate submission
116
+ if f"{model}_{revision}_{precision}_{inference_framework}" in REQUESTED_MODELS:
117
  return styled_warning("This model has been already submitted.")
118
 
119
  print("Creating eval file")
120
  OUT_DIR = f"{EVAL_REQUESTS_PATH}/{user_name}"
121
  os.makedirs(OUT_DIR, exist_ok=True)
122
+ # out_path = f"{OUT_DIR}/{model_path}_eval_request_{private}_{precision}_{weight_type}.json"
123
+ out_path = f"{OUT_DIR}/{model_path}_eval_request_{private}_{precision}_{weight_type}_{inference_framework}.json"
124
 
125
  with open(out_path, "w") as f:
126
  f.write(json.dumps(eval_entry))