Skip to content

Commit

Permalink
Warn instead of error on tokenizer-only with http (#904)
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrychen109 authored Jan 29, 2024
1 parent 34cdaf6 commit b48fa58
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/misc/download_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@ def parse_args() -> argparse.Namespace:

if download_from == 'http':
if args.tokenizer_only:
raise ValueError(
'tokenizer-only is not currently supported for http.')
log.warning(
'tokenizer-only is not currently supported for http. Downloading all files instead.'
)
try:
download_from_http_fileserver(args.url, args.save_dir,
args.ignore_cert)
Expand Down

0 comments on commit b48fa58

Please sign in to comment.