[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

qml: improve chats with missing models and model settings layout #2520

Merged
merged 5 commits into from
Jul 8, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
ModelSettings: fix layout at large font size
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
  • Loading branch information
cebtenzzre committed Jul 3, 2024
commit ca95bb9ffa4912d4f1592064042ea160da0acca6
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