[go: nahoru, domu]

Skip to content

Commit

Permalink
ModelSettings: fix layout at large font size
Browse files Browse the repository at this point in the history
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
  • Loading branch information
cebtenzzre committed Jul 3, 2024
1 parent 84969a2 commit ca95bb9
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions gpt4all-chat/qml/ModelSettings.qml
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ MySettingsTab {
helpText: qsTr("Number of input and output tokens the model sees.")
Layout.row: 0
Layout.column: 0
Layout.maximumWidth: 300
Layout.maximumWidth: 300 * theme.fontScale
}
Item {
Layout.row: 0
Expand All @@ -316,8 +316,7 @@ MySettingsTab {
MyTextField {
id: contextLengthField
anchors.left: parent.left
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.verticalCenter: parent.verticalCenter
visible: !root.currentModelInfo.isOnline
text: root.currentModelInfo.contextLength
font.pixelSize: theme.fontSizeLarge
Expand Down Expand Up @@ -364,7 +363,7 @@ MySettingsTab {
helpText: qsTr("Randomness of model output. Higher -> more variation.")
Layout.row: 1
Layout.column: 2
Layout.maximumWidth: 300
Layout.maximumWidth: 300 * theme.fontScale
}

MyTextField {
Expand Down Expand Up @@ -410,7 +409,7 @@ MySettingsTab {
helpText: qsTr("Nucleus Sampling factor. Lower -> more predicatable.")
Layout.row: 2
Layout.column: 0
Layout.maximumWidth: 300
Layout.maximumWidth: 300 * theme.fontScale
}
MyTextField {
id: topPField
Expand Down Expand Up @@ -455,7 +454,7 @@ MySettingsTab {
helpText: qsTr("Minimum token probability. Higher -> more predictable.")
Layout.row: 3
Layout.column: 0
Layout.maximumWidth: 300
Layout.maximumWidth: 300 * theme.fontScale
}
MyTextField {
id: minPField
Expand Down Expand Up @@ -502,7 +501,7 @@ MySettingsTab {
helpText: qsTr("Size of selection pool for tokens.")
Layout.row: 2
Layout.column: 2
Layout.maximumWidth: 300
Layout.maximumWidth: 300 * theme.fontScale
}
MyTextField {
id: topKField
Expand Down Expand Up @@ -549,7 +548,7 @@ MySettingsTab {
helpText: qsTr("Maximum response length, in tokens.")
Layout.row: 0
Layout.column: 2
Layout.maximumWidth: 300
Layout.maximumWidth: 300 * theme.fontScale
}
MyTextField {
id: maxLengthField
Expand Down Expand Up @@ -595,7 +594,7 @@ MySettingsTab {
helpText: qsTr("The batch size used for prompt processing.")
Layout.row: 1
Layout.column: 0
Layout.maximumWidth: 300
Layout.maximumWidth: 300 * theme.fontScale
}
MyTextField {
id: batchSizeField
Expand Down Expand Up @@ -642,7 +641,7 @@ MySettingsTab {
helpText: qsTr("Repetition penalty factor. Set to 1 to disable.")
Layout.row: 4
Layout.column: 2
Layout.maximumWidth: 300
Layout.maximumWidth: 300 * theme.fontScale
}
MyTextField {
id: repeatPenaltyField
Expand Down Expand Up @@ -687,7 +686,7 @@ MySettingsTab {
helpText: qsTr("Number of previous tokens used for penalty.")
Layout.row: 3
Layout.column: 2
Layout.maximumWidth: 300
Layout.maximumWidth: 300 * theme.fontScale
}
MyTextField {
id: repeatPenaltyTokenField
Expand Down Expand Up @@ -733,7 +732,7 @@ MySettingsTab {
helpText: qsTr("Number of model layers to load into VRAM.")
Layout.row: 4
Layout.column: 0
Layout.maximumWidth: 300
Layout.maximumWidth: 300 * theme.fontScale
}
MyTextField {
id: gpuLayersField
Expand Down

0 comments on commit ca95bb9

Please sign in to comment.