mirror of
https://github.com/nomic-ai/gpt4all
synced 2024-11-06 09:20:33 +00:00
Hardcode more of the style to get around differences on OS.
This commit is contained in:
parent
876f0537b4
commit
fa1add3665
@ -8,7 +8,6 @@ Dialog {
|
|||||||
id: modelDownloaderDialog
|
id: modelDownloaderDialog
|
||||||
width: 1024
|
width: 1024
|
||||||
height: 400
|
height: 400
|
||||||
title: "Model Downloader"
|
|
||||||
modal: true
|
modal: true
|
||||||
opacity: 0.9
|
opacity: 0.9
|
||||||
closePolicy: LLM.modelList.length === 0 ? Popup.NoAutoClose : (Popup.CloseOnEscape | Popup.CloseOnPressOutside)
|
closePolicy: LLM.modelList.length === 0 ? Popup.NoAutoClose : (Popup.CloseOnEscape | Popup.CloseOnPressOutside)
|
||||||
@ -50,10 +49,9 @@ Dialog {
|
|||||||
delegate: Item {
|
delegate: Item {
|
||||||
id: delegateItem
|
id: delegateItem
|
||||||
width: modelList.width
|
width: modelList.width
|
||||||
height: 50
|
height: 70
|
||||||
objectName: "delegateItem"
|
objectName: "delegateItem"
|
||||||
property bool downloading: false
|
property bool downloading: false
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: index % 2 === 0 ? "#2c2f33" : "#1e2125"
|
color: index % 2 === 0 ? "#2c2f33" : "#1e2125"
|
||||||
@ -145,6 +143,7 @@ Dialog {
|
|||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.rightMargin: 10
|
anchors.rightMargin: 10
|
||||||
visible: !modelData.installed
|
visible: !modelData.installed
|
||||||
|
padding: 10
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if (!downloading) {
|
if (!downloading) {
|
||||||
downloading = true;
|
downloading = true;
|
||||||
@ -154,6 +153,13 @@ Dialog {
|
|||||||
Download.cancelDownload(modelData.filename);
|
Download.cancelDownload(modelData.filename);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
background: Rectangle {
|
||||||
|
opacity: .5
|
||||||
|
border.color: "#7d7d8e"
|
||||||
|
border.width: 1
|
||||||
|
radius: 10
|
||||||
|
color: "#343541"
|
||||||
|
}
|
||||||
Accessible.role: Accessible.Button
|
Accessible.role: Accessible.Button
|
||||||
Accessible.name: text
|
Accessible.name: text
|
||||||
Accessible.description: qsTr("Cancel/Download button to stop/start the download")
|
Accessible.description: qsTr("Cancel/Download button to stop/start the download")
|
||||||
|
@ -9,7 +9,6 @@ import llm
|
|||||||
Dialog {
|
Dialog {
|
||||||
id: settingsDialog
|
id: settingsDialog
|
||||||
modal: true
|
modal: true
|
||||||
title: qsTr("Settings")
|
|
||||||
height: 600
|
height: 600
|
||||||
width: 600
|
width: 600
|
||||||
opacity: 0.9
|
opacity: 0.9
|
||||||
@ -78,11 +77,18 @@ Dialog {
|
|||||||
Label {
|
Label {
|
||||||
id: tempLabel
|
id: tempLabel
|
||||||
text: qsTr("Temperature:")
|
text: qsTr("Temperature:")
|
||||||
|
color: "#d1d5db"
|
||||||
Layout.row: 0
|
Layout.row: 0
|
||||||
Layout.column: 0
|
Layout.column: 0
|
||||||
}
|
}
|
||||||
TextField {
|
TextField {
|
||||||
text: settings.temperature.toString()
|
text: settings.temperature.toString()
|
||||||
|
color: "#d1d5db"
|
||||||
|
background: Rectangle {
|
||||||
|
implicitWidth: 150
|
||||||
|
color: "#40414f"
|
||||||
|
radius: 10
|
||||||
|
}
|
||||||
ToolTip.text: qsTr("Temperature increases the chances of choosing less likely tokens - higher temperature gives more creative but less predictable outputs")
|
ToolTip.text: qsTr("Temperature increases the chances of choosing less likely tokens - higher temperature gives more creative but less predictable outputs")
|
||||||
ToolTip.visible: hovered
|
ToolTip.visible: hovered
|
||||||
Layout.row: 0
|
Layout.row: 0
|
||||||
@ -105,11 +111,18 @@ Dialog {
|
|||||||
Label {
|
Label {
|
||||||
id: topPLabel
|
id: topPLabel
|
||||||
text: qsTr("Top P:")
|
text: qsTr("Top P:")
|
||||||
|
color: "#d1d5db"
|
||||||
Layout.row: 1
|
Layout.row: 1
|
||||||
Layout.column: 0
|
Layout.column: 0
|
||||||
}
|
}
|
||||||
TextField {
|
TextField {
|
||||||
text: settings.topP.toString()
|
text: settings.topP.toString()
|
||||||
|
color: "#d1d5db"
|
||||||
|
background: Rectangle {
|
||||||
|
implicitWidth: 150
|
||||||
|
color: "#40414f"
|
||||||
|
radius: 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.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
|
ToolTip.visible: hovered
|
||||||
Layout.row: 1
|
Layout.row: 1
|
||||||
@ -132,11 +145,18 @@ Dialog {
|
|||||||
Label {
|
Label {
|
||||||
id: topKLabel
|
id: topKLabel
|
||||||
text: qsTr("Top K:")
|
text: qsTr("Top K:")
|
||||||
|
color: "#d1d5db"
|
||||||
Layout.row: 2
|
Layout.row: 2
|
||||||
Layout.column: 0
|
Layout.column: 0
|
||||||
}
|
}
|
||||||
TextField {
|
TextField {
|
||||||
text: settings.topK.toString()
|
text: settings.topK.toString()
|
||||||
|
color: "#d1d5db"
|
||||||
|
background: Rectangle {
|
||||||
|
implicitWidth: 150
|
||||||
|
color: "#40414f"
|
||||||
|
radius: 10
|
||||||
|
}
|
||||||
ToolTip.text: qsTr("Only the top K most likely tokens will be chosen from")
|
ToolTip.text: qsTr("Only the top K most likely tokens will be chosen from")
|
||||||
ToolTip.visible: hovered
|
ToolTip.visible: hovered
|
||||||
Layout.row: 2
|
Layout.row: 2
|
||||||
@ -159,11 +179,18 @@ Dialog {
|
|||||||
Label {
|
Label {
|
||||||
id: maxLengthLabel
|
id: maxLengthLabel
|
||||||
text: qsTr("Max Length:")
|
text: qsTr("Max Length:")
|
||||||
|
color: "#d1d5db"
|
||||||
Layout.row: 3
|
Layout.row: 3
|
||||||
Layout.column: 0
|
Layout.column: 0
|
||||||
}
|
}
|
||||||
TextField {
|
TextField {
|
||||||
text: settings.maxLength.toString()
|
text: settings.maxLength.toString()
|
||||||
|
color: "#d1d5db"
|
||||||
|
background: Rectangle {
|
||||||
|
implicitWidth: 150
|
||||||
|
color: "#40414f"
|
||||||
|
radius: 10
|
||||||
|
}
|
||||||
ToolTip.text: qsTr("Maximum length of response in tokens")
|
ToolTip.text: qsTr("Maximum length of response in tokens")
|
||||||
ToolTip.visible: hovered
|
ToolTip.visible: hovered
|
||||||
Layout.row: 3
|
Layout.row: 3
|
||||||
@ -187,11 +214,18 @@ Dialog {
|
|||||||
Label {
|
Label {
|
||||||
id: batchSizeLabel
|
id: batchSizeLabel
|
||||||
text: qsTr("Prompt Batch Size:")
|
text: qsTr("Prompt Batch Size:")
|
||||||
|
color: "#d1d5db"
|
||||||
Layout.row: 4
|
Layout.row: 4
|
||||||
Layout.column: 0
|
Layout.column: 0
|
||||||
}
|
}
|
||||||
TextField {
|
TextField {
|
||||||
text: settings.promptBatchSize.toString()
|
text: settings.promptBatchSize.toString()
|
||||||
|
color: "#d1d5db"
|
||||||
|
background: Rectangle {
|
||||||
|
implicitWidth: 150
|
||||||
|
color: "#40414f"
|
||||||
|
radius: 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.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
|
ToolTip.visible: hovered
|
||||||
Layout.row: 4
|
Layout.row: 4
|
||||||
@ -215,11 +249,18 @@ Dialog {
|
|||||||
Label {
|
Label {
|
||||||
id: nThreadsLabel
|
id: nThreadsLabel
|
||||||
text: qsTr("CPU Threads")
|
text: qsTr("CPU Threads")
|
||||||
|
color: "#d1d5db"
|
||||||
Layout.row: 5
|
Layout.row: 5
|
||||||
Layout.column: 0
|
Layout.column: 0
|
||||||
}
|
}
|
||||||
TextField {
|
TextField {
|
||||||
text: LLM.threadCount.toString()
|
text: LLM.threadCount.toString()
|
||||||
|
color: "#d1d5db"
|
||||||
|
background: Rectangle {
|
||||||
|
implicitWidth: 150
|
||||||
|
color: "#40414f"
|
||||||
|
radius: 10
|
||||||
|
}
|
||||||
ToolTip.text: qsTr("Amount of processing threads to use")
|
ToolTip.text: qsTr("Amount of processing threads to use")
|
||||||
ToolTip.visible: hovered
|
ToolTip.visible: hovered
|
||||||
Layout.row: 5
|
Layout.row: 5
|
||||||
@ -242,6 +283,7 @@ Dialog {
|
|||||||
Label {
|
Label {
|
||||||
id: promptTemplateLabel
|
id: promptTemplateLabel
|
||||||
text: qsTr("Prompt Template:")
|
text: qsTr("Prompt Template:")
|
||||||
|
color: "#d1d5db"
|
||||||
Layout.row: 6
|
Layout.row: 6
|
||||||
Layout.column: 0
|
Layout.column: 0
|
||||||
}
|
}
|
||||||
@ -269,6 +311,12 @@ Dialog {
|
|||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
TextArea {
|
TextArea {
|
||||||
text: settings.promptTemplate
|
text: settings.promptTemplate
|
||||||
|
color: "#d1d5db"
|
||||||
|
background: Rectangle {
|
||||||
|
implicitWidth: 150
|
||||||
|
color: "#40414f"
|
||||||
|
radius: 10
|
||||||
|
}
|
||||||
wrapMode: TextArea.Wrap
|
wrapMode: TextArea.Wrap
|
||||||
onTextChanged: {
|
onTextChanged: {
|
||||||
settings.promptTemplate = text
|
settings.promptTemplate = text
|
||||||
|
Loading…
Reference in New Issue
Block a user