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 5320c4ff1f
commit ebadac12e8

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)