use non-zero exit code on error (#177)

This commit is contained in:
Daniel Strobusch 2023-12-23 16:10:13 +01:00 committed by GitHub
parent 092e87211e
commit 848f118ac5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,7 +63,7 @@ def tiny_llama(model_path):
except ImportError:
print("The transformers package must be installed for this model conversion:")
print("pip install transformers")
exit(0)
exit(1)
model = transformers.AutoModelForCausalLM.from_pretrained(
str(model_path)