alozowski commited on
Commit
97a83d4
1 Parent(s): 6fd6082

Use force_download to override the existing cache if any

Browse files
Files changed (1) hide show
  1. src/submission/check_validity.py +1 -2
src/submission/check_validity.py CHANGED
@@ -46,8 +46,7 @@ def is_model_on_hub(
46
  ) -> tuple[bool, str, AutoConfig]:
47
  try:
48
  config = AutoConfig.from_pretrained(
49
- model_name, revision=revision, trust_remote_code=trust_remote_code, token=token
50
- ) # , force_download=True)
51
  if test_tokenizer:
52
  try:
53
  tk = AutoTokenizer.from_pretrained(
 
46
  ) -> tuple[bool, str, AutoConfig]:
47
  try:
48
  config = AutoConfig.from_pretrained(
49
+ model_name, revision=revision, trust_remote_code=trust_remote_code, token=token, force_download=True)
 
50
  if test_tokenizer:
51
  try:
52
  tk = AutoTokenizer.from_pretrained(