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
Layout.column:1
validator:DoubleValidator{}
onEditingFinished:{
varval=parseFloat(text)
if(!isNaN(val)){
settings.temperature=val
settings.sync()
focus=false
}else{
text=settings.temperature.toString()
TextField{
text:settings.temperature.toString()
color:theme.textColor
background:Rectangle{
implicitWidth:150
color:theme.backgroundLighter
radius:10
}
padding:10
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
Layout.column:1
validator:DoubleValidator{}
onEditingFinished:{
varval=parseFloat(text)
if(!isNaN(val)){
settings.temperature=val
settings.sync()
focus=false
}else{
text=settings.temperature.toString()
}
}
Accessible.role:Accessible.EditableText
Accessible.name:tempLabel.text
Accessible.description:ToolTip.text
}
Accessible.role:Accessible.EditableText
Accessible.name:tempLabel.text
Accessible.description:ToolTip.text
}
Label{
id: topPLabel
text:qsTr("Top P:")
color:theme.textColor
Layout.row:1
Layout.column:0
}
TextField{
text:settings.topP.toString()
color:theme.textColor
background:Rectangle{
implicitWidth:150
color:theme.backgroundLighter
radius:10
Label{
id: topPLabel
text:qsTr("Top P:")
color:theme.textColor
Layout.row:1
Layout.column:0
}
padding:10
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
Layout.column:1
validator:DoubleValidator{}
onEditingFinished:{
varval=parseFloat(text)
if(!isNaN(val)){
settings.topP=val
settings.sync()
focus=false
}else{
text=settings.topP.toString()
TextField{
text:settings.topP.toString()
color:theme.textColor
background:Rectangle{
implicitWidth:150
color:theme.backgroundLighter
radius:10
}
padding:10
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
Layout.column:1
validator:DoubleValidator{}
onEditingFinished:{
varval=parseFloat(text)
if(!isNaN(val)){
settings.topP=val
settings.sync()
focus=false
}else{
text=settings.topP.toString()
}
}
Accessible.role:Accessible.EditableText
Accessible.name:topPLabel.text
Accessible.description:ToolTip.text
}
Label{
id: topKLabel
text:qsTr("Top K:")
color:theme.textColor
Layout.row:2
Layout.column:0
}
TextField{
text:settings.topK.toString()
color:theme.textColor
background:Rectangle{
implicitWidth:150
color:theme.backgroundLighter
radius:10
}
padding:10
ToolTip.text:qsTr("Only the top K most likely tokens will be chosen from")
ToolTip.visible:hovered
Layout.row:2
Layout.column:1
validator:IntValidator{
bottom:1
}
onEditingFinished:{
varval=parseInt(text)
if(!isNaN(val)){
settings.topK=val
settings.sync()
focus=false
}else{
text=settings.topK.toString()
}
}
Accessible.role:Accessible.EditableText
Accessible.name:topKLabel.text
Accessible.description:ToolTip.text
}
Label{
id: maxLengthLabel
text:qsTr("Max Length:")
color:theme.textColor
Layout.row:3
Layout.column:0
}
TextField{
text:settings.maxLength.toString()
color:theme.textColor
background:Rectangle{
implicitWidth:150
color:theme.backgroundLighter
radius:10
}
padding:10
ToolTip.text:qsTr("Maximum length of response in tokens")
ToolTip.visible:hovered
Layout.row:3
Layout.column:1
validator:IntValidator{
bottom:1
}
onEditingFinished:{
varval=parseInt(text)
if(!isNaN(val)){
settings.maxLength=val
settings.sync()
focus=false
}else{
text=settings.maxLength.toString()
}
}
Accessible.role:Accessible.EditableText
Accessible.name:maxLengthLabel.text
Accessible.description:ToolTip.text
}
Accessible.role:Accessible.EditableText
Accessible.name:topPLabel.text
Accessible.description:ToolTip.text
}
Label{
id: topKLabel
text:qsTr("Top K:")
color:theme.textColor
Layout.row:2
Layout.column:0
}
TextField{
text:settings.topK.toString()
color:theme.textColor
background:Rectangle{
implicitWidth:150
color:theme.backgroundLighter
radius:10
}
padding:10
ToolTip.text:qsTr("Only the top K most likely tokens will be chosen from")
ToolTip.visible:hovered
Layout.row:2
Layout.column:1
validator:IntValidator{bottom:1}
onEditingFinished:{
varval=parseInt(text)
if(!isNaN(val)){
settings.topK=val
settings.sync()
focus=false
}else{
text=settings.topK.toString()
}
}
Accessible.role:Accessible.EditableText
Accessible.name:topKLabel.text
Accessible.description:ToolTip.text
}
Label{
id: maxLengthLabel
text:qsTr("Max Length:")
color:theme.textColor
Layout.row:3
Layout.column:0
}
TextField{
text:settings.maxLength.toString()
color:theme.textColor
background:Rectangle{
implicitWidth:150
color:theme.backgroundLighter
radius:10
}
padding:10
ToolTip.text:qsTr("Maximum length of response in tokens")
ToolTip.visible:hovered
Layout.row:3
Layout.column:1
validator:IntValidator{bottom:1}
onEditingFinished:{
varval=parseInt(text)
if(!isNaN(val)){
settings.maxLength=val
settings.sync()
focus=false
}else{
text=settings.maxLength.toString()
}
}
Accessible.role:Accessible.EditableText
Accessible.name:maxLengthLabel.text
Accessible.description:ToolTip.text
}
Label{
id: batchSizeLabel
text:qsTr("Prompt Batch Size:")
color:theme.textColor
Layout.row:4
Layout.column:0
}
TextField{
text:settings.promptBatchSize.toString()
color:theme.textColor
background:Rectangle{
implicitWidth:150
color:theme.backgroundLighter
radius:10
}
padding:10
ToolTip.text:qsTr("Amount of prompt tokens to process at once, higher values can speed up reading prompts but will use more RAM")
ToolTip.visible:hovered
Layout.row:4
Layout.column:1
validator:IntValidator{bottom:1}
onEditingFinished:{
varval=parseInt(text)
if(!isNaN(val)){
settings.promptBatchSize=val
settings.sync()
focus=false
}else{
text=settings.promptBatchSize.toString()
}
}
Accessible.role:Accessible.EditableText
Accessible.name:batchSizeLabel.text
Accessible.description:ToolTip.text
}
Label{
id: repeatPenaltyLabel
text:qsTr("Repeat Penalty:")
color:theme.textColor
Layout.row:5
Layout.column:0
}
TextField{
text:settings.repeatPenalty.toString()
color:theme.textColor
background:Rectangle{
implicitWidth:150
color:theme.backgroundLighter
radius:10
}
padding:10
ToolTip.text:qsTr("Amount to penalize reptetitiveness of the output")
ToolTip.visible:hovered
Layout.row:5
Layout.column:1
validator:DoubleValidator{}
onEditingFinished:{
varval=parseFloat(text)
if(!isNaN(val)){
settings.repeatPenalty=val
settings.sync()
focus=false
}else{
text=settings.repeatPenalty.toString()
}
}
Accessible.role:Accessible.EditableText
Accessible.name:repeatPenaltyLabel.text
Accessible.description:ToolTip.text
}
Label{
id: repeatPenaltyTokensLabel
text:qsTr("Repeat Penalty Tokens:")
color:theme.textColor
Layout.row:6
Layout.column:0
}
TextField{
text:settings.repeatPenaltyTokens.toString()
color:theme.textColor
background:Rectangle{
implicitWidth:150
color:theme.backgroundLighter
radius:10
}
padding:10
ToolTip.text:qsTr("How far back in output to apply repeat penalty")