fix: added model parameter check (#2829)

This commit is contained in:
Roman 2023-06-24 14:09:34 +01:00 committed by GitHub
parent 51a388fa34
commit 38897fbd8a
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23

View file

@ -217,6 +217,10 @@ if __name__ == '__main__':
branch = args.branch
model = args.MODEL
if model is None:
print("Error: Please specify the model you'd like to download (e.g. 'python download-model.py facebook/opt-1.3b').")
sys.exit()
downloader = ModelDownloader()
# Cleaning up the model/branch names
try: