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
add studio command line argument to start unsloth studio UI
Roland Tannous32e72a12ae59
diff --git a/cli/__init__.py b/cli/__init__.pyindex 58c949b28b1..7a0918d16b5 100644--- a/cli/__init__.py+++ b/cli/__init__.py@@ -4,6 +4,7 @@ from cli.commands.train import trainfrom cli.commands.inference import inferencefrom cli.commands.export import export, list_checkpointsfrom cli.commands.ui import ui+from cli.commands.studio import studioapp = typer.Typer(help="Command-line interface for Unsloth training, inference, and export.",@@ -15,3 +16,4 @@ app.command()(inference)app.command()(export)app.command("list-checkpoints")(list_checkpoints)app.command()(ui)+app.command()(studio)diff --git a/cli/commands/studio.py b/cli/commands/studio.pynew file mode 100644index 00000000000..6e20a19436c--- /dev/null+++ b/cli/commands/studio.py@@ -0,0 +1,19 @@+import typer+++def studio(+ 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",+ )