From f07b9193857c98ce33e0ac80e85aeb6c76f5fa54 Mon Sep 17 00:00:00 2001 From: Roland Tannous Date: Sat, 14 Feb 2026 05:02:26 +0000 Subject: [PATCH 1/5] change default frontend path in run.py to studio/frontend/dist --- studio/backend/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/studio/backend/run.py b/studio/backend/run.py index 3567401feb..88789e813a 100644 --- a/studio/backend/run.py +++ b/studio/backend/run.py @@ -124,7 +124,7 @@ if __name__ == "__main__": parser.add_argument("--host", default="0.0.0.0", help="Host to bind to") parser.add_argument("--port", type=int, default=8000, help="Port to bind to") parser.add_argument( - "--frontend", type=str, default="../frontend/dist", help="Path to frontend build" + "--frontend", type=str, default="studio/frontend/dist", help="Path to frontend build" ) parser.add_argument("--silent", action="store_true", help="Suppress output") From 6b2a777f97f49bffa5bbbd167da8edd9b042e9b3 Mon Sep 17 00:00:00 2001 From: Roland Tannous Date: Sat, 14 Feb 2026 05:06:17 +0000 Subject: [PATCH 2/5] fix path in run_server --- studio/backend/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/studio/backend/run.py b/studio/backend/run.py index 88789e813a..0959746a19 100644 --- a/studio/backend/run.py +++ b/studio/backend/run.py @@ -59,7 +59,7 @@ def _resolve_external_ip() -> str: def run_server( host: str = "0.0.0.0", port: int = 8000, - frontend_path: Path = "../frontend/dist", + frontend_path: Path = "studio/frontend/dist", silent: bool = False, ): """ From 7260c09268640cf21ab0a045f5b5f808b63cd2f1 Mon Sep 17 00:00:00 2001 From: Roland Tannous Date: Sat, 14 Feb 2026 05:13:49 +0000 Subject: [PATCH 3/5] change line arguments order in setup.sh --- setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 7cf90d4146..bead2ce40b 100755 --- a/setup.sh +++ b/setup.sh @@ -95,7 +95,7 @@ echo "✅ Python dependencies installed" # This alias hardcodes the venv python path so users don't need to activate. echo "" REPO_DIR="$SCRIPT_DIR" -ALIAS_LINE="unsloth-ui() { ${REPO_DIR}/.venv/bin/python ${REPO_DIR}/cli.py ui -f ${REPO_DIR}/studio/frontend/dist \"\$@\"; }" +ALIAS_LINE="unsloth-ui() { ${REPO_DIR}/.venv/bin/python ${REPO_DIR}/cli.py ui \"\$@\" -f ${REPO_DIR}/studio/frontend/dist; }" if ! grep -qF "unsloth-ui" ~/.bashrc 2>/dev/null; then echo "" >> ~/.bashrc From e09c5dfc7e0dae40524d3e0efbc5ba2871dc3b7e Mon Sep 17 00:00:00 2001 From: Roland Tannous Date: Sat, 14 Feb 2026 05:24:54 +0000 Subject: [PATCH 4/5] fix alias command --- setup.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/setup.sh b/setup.sh index bead2ce40b..2d74b60976 100755 --- a/setup.sh +++ b/setup.sh @@ -95,12 +95,13 @@ echo "✅ Python dependencies installed" # This alias hardcodes the venv python path so users don't need to activate. echo "" REPO_DIR="$SCRIPT_DIR" -ALIAS_LINE="unsloth-ui() { ${REPO_DIR}/.venv/bin/python ${REPO_DIR}/cli.py ui \"\$@\" -f ${REPO_DIR}/studio/frontend/dist; }" if ! grep -qF "unsloth-ui" ~/.bashrc 2>/dev/null; then - echo "" >> ~/.bashrc - echo "# Unsloth Studio launcher" >> ~/.bashrc - echo "$ALIAS_LINE" >> ~/.bashrc + cat >> ~/.bashrc < Date: Sat, 14 Feb 2026 05:28:47 +0000 Subject: [PATCH 5/5] replace function with alias --- setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 2d74b60976..e5a41d371f 100755 --- a/setup.sh +++ b/setup.sh @@ -100,7 +100,7 @@ if ! grep -qF "unsloth-ui" ~/.bashrc 2>/dev/null; then cat >> ~/.bashrc <