Merge pull request #21 from VE-FORBRYDERNE/united

Softprompting bug fixes
This commit is contained in:
henk717 2021-11-04 15:38:21 +01:00 committed by GitHub
commit 2829c45ed6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -234,6 +234,7 @@ def device_config(model):
primaryselect = input("device ID> ")
if(primaryselect.isnumeric() and 0 <= int(primaryselect) < device_count):
breakmodel.primary_device = int(primaryselect)
break
else:
print(f"{colors.RED}Please enter an integer between 0 and {device_count-1}.{colors.END}")
else:
@ -1254,7 +1255,7 @@ def calcsubmit(txt):
tokens = memtokens + witokens + prompttkns + tokens
# Send completed bundle to generator
ln = len(tokens)
ln = len(tokens) + lnsp
if(not vars.model in ["Colab", "OAI"]):
generate (