Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
CLI command for UI
Dan Saundersf47ebfd237ee
diff --git a/cli/__init__.py b/cli/__init__.pyindex 08f8f02813f..58c949b28b1 100644--- a/cli/__init__.py+++ b/cli/__init__.py@@ -3,6 +3,7 @@ import typerfrom cli.commands.train import trainfrom cli.commands.inference import inferencefrom cli.commands.export import export, list_checkpoints+from cli.commands.ui import uiapp = typer.Typer(help="Command-line interface for Unsloth training, inference, and export.",@@ -13,3 +14,4 @@ app.command()(train)app.command()(inference)app.command()(export)app.command("list-checkpoints")(list_checkpoints)+app.command()(ui)diff --git a/cli/commands/ui.py b/cli/commands/ui.pynew file mode 100644index 00000000000..5a8459600c3--- /dev/null+++ b/cli/commands/ui.py@@ -0,0 +1,19 @@+import typer+++def ui(+ port: int = typer.Option(8000, "--port", "-p", help="Port to run the UI server on."),+ host: str = typer.Option("0.0.0.0", "--host", "-H", help="Host address to bind to."),+ share: bool = typer.Option(False, "--share", "-s", help="Create a public Gradio share link."),+):+ """Launch the Unsloth web UI for training, inference, and export."""+ from app import demo, script_dir++ typer.echo(f"Starting Unsloth UI on http://{host}:{port}")++ demo.launch(+ share=share,+ server_port=port,+ server_name=host,+ favicon_path=f"{script_dir}/assets/favicon-32x32.png",+ )