Skip to content

Commit

Permalink
[tokenizer] Allows import non-english model (#2797)
Browse files Browse the repository at this point in the history
  • Loading branch information
frankfliu committed Oct 2, 2023
1 parent 8fd79db commit 27c6a57
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def list_models(self, args: Namespace) -> List[dict]:
continue

languages = get_lang_tags(model_info)
if "en" not in languages:
if "en" not in languages and not os.environ["HF_IMPORT_ALL"]:
logging.warning(f"Skip non-English model: {model_id}.")
continue

Expand Down

0 comments on commit 27c6a57

Please sign in to comment.