djstrong commited on
Commit
8d84e4a
1 Parent(s): 6deb2a6
Files changed (1) hide show
  1. src/submission/check_validity.py +2 -0
src/submission/check_validity.py CHANGED
@@ -32,6 +32,8 @@ def check_model_card(repo_id: str) -> tuple[bool, str]:
32
  return True, ""
33
 
34
  def is_model_on_hub(model_name: str, revision: str, token: str = None, trust_remote_code=False, test_tokenizer=False) -> tuple[bool, str]:
 
 
35
  try:
36
  config = AutoConfig.from_pretrained(model_name, revision=revision, trust_remote_code=trust_remote_code, token=token)
37
  if test_tokenizer:
 
32
  return True, ""
33
 
34
  def is_model_on_hub(model_name: str, revision: str, token: str = None, trust_remote_code=False, test_tokenizer=False) -> tuple[bool, str]:
35
+ if 'gwint' in model_name:
36
+ return False, "is not allowed to be submitted to the leaderboard.", None
37
  try:
38
  config = AutoConfig.from_pretrained(model_name, revision=revision, trust_remote_code=trust_remote_code, token=token)
39
  if test_tokenizer: