lvkaokao commited on
Commit
2a6cc68
1 Parent(s): f89f4fd

update model size.

Browse files
Files changed (1) hide show
  1. src/submission/submit.py +5 -6
src/submission/submit.py CHANGED
@@ -207,12 +207,6 @@ def add_new_eval(
207
  sta_out_path = f"{OUT_DIR}/{model_path}_eval_request_{private}_{quant_type}_{precision}_{weight_dtype}_{compute_dtype}.json"
208
  sta_git_path = "/".join(sta_out_path.split('/')[1:])
209
 
210
- with open(req_out_path, "w") as f:
211
- f.write(json.dumps(eval_entry, indent=4))
212
- with open(sta_out_path, "w") as f:
213
- f.write(json.dumps(eval_entry, indent=4))
214
-
215
-
216
  print("Uploading eval file")
217
  try:
218
  print("git-push get lock..............")
@@ -223,6 +217,11 @@ def add_new_eval(
223
 
224
  REPO.index.remove("requests", False, r=True)
225
 
 
 
 
 
 
226
  REPO.index.add([req_git_path, sta_git_path])
227
  commit = REPO.index.commit(f"Add {model} to eval requests/status.")
228
 
 
207
  sta_out_path = f"{OUT_DIR}/{model_path}_eval_request_{private}_{quant_type}_{precision}_{weight_dtype}_{compute_dtype}.json"
208
  sta_git_path = "/".join(sta_out_path.split('/')[1:])
209
 
 
 
 
 
 
 
210
  print("Uploading eval file")
211
  try:
212
  print("git-push get lock..............")
 
217
 
218
  REPO.index.remove("requests", False, r=True)
219
 
220
+ with open(req_out_path, "w") as f:
221
+ f.write(json.dumps(eval_entry, indent=4))
222
+ with open(sta_out_path, "w") as f:
223
+ f.write(json.dumps(eval_entry, indent=4))
224
+
225
  REPO.index.add([req_git_path, sta_git_path])
226
  commit = REPO.index.commit(f"Add {model} to eval requests/status.")
227