alozowski commited on
Commit
f3aa422
1 Parent(s): 40bc934

fix delta and adapter submit

Browse files
Files changed (1) hide show
  1. src/submission/submit.py +1 -1
src/submission/submit.py CHANGED
@@ -119,7 +119,7 @@ def add_new_eval(
119
  # Is the model on the hub?
120
  if weight_type in ["Delta", "Adapter"]:
121
  base_model_on_hub, error, _ = is_model_on_hub(
122
- model_name=base_model, revision=model_info.sha, token=HF_TOKEN, test_tokenizer=True
123
  )
124
  if not base_model_on_hub:
125
  return styled_error(f'Base model "{base_model}" {error}')
 
119
  # Is the model on the hub?
120
  if weight_type in ["Delta", "Adapter"]:
121
  base_model_on_hub, error, _ = is_model_on_hub(
122
+ model_name=base_model, revision="main", token=HF_TOKEN, test_tokenizer=True
123
  )
124
  if not base_model_on_hub:
125
  return styled_error(f'Base model "{base_model}" {error}')