Alina Lozovskaia commited on
Commit
57c0f9d
1 Parent(s): a5d34d3

force model revision

Browse files
src/scripts/create_request_file.py CHANGED
@@ -47,7 +47,7 @@ def main():
47
  eval_entry = {
48
  "model": model_name,
49
  "base_model": base_model,
50
- "revision": revision,
51
  "private": False,
52
  "precision": precision,
53
  "weight_type": weight_type,
 
47
  eval_entry = {
48
  "model": model_name,
49
  "base_model": base_model,
50
+ "revision": model_info.sha, # force to use the exact model commit
51
  "private": False,
52
  "precision": precision,
53
  "weight_type": weight_type,
src/submission/submit.py CHANGED
@@ -125,7 +125,7 @@ def add_new_eval(
125
  eval_entry = {
126
  "model": model,
127
  "base_model": base_model,
128
- "revision": revision,
129
  "private": private,
130
  "precision": precision,
131
  "params": model_size,
 
125
  eval_entry = {
126
  "model": model,
127
  "base_model": base_model,
128
+ "revision": model_info.sha, # force to use the exact model commit
129
  "private": private,
130
  "precision": precision,
131
  "params": model_size,