-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI and embedding device changes for GPT4All v3.0.0-rc3 #2477
Conversation
We introduce a MyTextButton class to accomplish this with less copy-pasting. Signed-off-by: Jared Van Bortel <[email protected]>
Signed-off-by: Jared Van Bortel <[email protected]>
Signed-off-by: Jared Van Bortel <[email protected]>
Signed-off-by: Jared Van Bortel <[email protected]>
Signed-off-by: Jared Van Bortel <[email protected]>
Signed-off-by: Jared Van Bortel <[email protected]>
Signed-off-by: Jared Van Bortel <[email protected]>
Signed-off-by: Jared Van Bortel <[email protected]>
Even with ngl=0, the CUDA backend uses the GPU. We want CPU fallback to be a true failsafe that doesn't require any available VRAM, or even a functioning GPU driver, so use the "auto" backend for fallback. Signed-off-by: Jared Van Bortel <[email protected]>
Signed-off-by: Jared Van Bortel <[email protected]>
Signed-off-by: Jared Van Bortel <[email protected]>
Signed-off-by: Jared Van Bortel <[email protected]>
Signed-off-by: Jared Van Bortel <[email protected]>
Signed-off-by: Jared Van Bortel <[email protected]>
Setting the value of 'checked' directly instead of binding the property fixes the issue where the box would appear checked after clicking cancel on the dialog that opens when you click on it. Signed-off-by: Jared Van Bortel <[email protected]>
Also adds a title to the top of each settings page. Signed-off-by: Jared Van Bortel <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Reviewed everything up to 7a097d6 in 1 minute and 20 seconds
More details
- Looked at
2346
lines of code in21
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. gpt4all-chat/qml/MyTextButton.qml:19
- Draft comment:
The implementation ofMyTextButton.qml
appears correct and follows QML best practices for creating reusable components. The use ofTapHandler
for click interactions andToolTip
for tooltips is appropriate. - Reason this comment was not posted:
Confidence changes required:0%
The PR introduces a new QML fileMyTextButton.qml
which defines a custom text button component. This component uses aText
element with aTapHandler
for click interactions and aToolTip
for displaying tooltips. The component is designed to be reusable across the application wherever a text button with a tooltip is needed. The implementation seems correct and follows QML best practices for creating custom components. The properties and signals are properly defined, and the visual feedback for hover states is handled using aHoverHandler
.
Workflow ID: wflow_4me9KCrkvuV2eHgF
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
⌛ 5 days left in your free trial, upgrade for $20/seat/month or contact us.
Summary:
Enhanced UI, refactored model loading logic, and added new settings for better user experience and maintainability.
Key points:
CMakeLists.txt
for better UI modularity.ChatLLM::loadModel
ingpt4all-chat/chatllm.cpp
to useChatLLM::loadNewModel
for better readability and maintainability.loadNewModel
function ingpt4all-chat/chatllm.cpp
for handling model loading logic.gpt4all-chat/chatllm.h
to declareloadNewModel
function.EmbeddingLLMWorker::loadModel
ingpt4all-chat/embllm.cpp
to support GPU acceleration and better error handling.gpt4all-chat/main.qml
for better scaling and alignment.gpt4all-chat/mysettings.cpp
andgpt4all-chat/mysettings.h
for embedding device selection and other configurations.AddModelView.qml
,ApplicationSettings.qml
,ChatDrawer.qml
,ChatView.qml
,CollectionsDrawer.qml
,HomeView.qml
,LocalDocsSettings.qml
,LocalDocsView.qml
,ModelSettings.qml
,ModelsView.qml
,MySettingsLabel.qml
,MyTextButton.qml
,MyToolButton.qml
,Theme.qml
) to improve UI consistency, accessibility, and functionality.Generated with ❤️ by ellipsis.dev