Added Gradio WebUI for browser-based training#1330
Draft
krigeta wants to merge 4 commits intoNerogar:masterfrom
Draft
Added Gradio WebUI for browser-based training#1330krigeta wants to merge 4 commits intoNerogar:masterfrom
krigeta wants to merge 4 commits intoNerogar:masterfrom
Conversation
|
Any screenshots? |
Same. Looks promising, but @krigeta needs to do some work before submitting this PR. |
Collaborator
|
This looks surprisingly complete for a first draft.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Summary
This PR adds a browser-based WebUI for OneTrainer using Gradio 5.x. The WebUI is a complete replica of the existing desktop UI, accessible through any web browser.
What's Added
modules/webui/) — complete Gradio interface with all tabsNew Files
modules/webui/app.py— main Gradio applicationmodules/webui/webui_state.py— thread-safe training statemodules/webui/webui_bridge.py— training lifecycle managementmodules/webui/config_io.py— config serialization helpersmodules/webui/tabs/*.py— 11 tab modules (general, model, data, concepts, training, sampling, backup, tools, embeddings, lora, cloud)scripts/train_webui.py— WebUI entry pointrequirements-webui.txt— Gradio dependencystart-webui.bat— Windows launch scriptHow to Use
Install Gradio:
pip install -r requirements-webui.txt
Launch WebUI:
python scripts/train_webui.py
Or on Windows:
start-webui.bat
Then open http://localhost:7860 in your browser.
Features
Testing
Tested on Windows 11 with:
Notes
create_trainer,TrainCallbacks,TrainCommands,TrainConfig)modules/webui/directory