ui: Notebook Page#19339
Conversation
Fix buttons Fix model loading with router enabled remove stats for now lint
…s it is not saved
…lems + remove unused imports
|
Cool idea! I'd love to have something like this. |
I think let's have them added in a follow up PR :) you can always base your new branch on this one and then rebase after this one is merged ;) |
|
Just popping up again to say that I'd really love this feature, and look forward to see it merged when ready. Thank you for the work. |
Hey! I will be taking care of this PR in the upcoming week 😄 |
|
Guys, sorry for the late notice, but this PR will be worked on after merging #21237 as it introduces some UI/UX updates and it'd be good to align the Notebook to the updated look & feel. I'll keep u posted with the updates |
|
Note: I let Claude and Gemini deal with the complicated merge after moving from tools/server/webui to tools/ui and other master changes. |
|
Hey @leszekhanusz can you please create a Feature issue for this feature? :) It's possible that it might hav some parent/sibling issues and one or more PRs related to it and I'm currently triaging and cleaning up some of the PM stuff in the project this week. I'd appreciate any help with this :) |
Sure! I made the issue #23450 |
Close #23450
This PR adds a Notebook page to the llama.cpp webui which allows raw text generation instead of using the chat API.
It is useful for story generation and for debugging purposes.
Only a single notebook is available, it is not saved for now in localstorage.
Features:
This PR has been tested:
Disclaimer:
Remaining issues to discuss/plan:
DialogChatSettings->DialogSettingsDialogChatError->DialogErrorChatMessageStatistics->GenerationStatisticsIt has not been done here to not complicate further the code.
tokenizemethod to get the total number of tokens, even if the display of stats is disabled. The display of total tokens could be put activated/deactivated a new parameter in the settings.̶ T̶h̶e̶ ̶C̶o̶m̶p̶l̶e̶t̶i̶o̶n̶S̶e̶r̶v̶i̶c̶e̶ ̶a̶l̶l̶o̶w̶s̶ ̶b̶o̶t̶h̶ ̶s̶t̶r̶e̶a̶m̶ ̶a̶n̶d̶ ̶n̶o̶n̶-̶s̶t̶r̶e̶a̶m̶ ̶c̶a̶l̶l̶s̶,̶ ̶a̶s̶ ̶i̶t̶ ̶i̶s̶ ̶m̶o̶d̶e̶l̶e̶d̶ ̶a̶f̶t̶e̶r̶ ̶t̶h̶e̶ ̶C̶h̶a̶t̶S̶e̶r̶v̶i̶c̶e̶ ̶w̶h̶i̶c̶h̶ ̶d̶o̶e̶s̶ ̶t̶h̶e̶ ̶s̶a̶m̶e̶ ̶t̶h̶i̶n̶g̶.̶ ̶A̶s̶ ̶w̶e̶ ̶a̶r̶e̶ ̶u̶s̶i̶n̶g̶ ̶i̶t̶ ̶o̶n̶l̶y̶ ̶w̶i̶t̶h̶ ̶s̶t̶r̶e̶a̶m̶:̶t̶r̶u̶e̶ ̶w̶e̶ ̶c̶o̶u̶l̶d̶ ̶r̶e̶m̶o̶v̶e̶ ̶t̶h̶e̶ ̶n̶o̶n̶-̶s̶t̶r̶e̶a̶m̶ ̶h̶a̶n̶d̶l̶i̶n̶g̶?̶ REMOVED
I'll work on those remaining issues if there is interest in merging this PR.
Screenshots:
Peek.2026-02-04.18-37.webm