mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-12-06 07:12:10 +01:00
fix: added model parameter check (#2829)
This commit is contained in:
parent
51a388fa34
commit
38897fbd8a
|
|
@ -217,6 +217,10 @@ if __name__ == '__main__':
|
||||||
branch = args.branch
|
branch = args.branch
|
||||||
model = args.MODEL
|
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()
|
downloader = ModelDownloader()
|
||||||
# Cleaning up the model/branch names
|
# Cleaning up the model/branch names
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue