mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-02-12 09:40:39 +01:00
Merge pull request #21 from VE-FORBRYDERNE/united
Softprompting bug fixes
This commit is contained in:
commit
2829c45ed6
@ -234,6 +234,7 @@ def device_config(model):
|
|||||||
primaryselect = input("device ID> ")
|
primaryselect = input("device ID> ")
|
||||||
if(primaryselect.isnumeric() and 0 <= int(primaryselect) < device_count):
|
if(primaryselect.isnumeric() and 0 <= int(primaryselect) < device_count):
|
||||||
breakmodel.primary_device = int(primaryselect)
|
breakmodel.primary_device = int(primaryselect)
|
||||||
|
break
|
||||||
else:
|
else:
|
||||||
print(f"{colors.RED}Please enter an integer between 0 and {device_count-1}.{colors.END}")
|
print(f"{colors.RED}Please enter an integer between 0 and {device_count-1}.{colors.END}")
|
||||||
else:
|
else:
|
||||||
@ -1254,7 +1255,7 @@ def calcsubmit(txt):
|
|||||||
tokens = memtokens + witokens + prompttkns + tokens
|
tokens = memtokens + witokens + prompttkns + tokens
|
||||||
|
|
||||||
# Send completed bundle to generator
|
# Send completed bundle to generator
|
||||||
ln = len(tokens)
|
ln = len(tokens) + lnsp
|
||||||
|
|
||||||
if(not vars.model in ["Colab", "OAI"]):
|
if(not vars.model in ["Colab", "OAI"]):
|
||||||
generate (
|
generate (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user