ToolTip.text:qsTr("Temperature increases the chances of choosing less likely tokens - higher temperature gives more creative but less predictable outputs")
ToolTip.visible:hovered
Layout.row:0
@ -162,10 +166,11 @@ Window {
onAccepted:{
varval=parseFloat(text)
if(!isNaN(val)){
settingsDialog.temperature=val
settings.temperature=val
settings.sync()
focus=false
}else{
text=settingsDialog.temperature.toString()
text=settings.temperature.toString()
}
}
Accessible.role:Accessible.EditableText
@ -179,7 +184,7 @@ Window {
Layout.column:0
}
TextField{
text:settingsDialog.topP.toString()
text:settings.topP.toString()
ToolTip.text:qsTr("Only the most likely tokens up to a total probability of top_p can be chosen, prevents choosing highly unlikely tokens, aka Nucleus Sampling")
ToolTip.visible:hovered
Layout.row:1
@ -188,10 +193,11 @@ Window {
onAccepted:{
varval=parseFloat(text)
if(!isNaN(val)){
settingsDialog.topP=val
settings.topP=val
settings.sync()
focus=false
}else{
text=settingsDialog.topP.toString()
text=settings.topP.toString()
}
}
Accessible.role:Accessible.EditableText
@ -205,7 +211,7 @@ Window {
Layout.column:0
}
TextField{
text:settingsDialog.topK.toString()
text:settings.topK.toString()
ToolTip.text:qsTr("Only the top K most likely tokens will be chosen from")
ToolTip.visible:hovered
Layout.row:2
@ -214,10 +220,11 @@ Window {
onAccepted:{
varval=parseInt(text)
if(!isNaN(val)){
settingsDialog.topK=val
settings.topK=val
settings.sync()
focus=false
}else{
text=settingsDialog.topK.toString()
text=settings.topK.toString()
}
}
Accessible.role:Accessible.EditableText
@ -231,7 +238,7 @@ Window {
Layout.column:0
}
TextField{
text:settingsDialog.maxLength.toString()
text:settings.maxLength.toString()
ToolTip.text:qsTr("Maximum length of response in tokens")
ToolTip.visible:hovered
Layout.row:3
@ -240,10 +247,11 @@ Window {
onAccepted:{
varval=parseInt(text)
if(!isNaN(val)){
settingsDialog.maxLength=val
settings.maxLength=val
settings.sync()
focus=false
}else{
text=settingsDialog.maxLength.toString()
text=settings.maxLength.toString()
}
}
Accessible.role:Accessible.EditableText
@ -258,7 +266,7 @@ Window {
Layout.column:0
}
TextField{
text:settingsDialog.promptBatchSize.toString()
text:settings.promptBatchSize.toString()
ToolTip.text:qsTr("Amount of prompt tokens to process at once, higher values can speed up reading prompts but will use more RAM")