Skip to content

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.

Use Unsloth for bare Studio product references (#9732)

Michael Han05cee801bbf1
diff --git a/.gitattributes b/.gitattributes
index ac2fe7e1ff0..ee530a83f56 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -9,7 +9,7 @@
# The vendored Swagger UI / ReDoc bundles are pinned by sha256 in
# studio/backend/assets/docs_ui/docs_ui_manifest.json and must stay byte-identical to the
# releases they came from. Without this a Windows clone (core.autocrlf=true) rewrites the
-# .js/.css/LICENSE files to CRLF, so every digest drifts and the bytes Studio serves are no
+# .js/.css/LICENSE files to CRLF, so every digest drifts and the bytes Unsloth serves are no
# longer the ones that were reviewed. -text disables conversion in both directions.
studio/backend/assets/docs_ui/** -text
diff --git a/.github/ISSUE_TEMPLATE/bug---issue.md b/.github/ISSUE_TEMPLATE/bug---issue.md
index 69e6b1f3aae..de1280b3788 100644
--- a/.github/ISSUE_TEMPLATE/bug---issue.md
+++ b/.github/ISSUE_TEMPLATE/bug---issue.md
@@ -10,7 +10,7 @@ assignees: ''
---
name: Unsloth Studio Bug
about: Report a problem with the Unsloth Studio desktop app or web UI
-title: "[Studio Bug] "
+title: "[Unsloth Bug] "
labels: bug
assignees: ""
---
@@ -25,8 +25,8 @@ datasets, or other sensitive information.
**Where are you using Unsloth?**
-- [ ] Studio desktop application
-- [ ] Studio web UI (`unsloth studio`)
+- [ ] Unsloth desktop application
+- [ ] Unsloth web UI (`unsloth studio`)
- [ ] Unsloth CLI
- [ ] Python package or notebook
- [ ] Colab or Kaggle
@@ -38,7 +38,7 @@ datasets, or other sensitive information.
**Versions:**
<!--
-For Studio, copy the Unsloth, package, desktop, and llama.cpp versions from
+For Unsloth, copy the Unsloth, package, desktop, and llama.cpp versions from
Settings → About when available.
-->
@@ -89,14 +89,14 @@ Useful files include:
- `logs/install-*.log`, `logs/update-*.log`, `logs/repair-*.log`, or `logs/backend-*.log`
- The newest `logs/server/server-*.log`
-### Studio web UI
+### Unsloth web UI
Attach the newest relevant items:
- Linux/macOS/Windows: `~/.unsloth/studio/logs/server/server-*.log`
(use `%USERPROFILE%\.unsloth\studio\logs\server\` on Windows)
- Linux/macOS shortcut launches only: `~/.local/share/unsloth/studio.log`
-- Terminal output if Studio was launched from a terminal
+- Terminal output if Unsloth was launched from a terminal
- Browser Console errors for browser-only problems
If you configured `UNSLOTH_STUDIO_HOME` or `STUDIO_HOME`, look under
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index c0bb21129b6..b7c3ae826df 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -67,7 +67,7 @@ updates:
default-days: 7
semver-minor-days: 3
semver-patch-days: 3
- # Tauri renders Studio on Linux through GTK3 and the gtk-rs GTK3
+ # Tauri renders Unsloth on Linux through GTK3 and the gtk-rs GTK3
# bindings are archived at 0.18.2, so `gtk`/`gdk` will never ship
# 0.19+. Moving `glib`/`gdk-pixbuf` past 0.18 puts two
# incompatible copies in the tree and native_clipboard.rs stops
diff --git a/.github/scripts/assert-llama-loads.sh b/.github/scripts/assert-llama-loads.sh
index 76dea3d6619..6b4cfc56251 100755
--- a/.github/scripts/assert-llama-loads.sh
+++ b/.github/scripts/assert-llama-loads.sh
@@ -52,7 +52,7 @@ if ! "$SERVER" --version >/tmp/llama-server-version.txt 2>&1; then
fail "llama-server failed to launch on macOS $HOST_VER (dyld load / symbol error)"
fi
-# The launch above uses this shell's environment, not the one Studio builds for
+# The launch above uses this shell's environment, not the one Unsloth builds for
# its child. That one was Linux-shaped on macOS (LD_LIBRARY_PATH, which dyld
# ignores) while the installer's own validation set DYLD_LIBRARY_PATH, so the
# defect could not show up at install time (#8566). A unit test with a
@@ -94,13 +94,13 @@ env = LlamaCppBackend._llama_server_env_for_binary(binary)
got = env.get("DYLD_LIBRARY_PATH", "")
print(f"DYLD_LIBRARY_PATH: {got or '<unset>'}")
if not got:
- sys.exit("Studio would launch llama-server with no DYLD_LIBRARY_PATH; dyld ignores LD_LIBRARY_PATH")
+ sys.exit("Unsloth would launch llama-server with no DYLD_LIBRARY_PATH; dyld ignores LD_LIBRARY_PATH")
if got.split(os.pathsep)[0] != lib_dir:
sys.exit(f"expected {lib_dir} first on DYLD_LIBRARY_PATH, got {got}")
print("child launch environment is correct for dyld")
PY
then
- fail "Studio's llama-server launch environment is wrong for macOS (see above)"
+ fail "Unsloth's llama-server launch environment is wrong for macOS (see above)"
fi
fi
diff --git a/.github/scripts/boot-studio-api-only.sh b/.github/scripts/boot-studio-api-only.sh
index 058052d3b09..4fbae8c0c4e 100755
--- a/.github/scripts/boot-studio-api-only.sh
+++ b/.github/scripts/boot-studio-api-only.sh
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved.
#
-# Wipe Studio's auth state and boot `unsloth studio` in the background, exporting
+# Wipe Unsloth's auth state and boot `unsloth studio` in the background, exporting
# the pid so a later step can stop it.
#
# Usage:
diff --git a/.github/scripts/kaggle_studio_ci/build_kernel.py b/.github/scripts/kaggle_studio_ci/build_kernel.py
index 574d9d42f51..f5b187d3322 100644
--- a/.github/scripts/kaggle_studio_ci/build_kernel.py
+++ b/.github/scripts/kaggle_studio_ci/build_kernel.py
@@ -1,18 +1,18 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved.
-"""Build the Kaggle kernel notebook that runs the Studio GPU payload.
+"""Build the Kaggle kernel notebook that runs the Unsloth GPU payload.
Sibling of ``.github/scripts/kaggle_t4_ci/build_kernel.py``, and deliberately
a separate file rather than a flag on it: that one carries a fixed list of
-payload sources inline and runs ``run_t4_smoke.py``, and Studio needs a real
+payload sources inline and runs ``run_t4_smoke.py``, and Unsloth needs a real
repository on the Kaggle side, which changes the shape of every cell. The
gate, the launcher and the notebook contract are shared; only the assembly
differs.
The differences worth knowing, all of them forced:
-**A checkout, not a pip install.** Studio is installed by ``install.sh
+**A checkout, not a pip install.** Unsloth is installed by ``install.sh
--local``, which builds the frontend, creates the ``unsloth_studio`` venv and
fetches or builds llama.cpp. That needs the repository on disk, so the kernel
clones it at the ref under test. A pleasant side effect: the payload the
@@ -27,12 +27,12 @@ collect it.
**One payload, not two.** The notebook leg runs one payload per T4 because
its payload is a single-GPU training script and the second card is free.
-Studio is a server, a browser and a llama.cpp process contending for four
+Unsloth is a server, a browser and a llama.cpp process contending for four
CPU cores; a second copy of all that on the same box measures contention
-rather than Studio. The second T4 is left idle on purpose.
+rather than Unsloth. The second T4 is left idle on purpose.
**No per-child virtualenv.** ``install.sh`` makes its own, at
-``$UNSLOTH_STUDIO_HOME/unsloth_studio``, and everything Studio-side runs
+``$UNSLOTH_STUDIO_HOME/unsloth_studio``, and everything Unsloth-side runs
under that interpreter. The notebook leg's ``uv venv --seed`` dance exists to
keep two concurrent pip installs apart, and there is only one here.
@@ -73,7 +73,7 @@ PAYLOAD_FILES = (
)
-# Runs under the Studio venv's interpreter and reports what is actually
+# Runs under the Unsloth venv's interpreter and reports what is actually
# importable there. Kept as a plain constant rather than spliced into a
# generated f-string cell: the notebook leg lost a whole GPU session to a
# cell that had been assembled out of nested quoting and did not parse.
@@ -116,7 +116,7 @@ def _code_cell(source: str) -> dict:
def build_payload_notebook(*, unsloth_ref: str, repo_url: str, payload_args: str) -> dict:
- """The notebook that installs Studio and runs the payload against it."""
+ """The notebook that installs Unsloth and runs the payload against it."""
setup = f"""# Where everything lives.
#
@@ -143,7 +143,7 @@ def _pick_work_root():
print(f" candidate {{candidate}}: {{free_gb:.0f}} GB free", flush=True)
if free_gb >= 60:
return candidate
- raise SystemExit("no work root with room for a Studio install")
+ raise SystemExit("no work root with room for an Unsloth install")
WORK = _pick_work_root()
REPO = WORK / "unsloth"
@@ -156,7 +156,7 @@ os.environ["UNSLOTH_STUDIO_HOME"] = str(STUDIO_HOME)
os.environ["HF_HOME"] = str(HF_HOME)
os.environ["TMPDIR"] = str(WORK / "tmp")
pathlib.Path(os.environ["TMPDIR"]).mkdir(parents=True, exist_ok=True)
-# The installer otherwise ends by offering to launch Studio, which in a batch
+# The installer otherwise ends by offering to launch Unsloth, which in a batch
# kernel is a prompt nobody answers.
os.environ["UNSLOTH_SKIP_AUTOSTART"] = "1"
os.environ["UNSLOTH_DISABLE_STATISTICS"] = "1"
@@ -221,7 +221,7 @@ print("{PAYLOAD_SENTINEL} checkout " + json.dumps({{"ref": REF, "head": head}}),
# server's dependency list and does not build the frontend, create the venv or
# put a llama.cpp on disk, all three of which this payload asserts against.
#
-# Torch is NOT skipped here. Every other Studio workflow installs with
+# Torch is NOT skipped here. Every other Unsloth workflow installs with
# --no-torch because its runner has no GPU to use one on; the training and
# export assertions need the real CUDA stack.
_install = sh(["bash", "install.sh", "--local"], cwd=str(REPO), timeout=5400, check=False,
@@ -262,14 +262,14 @@ print("{PAYLOAD_SENTINEL} probe rc=" + str(proc.returncode), flush=True)
print(proc.stdout[-4000:], flush=True)
if proc.returncode != 0:
print(proc.stderr[-4000:], flush=True)
- fail_report("the dependency probe could not run under the installed Studio venv")
+ fail_report("the dependency probe could not run under the installed Unsloth venv")
raise SystemExit("dependency probe failed")
probe = json.loads(proc.stdout.strip().splitlines()[-1])
print("{PAYLOAD_SENTINEL} versions " + json.dumps(probe["versions"]), flush=True)
if probe["missing"]:
print("{PAYLOAD_SENTINEL} MISSING " + json.dumps(probe["missing"]), flush=True)
- fail_report("the installed Studio venv is missing dependencies the payload needs: "
+ fail_report("the installed Unsloth venv is missing dependencies the payload needs: "
+ "; ".join(probe["missing"]))
raise SystemExit("payload dependencies incomplete")
if not probe.get("cuda", {{}}).get("available"):
@@ -291,10 +291,10 @@ if not probe.get("cuda", {{}}).get("available"):
_visible = []
print("{PAYLOAD_SENTINEL} NO CUDA host_gpus " + json.dumps(_visible), flush=True)
if _visible:
- fail_report("install.sh --local succeeded but the Studio venv cannot use CUDA "
+ fail_report("install.sh --local succeeded but the Unsloth venv cannot use CUDA "
"(torch.cuda.is_available() is False) on a box where nvidia-smi "
"reports " + str(len(_visible)) + " GPU(s): " + json.dumps(probe.get("cuda")))
- raise SystemExit("no CUDA device in the Studio venv, so there is nothing to test")
+ raise SystemExit("no CUDA device in the Unsloth venv, so there is nothing to test")
marker = STUDIO_HOME / "llama.cpp" / "UNSLOTH_PREBUILT_INFO.json"
info = {{}}
@@ -309,7 +309,7 @@ print("{PAYLOAD_SENTINEL} llama_cpp " + json.dumps({{
}}), flush=True)
"""
- run = f"""# Run the payload in a child of the Studio venv, not by importing it: it
+ run = f"""# Run the payload in a child of the Unsloth venv, not by importing it: it
# starts a server, spawns a browser and can be killed by either, and a child
# leaves this cell alive to report that.
cmd = [str(VENV_PY), str(REPO / "tests" / "kaggle" / "studio_gpu" / "run_studio_gpu.py"),
@@ -386,8 +386,8 @@ log = WORK / "studio_gpu_driver.log"
env = dict(os.environ)
env["PYTHONUNBUFFERED"] = "1"
-# Both T4s stay visible. A Kaggle session has two, a Studio user on this
-# hardware has two, and Studio's own device selection is part of what is
+# Both T4s stay visible. A Kaggle session has two, an Unsloth user on this
+# hardware has two, and Unsloth's own device selection is part of what is
# under test; masking one would test a machine nobody has.
started = time.time()
diff --git a/.github/scripts/kaggle_studio_ci/collect_evidence.py b/.github/scripts/kaggle_studio_ci/collect_evidence.py
index 7583e000a15..5d592d91978 100644
--- a/.github/scripts/kaggle_studio_ci/collect_evidence.py
+++ b/.github/scripts/kaggle_studio_ci/collect_evidence.py
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved.
-"""Unpack the Playwright evidence the Studio payload smuggled home.
+"""Unpack the Playwright evidence the Unsloth payload smuggled home.
Kaggle's ``kernels output`` returns the whole of ``/kaggle/working``, and the
shared launcher deliberately does not take it: a previous incident lost two
diff --git a/.github/scripts/kaggle_studio_ci/report.py b/.github/scripts/kaggle_studio_ci/report.py
index 1a3805ce61e..b64eebdfaf3 100644
--- a/.github/scripts/kaggle_studio_ci/report.py
+++ b/.github/scripts/kaggle_studio_ci/report.py
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved.
-"""Turn the Studio payload's report into a job summary and an exit code.
+"""Turn the Unsloth payload's report into a job summary and an exit code.
Sibling of ``.github/scripts/kaggle_t4_ci/report.py``, which holds the same
line and is reused wholesale for everything that is not rendering: the
@@ -68,7 +68,7 @@ def _notice(level: str, title: str, message: str) -> None:
# not have to open the payload to know whether a tick means anything.
ASSERTION_BLURB = {
"preflight": "a GPU is present and there is disk to use it",
- "studio_ready": "Studio answered /api/health as healthy, hardware detection settled",
+ "studio_ready": "Unsloth answered /api/health as healthy, hardware detection settled",
"authenticate": "the bootstrap credential worked",
"gpu_inference": "the GGUF was on the GPU, not on a CPU fallback that returns text anyway",
"tool_calling": "the model emitted a real tool call, not prose",
@@ -150,11 +150,11 @@ def main() -> int:
result_file = evidence / "launch_result.json"
if not result_file.exists():
_summary(
- "### Studio GPU smoke\n\nNo launch result was written. The launcher did not "
+ "### Unsloth GPU smoke\n\nNo launch result was written. The launcher did not "
"get far enough to record anything, so nothing is known about the code "
"under test."
)
- _notice("warning", "Studio GPU smoke did not run", "no launch_result.json was produced")
+ _notice("warning", "Unsloth GPU smoke did not run", "no launch_result.json was produced")
return 0
result = json.loads(result_file.read_text(encoding = "utf-8"))
@@ -163,11 +163,11 @@ def main() -> int:
reports = result.get("reports", [])
header = {
- "pass": "### Studio GPU smoke: PASS",
- "fail": "### Studio GPU smoke: FAIL",
- "partial": "### Studio GPU smoke: PARTIAL",
- "infra": "### Studio GPU smoke: NOT RUN",
- }.get(verdict, "### Studio GPU smoke")
+ "pass": "### Unsloth GPU smoke: PASS",
+ "fail": "### Unsloth GPU smoke: FAIL",
+ "partial": "### Unsloth GPU smoke: PARTIAL",
+ "infra": "### Unsloth GPU smoke: NOT RUN",
+ }.get(verdict, "### Unsloth GPU smoke")
lines = [header, "", reason, ""]
if result.get("slug"):
@@ -211,13 +211,13 @@ def main() -> int:
_summary("\n".join(lines))
if verdict == "fail":
- _notice("error", "Studio GPU smoke failed", reason)
+ _notice("error", "Unsloth GPU smoke failed", reason)
return 1
if verdict == "partial":
- _notice("warning", "Studio GPU smoke partially reported", reason)
+ _notice("warning", "Unsloth GPU smoke partially reported", reason)
return 0
if verdict == "infra":
- _notice("warning", "Studio GPU smoke did not run", reason)
+ _notice("warning", "Unsloth GPU smoke did not run", reason)
return 0
return 0
diff --git a/.github/scripts/kaggle_t4_ci/BUDGET.md b/.github/scripts/kaggle_t4_ci/BUDGET.md
index 830147fce46..0717c1bef07 100644
--- a/.github/scripts/kaggle_t4_ci/BUDGET.md
+++ b/.github/scripts/kaggle_t4_ci/BUDGET.md
@@ -29,7 +29,7 @@ the `paths:` list in the workflow: `unsloth/**`, `tests/kaggle/**`,
`.github/scripts/kaggle_t4_ci/**`, the workflow file itself, and
`pyproject.toml` (the payloads install the commit under test as a
distribution, so how it is built and what it depends on is part of what this
-tests). A PR that only edits Studio frontend or docs cannot regress a T4
+tests). A PR that only edits Unsloth frontend or docs cannot regress a T4
training run, and spending a GPU session on it buys nothing.
Eligible invocations per week:
@@ -91,8 +91,8 @@ where only one card still has work costs no more than the rest of the session.
What two kernels cost was the whole ACCOUNT: they took both of Kaggle's
concurrent sessions, so `kaggle-t4-studio-gpu-ci.yml`, which shares this
account, could not push at all and queued behind the entire notebook job
-(measured: Studio run `32607617804` waited ~40 minutes on notebook run
-`32607621452`). One kernel leaves the second session for Studio, and the two
+(measured: Unsloth run `32607617804` waited ~40 minutes on notebook run
+`32607621452`). One kernel leaves the second session for Unsloth, and the two
workflows now hold separate GitHub concurrency groups so they can use it.
The **~0.25 h** envelope below is deliberately NOT lowered to the measured
@@ -140,7 +140,7 @@ filed), and this workflow pushes ONE session, billing its wall clock once. So
It was `2 x 13800s = 7.7 GPU-h, set to 8` while the legs travelled as two
kernels. The multiplier is how many sessions THIS invocation pushes, not
-Kaggle's per-account cap of 2: the other slot may be Studio's, and Studio
+Kaggle's per-account cap of 2: the other slot may be Unsloth's, and Unsloth
reserves against its own budget rather than this one.
`test_the_reserved_budget_covers_every_billable_launcher_phase` recomputes it
from `launch.py` and `--kernels`; do not edit the number here or in the
diff --git a/.github/scripts/kaggle_t4_ci/gate.py b/.github/scripts/kaggle_t4_ci/gate.py
index 849d1a30149..3254f5898fc 100644
--- a/.github/scripts/kaggle_t4_ci/gate.py
+++ b/.github/scripts/kaggle_t4_ci/gate.py
@@ -103,7 +103,7 @@ ALLOWED_IN_FLIGHT_FOREIGN_KERNELS = 0
# account is shared with human use, so a run held every seat there was. And
# kaggle-t4-studio-gpu-ci.yml is on the same account: with no slot left it could
# not push at all, and the shared concurrency group meant it did not even try
-# until the notebook job had finished (measured: Studio's run 32607617804 queued
+# until the notebook job had finished (measured: Unsloth's run 32607617804 queued
# about 40 minutes behind notebook run 32607621452).
#
# The legs did not have to be split to fit. They now queue INSIDE one kernel --
diff --git a/.github/scripts/kaggle_t4_ci/legs.py b/.github/scripts/kaggle_t4_ci/legs.py
index 995d3ad9ff2..5e18a6269d6 100644
--- a/.github/scripts/kaggle_t4_ci/legs.py
+++ b/.github/scripts/kaggle_t4_ci/legs.py
@@ -435,8 +435,8 @@ UNWIRED: dict[str, str] = {
# cost 662s of billing against 646s for one kernel of four: a rounding error.
# What two kernels cost is the whole ACCOUNT. Kaggle allows two concurrent GPU
# sessions, two kernels take both, and kaggle-t4-studio-gpu-ci.yml runs on the
-# same account -- so the notebook leg locked Studio out entirely for as long as
-# it ran (measured: Studio's run 32607617804 queued ~40 minutes behind notebook
+# same account -- so the notebook leg locked Unsloth out entirely for as long as
+# it ran (measured: Unsloth's run 32607617804 queued ~40 minutes behind notebook
# run 32607621452). One kernel holds one session and leaves the other free, and
# the two workflows now hold separate GitHub concurrency groups so they can
# actually use it. Splitting the group without packing the kernel, or packing
diff --git a/.github/scripts/parity-find-unsloth.sh b/.github/scripts/parity-find-unsloth.sh
index 2a7581838fe..9e467a5555a 100755
--- a/.github/scripts/parity-find-unsloth.sh
+++ b/.github/scripts/parity-find-unsloth.sh
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved.
#
-# Print the absolute path of the `unsloth` CLI belonging to ONE Studio home.
+# Print the absolute path of the `unsloth` CLI belonging to ONE Unsloth home.
#
# Usage:
# parity-find-unsloth.sh <studio-home>
@@ -17,7 +17,7 @@
# The layout is `$STUDIO_HOME/unsloth_studio/bin/unsloth` (install.sh sets
# VENV_DIR="$STUDIO_HOME/unsloth_studio"). The other candidates are the legacy
# layouts `runtime/lifecycle._find_unsloth_bin` still accepts; they are checked
-# so this script and that function cannot disagree about where a Studio lives.
+# so this script and that function cannot disagree about where an Unsloth lives.
# Nothing is guessed: if no candidate exists this fails loudly rather than
# falling back to whatever PATH offers.
diff --git a/.github/scripts/run-studio-ui-lane.sh b/.github/scripts/run-studio-ui-lane.sh
index 3feb410dc1f..5c8887b6b1e 100644
--- a/.github/scripts/run-studio-ui-lane.sh
+++ b/.github/scripts/run-studio-ui-lane.sh
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved.
#
-# One lane of the Windows Chat UI Tests job, start to finish: boot a Studio on
+# One lane of the Windows Chat UI Tests job, start to finish: boot an Unsloth on
# this lane's own port and own UNSLOTH_STUDIO_HOME, rotate the bootstrap
# password, drive its Playwright suites, stop the server.
#
@@ -47,7 +47,7 @@
# UNSLOTH_STUDIO_HOME is the CLI's INSTALL root, not just a data root, so a bare
# empty directory is not usable: unsloth_cli/commands/studio.py resolves
# $UNSLOTH_STUDIO_HOME/unsloth_studio/Scripts/python.exe and exits "Unsloth
-# Studio not set up. Run install.sh first." before binding a port. Each lane
+# Unsloth not set up. Run install.sh first." before binding a port. Each lane
# home therefore links the one venv install.ps1 already built and owns only the
# mutable state beside it.
#
diff --git a/.github/scripts/wait-for-health.sh b/.github/scripts/wait-for-health.sh
index 6d83e88a0f5..0047270936e 100755
--- a/.github/scripts/wait-for-health.sh
+++ b/.github/scripts/wait-for-health.sh
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved.
#
-# Poll a booted Studio's /api/health until it reports healthy, and on timeout
+# Poll a booted Unsloth's /api/health until it reports healthy, and on timeout
# print the tail of that server's log before failing.
#
# Usage:
@@ -65,7 +65,7 @@ done
# Two halves of one bound, and neither works without the other.
#
# --max-time, because curl sets no maximum transfer time by default and
-# --connect-timeout stops helping the moment the handshake completes. A Studio
+# --connect-timeout stops helping the moment the handshake completes. An Unsloth
# that binds the port and then wedges its event loop -- the shape of a wedged
# server on a 4 vCPU runner with four of them on it -- parks the FIRST
# iteration forever, and an iteration count is not a deadline if an iteration
diff --git a/.github/workflows/consolidated-tests-ci.yml b/.github/workflows/consolidated-tests-ci.yml
index 6053ffae42a..0c3a4b190c6 100644
--- a/.github/workflows/consolidated-tests-ci.yml
+++ b/.github/workflows/consolidated-tests-ci.yml
@@ -406,7 +406,7 @@ jobs:
# against simulated CPU counts and memory so the result is identical on
# a 4-vCPU runner and a 192-core box.
#
- # The Studio file runs here rather than in studio-backend-ci, which
+ # The Unsloth file runs here rather than in studio-backend-ci, which
# installs studio.txt and so has no unsloth_zoo at all. Note the policy
# module is not on unsloth_zoo main either until the companion PR lands,
# and this job clones UNSLOTH_ZOO_REF (main by default) -- so those cases
diff --git a/.github/workflows/kaggle-t4-notebook-ci.yml b/.github/workflows/kaggle-t4-notebook-ci.yml
index 71d3e99cc03..7801847e191 100644
--- a/.github/workflows/kaggle-t4-notebook-ci.yml
+++ b/.github/workflows/kaggle-t4-notebook-ci.yml
@@ -30,7 +30,7 @@
# two shapes cost within a few percent of each other. It is that two kernels
# took BOTH of the account's concurrent sessions and locked
# kaggle-t4-studio-gpu-ci.yml, which shares the account, out entirely. One
-# kernel leaves the second session for Studio.
+# kernel leaves the second session for Unsloth.
#
# A fifth leg, `grpo` (Qwen3-4B through a vLLM engine), is written and NOT
# wired: its vLLM standby path hits an intermittent illegal memory access on
@@ -79,9 +79,9 @@
# 50 of those 60 go to CI and the last 10 are held for human use. That 50 is
# SHARED with kaggle-t4-studio-gpu-ci.yml, which is the expensive leg: ~0.75
# GPU-h per launch against this one's ~0.25, on a larger eligible event stream.
-# The split is Studio 35, this leg 15, and the reserves below are what enforce
+# The split is Unsloth 35, this leg 15, and the reserves below are what enforce
# the priority rather than a comment: this leg stands down at 40h spent
-# account-wide, Studio runs on to 50h. A change to either rate is a change to
+# account-wide, Unsloth runs on to 50h. A change to either rate is a change to
# both budget blocks.
#
# This workflow is allotted 15 GPU-h/week of it, held in four independent layers:
@@ -93,7 +93,7 @@
# to start unless what remains covers this run's worst case PLUS a 20h
# reserve. Against a 60h account that reserve makes the 15h allowance a
# HARD ceiling rather than an average, whatever the sampling rate does.
-# It is 10 higher than the Studio leg's 10 on purpose: the two share one
+# It is 10 higher than the Unsloth leg's 10 on purpose: the two share one
# account and the cheap leg is the one that should yield the tail of the
# week to the expensive one rather than race it for the same hours.
# 4. A concurrency check. Kaggle caps concurrent batch GPU kernels at 2 per
@@ -153,7 +153,7 @@
# against the 15 GPU-h allowance: 5% to 14% of the 60h account.
#
# An earlier revision of this block ran 40% for ~23 GPU-h/week, sized against
-# a 40h allowance from before the Studio leg existed. Two legs at ~23 each is
+# a 40h allowance from before the Unsloth leg existed. Two legs at ~23 each is
# 46 of the 50 CI is allowed, with the whole margin gone on the cheaper one.
# 15% is that rate re-solved against the 15h share, not a throttle applied to
# a rate that was still correct.
@@ -358,7 +358,7 @@ jobs:
# account budget is 60h, so refusing to start below 20h remaining means
# this leg can never have spent more than 40h in a week, whatever the
# sampling estimate above got wrong. It is deliberately 10 above the
- # Studio leg's 10, which is what makes this the leg that yields: the
+ # Unsloth leg's 10, which is what makes this the leg that yields: the
# lower of the two reserves is what implements "CI may use up to 50 of
# the 60 hours". Raise it to throttle harder, but not above roughly 45 or
# it never runs at all on a week with any other usage.
@@ -463,10 +463,10 @@ jobs:
# The group is per WORKFLOW now, where it used to be one string shared with
# kaggle-t4-studio-gpu-ci.yml. Sharing it was correct while this job pushed
# TWO kernels: that took both of the account's concurrent sessions, so
- # Studio had to queue rather than race the cap and lose a push. This job now
+ # Unsloth had to queue rather than race the cap and lose a push. This job now
# packs every leg into one kernel and holds one session, which leaves the
- # second for Studio -- and a shared group would keep Studio locked out of a
- # seat that is now free. Measured before the change: Studio's run
+ # second for Unsloth -- and a shared group would keep Unsloth locked out of a
+ # seat that is now free. Measured before the change: Unsloth's run
# 32607617804 sat queued about 40 minutes behind notebook run 32607621452.
#
# This only stays safe while each workflow pushes ONE kernel. Two workflows
diff --git a/.github/workflows/kaggle-t4-studio-gpu-ci.yml b/.github/workflows/kaggle-t4-studio-gpu-ci.yml
index aa85cba800b..04f7f3ef6d4 100644
--- a/.github/workflows/kaggle-t4-studio-gpu-ci.yml
+++ b/.github/workflows/kaggle-t4-studio-gpu-ci.yml
@@ -3,7 +3,7 @@
#
# Unsloth Studio on a real CUDA GPU, on free Kaggle T4 hardware.
#
-# Why this exists: Studio has ZERO CUDA coverage. Every Studio workflow in
+# Why this exists: Unsloth has ZERO CUDA coverage. Every Unsloth workflow in
# this repo runs on ubuntu-latest, macos-15 or windows-latest, and nothing
# matches `runs-on:.*(gpu|a100|t4|nvidia|self-hosted)`. macOS gives Metal and
# MLX some hardware; the CUDA path is exercised by nothing at all.
@@ -12,7 +12,7 @@
# tell a working GPU path from a CPU fallback.
#
# What runs: tests/kaggle/studio_gpu/run_studio_gpu.py, one payload per
-# kernel. It installs Studio the supported way (`install.sh --local`, which
+# kernel. It installs Unsloth the supported way (`install.sh --local`, which
# builds the frontend, makes the venv and fetches a CUDA llama.cpp), starts
# the server headless, and asserts three things.
#
@@ -21,7 +21,7 @@
# offload line, device-wide VRAM growth -- and a rule that no evidence
# is a FAILURE rather than a pass. "The model returned text" is
# explicitly not evidence: a CPU fallback returns text too, which is why
-# no existing Studio job can catch one. Then tool calling through
+# no existing Unsloth job can catch one. Then tool calling through
# /v1/chat/completions with tool_choice=required, asserting
# finish_reason == "tool_calls".
# B. A LoRA training run finishes and leaves an adapter. Tested on no
@@ -32,7 +32,7 @@
# C. GGUF export runs against a CUDA llama.cpp build and the output loads.
# The install kind on disk is asserted to be a CUDA bundle, the output
# is checked for the GGUF magic rather than for existence, and "it
-# loads" is asserted by loading it back into Studio and generating.
+# loads" is asserted by loading it back into Unsloth and generating.
#
# Then the repo's existing tests/studio/playwright_chat_ui.py is driven
# against the same server, last, because its final phase clicks "Stop server"
@@ -47,7 +47,7 @@
# allowed up to 50 of those 60; the last 10 are held for human use and are
# what `--reserve-hours 10` protects.
#
-# Studio is sampled HARDER than the notebook leg because Studio changes land
+# Unsloth is sampled HARDER than the notebook leg because Unsloth changes land
# far more often. That comes out as MORE launches, far more GPU-hours, a
# bigger share of the allowance -- and as a LOWER percentage. The percentage
# moves the other way because the eligible event stream here is about three
@@ -57,7 +57,7 @@
#
# MEASURED, 7 days to 2026-08-11 on unslothai/unsloth:
# 479 commits landed on main (the wider week the numbers below use is
-# 514), of which 199 -- 41.5% -- touched the GPU-relevant Studio surface
+# 514), of which 199 -- 41.5% -- touched the GPU-relevant Unsloth surface
# this workflow filters on. 67% touched studio/ at all; the filter is
# narrower than that on purpose, see PATHS below.
# Of a 40-PR sample of pull requests opened in the same window, 13
@@ -76,7 +76,7 @@
# git clone + install.sh --local (venv, frontend build,
# CUDA torch, llama.cpp prebuilt) ~20 min
# playwright chromium + system deps ~3 min
-# Studio boot to healthy ~1 min
+# Unsloth boot to healthy ~1 min
# chat GGUF download (~1.5 GB) + assertions A ~5 min
# assertion B (0.5B base download, 8 LoRA steps, save) ~6 min
# assertion C (merge, GGUF convert, quantize, reload) ~6 min
@@ -109,7 +109,7 @@
# sampling rate 5% vs 15%
#
# THE PERCENTAGE IS THE ONE AXIS THAT INVERTS, AND IT CANNOT BE MADE TO
-# AGREE. Studio's eligible stream is ~3.3x the notebook leg's busy-week
+# AGREE. Unsloth's eligible stream is ~3.3x the notebook leg's busy-week
# count and each launch costs 3x as much, so a percentage point here buys
# ~10x the GPU-hours it does there. At a common rate r the two cost 570r
# and 58r; equalising the rate at anything this leg can afford would leave
@@ -124,9 +124,9 @@
#
# ONE PAYLOAD, NOT TWO. The notebook leg runs a payload on each T4 of a
# session because the second card is free. Here the second card is left
-# idle on purpose: Studio is a server, a browser and a llama.cpp process
+# idle on purpose: Unsloth is a server, a browser and a llama.cpp process
# contending for four CPU cores, and a second copy of all that on the same
-# box measures contention rather than Studio.
+# box measures contention rather than Unsloth.
#
# ---------------------------------------------------------------------
# PATHS
@@ -164,11 +164,11 @@
# notebook and nothing else. Fork pull requests do not receive the secret and
# the gate skips cleanly when it is absent.
#
-# The payload mints its own Studio bootstrap password inside the kernel and
-# scrubs it out of every log that leaves the machine, because Studio's
+# The payload mints its own Unsloth bootstrap password inside the kernel and
+# scrubs it out of every log that leaves the machine, because Unsloth's
# startup banner prints it and those logs become an artifact.
-name: Kaggle T4 Studio GPU CI
+name: Kaggle T4 Unsloth GPU CI
on:
pull_request:
@@ -319,7 +319,7 @@ jobs:
--reserve-hours 10
studio-gpu:
- name: Studio GPU smoke
+ name: Unsloth GPU smoke
needs: gate
if: needs.gate.outputs.should_run == 'true'
runs-on: ubuntu-latest
diff --git a/.github/workflows/mlx-ci.yml b/.github/workflows/mlx-ci.yml
index 3552af9c32f..34c9067ec0d 100644
--- a/.github/workflows/mlx-ci.yml
+++ b/.github/workflows/mlx-ci.yml
@@ -435,7 +435,7 @@ jobs:
# Three boots, one per step: the self-heal is once per process, so the
# opted-out and the in-flight cases cannot share a server.
# ---------------------------------------------------------------
- - name: Provision a Studio venv for the capability-verdict boots
+ - name: Provision an Unsloth venv for the capability-verdict boots
run: |
set -euo pipefail
# `unsloth studio` re-execs into $STUDIO_HOME/unsloth_studio and refuses to
diff --git a/.github/workflows/release-desktop.yml b/.github/workflows/release-desktop.yml
index 159191ec226..61171c8672c 100644
--- a/.github/workflows/release-desktop.yml
+++ b/.github/workflows/release-desktop.yml
@@ -395,7 +395,7 @@ jobs:
PY
if [ "$GITHUB_REPOSITORY" = "wasimysaid/unsloth" ]; then
- echo "Fork-only updater A/B build: skipping the upstream PyPI-to-Studio release stamp check."
+ echo "Fork-only updater A/B build: skipping the upstream PyPI-to-Unsloth release stamp check."
elif [ -f scripts/stamp_studio_release.py ]; then
mapfile -t dists < <(find "$RUNNER_TEMP/pypi-unsloth-dist" -type f \( -name '*.whl' -o -name '*.tar.gz' \) | sort)
if [ "${#dists[@]}" -eq 0 ]; then
diff --git a/.github/workflows/startup-profile-ci.yml b/.github/workflows/startup-profile-ci.yml
index 886255bfb36..5fa3af2a52f 100644
--- a/.github/workflows/startup-profile-ci.yml
+++ b/.github/workflows/startup-profile-ci.yml
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved.
-# Measures where Studio's startup time goes, on each platform.
+# Measures where Unsloth's startup time goes, on each platform.
#
# Nothing recorded a number before: main.py logs "lifespan startup completed in X ms"
# and studio_test_kit polls /healthz, but both throw the elapsed time away. A first
@@ -132,7 +132,7 @@ jobs:
id: fe-dist
uses: ./.github/actions/frontend-dist-restore
- - name: Install Studio
+ - name: Install Unsloth
shell: bash
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/studio-frontend-ci.yml b/.github/workflows/studio-frontend-ci.yml
index 3c7de8cc8c1..f7f207bbb7b 100644
--- a/.github/workflows/studio-frontend-ci.yml
+++ b/.github/workflows/studio-frontend-ci.yml
@@ -435,7 +435,7 @@ jobs:
run: python3 tests/studio/playwright_keyboard_shortcuts.py
# A panel that cannot be fetched is new with lazy loading, and nothing above the
- # root-mounted dialog catches, so unguarded it unmounts Studio, not one panel.
+ # root-mounted dialog catches, so unguarded it unmounts Unsloth, not one panel.
- name: Browser smoke for a settings panel that cannot load
working-directory: ${{ github.workspace }}
env:
diff --git a/.github/workflows/studio-mac-install-matrix.yml b/.github/workflows/studio-mac-install-matrix.yml
index dfcfc19eaa2..0ef6e88bd30 100644
--- a/.github/workflows/studio-mac-install-matrix.yml
+++ b/.github/workflows/studio-mac-install-matrix.yml
@@ -6,7 +6,7 @@
# (install.sh + binary-load assert). Regression guard for the macOS-version
# selection in studio/install_llama_prebuilt.py.
-name: Mac Studio Install Matrix CI
+name: Mac Unsloth Install Matrix CI
on:
pull_request:
diff --git a/.github/workflows/studio-mac-ui-smoke.yml b/.github/workflows/studio-mac-ui-smoke.yml
index ce148fd7f92..cdf1a34b0e4 100644
--- a/.github/workflows/studio-mac-ui-smoke.yml
+++ b/.github/workflows/studio-mac-ui-smoke.yml
@@ -22,7 +22,7 @@
# and asserting the machine is clean -- that is the teardown for the whole job,
# so nothing needing Unsloth installed may follow it.
-name: Mac Studio UI + API + Update + Inference CI
+name: Mac Unsloth UI + API + Update + Inference CI
on:
pull_request:
diff --git a/.github/workflows/studio-ui-smoke.yml b/.github/workflows/studio-ui-smoke.yml
index a6dc6f5c00d..d9a584101e6 100644
--- a/.github/workflows/studio-ui-smoke.yml
+++ b/.github/workflows/studio-ui-smoke.yml
@@ -85,22 +85,22 @@ jobs:
strategy:
# Four shards, split where the job already split itself.
#
- # This is 11 Playwright scripts run one after another against four Studios booted
+ # This is 11 Playwright scripts run one after another against four Unsloth instances booted
# one after another, and at 22.1 minutes on average it was the largest job in the
# repo. The setup every shard has to repeat is small -- checkout, Linux deps,
# Install Unsloth, Playwright browsers, about 2.6 minutes -- so splitting it is
# nearly all profit in wall-clock, which is the thing being optimised. Runner
# minutes go up. That is the trade, taken deliberately.
#
- # The boundaries are the Studio instances, not an even division of scripts: a
- # Studio boot, its health wait, its bootstrap password and the scripts that drive
+ # The boundaries are the Unsloth instances, not an even division of scripts: a
+ # Unsloth boot, its health wait, its bootstrap password and the scripts that drive
# it have to stay on one machine. So `chat` takes 18892 and the cross-browser
# permission pass, `extra` and `banner` each boot their own 18894 (the two banner
# engines alone were 7.25 of the 17.6 minutes, which is why they are a shard), and
# `picker` takes 18898 and 18896, which are small and adjacent.
#
# In-machine parallelism is deliberately NOT used here. These are separate runners,
- # so each still boots one Studio at a time and nothing competes for RAM.
+ # so each still boots one Unsloth at a time and nothing competes for RAM.
fail-fast: false
matrix:
# The shard list stays a list: test_chat_ui_shards_cover_everything reads it
@@ -746,10 +746,10 @@ jobs:
kill "${STUDIO_IME_PID}" 2>/dev/null || true
sleep 2
- # Every shard, not just the one that happened to own the last Studio.
+ # Every shard, not just the one that happened to own the last Unsloth.
#
# This copy used to sit inside the step above, with a comment saying all three
- # Studios share the directory. That was true when they shared a RUNNER. Each cell
+ # Unsloth instances share the directory. That was true when they shared a RUNNER. Each cell
# now has its own machine and its own ~/.unsloth/studio/logs, so leaving it there
# would upload three artifacts with no server-side traceback in them, and those are
# the artifacts anyone debugging a failed shard would open first.
@@ -1069,7 +1069,7 @@ jobs:
#
# Note the sibling ui-smoke job says in-machine parallelism is
# deliberately not used there. That reasoning is "these are separate
- # runners, so each still boots one Studio at a time" -- it is an argument
+ # runners, so each still boots one Unsloth at a time" -- it is an argument
# about a SHARDED job, and this job has no shards to spread across.
#
# Two things are shared, and each gets split rather than serialised:
diff --git a/.github/workflows/studio-windows-inference-smoke.yml b/.github/workflows/studio-windows-inference-smoke.yml
index 093b78619a6..a0ccb70b7fc 100644
--- a/.github/workflows/studio-windows-inference-smoke.yml
+++ b/.github/workflows/studio-windows-inference-smoke.yml
@@ -276,7 +276,7 @@ jobs:
# key on THIS step rather than on assert-prebuilt. shim only runs when
# assert-prebuilt succeeded, so `steps.shim.outcome == 'success'` implies
# the assertion passed and additionally catches a missing shim, which
- # would otherwise let all three phases boot a Studio that is not on PATH.
+ # would otherwise let all three phases boot an Unsloth that is not on PATH.
- name: Add Unsloth shim to GITHUB_PATH
id: shim
if: ${{ !cancelled() && steps.assert-prebuilt.outcome == 'success' }}
@@ -470,7 +470,7 @@ jobs:
# resolve to the real Windows process. pwsh keeps us off Git Bash, and
# every failure is swallowed so teardown can never fail the job.
#
- # The command-line sweep after it is not redundant. A Studio that hangs
+ # The command-line sweep after it is not redundant. An Unsloth that hangs
# during startup never binds the port -- the health wait exists for
# exactly that case -- so the port lookup finds no owner and would leave
# the process alive to collide with the next phase. The match is scoped
@@ -962,7 +962,7 @@ jobs:
# resolve to the real Windows process. pwsh keeps us off Git Bash, and
# every failure is swallowed so teardown can never fail the job.
#
- # The command-line sweep after it is not redundant. A Studio that hangs
+ # The command-line sweep after it is not redundant. An Unsloth that hangs
# during startup never binds the port -- the health wait exists for
# exactly that case -- so the port lookup finds no owner and would leave
# the process alive to collide with the next phase. The match is scoped
@@ -1351,7 +1351,7 @@ jobs:
# resolve to the real Windows process. pwsh keeps us off Git Bash, and
# every failure is swallowed so teardown can never fail the job.
#
- # The command-line sweep after it is not redundant. A Studio that hangs
+ # The command-line sweep after it is not redundant. An Unsloth that hangs
# during startup never binds the port -- the health wait exists for
# exactly that case -- so the port lookup finds no owner and would leave
# the process alive to collide with the next phase. The match is scoped
diff --git a/.github/workflows/studiobench-ci.yml b/.github/workflows/studiobench-ci.yml
index 08b48670675..3698dfaf427 100644
--- a/.github/workflows/studiobench-ci.yml
+++ b/.github/workflows/studiobench-ci.yml
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved.
-# Keep `studiobench` working, so that the day someone needs to measure a Studio
+# Keep `studiobench` working, so that the day someone needs to measure an Unsloth
# performance regression the tool is not itself the thing that needs fixing.
#
# WHAT THIS WORKFLOW DELIBERATELY DOES NOT DO: gate on a timing. A shared
@@ -40,7 +40,7 @@ on:
# change to either can break it without touching a file under tests/.
- 'studio/frontend/**'
- 'studio/backend/**'
- # The liveness job installs Unsloth to get a Studio to drive.
+ # The liveness job installs Unsloth to get an Unsloth to drive.
- 'install.sh'
- 'pyproject.toml'
- '.github/actions/install-unsloth-local/action.yml'
@@ -217,7 +217,7 @@ jobs:
# No --api-only: studiobench drives the real SPA, so the server has to be
# serving `studio/frontend/dist`. It needs no model, because the reply it
# measures comes from its own pacer over an external provider.
- - name: Boot Studio
+ - name: Boot Unsloth
run: |
bash .github/scripts/boot-studio-api-only.sh \
--port "$STUDIO_PORT" --log logs/studio.log --pid-var STUDIO_PID
@@ -228,11 +228,11 @@ jobs:
# The smallest rung, and quick rather than fast: this job is asking whether
# every moving part still moves, not how fast anything is. 1K keeps it
# inside a runner's patience while still running the whole film.
- # The password has to be handed over explicitly. Studio mints a bootstrap
+ # The password has to be handed over explicitly. Unsloth mints a bootstrap
# password on a boot with no auth directory, which is exactly what the boot
# script arranges by wiping rather than resetting. When studiobench installs
- # its own Studio it reads that file itself; when it ATTACHES to one somebody
- # else booted, it has no way to know where that Studio's home is, and the
+ # its own Unsloth it reads that file itself; when it ATTACHES to one somebody
+ # else booted, it has no way to know where that Unsloth's home is, and the
# failure is a 401 that reads like a harness bug.
#
# It then rotates the password and clears `must_change_password`. That gate
@@ -275,7 +275,7 @@ jobs:
# every cell of every 100K run measured, always with the same evidence: the
# composer's attachments button is in the DOM with a zero box and
# `mounted: false`, alongside `model_loaded_hint: false`. This fixture drives
- # an external provider and loads no model, so Studio does not mount the
+ # an external provider and loads no model, so Unsloth does not mount the
# control. That is a property of the fixture rather than of any change under
# test, which is the only thing this flag is for. Every name here is a hole in
# the gate and this one is documented so it can be closed rather than inherited.
@@ -313,14 +313,14 @@ jobs:
--tier fast --rungs 100K
test -s outputs/studiobench-ci/summary.md
- - name: Stop Studio
+ - name: Stop Unsloth
if: always()
run: kill "${STUDIO_PID:-0}" 2>/dev/null || true
# Uploaded on failure only. The payload is the whole diagnostic: it carries
# each action's reason for not running, which is the first thing anyone
# debugging this job wants and the last thing a step log preserves.
- - name: Upload the payload and the Studio log
+ - name: Upload the payload and the Unsloth log
if: failure()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
diff --git a/.github/workflows/studiobench-ui-parity.yml b/.github/workflows/studiobench-ui-parity.yml
index 7654af5251b..32cc5b3f384 100644
--- a/.github/workflows/studiobench-ui-parity.yml
+++ b/.github/workflows/studiobench-ui-parity.yml
@@ -283,7 +283,7 @@ jobs:
set -euo pipefail
# Separate trees, not one tree with a checkout between: install.sh
# --local overlays the tree it is run from as an editable install, so a
- # single tree would leave both Studios serving whichever build was
+ # single tree would leave both Unsloth instances serving whichever build was
# written last. runtime/ab.py refuses to let two arms share a home for
# exactly this reason.
git worktree add --detach "$RUNNER_TEMP/side_a" "${{ steps.refs.outputs.merge_base }}"
@@ -388,12 +388,12 @@ jobs:
probe
fi
- # Two Studios, two homes, two ports. The shared boot helper is reused
+ # Two Unsloth instances, two homes, two ports. The shared boot helper is reused
# rather than reimplemented -- it wipes the auth directory so a fresh
# bootstrap password is minted, which is the part that is easy to get
# wrong -- but each invocation puts that side's own venv at the front of
# PATH, because `unsloth` names one binary and there are two installs.
- - name: Boot both Studios
+ - name: Boot both Unsloth instances
timeout-minutes: 3
run: |
set -euo pipefail
@@ -406,7 +406,7 @@ jobs:
--port "$port" --log "logs/studio_${label}.log" --pid-var "STUDIO_${label}_PID"
bash .github/scripts/wait-for-health.sh --port "$port" --log "logs/studio_${label}.log"
# READ ONCE, HERE. `<home>/auth/.bootstrap_password` is minted on a boot with no auth
- # directory and Studio removes it once it has been used, so every later step that
+ # directory and Unsloth removes it once it has been used, so every later step that
# `cat`s it is reading a file documented to disappear -- and studiobench rotates the
# account to its own password on top of that. Capturing the value at boot makes the
# order of the steps below irrelevant instead of load-bearing.
@@ -420,7 +420,7 @@ jobs:
# BOTH ARMS MUST START EMPTY, and this is asserted rather than assumed.
#
- # A Studio home carries its chat database. A home reused from an earlier run brings that
+ # An Unsloth home carries its chat database. A home reused from an earlier run brings that
# run's threads into the shot, and the harness then manufactures a visible difference on
# the exact pair whose whole claim is that nothing changed -- a real screenshot of the
# wrong state, under the right label, which is the worst artefact this job could produce.
@@ -428,7 +428,7 @@ jobs:
# would compare clean while measuring somebody else's leftovers.
#
# READ FROM THE DATABASE, NOT THE API, and the first version of this did the latter and
- # failed the whole job on every run. Studio mints a bootstrap password and sets
+ # failed the whole job on every run. Unsloth mints a bootstrap password and sets
# `must_change_password`; until that is cleared, login SUCCEEDS and returns a token while
# every authenticated route answers `403 Password change required`. studiobench clears the
# gate itself when it authenticates, which is after this step, so a check that calls
@@ -556,7 +556,7 @@ jobs:
sys.exit(1)
PY
- - name: Stop both Studios
+ - name: Stop both Unsloth instances
if: always()
run: |
kill "${STUDIO_a_PID:-0}" 2> /dev/null || true
diff --git a/.github/workflows/wheel-smoke.yml b/.github/workflows/wheel-smoke.yml
index 6151a99c033..b57a3bd0a6e 100644
--- a/.github/workflows/wheel-smoke.yml
+++ b/.github/workflows/wheel-smoke.yml
@@ -137,7 +137,7 @@ jobs:
cd /tmp
/tmp/v/bin/python -c "from studio.backend.main import app; print('Unsloth backend OK:', app.title)"
- - name: CLI without the Studio stack guides instead of tracebacking
+ - name: CLI without the Unsloth stack guides instead of tracebacking
# The smoke above installs studio.txt first, so it cannot catch a wheel
# that ships studio/ without declaring what it imports (#4701, #5260,
# #7147). Drop only structlog to reuse that venv without a re-download.
diff --git a/.gitignore b/.gitignore
index 2560323fcb7..0a3a767b9b6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -250,5 +250,5 @@ Speech_12dB_s16.flac
# Generated at test time by tests/studio/install/test_selection_logic.py, which points
# storage_roots.studio_root at it. It is a mutable SQLite runtime database, not a fixture,
-# so a test run or a Studio start rewrites it and dirties the checkout.
+# so a test run or an Unsloth start rewrites it and dirties the checkout.
.studio-test-root/
diff --git a/attribution/vite.studiobench.config.ts b/attribution/vite.studiobench.config.ts
index 8d104c40703..9f4369e0b0a 100644
--- a/attribution/vite.studiobench.config.ts
+++ b/attribution/vite.studiobench.config.ts
@@ -13,7 +13,7 @@
// 3. Minifier name preservation, so our own functions and classes keep
// their source names instead of being mangled to single letters.
//
-// The resulting dist is injected into a REAL Studio install through the
+// The resulting dist is injected into a REAL Unsloth install through the
// existing `unsloth studio --frontend <dir>` flag (see `studio/backend/run.py`
// around line 2820), so the backend, auth and storage stay real and only the
// frontend bundle is swapped. That matters: the failure this whole tool exists
@@ -55,7 +55,7 @@ export default defineConfig({
root: FRONTEND_ROOT,
plugins: [react(), tailwindcss()],
// Keep an unrelated PostCSS config in an ancestor directory from leaking
- // into Studio installs. Tailwind is provided by its dedicated Vite plugin.
+ // into Unsloth installs. Tailwind is provided by its dedicated Vite plugin.
css: {
postcss: {
plugins: [],
@@ -188,7 +188,7 @@ export default defineConfig({
// This is a BANNER and not a `define`, and the difference is not
// cosmetic. `define` performs identifier SUBSTITUTION in source: it
// rewrites occurrences of a token that already appear in the code. No
- // Studio source file mentions `__STUDIOBENCH_ATTRIBUTION_BUILD__`, so
+ // Unsloth source file mentions `__STUDIOBENCH_ATTRIBUTION_BUILD__`, so
// a `define` entry substitutes nothing, emits nothing, and the marker
// is simply absent at runtime. Built that way first; the assertion
// could never pass and the bundle was byte-identical with and without
diff --git a/install.ps1 b/install.ps1
index ed48190c8dc..9d8549dfada 100644
--- a/install.ps1
+++ b/install.ps1
@@ -128,7 +128,7 @@ function Install-UnslothStudio {
# Not restored afterwards, deliberately. $env: is the process environment,
# so running this script in an interactive console leaves the reordering in
# place for that session. A try/finally would not change that for the case
- # it is raised about: the interactive path ends by running Studio in the
+ # it is raised about: the interactive path ends by running Unsloth in the
# foreground, so the finally would not fire until the user stops the server.
# Narrowing the trigger instead would risk skipping the fix on some chain
# this list does not anticipate, and the cost of that is the install failing
@@ -395,7 +395,7 @@ function Install-UnslothStudio {
function Remove-StudioStalePrivateTempDirectories {
param([Parameter(Mandatory = $true)][string]$Root)
- # These outlive the install (an autostarted Studio inherits one as its own
+ # These outlive the install (an autostarted Unsloth inherits one as its own
# %TEMP%), so bound the pile by age instead of deleting one still in use.
try {
$cutoff = (Get-Date).AddDays(-1)
@@ -424,7 +424,7 @@ function Install-UnslothStudio {
# Age alone is not proof it is unused, and this sweep runs before the
# runtime mutex, so it could delete a live process's %TEMP%. owner.pid
# names the process that INHERITED this directory (the autostarted
- # Studio, which outlives the installer); the PID in the name is only
+ # Unsloth, which outlives the installer); the PID in the name is only
# the installer's and is already gone. If the owner is alive, leave it.
# PID reuse only ever costs a directory its cleanup.
$ownerPid = 0
@@ -441,7 +441,7 @@ function Install-UnslothStudio {
# Whether the owner was RECORDED, or only guessed from the name.
# The name carries the installer's PID, and an installer that was
# killed between Start-Process and the owner.pid write leaves a dead
- # PID in the name while the Studio it started is very much alive on
+ # PID in the name while the Unsloth it started is very much alive on
# that directory as its own %TEMP%. Guessing therefore proves much
# less than reading, and the two are not treated alike below.
$ownerRecorded = ($ownerPid -gt 0)
@@ -450,7 +450,7 @@ function Install-UnslothStudio {
}
# No recorded owner: unknown, not abandoned. Still collected, so the
# pile stays bounded, but only once it has gone a whole week without
- # a single entry being created in it, which a Studio actually using
+ # a single entry being created in it, which an Unsloth actually using
# it as %TEMP% would not manage.
if (-not $ownerRecorded -and $stale.LastWriteTime -ge (Get-Date).AddDays(-7)) {
continue
@@ -638,7 +638,7 @@ function Install-UnslothStudio {
else { Remove-Item Env:\TMP -ErrorAction SilentlyContinue }
if ($override.TempSet) { $env:TEMP = $override.TempValue }
else { Remove-Item Env:\TEMP -ErrorAction SilentlyContinue }
- # The directory stays: an autostarted Studio inherited it as its own %TEMP%,
+ # The directory stays: an autostarted Unsloth inherited it as its own %TEMP%,
# and the host's real one is broken. The next run sweeps the old ones.
}
@@ -743,7 +743,7 @@ function Install-UnslothStudio {
# interpreter the desktop app spawns) compiles by writing the source to %TEMP%
# and running csc.exe. When that directory is unusable, or a scanner eats the
# source, Add-Type throws CS2001, which used to abort a first launch as "Could
- # not create the Studio install lock" (issue #9140). Try once, retry with a
+ # not create the Unsloth install lock" (issue #9140). Try once, retry with a
# %TEMP% we own, cache the answer (callers resolve dozens of paths), then let
# Get-StudioLexicalPath carry the run.
$script:StudioFinalPathNativeState = $null
@@ -1031,7 +1031,7 @@ public static class UnslothStudioFinalPathV2
try { $current = [System.IO.Path]::GetFullPath($Path) } catch { return $Path }
# Fold a SUBST drive BEFORE walking components: the Python runtime gate
# resolves it, so leaving it would give the two sides different mutex names
- # for one directory and hide a running Studio from the in-use scan.
+ # for one directory and hide a running Unsloth from the in-use scan.
$substituted = Get-StudioSubstTarget -Path $current
if ($substituted) {
try { $current = [System.IO.Path]::GetFullPath($substituted) } catch {}
@@ -1123,7 +1123,7 @@ public static class UnslothStudioFinalPathV2
# Every extended spelling, INCLUDING \\?\Volume{GUID}\, because this string
# is hashed into the runtime mutex name and unsloth_cli/_studio_runtime_gate.py
# strips \\?\ unconditionally (_resolved_windows_path). Keeping the prefix
- # here made the installer and a running Studio compute different names for
+ # here made the installer and a running Unsloth compute different names for
# one directory, so neither would exclude the other. Rootedness does matter
# while a link target is being anchored, and Resolve-StudioLinkTarget keeps
# the extended form for exactly that; nothing after this point anchors
@@ -1596,7 +1596,7 @@ public static class UnslothStudioFinalPathV2
(Get-CanonicalDir -Path (Join-Path $env:USERPROFILE ".unsloth\studio")))
}
- # Shared default cache, or the custom Studio home's llama.cpp tree.
+ # Shared default cache, or the custom Unsloth home's llama.cpp tree.
function Get-ManagedLlamaCppDir {
if (-not (Test-StudioHomeIsCustom)) {
return (Join-Path $env:USERPROFILE ".unsloth\llama.cpp")
@@ -2548,7 +2548,7 @@ exit 0
$shortcutArgs = "-NoProfile -WindowStyle Hidden -ExecutionPolicy RemoteSigned -File `"$launcherPs1`""
# A launcher on a share is a REMOTE script to PowerShell and RemoteSigned refuses an
# unsigned one, so a roaming profile would get a shortcut that exits without starting
- # Studio. Bypass for that case only, and without the hidden window: a console beats
+ # Unsloth. Bypass for that case only, and without the hidden window: a console beats
# nothing launching. A mapped drive (H:, Z:) is the same share and the same zone, and
# DriveInfo on the root reports Network for both.
$launcherIsRemote = $launcherPs1 -like "\\*"
@@ -2714,7 +2714,7 @@ exit 0
# then rolls back. Relocating is safe: nothing here reads the caller's directory
# ($RepoRoot from $PSCommandPath, $StudioHome from the environment), so only
# --with-llama-cpp-dir needs a rebase first. Not restored at the end, same reason as
- # the PSModulePath fix at the top: the interactive path ends running Studio in the
+ # the PSModulePath fix at the top: the interactive path ends running Unsloth in the
# foreground, so a finally would not fire until it stops.
$SystemRootDir = if ($env:SystemRoot) { $env:SystemRoot } else { "C:\Windows" }
$SystemRootDir = [System.IO.Path]::GetFullPath($SystemRootDir).TrimEnd('\')
@@ -2868,7 +2868,7 @@ exit 0
$leftInfo = Resolve-StudioFinalPathInfo -Path $Left
$rightInfo = Resolve-StudioFinalPathInfo -Path $Right
} catch {
- Write-StudioLine "[WARN] Could not resolve Studio path identity; using the runtime lock." -ForegroundColor Yellow
+ Write-StudioLine "[WARN] Could not resolve Unsloth path identity; using the runtime lock." -ForegroundColor Yellow
return $null
}
if ([string]::Equals(
@@ -2880,7 +2880,7 @@ exit 0
# exactly; otherwise they may be aliases of one. $null is the caller's
# "identity unresolved" signal and makes it take both runtime locks.
if (-not $leftInfo.Exact -or -not $rightInfo.Exact) {
- Write-StudioLine "[WARN] Could not resolve Studio path identity; using the runtime lock." -ForegroundColor Yellow
+ Write-StudioLine "[WARN] Could not resolve Unsloth path identity; using the runtime lock." -ForegroundColor Yellow
return $null
}
return $false
@@ -2918,7 +2918,7 @@ exit 0
function Get-StudioCurrentUserSid {
$identity = [System.Security.Principal.WindowsIdentity]::GetCurrent()
if ($null -eq $identity) {
- throw "Could not determine the Windows user for the Studio runtime lock"
+ throw "Could not determine the Windows user for the Unsloth runtime lock"
}
try {
$sid = if ($identity.User) { $identity.User.Value } else { $null }
@@ -2926,7 +2926,7 @@ exit 0
$identity.Dispose()
}
if ([string]::IsNullOrWhiteSpace($sid)) {
- throw "Could not determine the Windows user SID for the Studio runtime lock"
+ throw "Could not determine the Windows user SID for the Unsloth runtime lock"
}
return $sid
}
@@ -3012,7 +3012,7 @@ exit 0
# QueryFullProcessImageNameW answers for processes whose MainModule is not
# readable here, but needs the compiled helper. Without a fallback a host that
- # cannot compile would find NO running processes and overwrite a venv Studio has
+ # cannot compile would find NO running processes and overwrite a venv Unsloth has
# open, so the ladder ends at Win32_Process. Every rung reports a real executable
# image; a command line or working directory mentioning the path is never proof.
$script:StudioProcessImageTable = $null
@@ -3028,7 +3028,7 @@ exit 0
}
if (-not $script:StudioProcessImageWarned) {
$script:StudioProcessImageWarned = $true
- Write-StudioLine "[WARN] Scanning for running Studio processes without the native helper; a process this shell cannot inspect may go unnoticed." -ForegroundColor Yellow
+ Write-StudioLine "[WARN] Scanning for running Unsloth processes without the native helper; a process this shell cannot inspect may go unnoticed." -ForegroundColor Yellow
}
$process = $null
try { $process = Get-Process -Id $ProcessId -ErrorAction Stop } catch { $process = $null }
@@ -3064,7 +3064,7 @@ exit 0
try {
$resolvedPath = (Get-StudioFinalPath -Path $VenvPath).TrimEnd('\', '/')
} catch {
- throw "Could not resolve managed Studio process path '$VenvPath': $($_.Exception.Message)"
+ throw "Could not resolve managed Unsloth process path '$VenvPath': $($_.Exception.Message)"
}
# No root-relative fallback here: without the native helper EVERY path is
# inexact, so it compared path tails across unrelated drives and an ordinary
@@ -3092,8 +3092,8 @@ exit 0
try {
$studioInstallMutex = Enter-StudioInstallMutex -Path $StudioHome
} catch {
- Write-StudioLine "[ERROR] Could not create the Studio install lock: $($_.Exception.Message)" -ForegroundColor Red
- return (Exit-InstallFailure "Could not create the Studio install lock")
+ Write-StudioLine "[ERROR] Could not create the Unsloth install lock: $($_.Exception.Message)" -ForegroundColor Red
+ return (Exit-InstallFailure "Could not create the Unsloth install lock")
}
if ($null -eq $studioInstallMutex) {
Write-StudioLine "[ERROR] Another Unsloth Studio install or repair is already running." -ForegroundColor Red
@@ -3123,13 +3123,13 @@ exit 0
if ($null -eq $mutex) {
Write-StudioLine "[ERROR] Unsloth Studio is starting or installation is already running." -ForegroundColor Red
Write-StudioLine " Close Unsloth Studio completely, wait for the other operation, then re-run install.ps1." -ForegroundColor Yellow
- return (Exit-InstallFailure "The managed Studio environment is busy")
+ return (Exit-InstallFailure "The managed Unsloth environment is busy")
}
$studioRuntimeMutexes += $mutex
}
} catch {
- Write-StudioLine "[ERROR] Could not create the Studio runtime lock: $($_.Exception.Message)" -ForegroundColor Red
- return (Exit-InstallFailure "Could not create the Studio runtime lock")
+ Write-StudioLine "[ERROR] Could not create the Unsloth runtime lock: $($_.Exception.Message)" -ForegroundColor Red
+ return (Exit-InstallFailure "Could not create the Unsloth runtime lock")
}
}
@@ -6124,7 +6124,7 @@ sys.exit(2 if conflict else (0 if installed else 1))
# so it answers there, but antivirus QUARANTINES it, deleting it out of a venv that
# is otherwise perfectly able to run. Nothing after this point executes it -- the
# setup handoff, the shortcuts and bin\unsloth.cmd all go through $VenvPython -- so
- # failing here would refuse to install or repair Studio for exactly the machines
+ # failing here would refuse to install or repair Unsloth for exactly the machines
# this change is for. Ask the interpreter instead, and only then give up.
$UnslothExe = Join-Path $VenvDir "Scripts\unsloth.exe"
if (-not (Test-Path -LiteralPath $UnslothExe)) {
@@ -6362,7 +6362,7 @@ sys.exit(2 if conflict else (0 if installed else 1))
Write-StudioLine " $($_.Exception.Message)" -ForegroundColor Yellow
# The interpreter, not $UnslothExe: this arm is reached on machines whose
# policy denies the generated console script, where that advice cannot work.
- Write-StudioLine " Until the next successful install, start Studio with:" -ForegroundColor Yellow
+ Write-StudioLine " Until the next successful install, start Unsloth with:" -ForegroundColor Yellow
Write-StudioLine " & '$VenvPython' -I -m unsloth_cli studio -p 8888" -ForegroundColor Yellow
}
}
@@ -6464,7 +6464,7 @@ sys.exit(2 if conflict else (0 if installed else 1))
$reply = Read-Host " Start Unsloth Studio now? [Y/n]"
if ([string]::IsNullOrWhiteSpace($reply) -or $reply -match '^[Yy]') {
# Keep both locks until the process exists: a second installer can
- # then take them, but its scan sees Studio before it mutates.
+ # then take them, but its scan sees Unsloth before it mutates.
$_runtimeGateHandoff = $env:_UNSLOTH_STUDIO_RUNTIME_GATE_HANDOFF
try {
$env:_UNSLOTH_STUDIO_RUNTIME_GATE_HANDOFF = "1"
diff --git a/install.sh b/install.sh
index 396fc9ddff9..71d0cb0f51d 100755
--- a/install.sh
+++ b/install.sh
@@ -3045,7 +3045,7 @@ _uv_venv_arm64() { # label
_uv_venv_requested() { # label
_uvvr_label="$1"
_uvvr_req="$(_python_request "$PYTHON_VERSION")"
- # Capture the hint while streaming Studio output live. If capture setup fails,
+ # Capture the hint while streaming Unsloth output live. If capture setup fails,
# use the original venv path. The global directory is owned by trap cleanup.
_UV_VENV_CAPTURE_DIR=""
if ! command -v tee >/dev/null 2>&1 \
@@ -4760,7 +4760,7 @@ case "$_torch_index_leaf" in
_amd_gpu_radeon=false
# Routing the wheels is only half of unslothai#7331: ROCr rebuilds the agent
# from HSA_OVERRIDE_GFX_VERSION in every LATER process (and this shell execs
- # Studio further down), so leaving it set hands the freshly installed per-gfx
+ # Unsloth further down), so leaving it set hands the freshly installed per-gfx
# wheels a device whose reported ISA matches none of their code. Only on this
# branch, where the spoof was corroborated and native $_strix_gfx wheels are
# going in; paths that keep generic wheels need the override as their only
diff --git a/pyproject.toml b/pyproject.toml
index 87dc9975ea6..b3de31df501 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -71,7 +71,7 @@ studio = [
"backend/assets/**/*.jinja",
"backend/assets/**/*.html",
# Swagger UI / ReDoc, served from this origin instead of a CDN. Without these the
- # /docs and /redoc pages render blank in an installed Studio.
+ # /docs and /redoc pages render blank in an installed Unsloth.
"backend/assets/docs_ui/*",
"backend/core/data_recipe/oxc-validator/*.json",
"backend/core/data_recipe/oxc-validator/*.mjs",
@@ -101,7 +101,7 @@ exclude = [
"studio.backend.hub" = ["tests/*"]
[project.optional-dependencies]
-# Studio's server stack, mirroring studio/backend/requirements/studio.txt.
+# Unsloth's server stack, mirroring studio/backend/requirements/studio.txt.
# test_studio_extra_matches_requirements.py catches drift.
studio = [
"typer==0.27.1 ; python_version >= '3.10'",
@@ -162,7 +162,7 @@ huggingfacenotorch = [
# workflow raises without it), the cache_context child-registry behavior, and the
# Flux2 / Z-Image pipelines. An unversioned entry let an upgrade keep an older
# diffusers, so advertised models failed to load until the user upgraded by hand.
- # Studio's installer requirements carry the temporary MiniMax-H3 commit pin. A
+ # Unsloth's installer requirements carry the temporary MiniMax-H3 commit pin. A
# VCS direct reference cannot enter wheel metadata because PyPI rejects it.
# diffusers dropped 3.9 in 0.37, and we still support it (requires-python >= 3.9),
# so the floor is conditional: pinning it outright leaves pip no candidate at all
@@ -219,7 +219,7 @@ huggingface = [
# torch, and PyPI's Windows torch is CPU-only, so without it pip lands a cu130
# extension beside a '2.10.0+cpu' torch -- the same silent mismatch, inverted.
# install.ps1 needs none of this: it picks the wheel from the index it installed
-# torch from, so Studio never reaches the extra below.
+# torch from, so Unsloth never reaches the extra below.
#
# The extra below is what a `pip install "unsloth[windows]"` resolves, and it
# stays CUDA-agnostic because it has nothing to key off. It is deliberately NOT
diff --git a/scripts/build_prequant_checkpoint.py b/scripts/build_prequant_checkpoint.py
index 2e0f13f4028..bed5147d060 100644
--- a/scripts/build_prequant_checkpoint.py
+++ b/scripts/build_prequant_checkpoint.py
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-"""Build a pre-quantized transformer checkpoint for the Studio diffusion fast path.
+"""Build a pre-quantized transformer checkpoint for the Unsloth diffusion fast path.
Quantise a model's dense bf16 DiT transformer ONCE and save the quantized state dict, so
the backend can load the already-quantized weights at runtime (meta-init +
@@ -231,7 +231,7 @@ def main(argv = None) -> int:
metadata["fp8_granularity"] = FP8_GRANULARITY
metadata.update(rotation)
ckpt = {
- # v2 when a rotation is baked in, so a Studio predating the online half refuses the file
+ # v2 when a rotation is baked in, so an Unsloth predating the online half refuses the file
# rather than running the rotated weights against unrotated activations.
"format": prequant_format_for(metadata),
"metadata": metadata,
diff --git a/scripts/build_te_prequant_checkpoint.py b/scripts/build_te_prequant_checkpoint.py
index 06360e94461..088bb31e86b 100644
--- a/scripts/build_te_prequant_checkpoint.py
+++ b/scripts/build_te_prequant_checkpoint.py
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-"""Build a pre-cast text-encoder checkpoint for the Studio TE prequant path.
+"""Build a pre-cast text-encoder checkpoint for the Unsloth TE prequant path.
Apply the runtime layerwise-fp8 STORAGE cast (``diffusion_precision._cast_fp8``) to a
model's dense text encoder ONCE and save the cast state dict, so the backend can load the
diff --git a/scripts/build_whisper_cpp.sh b/scripts/build_whisper_cpp.sh
index 9f7e4d4ef32..a194e16cb12 100755
--- a/scripts/build_whisper_cpp.sh
+++ b/scripts/build_whisper_cpp.sh
@@ -1,7 +1,7 @@
#!/bin/sh
-# Build whisper.cpp's whisper-server for Studio's GGUF dictation engine.
+# Build whisper.cpp's whisper-server for Unsloth's GGUF dictation engine.
#
-# Installs into the managed Studio home so the backend's binary discovery
+# Installs into the managed Unsloth home so the backend's binary discovery
# (core/inference/stt_ggml_sidecar.py::find_whisper_server_binary) picks it up:
# <UNSLOTH_STUDIO_HOME>/whisper.cpp/build/bin/whisper-server (custom home)
# ~/.unsloth/whisper.cpp/build/bin/whisper-server (default)
@@ -32,7 +32,7 @@ command -v git >/dev/null 2>&1 || { echo "ERROR: git is required" >&2; exit 1; }
command -v cmake >/dev/null 2>&1 || { echo "ERROR: cmake is required" >&2; exit 1; }
# Same policy as studio/setup.sh's _assert_studio_owned_or_absent: never delete
-# a directory under a custom Studio home unless Studio itself created it (the
+# a directory under a custom Unsloth home unless Unsloth itself created it (the
# marker file below). Protects a user-managed whisper.cpp/src from rm -rf.
STUDIO_OWNED_MARKER=".unsloth-studio-owned"
if [ "$CUSTOM_STUDIO_HOME" = true ] && [ -e "$INSTALL_DIR" ] && \
diff --git a/scripts/diffusion_bench.py b/scripts/diffusion_bench.py
index 55d37f040c7..11691700cf2 100644
--- a/scripts/diffusion_bench.py
+++ b/scripts/diffusion_bench.py
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-"""Standalone GPU benchmark + regression harness for the Studio diffusion backend.
+"""Standalone GPU benchmark + regression harness for the Unsloth diffusion backend.
Drives ``DiffusionBackend`` directly (no HTTP server) to measure load time, peak
VRAM, and generation latency for a single GGUF image model, plus an accuracy
@@ -420,7 +420,7 @@ def _compare(args: argparse.Namespace) -> int:
def _build_parser() -> argparse.ArgumentParser:
p = argparse.ArgumentParser(
- description = "Benchmark + regression guard for the Studio diffusion backend.",
+ description = "Benchmark + regression guard for the Unsloth diffusion backend.",
formatter_class = argparse.ArgumentDefaultsHelpFormatter,
)
p.add_argument(
diff --git a/scripts/diffusion_quality.py b/scripts/diffusion_quality.py
index 23e244f04d7..009ad705bfa 100644
--- a/scripts/diffusion_quality.py
+++ b/scripts/diffusion_quality.py
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-"""Image quality-vs-quant harness for the Studio diffusion backend.
+"""Image quality-vs-quant harness for the Unsloth diffusion backend.
The accuracy analogue of the KLD workflow: hold the prompt + seed fixed, render a
grid with a high-fidelity reference quant (default BF16), then render the same grid
@@ -471,7 +471,7 @@ def _selftest() -> int:
def _build_parser() -> argparse.ArgumentParser:
p = argparse.ArgumentParser(
- description = "Image quality-vs-quant harness for the Studio diffusion backend.",
+ description = "Image quality-vs-quant harness for the Unsloth diffusion backend.",
formatter_class = argparse.ArgumentDefaultsHelpFormatter,
)
p.add_argument(
diff --git a/scripts/online_tokenization_ab.py b/scripts/online_tokenization_ab.py
index 215276bbd06..9ef6b268460 100644
--- a/scripts/online_tokenization_ab.py
+++ b/scripts/online_tokenization_ab.py
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-"""Eager vs online preparation, measured through Studio's real training path.
+"""Eager vs online preparation, measured through Unsloth's real training path.
Drives ``UnslothTrainer.load_model`` -> ``prepare_model_for_training`` ->
``load_and_format_dataset`` -> ``start_training``, so the integrated gating is
@@ -169,7 +169,7 @@ def main() -> int:
started = trainer.start_training(
dataset = dataset,
eval_dataset = eval_dataset,
- output_dir = f"ab_{args.arm}", # resolved under Studio's outputs root
+ output_dir = f"ab_{args.arm}", # resolved under Unsloth's outputs root
num_epochs = 1,
max_steps = args.max_steps,
batch_size = args.batch_size,
@@ -222,7 +222,7 @@ def main() -> int:
"step_times": probe.step_times,
"prewarm_batches": decision,
"observed": observed,
- # Studio's chat-template render, which BOTH arms do eagerly.
+ # Unsloth's chat-template render, which BOTH arms do eagerly.
"format_seconds": round(
marks.get("dataset_formatted", 0.0) - marks.get("model_ready", 0.0), 4
),
diff --git a/scripts/profile_startup.py b/scripts/profile_startup.py
index 937d007ac1d..bee8b570e6a 100644
--- a/scripts/profile_startup.py
+++ b/scripts/profile_startup.py
@@ -220,7 +220,7 @@ def profile_launch(
def python_version_of(python: str) -> str:
"""Version of the interpreter that runs the imports, not the one running us.
- --python points at the installed Studio venv while this script runs under the
+ --python points at the installed Unsloth venv while this script runs under the
runner's system python, so platform.python_version() would label it wrong.
"""
if python == sys.executable:
diff --git a/scripts/uninstall.ps1 b/scripts/uninstall.ps1
index 0ecce9e5a09..b8db24a0ce8 100644
--- a/scripts/uninstall.ps1
+++ b/scripts/uninstall.ps1
@@ -219,8 +219,8 @@ Environment:
if ($entry.Name -notmatch '^ust-[0-9]+-[0-9a-f]{8}$') { continue }
if (-not ($entry.PSIsContainer)) { continue }
# A LIVE owner keeps its directory, exactly as install.ps1's own
- # sweep does. An uninstall stops the Studios under the roots it
- # knows about; a Studio from another install root, or another
+ # sweep does. An uninstall stops the Unsloth instances under the roots it
+ # knows about; an Unsloth from another install root, or another
# user, is not among them and is still using this as its %TEMP%.
$ownerPid = 0
try {
@@ -243,7 +243,7 @@ Environment:
# No recorded owner, and this is not the profile being uninstalled.
# install.ps1 reads that state as UNKNOWN rather than abandoned,
# because an installer killed before writing owner.pid leaves a live
- # Studio holding the directory; deleting another user's live %TEMP%
+ # Unsloth holding the directory; deleting another user's live %TEMP%
# is not this uninstall's business. Under our own profile the shape
# is enough, since that is what is being removed.
_Substep "no recorded owner in another profile, left alone: $($entry.FullName)" "Yellow"
@@ -318,7 +318,7 @@ Environment:
# WSL-shortcut search dirs; default Start Menu + Desktop, overridable for tests.
[string[]]$ShortcutDirs = $null,
# Paths under the data dir that a previous pass decided to keep, typically
- # a private temp directory a live Studio is still using as its %TEMP%.
+ # a private temp directory a live Unsloth is still using as its %TEMP%.
[string[]]$Preserve = @()
)
if ([string]::IsNullOrWhiteSpace($DataDir)) { return }
@@ -591,10 +591,10 @@ Environment:
} catch { }
}
- # The Studio-managed subtrees underneath the reparse-point TARGET of each Studio home, for the
+ # The Unsloth-managed subtrees underneath the reparse-point TARGET of each Unsloth home, for the
# stop scan only.
#
- # A junction or directory symlink Studio home runs its native binaries out of the PHYSICAL
+ # A junction or directory symlink Unsloth home runs its native binaries out of the PHYSICAL
# path: the backend resolves the home (Path.resolve) before deriving <home>\stable-diffusion.cpp
# and launching sd-server there, while _CustomStudioRoots only normalizes the string --
# System.IO.Path.GetFullPath is lexical and never touches the filesystem, so it leaves a
@@ -614,7 +614,7 @@ Environment:
# deny list exists to prevent. Ending our own process under the target is not destructive.
function _ManagedPathsUnderReparseTargets {
param([string[]]$Roots)
- # Everything setup.ps1 / the prebuilt installers place inside a Studio home.
+ # Everything setup.ps1 / the prebuilt installers place inside an Unsloth home.
$managed = @(
"unsloth_studio", "share", "bin", "llama.cpp", "whisper.cpp", "node",
"stable-diffusion.cpp", ".cache", ".venv_t5_510", ".venv_t5_530", ".venv_t5_550"
@@ -749,7 +749,7 @@ Environment:
$webviewProfile = if ($localAppRoot) { Join-Path $localAppRoot "ai.unsloth.studio" } else { $null }
# Account-scoped, like every other kill here. installMode is currentUser, so the profile is
# this account's and shared by all its sessions: a second console or RDS session must die
- # too or it re-creates the profile mid-delete, while another user's Studio must not be
+ # too or it re-creates the profile mid-delete, while another user's Unsloth must not be
# touched. SIDs, so domain and locale do not matter; an unreadable owner is skipped.
$meSid = try { [System.Security.Principal.WindowsIdentity]::GetCurrent().User.Value } catch { $null }
$studioPids = @()
@@ -844,7 +844,7 @@ Environment:
# <root>\stable-diffusion.cpp, so the removal above already took it. Older builds put it
# BESIDE the root at <parent>\stable-diffusion.cpp (find_sd_cpp_binary derived it from
# UNSLOTH_STUDIO_HOME.parent), and removing only the root would leave that build behind.
- # Only remove a sibling Studio installed: <parent> is a user-chosen dir and
+ # Only remove a sibling Unsloth installed: <parent> is a user-chosen dir and
# "stable-diffusion.cpp" is exactly what a git clone of the upstream project produces, so
# require our owner marker (written by install_sd_cpp_prebuilt) before rm, and keep any
# unowned checkout. Guard the derived parent path the same way.
@@ -852,7 +852,7 @@ Environment:
if (_IsUnsafeRoot $customSdCpp) {
_Substep "refusing to remove unsafe path: $customSdCpp" "Yellow"
} elseif ((Test-Path -LiteralPath $customSdCpp) -and -not (Test-Path -LiteralPath (Join-Path $customSdCpp ".unsloth-studio-owned") -PathType Leaf)) {
- _Substep "keeping sd.cpp without Studio owner marker: $customSdCpp" "Yellow"
+ _Substep "keeping sd.cpp without Unsloth owner marker: $customSdCpp" "Yellow"
} else {
_RemovePath $customSdCpp
}
@@ -861,7 +861,7 @@ Environment:
if ($defaultStudioHome) { _RemoveRootRecordingDb $defaultStudioHome }
# Default data dir. The private temp sweep goes FIRST and hands back what it
# kept: the primary temp directory lives under this data dir, so a wholesale
- # removal here would erase a live Studio's %TEMP% before the sweep ever looked
+ # removal here would erase a live Unsloth's %TEMP% before the sweep ever looked
# at its owner.pid.
$preservedTemp = @(_RemoveStudioPrivateTempTrees -Paths $privateTempDirs -PrimaryPath $primaryPrivateTemp)
if ($defaultDataDir) { _RemoveDataDirKeepingWslIcon $defaultDataDir -Preserve $preservedTemp }
@@ -871,9 +871,9 @@ Environment:
# "stable-diffusion.cpp" is exactly what a git clone of leejet/stable-diffusion.cpp produces,
# so a user may keep their own checkout (or point UNSLOTH_SD_CPP_PATH) at this default path;
# require our owner marker (written by install_sd_cpp_prebuilt) before rm, mirroring the
- # custom-root guard above, so a user's own checkout or a pre-marker Studio build is kept.
+ # custom-root guard above, so a user's own checkout or a pre-marker Unsloth build is kept.
if ($defaultSdCpp -and (Test-Path -LiteralPath $defaultSdCpp) -and -not (Test-Path -LiteralPath (Join-Path $defaultSdCpp ".unsloth-studio-owned") -PathType Leaf)) {
- _Substep "keeping sd.cpp without Studio owner marker: $defaultSdCpp" "Yellow"
+ _Substep "keeping sd.cpp without Unsloth owner marker: $defaultSdCpp" "Yellow"
} elseif ($defaultSdCpp) {
_RemovePath $defaultSdCpp
}
@@ -1036,7 +1036,7 @@ Environment:
Write-Host " did not see is still on disk."
}
Write-Host "Note: provider API keys are kept in the browser's localStorage, not in studio.db."
- Write-Host " Unless you ran Studio as the desktop app, clear site data for the"
+ Write-Host " Unless you ran Unsloth as the desktop app, clear site data for the"
Write-Host " http://localhost:<port> origin you used to remove them."
Write-Host "Note: Hugging Face model cache at %USERPROFILE%\.cache\huggingface was left in place."
Write-Host "Remove it manually with 'Remove-Item -Recurse -Force `"$env:USERPROFILE\.cache\huggingface\hub`"' if desired."
diff --git a/scripts/uninstall.sh b/scripts/uninstall.sh
index a6764c6252d..5c127d4f3c9 100755
--- a/scripts/uninstall.sh
+++ b/scripts/uninstall.sh
@@ -103,7 +103,7 @@ _owned_sd_cpp_roots() {
}
# Every root an older build could have hung its sd.cpp sibling off: the canonicalized custom roots
-# and the lexical ones. They differ only when the Studio home is itself a symlink, and there the
+# and the lexical ones. They differ only when the Unsloth home is itself a symlink, and there the
# lexical form is the one the old `dirname "$UNSLOTH_STUDIO_HOME"` produced, so canonicalizing
# first looked beside the link's target and missed the tree entirely. Every use is gated on the
# owner marker, which is what keeps an unrelated checkout at either path safe.
@@ -546,16 +546,16 @@ _unsloth_uninstall_main() {
# <root>/stable-diffusion.cpp, so the removal above already took it. Older builds put it
# BESIDE the root at <parent>/stable-diffusion.cpp (find_sd_cpp_binary derived it from
# UNSLOTH_STUDIO_HOME.parent), and removing only the root would leave that build behind.
- # Only remove a sibling Studio installed: <parent> is a user-chosen dir and
+ # Only remove a sibling Unsloth installed: <parent> is a user-chosen dir and
# "stable-diffusion.cpp" is exactly what `git clone` of the upstream project produces, so
# require our owner marker (written by install_sd_cpp_prebuilt) before rm, and keep any
- # unowned checkout. A pre-marker Studio build is left behind, never a user file deleted.
+ # unowned checkout. A pre-marker Unsloth build is left behind, never a user file deleted.
# Guard the derived parent path the same way.
_custom_sd_cpp="$(dirname "$_custom_root")/stable-diffusion.cpp"
if _is_unsafe_root "$_custom_sd_cpp"; then
echo " refusing to remove unsafe path: $_custom_sd_cpp" >&2
elif [ -e "$_custom_sd_cpp" ] && [ ! -f "$_custom_sd_cpp/.unsloth-studio-owned" ]; then
- echo " keeping sd.cpp without Studio owner marker: $_custom_sd_cpp" >&2
+ echo " keeping sd.cpp without Unsloth owner marker: $_custom_sd_cpp" >&2
else
_remove_path "$_custom_sd_cpp"
fi
@@ -569,7 +569,7 @@ _unsloth_uninstall_main() {
# The same ownership check the canonical loop makes before it touches anything. A stale or
# mistyped UNSLOTH_STUDIO_HOME still reaches here (the lexical pass has no cd -P to filter
# a path that is not there), and without this "/parent/typo" would take the marked
- # /parent/stable-diffusion.cpp of somebody else's Studio with it.
+ # /parent/stable-diffusion.cpp of somebody else's Unsloth with it.
_is_studio_root "$_lex_root" || continue
_lex_sd_cpp="$(dirname "$_lex_root")/stable-diffusion.cpp"
[ -f "$_lex_sd_cpp/.unsloth-studio-owned" ] || continue
@@ -596,10 +596,10 @@ _unsloth_uninstall_main() {
# leejet/stable-diffusion.cpp produces, so a user may keep their own checkout (or point
# UNSLOTH_SD_CPP_PATH) at this default path; require our owner marker (written by
# install_sd_cpp_prebuilt) before rm, mirroring the custom-root guard above, so a user's own
- # checkout or a pre-marker Studio build is kept rather than deleted.
+ # checkout or a pre-marker Unsloth build is kept rather than deleted.
_default_sd_cpp="$HOME/.unsloth/stable-diffusion.cpp"
if [ -e "$_default_sd_cpp" ] && [ ! -f "$_default_sd_cpp/.unsloth-studio-owned" ]; then
- echo " keeping sd.cpp without Studio owner marker: $_default_sd_cpp" >&2
+ echo " keeping sd.cpp without Unsloth owner marker: $_default_sd_cpp" >&2
else
_remove_path "$_default_sd_cpp"
fi
@@ -883,7 +883,7 @@ _unsloth_uninstall_main() {
echo " did not see is still on disk."
fi
echo "Note: provider API keys are kept in the browser's localStorage, not in studio.db."
- echo " Unless you ran Studio as the desktop app, clear site data for the"
+ echo " Unless you ran Unsloth as the desktop app, clear site data for the"
echo " http://localhost:<port> origin you used to remove them."
echo "Note: Hugging Face model cache at ~/.cache/huggingface was left in place."
echo "Remove it manually with 'rm -rf ~/.cache/huggingface/hub' if desired."
diff --git a/scripts/video_quality.py b/scripts/video_quality.py
index 118cfaccd41..20ba3378a8c 100644
--- a/scripts/video_quality.py
+++ b/scripts/video_quality.py
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-"""Video quality-vs-cost harness for the Studio video backend.
+"""Video quality-vs-cost harness for the Unsloth video backend.
The video analogue of scripts/diffusion_quality.py: hold the prompt + seed +
shape fixed, render one clip with a high-fidelity reference configuration
diff --git a/studio/Unsloth_Studio_Colab.ipynb b/studio/Unsloth_Studio_Colab.ipynb
index 612d7398060..065250b9dce 100644
--- a/studio/Unsloth_Studio_Colab.ipynb
+++ b/studio/Unsloth_Studio_Colab.ipynb
@@ -87,7 +87,7 @@
"from colab import start\n",
"\n",
"# On Colab, start() auto-opens a Cloudflare link and prints admin login credentials.\n",
- "# Use the Cloudflare link above the ready card to open Studio (in-cell iframes often stay blank).\n",
+ "# Use the Cloudflare link above the ready card to open Unsloth (in-cell iframes often stay blank).\n",
"start()\n",
"\n",
"# To skip the Cloudflare tunnel and try the in-notebook proxy iframe only:\n",
@@ -142,4 +142,4 @@
},
"nbformat": 4,
"nbformat_minor": 5
-}
\ No newline at end of file
+}
diff --git a/studio/backend/assets/preview_page.html b/studio/backend/assets/preview_page.html
index 7f3bff49da6..ecc0cc2e08b 100644
--- a/studio/backend/assets/preview_page.html
+++ b/studio/backend/assets/preview_page.html
@@ -353,7 +353,7 @@
// "busy, retry" state; show the server's message so a busy response isn't misreported.
out.textContent =
detailText ||
- "Studio is currently using another model. To chat with this preview, unload that model in Studio, then try again.";
+ "Unsloth is currently using another model. To chat with this preview, unload that model in Unsloth, then try again.";
return;
}
out.textContent =
diff --git a/studio/backend/auth/authentication.py b/studio/backend/auth/authentication.py
index a12a3f8d6b0..ff62db54b91 100644
--- a/studio/backend/auth/authentication.py
+++ b/studio/backend/auth/authentication.py
@@ -45,7 +45,7 @@ def is_keyless(credentials: Optional[HTTPAuthorizationCredentials]) -> bool:
def _names_a_session(token: str) -> bool:
- """Whether this bearer claims a Studio sign-in this install actually knows.
+ """Whether this bearer claims an Unsloth sign-in this install actually knows.
A session token stays authoritative even under keyless API access: letting an
expired one through would leave the app running as the admin instead of prompting
@@ -125,7 +125,7 @@ def request_admitted_without_credential(request: Request) -> bool:
def admitted_without_session(request: Any) -> bool:
- """True when keyless API access lets this request through with no Studio sign-in.
+ """True when keyless API access lets this request through with no Unsloth sign-in.
The single predicate behind both the auth dependency below and the route-level
checks that ask whether a caller is the Unsloth UI or a programmatic client.
diff --git a/studio/backend/auth/storage.py b/studio/backend/auth/storage.py
index a4f43d60523..2756e334154 100644
--- a/studio/backend/auth/storage.py
+++ b/studio/backend/auth/storage.py
@@ -441,7 +441,7 @@ def get_or_create_identity_secret() -> bytes:
return secret
-# Dedicated AES-256 key used to encrypt Studio credentials in studio.db.
+# Dedicated AES-256 key used to encrypt Unsloth credentials in studio.db.
# It intentionally lives in auth.db so copying studio.db alone does not expose
# provider or Hugging Face tokens, and survives password changes/resets.
_CREDENTIAL_ENCRYPTION_KEY_DB_KEY = "credential_encryption_key_v1"
@@ -1037,7 +1037,7 @@ def clear_desktop_secret() -> None:
API_KEY_PREFIX = "sk-unsloth-"
-# The ``name`` a workflow mints its internal key under. Studio mints internal
+# The ``name`` a workflow mints its internal key under. Unsloth mints internal
# keys for more than one workflow and they do not carry the same authority, so
# the name is the only thing that tells them apart after the fact. Deep Research
# is durable: its hops outlive the session that started them, so they carry a key
@@ -1169,7 +1169,7 @@ def revoke_internal_api_key(key_id: int) -> bool:
def is_internal_api_key(raw_key: str) -> bool:
"""Whether *raw_key* is a workflow-minted internal key rather than a user's own.
- Lets request-scoped code (the API monitor) tell Studio's own background work from a
+ Lets request-scoped code (the API monitor) tell Unsloth's own background work from a
third party using Unsloth as an API server. The answer is memoized because this runs on
the event loop for every API-key request and a key's origin is fixed when it is minted.
"""
@@ -1203,7 +1203,7 @@ def is_internal_api_key(raw_key: str) -> bool:
def internal_api_key_name(raw_key: str) -> Optional[str]:
"""The workflow name *raw_key* was minted under, or ``None`` if it is not internal.
- ``is_internal_api_key`` answers "is this Studio's own key", which is the right
+ ``is_internal_api_key`` answers "is this Unsloth's own key", which is the right
question for a monitor label but far too coarse for authorization: a
data-recipe key runs inside a recipe the user authored, so treating it as
equal to the Deep Research hop would let that recipe spend any saved cloud
diff --git a/studio/backend/colab.py b/studio/backend/colab.py
index e3b93861926..81458d253b4 100644
--- a/studio/backend/colab.py
+++ b/studio/backend/colab.py
@@ -243,7 +243,7 @@ def _ready_card_html(
has_cloudflare_link: bool = False,
cloudflare_requested: bool = False,
) -> str:
- """Branded ready card for the in-notebook Studio view.
+ """Branded ready card for the in-notebook Unsloth view.
Colab ``*.prod.colab.dev`` proxy URLs are session-scoped and 404 when opened as a
top-level tab or on another device, so never ``window.open`` them. On real Colab the
@@ -253,12 +253,12 @@ def _ready_card_html(
if _is_colab_runtime() or _is_colab_proxy_url(url, port):
if has_cloudflare_link:
embed_note = (
- "Open Studio with the Cloudflare link above. In-cell proxy previews on "
+ "Open Unsloth with the Cloudflare link above. In-cell proxy previews on "
"current Colab often stay blank, so the tunnel link is the supported path."
)
elif cloudflare_requested:
embed_note = (
- "Could not open a Cloudflare tunnel, so Studio may be unreachable on Colab. "
+ "Could not open a Cloudflare tunnel, so Unsloth may be unreachable on Colab. "
"Check the logs above and re-run this cell. Pass "
'<code style="background:#f3f3f3;padding:2px 6px;border-radius:4px;">'
"cloudflare=True</code> after fixing any tunnel errors."
@@ -347,7 +347,7 @@ def _warn_colab_cloudflare_missing(*, use_cloudflare: bool, cloudflare_url: "str
if not use_cloudflare or cloudflare_url or not _is_colab_runtime():
return
logger.warning(
- "Colab Cloudflare tunnel unavailable — Studio is unlikely to be reachable in this "
+ "Colab Cloudflare tunnel unavailable — Unsloth is unlikely to be reachable in this "
"notebook. Check the logs above for tunnel or auth errors, then re-run start()."
)
@@ -482,7 +482,7 @@ _COLAB_IFRAME_HEIGHT = 900
def _embed_kernel_port_iframe(port: int) -> bool:
- """Embed Studio via Colab's native kernel-port iframe helper.
+ """Embed Unsloth via Colab's native kernel-port iframe helper.
Only trusted on a real Colab runtime: colabtools can import ``google.colab`` and
queue browser-side JS without appending an iframe, so callers outside Colab must use
diff --git a/studio/backend/core/inference/api_monitor.py b/studio/backend/core/inference/api_monitor.py
index 6747eaf9975..6589c4d4069 100644
--- a/studio/backend/core/inference/api_monitor.py
+++ b/studio/backend/core/inference/api_monitor.py
@@ -36,7 +36,7 @@ _MAX_DECODE_MS = 24 * 60 * 60 * 1000
# Far above any real context window; larger means a broken upstream payload.
_MAX_TOKEN_COUNT = 1 << 40
-# Opt-in startup kill switch for Studio's in-memory API monitor.
+# Opt-in startup kill switch for Unsloth's in-memory API monitor.
_DISABLE_ENV = "UNSLOTH_STUDIO_DISABLE_API_MONITOR"
_TRUE_VALUES = frozenset({"1", "true", "yes", "on"})
@@ -88,7 +88,7 @@ class ApiMonitorEntry:
updated_at: float
# Who this row is attributed to; on a shared row it does not restrict visibility.
subject: Optional[str] = None
- # True for sk-unsloth callers only: the panel auto-opens on these, not Studio's chat.
+ # True for sk-unsloth callers only: the panel auto-opens on these, not Unsloth's chat.
via_api_key: bool = False
# Monotonic anchors so duration math survives wall-clock steps (NTP).
started_monotonic: float = 0.0
diff --git a/studio/backend/core/inference/audio_gallery.py b/studio/backend/core/inference/audio_gallery.py
index 9f6b99d3698..d51a12aae62 100644
--- a/studio/backend/core/inference/audio_gallery.py
+++ b/studio/backend/core/inference/audio_gallery.py
@@ -106,7 +106,7 @@ def _clip_bytes(audio_id: str) -> int:
def _prune_to_cap() -> int:
"""Drop the oldest owned pairs beyond the count or byte cap; return the count removed.
- Best-effort: a save must not fail because housekeeping did. Only Studio-owned pairs are
+ Best-effort: a save must not fail because housekeeping did. Only Unsloth-owned pairs are
considered, so a foreign or orphan wav is never destroyed.
"""
cap = _max_clips()
@@ -201,7 +201,7 @@ def _read_meta(sidecar: Path) -> Optional[dict[str, Any]]:
def owned_audio_path(audio_id: str) -> Optional[Path]:
- """Resolve an id to its WAV only for a Studio-owned clip (readable sidecar).
+ """Resolve an id to its WAV only for an Unsloth-owned clip (readable sidecar).
The serve route uses this rather than audio_path() so a guessed stem for a
hand-dropped or orphan WAV cannot be streamed out."""
@@ -302,7 +302,7 @@ def delete(audio_id: str) -> bool:
def clear() -> int:
- """Delete every Studio-owned pair (readable sidecar); return the count removed.
+ """Delete every Unsloth-owned pair (readable sidecar); return the count removed.
Foreign and orphan WAVs are preserved, since list_audio already hides them."""
removed = 0
try:
diff --git a/studio/backend/core/inference/chat_template_helpers.py b/studio/backend/core/inference/chat_template_helpers.py
index ead7216a8ea..fa60b89bc33 100644
--- a/studio/backend/core/inference/chat_template_helpers.py
+++ b/studio/backend/core/inference/chat_template_helpers.py
@@ -918,7 +918,7 @@ def _neutralize_replayed_tool_call(
Gemma-4 renders "<|tool_call>call:NAME{key:<|"|>value<|"|>}<tool_call|>", so a name or
argument echoing pasted text can close the call block and open a "<|tool_response>" or
"<|turn>model" of its own (#7066). The rewrite is the identity on every dispatchable
- name (Studio composes ^[a-zA-Z0-9_-]{1,64}$), and a tool result's "name" takes the same
+ name (Unsloth composes ^[a-zA-Z0-9_-]{1,64}$), and a tool result's "name" takes the same
rewrite, so the two still agree when Gemma-4 pairs them by name.
Both replay shapes are swept, the OpenAI nested one and the flat {"id", "name",
@@ -1139,7 +1139,7 @@ def neutralize_control_markup_in_messages(
new_content = _neutralize_leaves(content, rewrite)
elif isinstance(content, list):
# A media part is only opaque where something RESOLVES it, and nothing does
- # inside a tool result: Studio's vision and audio paths build from the last
+ # inside a tool result: Unsloth's vision and audio paths build from the last
# user message, while Llama-3.1's tool branch serializes the whole content
# iterable with tojson, so an exempt URL there lands in the prompt as live
# structure. That branch keys on "tool" OR "ipython" (chat_templates.py:517),
diff --git a/studio/backend/core/inference/checkpoint.py b/studio/backend/core/inference/checkpoint.py
index 514575db66b..2c4191fae03 100644
--- a/studio/backend/core/inference/checkpoint.py
+++ b/studio/backend/core/inference/checkpoint.py
@@ -394,7 +394,7 @@ def render_checkpoint(items: list[str], *, searchable: bool = True) -> str:
# text and a caller's own system prompt may already use it. Matching on the tag alone
# stripped that caller-owned section on every reset, reintroduced its bullet lines as
# lower-authority quoted user history, and deleted whatever was not bullet-shaped, which
-# silently rewrites the caller's policy. Only a block Studio itself rendered carries this
+# silently rewrites the caller's policy. Only a block Unsloth itself rendered carries this
# header, so only that one is claimed.
_BLOCK = re.compile(
re.escape(_OPEN) + r"\n" + re.escape(_HEADER) + r"(.*?)" + re.escape(_CLOSE) + r"\s*",
@@ -461,7 +461,7 @@ def _recap(
def _without_block(messages: list[dict]) -> list[dict]:
- """``messages`` with any block Studio rendered removed from the system turn.
+ """``messages`` with any block Unsloth rendered removed from the system turn.
The no-X fallback drops the block and re-measures before refusing. Handing it
`fitted` alone did not drop anything when the INCOMING system message already carried
diff --git a/studio/backend/core/inference/diffusion.py b/studio/backend/core/inference/diffusion.py
index e537c508cda..dbd23ef9138 100644
--- a/studio/backend/core/inference/diffusion.py
+++ b/studio/backend/core/inference/diffusion.py
@@ -237,7 +237,7 @@ def _gated_in_chain(exc: BaseException) -> Optional[BaseException]:
def _hf_token_in_play(hf_token: Optional[str]) -> bool:
- """Whether the failing Hub call carried ANY credential, not just Studio's own: with token=None
+ """Whether the failing Hub call carried ANY credential, not just Unsloth's own: with token=None
huggingface_hub still falls back to HF_TOKEN or the cached CLI login, so keying off the request
token alone loops an already-authenticated user."""
if hf_token:
@@ -659,12 +659,12 @@ def _repo_access_message(repo: str, *, gated: bool) -> str:
return (
f"'{repo}' is gated on Hugging Face and this model cannot be downloaded without it. "
f"Accept its licence at {url}, then add a Hugging Face token that has access in "
- "Studio settings and try again."
+ "Unsloth settings and try again."
)
return (
f"'{repo}' could not be read from Hugging Face (private, renamed or removed) and this "
f"model cannot be downloaded without it. Check {url}, then add a Hugging Face token that "
- "has access in Studio settings and try again."
+ "has access in Unsloth settings and try again."
)
@@ -728,7 +728,7 @@ def _assert_base_repo_accessible(
# downloaded gated base still loads once the token is cleared or expires. Excuses an ACCESS
# verdict only, never a 404: a renamed or removed repo cannot be un-renamed by a stale copy.
def _already_downloaded() -> bool:
- """True when ``probe_file`` is on disk under EITHER root (Studio pins its live setting, the
+ """True when ``probe_file`` is on disk under EITHER root (Unsloth pins its live setting, the
prefetch writes under huggingface_hub's import-time constant). Never raises. Exact for the
native plan, which probes an asset it stages; a proxy for the diffusers plan, which probes
the manifest, so a manifest-cached base with missing shards still dies mid-download on the
@@ -2262,7 +2262,7 @@ class DiffusionBackend:
except Exception: # noqa: BLE001
pass
# Rewrite a gated-repo 403 into the step that unblocks the user, then redact native paths:
- # this text is surfaced verbatim and Studio can be shared. Guarded because on this daemon
+ # this text is surfaced verbatim and Unsloth can be shared. Guarded because on this daemon
# thread anything escaping leaves _loading.error unset and load_progress() stuck forever.
from utils.native_path_leases import redact_native_paths
@@ -4784,7 +4784,7 @@ class DiffusionBackend:
quantize_ never has), then quantize_ converts only the frozen base linears (the
``lora_`` side path is excluded by name), then the loader compiles. That forces the
dense path -- the prequant shortcut is skipped -- so a baked-LoRA load pays the dense
- peak. Verified on the Studio stack: scale 0 reproduces the quantized base exactly.
+ peak. Verified on the Unsloth stack: scale 0 reproduces the quantized base exactly.
Raises if the scheme is unsupported or quantisation fails, so ``load_pipeline``
catches it and falls back to the GGUF build. Quantisation runs ON the device and
diff --git a/studio/backend/core/inference/diffusion_attention.py b/studio/backend/core/inference/diffusion_attention.py
index 72efc467ed5..2808f3fcce7 100644
--- a/studio/backend/core/inference/diffusion_attention.py
+++ b/studio/backend/core/inference/diffusion_attention.py
@@ -301,7 +301,7 @@ _INSTALL_ATTEMPTED: set[str] = set()
# to pip as a name. Only DETERMINISTIC answers are memoised (a URL, or a refusal that
# depends purely on the resident torch, which cannot change under a running interpreter).
# A probe timeout is transient and is deliberately NOT cached: caching it would turn one
-# loaded-machine hiccup into "no xFormers for the rest of this Studio session".
+# loaded-machine hiccup into "no xFormers for the rest of this Unsloth session".
_MATCHED_WHEEL_BACKENDS = frozenset({"xformers"})
_XFORMERS_WHEEL_TARGET: Optional[tuple[Optional[str], Optional[str]]] = None
_XFORMERS_WHEEL_LOCK = threading.Lock()
@@ -482,7 +482,7 @@ def _ensure_attention_backend_installed(backend: str, logger: Any = None) -> Opt
# 100 MB download would block unload and cancel. install.ps1 is where the
# repair belongs -- it compares cpp_lib.json against the resident torch and
# passes --reinstall-package, outside any request. What this branch prevents
- # is Studio CREATING the mismatch, which is how it got made in the first place.
+ # is Unsloth CREATING the mismatch, which is how it got made in the first place.
return None
except Exception: # noqa: BLE001 — a broken install probes as missing; try the install
pass
diff --git a/studio/backend/core/inference/diffusion_compat.py b/studio/backend/core/inference/diffusion_compat.py
index c8f7a073c45..3d2130f0f5a 100644
--- a/studio/backend/core/inference/diffusion_compat.py
+++ b/studio/backend/core/inference/diffusion_compat.py
@@ -407,7 +407,7 @@ def flux2_pick_mismatch(
)
-# GGUF ``general.architecture`` values nothing in Studio can decode. Beside the FLUX.2 check
+# GGUF ``general.architecture`` values nothing in Unsloth can decode. Beside the FLUX.2 check
# because both ask whether the pick is loadable, off the same prefix. The set itself lives in a
# leaf module, shared with the chat gate and the listing classifier so they cannot drift.
from utils.gguf_archs import ( # noqa: E402 -- beside the cache it keys
diff --git a/studio/backend/core/inference/diffusion_controlnet.py b/studio/backend/core/inference/diffusion_controlnet.py
index 433b868c04b..42a260ec147 100644
--- a/studio/backend/core/inference/diffusion_controlnet.py
+++ b/studio/backend/core/inference/diffusion_controlnet.py
@@ -78,7 +78,7 @@ _CURATED: tuple[ControlNetCatalogEntry, ...] = (
def controlnets_dir() -> Path:
- """Local directory Studio scans for user-provided ControlNet model folders."""
+ """Local directory Unsloth scans for user-provided ControlNet model folders."""
d = studio_root() / "controlnets" / "diffusion"
d.mkdir(parents = True, exist_ok = True)
return d
diff --git a/studio/backend/core/inference/diffusion_convrot.py b/studio/backend/core/inference/diffusion_convrot.py
index a139cd1dcbb..bbfcd56dfdc 100644
--- a/studio/backend/core/inference/diffusion_convrot.py
+++ b/studio/backend/core/inference/diffusion_convrot.py
@@ -43,7 +43,7 @@ Everything here fails CLOSED for the same reason. ``apply_activation_rotation``
it cannot find, on a module that is not a Linear, on an ``in_features`` the group does not
divide, and on a rotation kind it does not implement. Its caller (the prequant loader) turns that
into a refused checkpoint and a dense fallback, which is slow but correct. Rotated artifacts also
-carry their own format tag, so a Studio old enough to predate this module rejects them outright
+carry their own format tag, so an Unsloth old enough to predate this module rejects them outright
instead of running them unrotated.
torch is imported inside the functions, matching the other lazily-loaded inference helpers, so
@@ -57,7 +57,7 @@ from typing import Any, Iterable, Optional
# ── the metadata contract, carried in the prequant checkpoint's own ``metadata`` dict ──────────
# The rotation KIND. A value this module does not implement is refused, so a future scheme can be
-# added without a released Studio silently treating it as this one.
+# added without a released Unsloth silently treating it as this one.
CONVROT_KIND = "convrot_hadamard_v1"
# Key naming mirrors the adaLN curve contract next door (``adaln_form`` / ``curve_dim`` /
# ``curve_grid``): a form tag plus the parameters needed to reproduce the form.
@@ -92,7 +92,7 @@ def is_power_of_four(size: Any) -> bool:
# ── the rotation itself ───────────────────────────────────────────────────────────────────────
# Mirrors comfy-kitchen's ``_build_hadamard`` / ``_rotate_activation`` / ``_rotate_weight``, in a
-# few lines of torch rather than a dependency on a wheel Studio does not ship.
+# few lines of torch rather than a dependency on a wheel Unsloth does not ship.
_HADAMARD_CACHE: dict = {}
diff --git a/studio/backend/core/inference/diffusion_device.py b/studio/backend/core/inference/diffusion_device.py
index 6590c985a1f..6b688e5c6f5 100644
--- a/studio/backend/core/inference/diffusion_device.py
+++ b/studio/backend/core/inference/diffusion_device.py
@@ -3,7 +3,7 @@
"""Device + dtype policy for the local diffusion backend.
-torch imported lazily so this stays importable in a no-torch runtime. Studio's hardware layer
+torch imported lazily so this stays importable in a no-torch runtime. Unsloth's hardware layer
reports product backends (CUDA, XPU, MLX, CPU); diffusers runs on PyTorch devices, so Apple
Silicon maps to MPS and ROCm to ``cuda``. Centralises that mapping plus the per-backend dtype and
the capability flags optimisation paths key off.
@@ -292,8 +292,8 @@ def placed_cuda_ordinal(target: DiffusionDeviceTarget) -> Optional[int]:
def resolve_diffusion_device_target(*, ordinal: Optional[int] = None) -> DiffusionDeviceTarget:
"""Resolve the torch device + dtype + capability flags for diffusion.
- Prefers Studio's hardware layer, else probes torch (CUDA -> XPU -> MPS -> CPU). On Apple
- Silicon Studio may report MLX/CPU, but diffusers uses MPS, so those fall through to the MPS
+ Prefers Unsloth's hardware layer, else probes torch (CUDA -> XPU -> MPS -> CPU). On Apple
+ Silicon Unsloth may report MLX/CPU, but diffusers uses MPS, so those fall through to the MPS
probe. Torch is optional: without it the native sd.cpp engine still runs, so a missing torch
reports a torch-free CPU target instead of crashing ``/images/load`` before engine selection.
diff --git a/studio/backend/core/inference/diffusion_families.py b/studio/backend/core/inference/diffusion_families.py
index a0ff3188fa5..4dbcf30a510 100644
--- a/studio/backend/core/inference/diffusion_families.py
+++ b/studio/backend/core/inference/diffusion_families.py
@@ -118,7 +118,7 @@ class DiffusionFamily:
# ``<Model>-<SCHEME>.pt`` name ``prequant_repo_filename`` derives. The derived name stays on as
# the fallback, so a repo hosting BOTH an old and a new artifact serves the new one to a build
# that asks for it by name and the old one to every build that does not. That is what lets a
- # rotated (v2) checkpoint ship without regressing an already-installed Studio, which would
+ # rotated (v2) checkpoint ship without regressing an already-installed Unsloth, which would
# otherwise refuse the v2 tag and fall all the way back to the dense download.
# A row may also be (scheme, task, filename), which names the artifact for ONE task and beats
# the task-agnostic row; see ``family_prequant_filename``.
@@ -134,7 +134,7 @@ class DiffusionFamily:
# Family-specific sd-cli sampler settings so native output matches the model's supported invocation. None leaves sd-cli defaults.
sd_cpp_sampling_method: Optional[str] = None
sd_cpp_flow_shift: Optional[float] = None
- # True when Studio can TRAIN a LoRA on this family; the training-start path refuses a non-trainable family up front.
+ # True when Unsloth can TRAIN a LoRA on this family; the training-start path refuses a non-trainable family up front.
trainable: bool = False
# Recommended base repos to train FROM, most-preferred first (e.g. a QLoRA prequant repo, then bf16). Surfaced by the Train UI.
train_base_repos: tuple[str, ...] = field(default_factory = tuple)
@@ -466,7 +466,7 @@ _FAMILIES: tuple[DiffusionFamily, ...] = (
def trainable_family_names() -> tuple[str, ...]:
- """Names of families Studio can train a LoRA on, in registry order."""
+ """Names of families Unsloth can train a LoRA on, in registry order."""
return tuple(fam.name for fam in _FAMILIES if fam.trainable)
@@ -477,13 +477,13 @@ IDEOGRAM4_FAMILY_NAME = "ideogram-4"
LUMINA2_FAMILY_NAME = "lumina-2"
-# Models Studio deliberately does NOT support, reason surfaced verbatim in the load error, keyed by lowercase repo-id substring. The bar is a diffusers pipeline.
+# Models Unsloth deliberately does NOT support, reason surfaced verbatim in the load error, keyed by lowercase repo-id substring. The bar is a diffusers pipeline.
_EXCLUDED_MODELS: tuple[tuple[str, str], ...] = (
(
# "-3" scoped so a future HunyuanImage 2.x with a diffusers pipeline falls through normally.
"hunyuanimage-3",
"HunyuanImage-3.0 has no diffusers pipeline (it is an 80B autoregressive MoE "
- "that requires trust_remote_code), so Studio does not support it.",
+ "that requires trust_remote_code), so Unsloth does not support it.",
),
)
@@ -578,7 +578,7 @@ def pipeline_class_from_index(path: Optional[str]) -> Optional[str]:
"""The ``_class_name`` the diffusers pipeline saved at ``path`` declares, or None.
Size-capped and schema-free: neither a listing nor a load may be held up by whatever a scan
- folder contains. ``_class_name`` is a LIST for a remote-code community pipeline, which Studio
+ folder contains. ``_class_name`` is a LIST for a remote-code community pipeline, which Unsloth
cannot load, so only a plain string answers.
``utf-8-sig`` because PowerShell writes JSON with a BOM and a hand-authored index is ordinary
diff --git a/studio/backend/core/inference/diffusion_hidream.py b/studio/backend/core/inference/diffusion_hidream.py
index 09905163390..e2b7f26900f 100644
--- a/studio/backend/core/inference/diffusion_hidream.py
+++ b/studio/backend/core/inference/diffusion_hidream.py
@@ -7,7 +7,7 @@ The HiDream-ai/HiDream-I1-* repos name ``text_encoder_4`` (LlamaForCausalLM) and
``tokenizer_4`` in their model_index but do NOT ship the weights: the official example
loads meta-llama/Meta-Llama-3.1-8B-Instruct separately and passes both components into
``HiDreamImagePipeline.from_pretrained``. That upstream repo is Hub-gated (manual
-approval), so Studio loads the open unsloth mirror instead -- byte-identical weights,
+approval), so Unsloth loads the open unsloth mirror instead -- byte-identical weights,
no license wall at load time, and the unsloth org is already inside the loader's
non-GGUF trust gate. ``output_hidden_states=True`` matches the official example: the
pipeline's prompt encoder consumes the Llama hidden states, not the logits.
diff --git a/studio/backend/core/inference/diffusion_krea2.py b/studio/backend/core/inference/diffusion_krea2.py
index e3f9f3cc2f8..97e4b195d6c 100644
--- a/studio/backend/core/inference/diffusion_krea2.py
+++ b/studio/backend/core/inference/diffusion_krea2.py
@@ -37,9 +37,9 @@ KREA2_FAMILY_NAME = "krea-2"
def _live_cache_dir() -> str:
- """Studio's LIVE hub cache root, which every component load here must be pinned to.
+ """Unsloth's LIVE hub cache root, which every component load here must be pinned to.
- An unset ``cache_dir`` resolves through huggingface_hub's import-time constant, and Studio's
+ An unset ``cache_dir`` resolves through huggingface_hub's import-time constant, and Unsloth's
cache folder is a setting: after a mid-session change the two roots differ. This assembler is
reached with a repo id, and the locality gate that cleared the switch reads the live root
(``media_locality`` passes ``cache_dir = hub_cache_dir()``), so an unpinned load looks in the
diff --git a/studio/backend/core/inference/diffusion_lora.py b/studio/backend/core/inference/diffusion_lora.py
index 27e5aa3ac76..1e68c0a909e 100644
--- a/studio/backend/core/inference/diffusion_lora.py
+++ b/studio/backend/core/inference/diffusion_lora.py
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-"""Shared LoRA support for the Studio diffusion backends.
+"""Shared LoRA support for the Unsloth diffusion backends.
The native sd-cli engine selects adapters by `<lora:NAME:WEIGHT>` prompt tags resolved against a
`--lora-model-dir`; diffusers loads them with `load_lora_weights()` + `set_adapters()`. This
@@ -94,7 +94,7 @@ _CURATED: tuple[LoraCatalogEntry, ...] = (
def loras_dir() -> Path:
- """Local directory Studio scans for user-provided diffusion LoRA files."""
+ """Local directory Unsloth scans for user-provided diffusion LoRA files."""
d = studio_root() / "loras" / "diffusion"
d.mkdir(parents = True, exist_ok = True)
return d
diff --git a/studio/backend/core/inference/diffusion_patch_backend.py b/studio/backend/core/inference/diffusion_patch_backend.py
index ec6d4113405..6663556852b 100644
--- a/studio/backend/core/inference/diffusion_patch_backend.py
+++ b/studio/backend/core/inference/diffusion_patch_backend.py
@@ -57,7 +57,7 @@ def _helpers() -> Optional[dict]:
"""``{"patch": patch_function, "restore": restore_original}``, or None when unavailable.
``unsloth_zoo.__init__`` refuses to import unless ``UNSLOTH_IS_PRESENT`` is in the environment,
- and that is set by ``unsloth`` itself. The Studio server imports ``unsloth`` at boot so this
+ and that is set by ``unsloth`` itself. The Unsloth server imports ``unsloth`` at boot so this
always resolved there, but ANY process that reaches the patch backend first -- the test suite,
a worker subprocess -- got an ImportError and silently ran unpatched (every install returning
False). So on failure, import ``unsloth`` and retry once, which is also the import order Unsloth
diff --git a/studio/backend/core/inference/diffusion_prequant.py b/studio/backend/core/inference/diffusion_prequant.py
index 6a1ab3cbe92..f83590c90bc 100644
--- a/studio/backend/core/inference/diffusion_prequant.py
+++ b/studio/backend/core/inference/diffusion_prequant.py
@@ -35,7 +35,7 @@ PREQUANT_FORMAT = "unsloth_prequant_transformer_state_dict_v1"
# v2 is v1 plus an ACTIVATION ROTATION (see ``diffusion_convrot``): the weights are stored in a
# rotated basis and are wrong unless the loader rotates the activations to match. That is the one
-# on-disk change a released Studio cannot ignore safely -- an old build reading a rotated artifact
+# on-disk change a released Unsloth cannot ignore safely -- an old build reading a rotated artifact
# as v1 would load it clean, raise nothing and render quietly wrong pixels forever -- so it gets a
# tag old builds refuse outright, and the load drops to dense instead. Strictly a biconditional:
# a v2 artifact MUST declare a rotation and a v1 artifact must NOT, both checked below, so neither
@@ -58,7 +58,7 @@ ALLOW_LOCAL_PREQUANT_PATH_ENV = "UNSLOTH_ALLOW_LOCAL_PREQUANT_PATH"
# The constructors a pre-quant checkpoint's pickle may name, on top of what ``weights_only``
# already permits (storages, dtypes, ``_rebuild_*``, ``OrderedDict``, ``torch.device``,
-# ``_get_layout``). Surveyed across every hosted checkpoint Studio resolves (image + video, fp8 +
+# ``_get_layout``). Surveyed across every hosted checkpoint Unsloth resolves (image + video, fp8 +
# int8, rotated and not) this is the complete set, so the load runs ``weights_only = True`` and a
# checkpoint naming anything else is refused before one opcode of it executes, hosted or local.
#
@@ -174,7 +174,7 @@ def _tuple_safe_globals_supported() -> bool:
Asked by VERSION rather than by trying it: 2.4/2.5 accept the pairs silently and only fail
later, in ``_get_user_allowed_globals``, which reads ``f.__module__`` off every entry of a
- PROCESS-WIDE list -- so a tuple left there breaks every other weights_only load in Studio.
+ PROCESS-WIDE list -- so a tuple left there breaks every other weights_only load in Unsloth.
Nothing is registered unless the answer here is yes."""
try:
import torch
@@ -514,7 +514,7 @@ def cached_checkpoint_path(source: Any, *, cache_dir: Optional[str] = None) -> O
not short-circuit it, or a stale name stays pinned once the repo ships the real one, so a
fallback-only cache reads as "this would have to download" and the GGUF simply runs.
- Both cache roots are searched: Studio pins the LIVE cache setting while an unpinned
+ Both cache roots are searched: Unsloth pins the LIVE cache setting while an unpinned
``hf_hub_download`` falls back to huggingface_hub's import-time constant. Never raises."""
for root in (cache_dir, None) if cache_dir else (None,):
hit = _cached_in_root(source, root)
@@ -608,7 +608,7 @@ def load_prequantized_transformer(
``cache_dir`` is the live Hub cache root, as every other loader call pins it: unset, a fetch
lands under huggingface_hub's import-time constant, so a mid-session cache change re-downloads
- into a root Studio no longer reads.
+ into a root Unsloth no longer reads.
``config_subfolder`` is where the DENOISER CONFIG lives inside ``base``, defaulting to the
universal ``transformer``. A family hosting several denoiser partitions in one repo overrides
@@ -866,7 +866,7 @@ def _resolve_checkpoint_path(
def _config_cache_roots(checkpoint_path: str, cache_dir: Optional[str]) -> tuple:
"""Cache roots to read the transformer config from, the checkpoint's OWN root first.
- ``_resolve_checkpoint_path`` may answer from huggingface_hub's import-time root even when Studio
+ ``_resolve_checkpoint_path`` may answer from huggingface_hub's import-time root even when Unsloth
pins its live one, so pinning the config to the live root alone misses in exactly the
cache-moved/offline case the checkpoint lookup just accepted, and load_config's raise is
swallowed into a None return. The other root is still tried second."""
@@ -953,7 +953,7 @@ def _validate_activation_rotation(ckpt_format: Any, meta: Any, scheme: str, logg
raises nothing, and renders quietly wrong -- so all three are refused here rather than
discovered later:
- * the artifact declares a rotation and is tagged v1. Only v2 makes a Studio too old for this
+ * the artifact declares a rotation and is tagged v1. Only v2 makes an Unsloth too old for this
code refuse it, so a v1 tag on rotated weights is a hazard to every OTHER build, and the
builder that produced it is not one to trust about anything else in the file;
* the artifact is tagged v2 and declares none. Nothing here would rotate, and the tag says
diff --git a/studio/backend/core/inference/diffusion_speed.py b/studio/backend/core/inference/diffusion_speed.py
index 11f1d2d172e..5d67f4bfb1b 100644
--- a/studio/backend/core/inference/diffusion_speed.py
+++ b/studio/backend/core/inference/diffusion_speed.py
@@ -146,7 +146,7 @@ def torch_compile_runtime_available() -> bool:
"""Whether THIS process can actually run an inductor compile.
Inductor needs Triton, and Windows is the one supported platform whose normal install has no
- Triton wheel. The three Studio workers (inference / training / export) already gate on this
+ Triton wheel. The three Unsloth workers (inference / training / export) already gate on this
import and set ``TORCHDYNAMO_DISABLE=1`` when it fails, but the diffusion and video backends
run in the SERVER process, which those gates never reach, so ask it once here.
diff --git a/studio/backend/core/inference/diffusion_transformer_quant.py b/studio/backend/core/inference/diffusion_transformer_quant.py
index 1093f0d0f25..0fdc7d3dbad 100644
--- a/studio/backend/core/inference/diffusion_transformer_quant.py
+++ b/studio/backend/core/inference/diffusion_transformer_quant.py
@@ -649,7 +649,7 @@ def _child_probe_table(device: str) -> Optional[dict[str, Optional[bool]]]:
)
proc.start()
# Adopted like every other spawn site: the bind above is the CHILD arming PDEATHSIG,
- # which is Linux only, and the Windows job object can fail to take when Studio already
+ # which is Linux only, and the Windows job object can fail to take when Unsloth already
# runs inside an incompatible host job. This record is what is left in that case.
_adopt_probe_pid(proc.pid)
_CHILD_PROBE_SPAWN_ERRORS = 0
diff --git a/studio/backend/core/inference/external_provider.py b/studio/backend/core/inference/external_provider.py
index bfc1bb63923..7f421f16a0a 100644
--- a/studio/backend/core/inference/external_provider.py
+++ b/studio/backend/core/inference/external_provider.py
@@ -1403,7 +1403,7 @@ class ExternalProviderClient:
continue
for ann in envelope.get("annotations") or []:
_record_or_url_citation(ann)
- # Verbatim relay, minus Studio's own UI control protocol:
+ # Verbatim relay, minus Unsloth's own UI control protocol:
# the frames this server writes to paint tool cards ride
# the same stream, so an endpoint that echoes them forges
# a card for a tool that never ran.
@@ -1646,7 +1646,7 @@ class ExternalProviderClient:
break
if line.strip():
# Same rule as the main relay: never let the
- # endpoint speak Studio's control vocabulary.
+ # endpoint speak Unsloth's control vocabulary.
relayed = sanitize_provider_sse_line(line)
if relayed is not None:
yield relayed
@@ -1782,7 +1782,7 @@ class ExternalProviderClient:
str(ann.get("type") or "?")
)
# Same rule as the main relay: never let the endpoint
- # speak Studio's control vocabulary.
+ # speak Unsloth's control vocabulary.
relayed = sanitize_provider_sse_line(line)
if relayed is None:
continue
@@ -4865,7 +4865,7 @@ class ExternalProviderClient:
# OpenAI requires the reasoning items that came back alongside a
# tool call to be replayed with the function_call /
# function_call_output pair whenever the history is managed by
- # hand, which is exactly what the Studio tool loop does: "any
+ # hand, which is exactly what the Unsloth tool loop does: "any
# reasoning items returned in model responses with tool calls
# must also be passed back with tool call outputs"
# (https://developers.openai.com/api/docs/guides/function-calling).
diff --git a/studio/backend/core/inference/external_tool_transport.py b/studio/backend/core/inference/external_tool_transport.py
index b771cc51175..ba56eb874b8 100644
--- a/studio/backend/core/inference/external_tool_transport.py
+++ b/studio/backend/core/inference/external_tool_transport.py
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-"""Transport that drives the shared Studio tool loop over any external provider.
+"""Transport that drives the shared Unsloth tool loop over any external provider.
``ExternalProviderClient.stream_chat_completion`` is the single point every
external provider passes through: the OpenAI-compatible route yields its lines
diff --git a/studio/backend/core/inference/gpu_arbiter.py b/studio/backend/core/inference/gpu_arbiter.py
index f8defe92b3e..7048e2377fc 100644
--- a/studio/backend/core/inference/gpu_arbiter.py
+++ b/studio/backend/core/inference/gpu_arbiter.py
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-"""Single-GPU arbiter for Studio's heavy GPU consumers.
+"""Single-GPU arbiter for Unsloth's heavy GPU consumers.
The chat backends, diffusion, and video share one GPU. Before taking it each calls
``acquire_for(owner)``, which evicts the current other owner so two large models never sit in VRAM
diff --git a/studio/backend/core/inference/image_gallery.py b/studio/backend/core/inference/image_gallery.py
index 3750db95414..cc197bf84d9 100644
--- a/studio/backend/core/inference/image_gallery.py
+++ b/studio/backend/core/inference/image_gallery.py
@@ -144,7 +144,7 @@ def _read_meta(path: Path) -> Optional[dict[str, Any]]:
def owned_image_path(image_id: str) -> Optional[Path]:
- """Resolve an id to its PNG only when it is a Studio-owned image (a readable recipe chunk),
+ """Resolve an id to its PNG only when it is an Unsloth-owned image (a readable recipe chunk),
else None. The serve route uses this instead of image_path() so a guessed stem for a
hand-dropped foreign PNG -- which list_images/delete/clear already treat as not ours -- can't
be streamed out. Mirrors the delete/clear ownership guard."""
@@ -215,7 +215,7 @@ def set_flags(
archived: Optional[bool] = None,
) -> Optional[dict[str, Any]]:
"""Patch one image's pin/archive flags and return its updated record, or None when the id is
- not a Studio-owned image. Ownership-gated like delete: a guessed stem for a hand-dropped
+ not an Unsloth-owned image. Ownership-gated like delete: a guessed stem for a hand-dropped
foreign PNG must not become flaggable (and so listable under a shelf we own)."""
# Ownership check and write under one lock, so a concurrent clear cannot delete the file
# between them and leave this reporting success for an image that is already gone.
@@ -249,7 +249,7 @@ def delete(image_id: str) -> bool:
def clear(include_archived: bool = False) -> int:
- """Delete Studio-owned gallery PNGs (readable recipe chunk); return how many were removed.
+ """Delete Unsloth-owned gallery PNGs (readable recipe chunk); return how many were removed.
Archived images are SPARED by default: archiving is how a user sets something aside, so a
"clear the gallery" action that destroyed the archive would defeat it. Pass
diff --git a/studio/backend/core/inference/llama_admission.py b/studio/backend/core/inference/llama_admission.py
index d11bbafa3e1..4c3665bc749 100644
--- a/studio/backend/core/inference/llama_admission.py
+++ b/studio/backend/core/inference/llama_admission.py
@@ -530,7 +530,7 @@ class LlamaAdmissionQueue:
are each either free or held by exactly one caller. A caller that finds every
slot busy waits in arrival order and is handed the next slot to free, so no
caller is starved. This bounds only the callers that reserve: chat completions
- and messages do, while /v1/completions, Studio's own chat endpoint and RAG
+ and messages do, while /v1/completions, Unsloth's own chat endpoint and RAG
captioning all reach llama-server directly, so it is not a global cap.
Waiting is unbounded in time by default (``queue_timeout_s``
None); the wait line itself is bounded, and only how many may line up before
diff --git a/studio/backend/core/inference/llama_cpp.py b/studio/backend/core/inference/llama_cpp.py
index aed62b460da..41d7a920eaf 100644
--- a/studio/backend/core/inference/llama_cpp.py
+++ b/studio/backend/core/inference/llama_cpp.py
@@ -378,7 +378,7 @@ from utils.paths.path_utils import _is_wsl, is_appledouble_metadata
# The leaf module, not utils.models: importing anything from that package runs its __init__,
# which pulls in model_config and therefore PyYAML. This is the chat backend, imported wherever
-# Studio's Python is, so it must not make the whole models package a hard import dependency.
+# Unsloth's Python is, so it must not make the whole models package a hard import dependency.
from utils.gguf_archs import (
SPEECH_GGUF_ARCHS as _SPEECH_GGUF_ARCHS,
is_speech_gguf_architecture,
@@ -795,7 +795,7 @@ def _branch_boundary(conversation: list[dict], branch: Optional[list[dict]]) ->
exchanges it created, which the next request's transcript does not contain.
Counted by identity. Instruction messages are skipped rather than treated as the front
- of the branch, or a Studio request (always system-prefixed) would report zero on every
+ of the branch, or an Unsloth request (always system-prefixed) would report zero on every
compaction and the boundary would slide every turn again. Everything from the newest
USER turn on is excluded: it is never evicted, and an inline recall rewrites that turn
into a new dict, which an identity scan reads as an eviction. Excluding just the last
@@ -3026,7 +3026,7 @@ def _planned_main_cache_types(
return _effective_main_cache_types(args, env)
-# What kv_cache_type_from_str accepts, so the only types Studio emits. Module scope
+# What kv_cache_type_from_str accepts, so the only types Unsloth emits. Module scope
# because the budget must know whether a type will reach the child before the command
# is assembled.
_VALID_CACHE_TYPES = frozenset(
@@ -3348,7 +3348,7 @@ def _pipeline_parallel_disabled_by_args(
"""Whether the launch turns OFF llama.cpp's pipeline parallelism, i.e. the 4x in
``_CTX_COMPUTE_SPLIT_MULT``. llama-context.cpp requires ``-sm layer``, KV offload
on and an empty tensor-override list (among other things); anything here is back to
- 1x, and charging the multiplier anyway would waste context. Studio passes none of
+ 1x, and charging the multiplier anyway would waste context. Unsloth passes none of
it, but extra_args and the environment can.
``-cmoe`` / ``-ncmoe`` count: both push into ``tensor_buft_overrides`` exactly like
@@ -3370,7 +3370,7 @@ def _pipeline_parallel_disabled_by_args(
if split_mode is not None and split_mode.strip().lower() not in {"layer", "tensor"}:
return True
# Pipelining needs n_gpu_layers > n_layer_all, so a user -ngl (appended after
- # Studio's -ngl -1, last-wins) that cannot exceed the count loads a prefix and
+ # Unsloth's -ngl -1, last-wins) that cannot exceed the count loads a prefix and
# turns it off. Negative (all layers) or above the count keeps the step, even
# in between: n_layers is block_count, which IS n_layer_all (llama-model.cpp
# reads the key straight into it); hparams.n_layer() is the smaller MTP-less one.
@@ -3399,7 +3399,7 @@ def _kv_unified_from_args(
elif value in _LLAMA_ARG_FALSE_VALUES:
enabled = False
if default:
- # Studio's managed --kv-unified flag is appended after environment
+ # Unsloth's managed --kv-unified flag is appended after environment
# parsing and before user extras.
enabled = True
for raw in extra_args or ():
@@ -3636,7 +3636,7 @@ def _metal_device_is_paravirtual() -> bool:
def _paravirtual_probe_answered(server_caps: Mapping[str, object]) -> bool:
"""False when the --help probe failed, so every capability read as absent.
- Both companion flags predate the oldest build Studio can launch (--no-mmproj-offload
+ Both companion flags predate the oldest build Unsloth can launch (--no-mmproj-offload
is b5178, --gpu-layers-draft is from 2023, and the base argv already requires b6325),
so "capability missing" means the probe did not answer, not that the build lacks it:
one malformed inherited LLAMA_ARG_* makes llama-server --help exit non-zero and the
@@ -3722,7 +3722,7 @@ def _extra_args_mmproj_offload_value(extra_args: Optional[Sequence[str]]) -> Opt
# arg.cpp applies set_env options BEFORE argv, so an inherited placement is a choice
-# Studio can reverse with nothing but a llama.cpp warning to show for it, and the child
+# Unsloth can reverse with nothing but a llama.cpp warning to show for it, and the child
# inherits this process's environment. Both spellings: get_value_from_env checks the
# LLAMA_ARG_NO_ form first and forces falsey on PRESENCE, empty value included.
_MMPROJ_OFFLOAD_ENV_VAR = "LLAMA_ARG_MMPROJ_OFFLOAD"
@@ -4173,7 +4173,7 @@ def _sidecar_adapter_paths(extra_args: Optional[Iterable[str]]) -> list[str]:
The ``-scaled`` pair also has a LEGACY spelling: builds up to the turn of the
year declared it ``{"--lora-scaled"}, "FNAME", "SCALE"`` and took the scale as a
- SECOND token, and Studio runs whatever llama-server it is pointed at
+ SECOND token, and Unsloth runs whatever llama-server it is pointed at
(``LLAMA_SERVER_PATH``, or one found on PATH), which is why the pass-through
validator still admits that shape (``_OPTIONAL_SECOND_VALUE_FLAGS``). Read
colon-first, since that is today's syntax; only when the colon parse priced
@@ -4396,7 +4396,7 @@ def _extra_args_n_parallel(
"""Serving slots a pass-through overrides to, or None when nothing does.
Same precedence as the launched command line: extras are appended last
- (llama_cpp.py emits Studio's --parallel first), and llama.cpp is last-wins,
+ (llama_cpp.py emits Unsloth's --parallel first), and llama.cpp is last-wins,
so an extras value beats both the emitted flag and the env. 0 is rejected at
parse time on the server path, so it is not a value anyone gets.
"""
@@ -4801,7 +4801,7 @@ def _cpu_runtime_owner_alive(staged_dir: Path) -> bool:
try:
pid = int((staged_dir / _CPU_RUNTIME_OWNER_FILE).read_text(encoding = "utf-8").strip())
except (OSError, ValueError):
- # No owner stamp: written by an older Studio, so leave it alone.
+ # No owner stamp: written by an older Unsloth, so leave it alone.
return True
if pid == os.getpid():
return True
@@ -4828,7 +4828,7 @@ def _cpu_runtime_owner_alive(staged_dir: Path) -> bool:
def _sweep_abandoned_cpu_runtimes(runtime_root: Path) -> None:
- """Delete staged runtimes whose owning Studio is gone (kill -9, host crash)."""
+ """Delete staged runtimes whose owning Unsloth is gone (kill -9, host crash)."""
try:
candidates = list(runtime_root.glob("llama-cpu-*"))
except OSError:
@@ -5866,7 +5866,7 @@ class LlamaCppBackend:
# stripped list is clearing the failed drafter and must not read as inheriting it.
_invoked_extras = self.requested_extra_args if intent.extra_args_inherited else extra_args
# Requested against requested, per axis, the same rule the tuning group above
- # uses. The scalar self._cache_type_kv holds only what Studio emitted as a
+ # uses. The scalar self._cache_type_kv holds only what Unsloth emitted as a
# managed flag, so a cache set through extras or the env records None on one
# side and a type on the other, and an identical repeat /load tears down a
# healthy server. _requested_cache_types is what the live server was ASKED for,
@@ -6208,7 +6208,7 @@ class LlamaCppBackend:
Search order:
1. LLAMA_SERVER_PATH environment variable (direct path to binary)
1b. UNSLOTH_LLAMA_CPP_PATH env var (custom llama.cpp install dir)
- 2. Studio's custom llama.cpp folder setting
+ 2. Unsloth's custom llama.cpp folder setting
3. ~/.unsloth/llama.cpp/llama-server (make build, root dir)
4. ~/.unsloth/llama.cpp/build/bin/llama-server (cmake build, Linux)
5. ~/.unsloth/llama.cpp/build/bin/Release/llama-server.exe (cmake build, Windows)
@@ -6300,7 +6300,7 @@ class LlamaCppBackend:
if hit:
return hit
- # 2. Studio setting: a deliberate pin, so a missing or inaccessible
+ # 2. Unsloth setting: a deliberate pin, so a missing or inaccessible
# selected build must not silently fall through to the bundled runtime.
# The user would otherwise see their custom path selected while another
# llama-server actually ran.
@@ -6316,7 +6316,7 @@ class LlamaCppBackend:
if hit:
return hit
logger.warning(
- "The custom llama.cpp folder selected in Studio no longer contains "
+ "The custom llama.cpp folder selected in Unsloth no longer contains "
"%s; not falling back to another runtime",
binary_name,
)
@@ -6674,7 +6674,7 @@ class LlamaCppBackend:
elif _is_real("--draft-max"):
spec_draft_n_max_flag = "--draft-max"
# And the build's OWN default for it, off the same help line. Needed
- # where the extras own --spec-type: Studio emits no depth then, so the
+ # where the extras own --spec-type: Unsloth emits no depth then, so the
# child runs on this number and the Hybrid Mamba rollback reserve
# scales by it. None when the line carries no default.
if spec_draft_n_max_flag:
@@ -7782,7 +7782,7 @@ class LlamaCppBackend:
) -> bool:
"""Whether a pass-through "-c 0" must be dropped before it reaches Metal.
- User extras are appended after Studio's own -c and llama.cpp is
+ User extras are appended after Unsloth's own -c and llama.cpp is
last-wins, so a zero override outlives both the Apple cap and the floor
above and re-pins the native length. Only a zero; a positive -c stays
honored. Inert off Apple Silicon like the floor, but unlike the floor it
@@ -7807,7 +7807,7 @@ class LlamaCppBackend:
max_recommended_working_set_size is a static device property, and
virtual_memory().total obviously is, so on a 16 GB Mac the budget came
out around 9 GB whether the machine was idle or already holding several
- gigabytes. Studio's own idle footprint alone is over a gigabyte once the
+ gigabytes. Unsloth's own idle footprint alone is over a gigabyte once the
warm thread has imported torch and, on Apple Silicon, MLX. The fit then
sized a context against headroom that was not there, and llama-server
died in KV or compute allocation.
@@ -9253,7 +9253,7 @@ class LlamaCppBackend:
defaults to 4096, and only "-c 0" disables the reduction outright), but it
decides from the free memory ggml-metal reports, off the device's
recommendedMaxWorkingSetSize. That is a property of the machine, not the moment:
- it knows nothing of Studio's own resident gigabyte or two, of whatever else the
+ it knows nothing of Unsloth's own resident gigabyte or two, of whatever else the
user has open, or of the iogpu wired limit that is the figure actually being
blown. _apple_metal_memory_budget_bytes exists for exactly that gap, and takes
min(device ceiling, psutil available) instead.
@@ -9418,7 +9418,7 @@ class LlamaCppBackend:
_NON_QUANTIZED_KV_TYPES = frozenset({"f16", "bf16", "f32"})
# Main-model placement settings that Manual mode owns. They must not leak
- # from Studio's parent environment into llama-server and silently override
+ # from Unsloth's parent environment into llama-server and silently override
# the command assembled from the current request. Draft-model placement is
# intentionally separate and remains available to speculative decoding.
_MANUAL_PLACEMENT_ENV_VARS = (
@@ -13060,7 +13060,7 @@ class LlamaCppBackend:
"wan",
)
)
- # Media archs Studio recognises but NO page can run, so the refusal must not promise
+ # Media archs Unsloth recognises but NO page can run, so the refusal must not promise
# one. Mirrors ``routes.models._UNSUPPORTED_DIFFUSION_GGUF_ARCHS``, which tags these
# ``image-diffusion-unsupported`` and so hides them from the Images AND Video pickers.
# * "cosmos": no VideoFamily exists at all (``detect_video_family`` returns None for
@@ -13227,7 +13227,7 @@ class LlamaCppBackend:
)
return (
f"This is a text-to-video GGUF (architecture '{arch}'), which cannot "
- "run as a chat model. Studio cannot assemble this particular model "
+ "run as a chat model. Unsloth cannot assemble this particular model "
"from a GGUF, so the Video page does not list it either."
)
if arch in self._IMAGE_ARCHES:
@@ -13243,7 +13243,7 @@ class LlamaCppBackend:
)
return (
f"This is an image-generation GGUF (architecture '{arch}'), which "
- "cannot run as a chat model. Studio could not tell which model family "
+ "cannot run as a chat model. Unsloth could not tell which model family "
f"this file belongs to -- '{arch}' is shared by several -- so the "
"Images page cannot assemble it either."
)
@@ -13277,7 +13277,7 @@ class LlamaCppBackend:
)
return (
"This is a text-to-video model, not a chat model, and its GGUF carries "
- "no llama.cpp model metadata. Studio cannot assemble this particular "
+ "no llama.cpp model metadata. Unsloth cannot assemble this particular "
"model from a GGUF either, so the Video page does not list it."
)
except Exception as e: # noqa: BLE001 -- naming the page is a nicety, never a gate
@@ -13293,7 +13293,7 @@ class LlamaCppBackend:
)
return (
"This is an image-generation model, not a chat model, and its GGUF "
- "carries no llama.cpp model metadata. Studio cannot assemble this "
+ "carries no llama.cpp model metadata. Unsloth cannot assemble this "
"particular model from a GGUF either, so the Images page does not list "
"it."
)
@@ -13361,7 +13361,7 @@ class LlamaCppBackend:
@staticmethod
def _is_llama_install_tree(binary: Optional[str]) -> bool:
- """Does ``binary`` sit in a llama.cpp tree Studio resolved for itself?
+ """Does ``binary`` sit in a llama.cpp tree Unsloth resolved for itself?
The pre-existing half of the question above, kept separate because the
two are not the same: a --with-llama-cpp-dir checkout IS the active
@@ -13910,7 +13910,7 @@ class LlamaCppBackend:
if _why.lower() in {"stoi", "stof", "stod", "stoul", "stoll"}:
_why = "the value is not a number"
_tail = f": {_why}" if _why else ""
- # Whose flag it is decides the advice. Studio emits its own options
+ # Whose flag it is decides the advice. Unsloth emits its own options
# conditionally on the capability probe, so a build that reads
# "--flash-attn on" differently rejects a value the box never held, and
# sending that reader to edit their extra arguments points them at a
@@ -14021,7 +14021,7 @@ class LlamaCppBackend:
)
return (
f"'{arch}' is a text-to-video GGUF, which llama-server cannot run as "
- "a chat/completion model. Studio cannot assemble this particular "
+ "a chat/completion model. Unsloth cannot assemble this particular "
"model from a GGUF, so the Video page does not list it either."
)
if arch in LlamaCppBackend._IMAGE_ARCHES or (
@@ -14266,7 +14266,7 @@ class LlamaCppBackend:
def _scrub_secret_values(text: str, extra: Sequence[Optional[str]] = ()) -> str:
"""Redact credential-looking environment values out of ``text``.
- llama-server inherits nearly all of Studio's environment, so a wrapper
+ llama-server inherits nearly all of Unsloth's environment, so a wrapper
script, a diagnostic build or a crash handler that echoes its env would
otherwise put an API key straight into the load error.
@@ -14763,7 +14763,7 @@ class LlamaCppBackend:
# Unlike the #6415 split-axis abort this is a clean LLAMA_LOG_ERROR + return
# nullptr (exit 1, no signal), so _should_record_tensor_split_abort cannot see it.
# Matched on the middle of the string, so the surrounding log format is irrelevant.
- # Studio dropped its own pre-emptive gate once #23792 shipped, so this marker is
+ # Unsloth dropped its own pre-emptive gate once #23792 shipped, so this marker is
# what keeps an older binary cheap: without it every load burns two doomed model
# loads (tensor attempt plus --fit retry) before the route's layer fallback.
_TENSOR_QUANT_KV_UNSUPPORTED_MARKER = (
@@ -15176,7 +15176,7 @@ class LlamaCppBackend:
for i in reversed(bare_at):
del out[i]
- # Studio launches with FA on, so a quantized --cache-type-v is legal at
+ # Unsloth launches with FA on, so a quantized --cache-type-v is legal at
# launch but would make THIS FA-off retry crash on init instead of
# recovering.
return LlamaCppBackend._reset_quantized_v_cache(
@@ -15197,7 +15197,7 @@ class LlamaCppBackend:
before a flash-attn-off retry, returning True if anything was removed.
The argv rewrite in ``_with_flash_attn_off`` only reaches flags on the
- command line. Studio deliberately lets an env-only cache type reach the
+ command line. Unsloth deliberately lets an env-only cache type reach the
child untouched (an asymmetric K/V env must survive), so a quantized V
cache set purely through ``LLAMA_ARG_CACHE_TYPE_V`` (or the draft
``LLAMA_ARG_SPEC_DRAFT_CACHE_TYPE_V``) would still abort the FA-off retry
@@ -15535,7 +15535,7 @@ class LlamaCppBackend:
loader_path = _loader_path_var()
env[loader_path] = loader_env[loader_path]
replay[0] = cpu_binary
- # Staging covers only the executable and libraries, so keep Studio's working
+ # Staging covers only the executable and libraries, so keep Unsloth's working
# directory: relative paths in user extra args resolve against it.
return replay, None
@@ -15576,7 +15576,7 @@ class LlamaCppBackend:
)
staged_dir = Path(staged_runtime.name)
# A kill -9 skips TemporaryDirectory's atexit hook, so stamp the owner
- # and let the next stage collect what no live Studio holds.
+ # and let the next stage collect what no live Unsloth holds.
(staged_dir / _CPU_RUNTIME_OWNER_FILE).write_text(str(os.getpid()), encoding = "utf-8")
lib_dir = _llama_lib_dir(str(source_binary))
gpu_backend = _GGML_GPU_BACKEND_RE
@@ -16761,7 +16761,7 @@ class LlamaCppBackend:
# the same reason as _detected_gpus: the except path (--fit on) falls
# through to the launch, which reads it.
_arch_gate_forced_cpu = False
- # Whether Studio's placement planner actually RAN and came back
+ # Whether Unsloth's placement planner actually RAN and came back
# unable to fit the model. `use_fit` alone cannot answer that: it
# starts True at its declaration below and is also what the except
# path restores, so an unfitted `--fit on` is indistinguishable
@@ -17009,7 +17009,7 @@ class LlamaCppBackend:
)
original_ctx = effective_ctx
# Strip the user --split-mode when the toggle owns the split
- # (TP engaged -> Studio emits --split-mode tensor) or when the
+ # (TP engaged -> Unsloth emits --split-mode tensor) or when the
# user asked for tensor (which aborts on a single GPU even if
# the manual <2-GPU guard downgraded TP). Otherwise keep their
# non-tensor mode (row/none/layer) -- the toggle can't express
@@ -17103,7 +17103,7 @@ class LlamaCppBackend:
# arrive by two routes, hence the two conditions: draft-simple
# and draft-eagle3 via _user_draft_via_extras (already excluded,
# they never set _user_mtp_via_extras), and DSpark/DFlash via
- # Studio's own resolution, which does set _auto_studio_mtp.
+ # Unsloth's own resolution, which does set _auto_studio_mtp.
_engaged_is_mtp = bool(
_user_mtp_via_extras
or (_auto_studio_mtp and _mtp_effective not in ("dspark", "dflash"))
@@ -17159,7 +17159,7 @@ class LlamaCppBackend:
if _env_n_max is not None:
_mtp_eff_n_max = int(str(_env_n_max).strip())
else:
- # Never fall through to Studio's platform default here:
+ # Never fall through to Unsloth's platform default here:
# the child is drafting at the build's number, and a
# probe that timed out or printed no default still leaves
# it drafting. Assume the deepest llama.cpp has shipped.
@@ -17199,7 +17199,7 @@ class LlamaCppBackend:
)
# Will a SEPARATE drafter be emitted at all, taken before the CPU
# nulling below. Not mtp_draft_path: extras owning --spec-type return
- # before Studio's sidecar becomes --model-draft, which
+ # before Unsloth's sidecar becomes --model-draft, which
# _studio_draft_for_budget already encodes.
_separate_draft_launches = bool(_mtp_draft_for_budget)
# Drafter offloaded to CPU keeps its weights+KV off the GPU, so
@@ -18398,7 +18398,7 @@ class LlamaCppBackend:
# Cap with the same fit math; Auto shrinks to the cap, an explicit
# request above it is refused. "--fit on" stays a backstop but not
# one this can lean on: llama.cpp sizes its reduction from
- # ggml-metal's free-memory report, blind to Studio's own footprint
+ # ggml-metal's free-memory report, blind to Unsloth's own footprint
# and the wired limit. See _metal_context_overcommit_message.
native_ctx_for_cap = self._context_length or effective_ctx
# Only a ceiling backed by a real KV estimate may refuse; the 4096
@@ -18823,7 +18823,7 @@ class LlamaCppBackend:
"model_path": model_path,
"n_ctx": effective_ctx,
# The slot count the KV and recurrent state were PRICED at.
- # A pass-through --parallel is appended after Studio's own
+ # A pass-through --parallel is appended after Unsloth's own
# and wins, and both caches scale with it.
"n_parallel": int(n_parallel or 1),
# An iGPU or APU reports host RAM as VRAM: crediting it and
@@ -18924,7 +18924,7 @@ class LlamaCppBackend:
if _fitter_runs
else 0.0
)
- # A projector Studio never resolved but the child loads anyway:
+ # A projector Unsloth never resolved but the child loads anyway:
# LLAMA_ARG_MMPROJ / _URL are read before argv and only the vision
# switch and the paravirtual pin clear them, while model_size carries
# none of those bytes. A URL names a download that has not happened
@@ -19173,7 +19173,7 @@ class LlamaCppBackend:
effective_ctx,
# Auto-layers earns its exemption by leaving the context to --fit,
# so it only holds while --fit actually runs. Extras land after
- # Studio's own "--fit on" and win, and a "--fit off" there would
+ # Unsloth's own "--fit on" and win, and a "--fit off" there would
# otherwise leave a command with no -c and no fitter, which is
# llama.cpp's native context.
auto_fit and fit_is_effectively_on(extra_args),
@@ -19326,7 +19326,7 @@ class LlamaCppBackend:
# when >1 GPU is in use AND the list length matches that count:
# the field is hidden (not cleared) when the picker narrows to
# one, and a direct caller can send a stale ratio for a different
- # GPU set. Studio drops any mismatch to the free-VRAM default
+ # GPU set. Unsloth drops any mismatch to the free-VRAM default
# (llama.cpp would silently zero-pad a short list, or abort past
# its 16-device cap).
_split_gpus = self._effective_gpu_count(gpu_indices)
@@ -19357,7 +19357,7 @@ class LlamaCppBackend:
# don't report it as active via /status and /load.
self._tensor_split = None
elif use_fit:
- # Studio could not prove a fit, so llama.cpp's fitter takes the
+ # Unsloth could not prove a fit, so llama.cpp's fitter takes the
# placement. Its dense path fills "back to front with dense
# layers" (common/fit.cpp:402), i.e. WHOLE layers, and a layer
# takes its KV cache with it because the cache buffer comes
@@ -19649,7 +19649,7 @@ class LlamaCppBackend:
and self._partially_offloads_layers(
[*cmd, *(_spec_placement_extras or [])],
_spec_placement_env,
- # Manual mode skips Studio's placement planner (gpus is
+ # Manual mode skips Unsloth's placement planner (gpus is
# emptied above), so its --fit on is the default this
# function starts at, not a finding that the model does
# not fit. Only Auto's fitter carries that evidence --
@@ -19993,7 +19993,7 @@ class LlamaCppBackend:
binary = binary,
env = _mem_env,
probe_vulkan = should_mlock(),
- # Over the built cmd AND the extras, so Studio's own --fit
+ # Over the built cmd AND the extras, so Unsloth's own --fit
# counts and a later user --fit still wins by last-arg.
fit_active = fit_is_effectively_on([*cmd, *(_mem_extra_args or [])], _mem_env),
)
@@ -20084,7 +20084,7 @@ class LlamaCppBackend:
logger.info("Load mode: %s", " ".join(_load_mode_managed))
# User pass-through args go last. Placement flags are removed
- # below when the Studio picker owns the GPU selection.
+ # below when the Unsloth picker owns the GPU selection.
if _mem_extras:
_emit_extra_args = list(_mem_extras)
if gpu_ids is not None:
@@ -20107,7 +20107,7 @@ class LlamaCppBackend:
cmd.extend(_pv_draft_cpu_pin)
if _pv_mmproj_cpu_pin:
cmd.extend(_pv_mmproj_cpu_pin)
- # Also last, and for the same last-wins reason: suppressing Studio's own
+ # Also last, and for the same last-wins reason: suppressing Unsloth's own
# --mmproj and scrubbing the env vars still leaves a remembered
# --mmproj-auto in the extras above, and that flag asks llama-server to
# rediscover the adjacent projector by itself. Vision would come back on
@@ -20149,7 +20149,7 @@ class LlamaCppBackend:
# No env argument: the child environment is not built until
# below, and reading it here is an UnboundLocalError. The
# inherited os.environ is the right source anyway, since
- # Studio never rewrites LLAMA_ARG_SPEC_DRAFT_MODEL.
+ # Unsloth never rewrites LLAMA_ARG_SPEC_DRAFT_MODEL.
draft_mla = self._draft_kv_symmetry(cmd),
)
@@ -20346,7 +20346,7 @@ class LlamaCppBackend:
# own projector on the command line (with --no-mmproj-offload), so an
# inherited one is only ever the corrupt path.
# Turning vision off has the same blind spot, and it is the whole point
- # of the switch: suppressing Studio's own --mmproj leaves an inherited
+ # of the switch: suppressing Unsloth's own --mmproj leaves an inherited
# LLAMA_ARG_MMPROJ / LLAMA_ARG_MMPROJ_URL untouched, so llama-server
# loads a projector anyway (arg.cpp sets params.mmproj.path / .url
# straight from those vars). The load would then report text-only over a
@@ -20465,7 +20465,7 @@ class LlamaCppBackend:
# fails with "LLAMA_SPLIT_MODE_TENSOR needs >= 1 devices" and
# llama-server exits 1 rather than falling back, so normalise to
# layer/CPU. Gate-scoped: the zero-offload arm already dropped
- # Studio's flags, and a user --split-mode there is overridden.
+ # Unsloth's flags, and a user --split-mode there is overridden.
_cpu_cmd = (
self._without_flags(cmd, ("--split-mode", "-sm", "--tensor-split", "-ts"))
if _arch_gate_forced_cpu
@@ -21775,7 +21775,7 @@ class LlamaCppBackend:
"llama-server could not start with this model's vision "
"projector (--mmproj), including the CPU-projector "
"recovery when available. Retrying text-only for this "
- "session; check memory, GPU/driver logs, or update Studio."
+ "session; check memory, GPU/driver logs, or update Unsloth."
)
self._mmproj_fallback_reason = "projector_startup_failure"
cmd = self._strip_mmproj_args(_vision_gpu_cmd)
@@ -22701,7 +22701,7 @@ class LlamaCppBackend:
@staticmethod
def _cmd_has_gpu_companion(cmd: list, env: Optional[Mapping[str, str]] = None) -> bool:
"""True when the argv/env carries a GPU companion: any --mmproj form, or
- a drafter (Studio's --model-draft, the extras aliases, or the
+ a drafter (Unsloth's --model-draft, the extras aliases, or the
LLAMA_ARG_SPEC_DRAFT_* env) -- these offload to the GPU regardless of
the main ``--gpu-layers``. A drafter explicitly forced to CPU
(--spec-draft-ngl 0 / --spec-draft-device cpu) doesn't count."""
@@ -23059,7 +23059,7 @@ class LlamaCppBackend:
@staticmethod
def _server_pidfile_path() -> Optional[Path]:
"""Pidfile recording the live llama-server PID, under the active studio root
- (per-root, so concurrent Studios with distinct UNSLOTH_STUDIO_HOME stay
+ (per-root, so concurrent Unsloth instances with distinct UNSLOTH_STUDIO_HOME stay
isolated, mirroring the reaper's custom-root isolation)."""
try:
from utils.paths.storage_roots import studio_root # noqa: WPS433
@@ -23497,7 +23497,7 @@ class LlamaCppBackend:
# Floored here rather than in each enumerator: both the /proc scan
# and the psutil scan feed this loop, and a third one added later
# would too. Not hypothetical for pid 1 either, since #7894
- # established Studio can run as a container entrypoint, and a
+ # established Unsloth can run as a container entrypoint, and a
# container whose entrypoint is llama-server puts a process this
# sweep recognises at pid 1. Killing it takes the container down.
if not _is_signalable_pid(pid):
@@ -23556,7 +23556,7 @@ class LlamaCppBackend:
extra_args: Optional[Iterable[str]] = None,
env: Optional[Mapping[str, str]] = None,
) -> "Optional[SpillPlan]":
- """A ``-ot`` spill plan for a load Studio could not fit, or None to abstain.
+ """A ``-ot`` spill plan for a load Unsloth could not fit, or None to abstain.
Abstaining reproduces today's ``--fit on`` byte for byte, so every
uncertain input abstains rather than guessing. That is the whole safety
@@ -23639,7 +23639,7 @@ class LlamaCppBackend:
logger.debug("Tensor spill: declined, pass-through arguments own the placement")
return None
- # Slots are SIZING, not placement, and these numbers were priced at Studio's
+ # Slots are SIZING, not placement, and these numbers were priced at Unsloth's
# own --parallel. A pass-through is appended after it and llama.cpp is
# last-wins, so a larger one grows the attention cache and the recurrent
# state under a deficit computed for the smaller count. Only larger matters:
@@ -23684,7 +23684,7 @@ class LlamaCppBackend:
"Tensor spill: declined, a shared-memory GPU stays in the child's device list"
)
return None
- # The USABLE budget Studio's fit tested, not raw free: it carries the
+ # The USABLE budget Unsloth's fit tested, not raw free: it carries the
# VRAM-budget fraction and the per-card reserve floor. Falling back to free
# keeps a caller that supplies no map working.
usable_mib = inputs.get("gpu_usable_mib") or {}
@@ -23709,7 +23709,7 @@ class LlamaCppBackend:
return None
# The trailing nextn/MTP blocks the layout dropped, charged back when a
- # draft will engage. Studio's budget already assumed they were paid for (an
+ # draft will engage. Unsloth's budget already assumed they were paid for (an
# embedded head contributes 0 to _mtp_draft_weights because its weights sit
# inside model_size), but the planner rebuilds from the tensor table, where
# they are gone -- leaving the deficit short by the whole MTP head.
@@ -23750,13 +23750,13 @@ class LlamaCppBackend:
# and only buys the CPU backend's slower read path. The planner
# abstains on those, but only if told: left at False it would
# plan a spill on every Strix Halo (gfx1151), Strix Point
- # (gfx1150), Krackan (gfx1152) and Phoenix iGPU. Studio already
+ # (gfx1150), Krackan (gfx1152) and Phoenix iGPU. Unsloth already
# classifies these from the driver's integrated flag, then
# gcnArchName, then the device-name substrings.
unified_memory = self._amd_apu_wants_unified_memory(inputs.get("gpu_indices")),
),
),
- # The cache Studio already priced for THIS launch, byte-accurately:
+ # The cache Unsloth already priced for THIS launch, byte-accurately:
# cache dtype, SWA windows, MLA latents, unified vs per-slot streams,
# cell padding and flash-attention V padding. layout.kv_bytes() is a
# bare f16 GQA product with none of those, so on an MLA or f32-cache
diff --git a/studio/backend/core/inference/llama_keepwarm.py b/studio/backend/core/inference/llama_keepwarm.py
index 7abbcb1149b..f9b8eceeb1e 100644
--- a/studio/backend/core/inference/llama_keepwarm.py
+++ b/studio/backend/core/inference/llama_keepwarm.py
@@ -9,7 +9,7 @@ pure-ASGI middleware tracks in-flight inference requests so a long stream that
outlives the TTL is never unloaded mid-response.
The same loop and the same middleware drive the image/video side (media_keepwarm),
-so Studio has one idle mechanism rather than one per backend.
+so Unsloth has one idle mechanism rather than one per backend.
"""
from __future__ import annotations
@@ -32,7 +32,7 @@ _preview_inflight = 0
# Blocked on the unload gate, not yet in _inflight: the idle loop must not unload while one waits.
_pending = 0
# Subset of _pending that is /p/ preview traffic, so the busy guard can tell a queued
-# Studio request from a queued preview.
+# Unsloth request from a queued preview.
_preview_pending = 0
# Non-preview requests past FastAPI auth at the local-inference choke point. The preview
# busy guard counts these, not raw _inflight, so a pre-auth/unauthenticated tracked request
@@ -94,8 +94,8 @@ _INFERENCE_SUFFIXES = (
# Tracked above (they hold the GPU, so the in-flight count must see them) but served by the
# diffusion/video engines, never the llama slot. A successful one therefore did NOT run against
-# the resident chat model and must not adopt it for Studio: clearing the marker on an image or
-# video generation would leave a still-preview-owned checkpoint looking Studio-owned, and the
+# the resident chat model and must not adopt it for Unsloth: clearing the marker on an image or
+# video generation would leave a still-preview-owned checkpoint looking Unsloth-owned, and the
# next preview for a different checkpoint would 503 on the slot guard.
_NON_LLM_SLOT_SUFFIXES = (
"/images/generate",
@@ -214,7 +214,7 @@ def other_admitted_inference_count() -> int:
def other_non_preview_pending_count() -> int:
"""Non-preview requests queued on the lifecycle gate (_pending, not yet in flight).
- The preview swap guard must count these: a queued Studio request would otherwise start
+ The preview swap guard must count these: a queued Unsloth request would otherwise start
against the model a preview swapped in while it waited. The current request is a preview
already in flight, so not in _pending."""
with _lock:
@@ -280,9 +280,9 @@ def preview_swapped_since_entry(scope) -> bool:
def _claim_non_preview_slot() -> None:
- """A non-preview request that ran against the local model (2xx) adopts it for Studio,
+ """A non-preview request that ran against the local model (2xx) adopts it for Unsloth,
so clear preview ownership -- a later preview for another checkpoint then 503s instead
- of swapping the model out from under an active Studio conversation. Claiming on success
+ of swapping the model out from under an active Unsloth conversation. Claiming on success
(not before) means a per-route-rejected request never strands a preview-owned model.
Lazily imported: routes.inference imports this module."""
try:
@@ -302,7 +302,7 @@ _UNTRACKED_SCOPE_KEY = "_unsloth_keepwarm_untracked"
_TRACKED_SCOPE_KEY = "_unsloth_keepwarm_tracked"
# A preview route waits on its own serializer after middleware admission. While queued it
-# must be pending, not active: a Studio swap holds the lifecycle gate while draining active
+# must be pending, not active: an Unsloth swap holds the lifecycle gate while draining active
# requests, and the queued preview needs that same gate after it gets the serializer.
_PREVIEW_SERIALIZER_WAIT_SCOPE_KEY = "_unsloth_keepwarm_preview_serializer_wait"
@@ -320,13 +320,13 @@ _SWAP_GEN_AT_ENTRY_KEY = "_unsloth_keepwarm_swap_gen_at_entry"
# Set on the scope by a streaming route that failed after its 200 headers (an SSE error
# chunk, a passthrough relaying a mid-stream error while HTTP stays 200). The claim keys
# off HTTP status alone, so without this a failed stream would adopt a preview-owned model
-# for Studio; the claim skips a flagged response.
+# for Unsloth; the claim skips a flagged response.
_RESPONSE_FAILED_SCOPE_KEY = "_unsloth_keepwarm_response_failed"
def mark_response_failed(scope) -> None:
"""Flag a response that returned 2xx headers but then failed, so the middleware doesn't
- treat it as a successful non-preview completion and claim the slot for Studio. Safe to
+ treat it as a successful non-preview completion and claim the slot for Unsloth. Safe to
call repeatedly; a no-op on a non-dict scope."""
if isinstance(scope, dict):
scope[_RESPONSE_FAILED_SCOPE_KEY] = True
@@ -652,7 +652,7 @@ class LlamaKeepWarmMiddleware:
ended = {"done": False}
status = {"code": None}
# Set once the terminal body frame (more_body False) is sent: only a response that
- # completed cleanly adopts the model for Studio. A client disconnect after the 200
+ # completed cleanly adopts the model for Unsloth. A client disconnect after the 200
# headers raises before that frame (an OSError that _SameTaskStreamingResponse turns
# into a CancelledError for the body generator, which finishes the monitor and
# re-raises without flagging the scope), so a cancelled stream never claims the slot.
@@ -669,12 +669,12 @@ class LlamaKeepWarmMiddleware:
if not chat_tracked:
return
# A non-preview 2xx that completed cleanly ran against the local model and adopts
- # it for Studio, so clear preview ownership. Skip on a per-route 4xx/5xx (never
+ # it for Unsloth, so clear preview ownership. Skip on a per-route 4xx/5xx (never
# strand a preview-owned model), count_tokens (tokenize only), a failed/cancelled
# stream, and an untracked balance-only request. Claim BEFORE dropping the admitted
# count (and the in-flight count) below: load_model_for_preview's busy guard keys on
# other_admitted_inference_count(), so decrementing first opens a window where a
- # preview sees no admitted Studio traffic and a still-preview-owned slot, swaps in,
+ # preview sees no admitted Unsloth traffic and a still-preview-owned slot, swaps in,
# and this delayed claim then clears the wrong checkpoint; while still counted the
# guard refuses that swap.
if (
diff --git a/studio/backend/core/inference/llama_server_args.py b/studio/backend/core/inference/llama_server_args.py
index 42df991bb5e..900cb5a42a4 100644
--- a/studio/backend/core/inference/llama_server_args.py
+++ b/studio/backend/core/inference/llama_server_args.py
@@ -117,7 +117,7 @@ _DENYLIST_GROUPS: tuple[frozenset[str], ...] = (
# the same opaque one.
frozenset({"--log-file"}),
frozenset({"--log-disable"}),
- # Slot-state dir: Studio owns it for KV persistence across idle unload. Endpoint
+ # Slot-state dir: Unsloth owns it for KV persistence across idle unload. Endpoint
# exposure (--slots, --props) is deliberately NOT denied alongside it: Unsloth
# reads GET /props and never /slots, so either is the user's own call.
frozenset({"--slot-save-path"}),
@@ -916,7 +916,7 @@ def split_policy_starves_devices(
``--split-mode`` and ``--tensor-split`` are pass-through under auto-select
(``_SPLIT_SHADOWING_FLAGS`` is stripped only when the Tensor Parallelism toggle
- owns the split), so both reach the child appended after Studio's own placement
+ owns the split), so both reach the child appended after Unsloth's own placement
flags. Either can quietly shrink the pool a pooled VRAM credit was priced for:
* ``--split-mode none`` is ``LLAMA_SPLIT_MODE_NONE`` (common/arg.cpp), which
@@ -1432,17 +1432,17 @@ DENIED_ENV_VARS: tuple[str, ...] = (
"LLAMA_ARG_CORS_METHODS",
"LLAMA_ARG_CORS_CREDENTIALS",
"LLAMA_ARG_MEDIA_PATH",
- # The twins of --log-file and --log-disable. Studio classifies a failed start by
+ # The twins of --log-file and --log-disable. Unsloth classifies a failed start by
# reading llama-server's own output, so an inherited redirect leaves every
- # failure looking like the same opaque one; and unlike the flags, Studio emits
+ # failure looking like the same opaque one; and unlike the flags, Unsloth emits
# nothing later that would override these. LLAMA_ARG_LOG_DISABLE has no twin in
# today's builds, and is listed so it cannot arrive as one.
"LLAMA_ARG_LOG_FILE",
"LLAMA_ARG_LOG_DISABLE",
- # --api-prefix moves every endpoint, including the /health Studio waits on, so an
+ # --api-prefix moves every endpoint, including the /health Unsloth waits on, so an
# inherited one turns every load into a timeout.
"LLAMA_ARG_API_PREFIX",
- # --api-key and its file. Studio terminates auth itself and sends the child no
+ # --api-key and its file. Unsloth terminates auth itself and sends the child no
# Authorization header, so an inherited key makes the healthy child refuse every
# request. The bundled build reads LLAMA_API_KEY for the flag and
# LLAMA_ARG_API_KEY_FILE for the file; the third spelling is listed because the
@@ -1451,7 +1451,7 @@ DENIED_ENV_VARS: tuple[str, ...] = (
"LLAMA_ARG_API_KEY",
"LLAMA_ARG_API_KEY_FILE",
# The twins of --ssl-key-file and --ssl-cert-file. Given both, llama-server
- # listens on https, while Studio probes /health and proxies over http against
+ # listens on https, while Unsloth probes /health and proxies over http against
# the port it launched: the child comes up healthy and every load times out.
# Measured on b10360, where an inherited pair turns "listening on
# http://127.0.0.1:PORT" into "listening on https://...".
@@ -1459,7 +1459,7 @@ DENIED_ENV_VARS: tuple[str, ...] = (
"LLAMA_ARG_SSL_CERT_FILE",
# The rest of the twins its --help documents for a denied flag, enumerated from
# the bundled b10342 help rather than picked one at a time: every "(env: NAME)"
- # whose option this module refuses. Studio emits most of these itself and argv
+ # whose option this module refuses. Unsloth emits most of these itself and argv
# wins over the environment, so removing them changes nothing in the ordinary
# case; they are here for the paths where it does not, and so a flag denied in
# the box is not reachable through the environment instead. The mapping below
@@ -1495,7 +1495,7 @@ DENIED_ENV_VARS: tuple[str, ...] = (
# LLAMA_ARG_POOLING / _RERANKING / _EMBEDDINGS itself, next to where it decides
# what the GGUF header says.
# The multi-model server mode: a child holding its own model directory, preset
- # and autoload policy is not the single model Studio launched and accounts for.
+ # and autoload policy is not the single model Unsloth launched and accounts for.
"LLAMA_ARG_MODELS_DIR",
"LLAMA_ARG_MODELS_PRESET",
"LLAMA_ARG_MODELS_MAX",
diff --git a/studio/backend/core/inference/media_auto_switch.py b/studio/backend/core/inference/media_auto_switch.py
index c56eafa7e76..16122aa7006 100644
--- a/studio/backend/core/inference/media_auto_switch.py
+++ b/studio/backend/core/inference/media_auto_switch.py
@@ -16,7 +16,7 @@ Only downloaded models resolve, and an unknown name is refused rather than answe
whatever is resident. Nothing here starts a download: the media equivalent of the chat
auto-download setting would let one API key spend tens of GB, which is its own decision.
-Both waits are bounded, because Studio's secure-mode tunnel caps an origin response near 100
+Both waits are bounded, because Unsloth's secure-mode tunnel caps an origin response near 100
seconds. Exceeding a bound leaves the work running and asks the caller to retry, the contract
``begin_load`` already gives the UI.
diff --git a/studio/backend/core/inference/media_keepwarm.py b/studio/backend/core/inference/media_keepwarm.py
index 704b826e66a..d5150dcf05c 100644
--- a/studio/backend/core/inference/media_keepwarm.py
+++ b/studio/backend/core/inference/media_keepwarm.py
@@ -3,13 +3,13 @@
"""Opt-in idle auto-unload for the diffusion image and video backends.
-The image and video pipelines are the largest thing Studio holds in VRAM, and until now only
+The image and video pipelines are the largest thing Unsloth holds in VRAM, and until now only
the chat GGUF was freed when the user walked away: one generation and a navigate-away left
several GB resident forever. This is the same mechanism rather than a second one -- the same
in-flight bookkeeping (``LlamaKeepWarmMiddleware`` already tracks the generate routes) and one
step per tick of ``llama_keepwarm.idle_unload_loop``. The TTL is its own setting, off by
default, so nothing here runs until the user asks for it: the tick returns before it resolves
-a backend, which is also what keeps torch out of a Studio that never opened these pages.
+a backend, which is also what keeps torch out of an Unsloth that never opened these pages.
Each backend owns its teardown barrier, so this decides only WHEN: it calls the same
``unload()`` the arbiter's evictor calls, resolved through ``get_active_diffusion_engine()``
@@ -149,7 +149,7 @@ def loaded_by_user_action(
variant: Optional[str] = None,
partition: Optional[str] = None,
) -> bool:
- """Whether the RESIDENT model was loaded from Studio rather than by an API request.
+ """Whether the RESIDENT model was loaded from Unsloth rather than by an API request.
The record only answers for the build it was written against: a load that was accepted and
then failed leaves the previous model resident, and reading its origin off the failed
diff --git a/studio/backend/core/inference/media_switch_backends.py b/studio/backend/core/inference/media_switch_backends.py
index 793a5e8b549..8829a18c92c 100644
--- a/studio/backend/core/inference/media_switch_backends.py
+++ b/studio/backend/core/inference/media_switch_backends.py
@@ -87,7 +87,7 @@ def backend_busy(backend: Any) -> bool:
def other_backend_busy(owner: str) -> bool:
"""Whether the other media backend is loading or generating, off the loop.
- Guarded and lazy: a Studio that never opened the other page has no backend to ask, and
+ Guarded and lazy: an Unsloth that never opened the other page has no backend to ask, and
importing one just to find that out would drag torch in for nothing.
"""
import sys
diff --git a/studio/backend/core/inference/media_switch_errors.py b/studio/backend/core/inference/media_switch_errors.py
index 163a12171af..bcb8430b127 100644
--- a/studio/backend/core/inference/media_switch_errors.py
+++ b/studio/backend/core/inference/media_switch_errors.py
@@ -4,7 +4,7 @@
"""Refusals the media model auto-switch answers a generation request with.
Every one of these is an ordinary outcome rather than a fault. The switch never downloads,
-never cuts a running generation short, and never outlives the ~100 second window Studio's
+never cuts a running generation short, and never outlives the ~100 second window Unsloth's
secure-mode tunnel gives an origin response, so where it cannot serve the request it says which
of those it hit and asks the caller to retry.
diff --git a/studio/backend/core/inference/offload_layout.py b/studio/backend/core/inference/offload_layout.py
index 0c5c5b22505..fa30c6b3ae7 100644
--- a/studio/backend/core/inference/offload_layout.py
+++ b/studio/backend/core/inference/offload_layout.py
@@ -262,7 +262,7 @@ def _layout_from_reader(reader) -> ModelLayout:
# unless a draft is engaged, so an -ot naming them moves nothing: measured,
# spilling only blk.<nextn> leaves the host buffer at exactly token_embd and the
# device buffer unchanged. Counting them spillable would credit bytes that can
- # never be freed. Studio prices the drafter separately anyway.
+ # never be freed. Unsloth prices the drafter separately anyway.
all_block_indices = set(spill) | set(resident)
block_indices = sorted(i for i in all_block_indices if i < n_layers)
has_excluded = any(i >= n_layers for i in all_block_indices)
diff --git a/studio/backend/core/inference/openai_auto_download.py b/studio/backend/core/inference/openai_auto_download.py
index 96c302220d0..57d2a43e701 100644
--- a/studio/backend/core/inference/openai_auto_download.py
+++ b/studio/backend/core/inference/openai_auto_download.py
@@ -135,7 +135,7 @@ def is_downloadable_ref(requested: str) -> bool:
def looks_like_gguf_hub_repo_id(repo_id: str) -> bool:
- """Whether *repo_id* names a Studio catalog entry, not a LiteLLM/OpenRouter label.
+ """Whether *repo_id* names an Unsloth catalog entry, not a LiteLLM/OpenRouter label.
Namespaced ids without a GGUF suffix are foreign routing labels (``openai/gpt-4o``).
``-GGUF`` and the ``unsloth/`` namespace mark ids clients pick from this server's
@@ -509,7 +509,7 @@ async def maybe_auto_download(
only ever sees an already-downloaded model.
``subject`` and ``via_api_key`` describe the caller for the monitor row this
- opens: the same /v1 endpoints serve Studio's own chat on a session JWT, so the
+ opens: the same /v1 endpoints serve Unsloth's own chat on a session JWT, so the
download is not API-key traffic unless the request that asked for it was.
"""
global _active
@@ -889,7 +889,7 @@ async def _dispatch(
monitor_id = api_monitor.record_lifecycle(
# Reason "api" since only /v1 reaches auto-download, but that is not API-key
- # traffic: Studio's chat calls /v1 on a JWT, and marking its download would pop
+ # traffic: Unsloth's chat calls /v1 on a JWT, and marking its download would pop
# the overlay mid-chat. So attribution comes from the request, plus its caller,
# since the row is shared.
event = "download",
diff --git a/studio/backend/core/inference/openai_codex_auth.py b/studio/backend/core/inference/openai_codex_auth.py
index 42fec07b8fc..fbc4bccb215 100644
--- a/studio/backend/core/inference/openai_codex_auth.py
+++ b/studio/backend/core/inference/openai_codex_auth.py
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-"""ChatGPT/Codex public-client OAuth owned by the Studio backend.
+"""ChatGPT/Codex public-client OAuth owned by the Unsloth backend.
OAuth transient material never crosses the API boundary: callers receive only an
opaque flow id and safe user-facing authorization metadata.
@@ -111,7 +111,7 @@ def _provider_file_lock(provider_id: str) -> FileLock:
@asynccontextmanager
async def provider_oauth_write_guard(provider_id: str):
- """Serialize refresh and deletion across Studio workers without blocking the event loop."""
+ """Serialize refresh and deletion across Unsloth workers without blocking the event loop."""
file_lock = _provider_file_lock(provider_id)
try:
await asyncio.to_thread(file_lock.acquire)
@@ -865,7 +865,7 @@ async def resolve_access(
if not force_refresh and bundle["expires_at"] > time.time() + _REFRESH_SKEW_SECONDS:
return bundle["access_token"], bundle["account_id"]
- # Multiple Studio workers may share the installation DB. Serialize with
+ # Multiple Unsloth workers may share the installation DB. Serialize with
# disconnect/delete and re-read so a completed refresh is reused.
async with provider_oauth_write_guard(provider_id):
bundle = load_oauth_bundle(provider_id)
diff --git a/studio/backend/core/inference/openai_codex_tool_loop.py b/studio/backend/core/inference/openai_codex_tool_loop.py
index 6d19d45538e..aed9aeb8fd7 100644
--- a/studio/backend/core/inference/openai_codex_tool_loop.py
+++ b/studio/backend/core/inference/openai_codex_tool_loop.py
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-"""Studio-owned tool execution loop for the ChatGPT Codex subscription transport.
+"""Unsloth-owned tool execution loop for the ChatGPT Codex subscription transport.
The loop itself now lives in ``core.inference.studio_tool_loop`` and is shared
with every other external provider. What stays here is the Codex transport: the
@@ -93,7 +93,7 @@ def stream_codex_with_studio_tools(
policy: CodexToolPolicy,
cancel_event: threading.Event,
) -> AsyncIterator[str]:
- """Stream Codex, execute requested Studio tools, and continue until a final answer."""
+ """Stream Codex, execute requested Unsloth tools, and continue until a final answer."""
return stream_with_studio_tools(
CodexTransport(client, run),
run = ToolLoopRun(
diff --git a/studio/backend/core/inference/providers.py b/studio/backend/core/inference/providers.py
index c2c09e232cd..e8b514c025c 100644
--- a/studio/backend/core/inference/providers.py
+++ b/studio/backend/core/inference/providers.py
@@ -418,10 +418,10 @@ def get_base_url(provider_type: str) -> str | None:
def provider_runs_local_tools(provider_type: str | None) -> bool:
- """Whether Studio may run its own tool loop against this provider type.
+ """Whether Unsloth may run its own tool loop against this provider type.
- Studio's tools (web_search, python, terminal, MCP, knowledge-base search)
- execute on the Studio host, so any provider whose wire format can carry a
+ Unsloth's tools (web_search, python, terminal, MCP, knowledge-base search)
+ execute on the Unsloth host, so any provider whose wire format can carry a
tool schema out and a tool result back can use them. That is the whole
OpenAI-compatible family plus Gemini, whose native shape is translated to
and from OpenAI chunks in ``external_provider.py``.
@@ -465,14 +465,14 @@ def provider_model_runs_local_tools(provider_type: str | None, model: str | None
def provider_hosted_tools(provider_type: str | None) -> frozenset[str]:
"""Built-in tool names this provider executes on its own side.
- These are not Studio's tools: they are body flags (`tools: [{type:
+ These are not Unsloth's tools: they are body flags (`tools: [{type:
"web_search"}]`, `plugins: [{id: "web"}]`, `codeExecution`) that the provider
runs and bills, and the only thing this server does with them is forward the
name. `provider_runs_local_tools` is orthogonal -- most providers do both,
and a request picks a side by which names it lists.
Empty for the self-hosted presets (llama.cpp, vLLM, Ollama, custom) and for
- openai_codex, whose `web_search` is Studio's own tool run by the Codex loop.
+ openai_codex, whose `web_search` is Unsloth's own tool run by the Codex loop.
"""
if not isinstance(provider_type, str):
return frozenset()
@@ -494,10 +494,10 @@ HOSTED_TOOL_NAMES: frozenset[str] = frozenset(
# and bills for it.
#
# Which side a request wants is the request's to say, not this server's to
-# assume. web_search is unambiguous -- the hosted name and Studio's own tool are
-# spelled the same, so naming it while the loop runs can only mean Studio's.
+# assume. web_search is unambiguous -- the hosted name and Unsloth's own tool are
+# spelled the same, so naming it while the loop runs can only mean Unsloth's.
# code_execution is a different name from python/terminal precisely because it
-# is a different thing: it runs in the provider's sandbox, and Studio has no
+# is a different thing: it runs in the provider's sandbox, and Unsloth has no
# implementation of it at all (see ALL_TOOLS). Treating it as "already replaced"
# therefore substitutes nothing, it just drops the tool while its pill stays lit.
LOCAL_STANDINS_FOR_HOSTED_TOOLS: dict[str, frozenset[str]] = {
@@ -507,11 +507,11 @@ LOCAL_STANDINS_FOR_HOSTED_TOOLS: dict[str, frozenset[str]] = {
def hosted_only_tools(provider_type: str | None, enabled_tools: Any) -> list[str]:
- """The requested hosted tools Studio is not running in their place.
+ """The requested hosted tools Unsloth is not running in their place.
image_generation and web_fetch have no local implementation, and their UI
pills are independent of Search / Code / RAG, so a request that mixes one of
- them with a Studio tool has to carry it through to the provider or the tool
+ them with an Unsloth tool has to carry it through to the provider or the tool
silently disappears while its toggle stays on. code_execution has no local
implementation either, and rides along unless the same request also asked
for the local tools that would duplicate it.
@@ -567,7 +567,7 @@ _METADATA_IPS = frozenset(
# not mistaken for one.
_METADATA_NETWORK = ipaddress.ip_network("169.254.0.0/16")
-# Opt-in for operators who expose Studio on a shared host: also refuse provider
+# Opt-in for operators who expose Unsloth on a shared host: also refuse provider
# URLs that resolve to a non-public address. Off by default, because loopback and
# LAN endpoints are the normal case (Ollama, llama.cpp, vLLM, custom gateways).
_BLOCK_PRIVATE_ENV = "UNSLOTH_STUDIO_BLOCK_PRIVATE_PROVIDER_URLS"
@@ -908,7 +908,7 @@ def list_available_providers(include_hidden: bool = False) -> list[dict[str, Any
entries.
``include_hidden`` is how a client that does know says so. The self-hosted
- presets are exactly the ones that run Studio's tools, so their capability
+ presets are exactly the ones that run Unsloth's tools, so their capability
has to reach a frontend that asks for it, and asking is opt-in.
"""
result = []
diff --git a/studio/backend/core/inference/sd_cpp_backend.py b/studio/backend/core/inference/sd_cpp_backend.py
index f4efd9ba423..88ab33e9848 100644
--- a/studio/backend/core/inference/sd_cpp_backend.py
+++ b/studio/backend/core/inference/sd_cpp_backend.py
@@ -148,7 +148,7 @@ def _tree_reader(
replacing is the exact race this exists to prevent.
The wait is cancellable. The caller already holds the generate lock here, so an unload or a
- cancel that could not get out of this would read as a hung Studio for up to the whole timeout
+ cancel that could not get out of this would read as a hung Unsloth for up to the whole timeout
while nothing has even started. Nothing notifies the condition on cancel, so the wait is
re-checked on a short tick rather than once."""
global _tree_readers
@@ -183,7 +183,7 @@ def _tree_reader(
_tree_state.notify_all()
-# Max images per img_gen job; larger Studio batches (up to 32) are split into these chunks.
+# Max images per img_gen job; larger Unsloth batches (up to 32) are split into these chunks.
_MAX_SERVER_BATCH = 8
@@ -244,8 +244,8 @@ def _usable_or_discard_managed(binary: str) -> bool:
return True
if not is_managed_binary(binary):
logger.warning(
- "sd.cpp binary %s is not runnable; leaving it alone (not a Studio-owned install we may "
- "replace). Delete its directory to have Studio reinstall the prebuilt.",
+ "sd.cpp binary %s is not runnable; leaving it alone (not an Unsloth-owned install we may "
+ "replace). Delete its directory to have Unsloth reinstall the prebuilt.",
binary,
)
return True # not ours to replace; the router's own probe still refuses it
@@ -443,7 +443,7 @@ def _h3_replacement_hint(binary: str) -> str:
Path(binary).resolve().relative_to(root.resolve())
except (OSError, ValueError):
continue
- return f", or move {root} aside so Studio can install the pinned prebuilt there"
+ return f", or move {root} aside so Unsloth can install the pinned prebuilt there"
return ""
@@ -454,7 +454,7 @@ def ensure_h3_sd_cpp_binary(
ADVERTISE H3 support.
``ensure_sd_cpp_binary`` hands back whatever ``find_sd_cpp_binary`` locates and only probes
- runnability, so an install that predates H3 (an upgraded Studio still carrying an older managed
+ runnability, so an install that predates H3 (an upgraded Unsloth still carrying an older managed
sd-cli) is returned unchanged, the H3 load reports ready on it, and the first generation fails.
Only this path is stricter: image generation must keep working on any user-supplied build. Its
caller runs it BEFORE resolving the H3 assets, so a refusal costs no download.
@@ -653,7 +653,7 @@ def _accelerator_changed(binary: str, accelerator: str) -> bool:
if want in _failed_accelerator_upgrades:
return False
# From the root the binary is actually in, not the current default: an install an older
- # build put beside the Studio home keeps its own record, and reading the wrong root would
+ # build put beside the Unsloth home keeps its own record, and reading the wrong root would
# report it unrecorded and re-download a bundle that is already here.
return _record_mismatch(mod, root, want)
except Exception: # noqa: BLE001 -- cannot tell -> keep the existing binary, as before
@@ -671,7 +671,7 @@ def _record_mismatch(mod, root: Path, want: str) -> bool:
def _superseded_legacy_server(binary: Optional[str], accelerator: str) -> bool:
"""True when ``binary`` is a MISMATCHED sd-server out of the tree an older build left beside
- the Studio home, while the CURRENT managed root holds a completed install for ``accelerator``
+ the Unsloth home, while the CURRENT managed root holds a completed install for ``accelerator``
whose bundle shipped no sd-server.
That install is the authoritative one, and the recorded fact that its bundle is serverless
@@ -716,7 +716,7 @@ def _installed_accelerator_of(binary: Optional[str]) -> Optional[str]:
it on every single load. What the load needs is narrower -- did the tree it resolved this
binary out of get replaced underneath it."""
# From the root the binary is actually IN, not the current default. The finder also serves a
- # tree an older build left beside the Studio home, and reading the current root for a binary
+ # tree an older build left beside the Unsloth home, and reading the current root for a binary
# out of that one reports "unrecorded" on both sides of the comparison, so a swap underneath
# this load reads as no change at all.
root = owning_managed_root(binary)
@@ -840,7 +840,7 @@ def ensure_sd_server_binary(
_note_failed_upgrade(accelerator)
return fallback
installed = find_sd_server_binary()
- # The finder also probes the tree an older build left beside the Studio home, so when the
+ # The finder also probes the tree an older build left beside the Unsloth home, so when the
# bundle just installed ships no sd-server the hit here can be that legacy server, built
# for a different accelerator. None, not the fallback: an install just completed, so the
# router's next step resolves the sd-cli it landed, and a one-shot run on the right build
diff --git a/studio/backend/core/inference/sd_cpp_engine.py b/studio/backend/core/inference/sd_cpp_engine.py
index e7bb626b161..1c2196406ce 100644
--- a/studio/backend/core/inference/sd_cpp_engine.py
+++ b/studio/backend/core/inference/sd_cpp_engine.py
@@ -234,7 +234,7 @@ def _first_file(paths: list[Path]) -> Optional[str]:
# Identity verdicts, keyed by the file itself rather than by the path alone, so replacing a binary
-# in place re-probes it while a rebuild elsewhere on PATH is unaffected. Bounded: a Studio session
+# in place re-probes it while a rebuild elsewhere on PATH is unaffected. Bounded: an Unsloth session
# sees a handful of candidates, and a runaway key set would only ever come from a path being
# rewritten under us, which is exactly the case that must not be served from here.
_IDENTITY_MEMO: dict[tuple[str, int, int, int], tuple[bool, float]] = {}
@@ -363,16 +363,16 @@ def _is_legacy_sd_cpp_binary(binary: str) -> bool:
def managed_install_root() -> Path:
- """The directory the prebuilt installer owns, so callers can tell a Studio-managed binary
+ """The directory the prebuilt installer owns, so callers can tell an Unsloth-managed binary
from a user-supplied one (SD_CLI_PATH / UNSLOTH_SD_CPP_PATH / PATH / an in-tree build).
Only a copy under this root may be reinstalled over: replacing anything else would delete
a build the user chose. Honors UNSLOTH_STUDIO_HOME / STUDIO_HOME like the installer, so
- side-by-side Studios stay isolated.
+ side-by-side Unsloth instances stay isolated.
``<studio home>/stable-diffusion.cpp``, which is where every other managed component lives
(``default_managed_llama_dir``, ``managed_whisper_dir``, ``managed_node_dir`` all place their
- tree *under* the Studio home). The legacy default home ``~/.unsloth/studio`` keeps mapping to
+ tree *under* the Unsloth home). The legacy default home ``~/.unsloth/studio`` keeps mapping to
``~/.unsloth/stable-diffusion.cpp`` so existing installs are still found."""
return _studio_component_root("stable-diffusion.cpp")
@@ -400,14 +400,14 @@ def _studio_component_root(name: str) -> Path:
def legacy_sibling_install_root() -> Optional[Path]:
"""The pre-fix managed root, ``<studio home>/../stable-diffusion.cpp``, or None.
- Older builds derived the sd.cpp root from the *parent* of the Studio home, which put the tree
- outside the Studio home entirely. Two problems: a relative ``UNSLOTH_STUDIO_HOME`` collapsed
+ Older builds derived the sd.cpp root from the *parent* of the Unsloth home, which put the tree
+ outside the Unsloth home entirely. Two problems: a relative ``UNSLOTH_STUDIO_HOME`` collapsed
that parent to the working directory, so an unrelated ``stable-diffusion.cpp`` checkout sitting
there became "the managed install" and the installer refused to run; and it disagreed with
every other component, which install under the home.
Kept only so a tree an older build really did install still resolves. Returned solely when it
- carries the ownership marker, so a checkout that merely happens to sit next to the Studio home
+ carries the ownership marker, so a checkout that merely happens to sit next to the Unsloth home
is never adopted.
The LEXICAL parent first, because that is the one the old code took: ``Path(home).parent`` does
@@ -473,7 +473,7 @@ def owning_managed_root(binary: Optional[str]) -> Optional[Path]:
"""The installer-owned root ``binary`` lives under, or None when it is not ours.
Both locations are checked, current first, because a tree an older build installed beside the
- Studio home is still discovered by the finder. Callers that read per-install state (the
+ Unsloth home is still discovered by the finder. Callers that read per-install state (the
accelerator record) must read it from the root the binary is actually in: reading the current
root while the binary came from the legacy one reports "unrecorded", which a GPU target treats
as a mismatch and answers by re-downloading a bundle that is already installed."""
@@ -517,13 +517,13 @@ def _find_binary(
if hit:
return hit
- # 3. Default install root: <studio home>/stable-diffusion.cpp (honors UNSLOTH_STUDIO_HOME / STUDIO_HOME like the installer so side-by-side Studios stay isolated), else ~/.unsloth/....
+ # 3. Default install root: <studio home>/stable-diffusion.cpp (honors UNSLOTH_STUDIO_HOME / STUDIO_HOME like the installer so side-by-side Unsloth instances stay isolated), else ~/.unsloth/....
default_root = managed_install_root()
hit = _first_file(_layout_candidates(default_root, layout_stem))
if hit:
return hit
- # 3b. A tree an older build installed beside the Studio home. Marker-gated (see legacy_sibling_install_root), so only a real previous install is picked up here.
+ # 3b. A tree an older build installed beside the Unsloth home. Marker-gated (see legacy_sibling_install_root), so only a real previous install is picked up here.
legacy_root = legacy_sibling_install_root()
if legacy_root is not None:
hit = _first_file(_layout_candidates(legacy_root, layout_stem))
diff --git a/studio/backend/core/inference/sd_cpp_server.py b/studio/backend/core/inference/sd_cpp_server.py
index 49df63b170a..b8f61561d4d 100644
--- a/studio/backend/core/inference/sd_cpp_server.py
+++ b/studio/backend/core/inference/sd_cpp_server.py
@@ -8,7 +8,7 @@ reloaded the multi-GB GGUF from disk every generation. ``sd-server`` (the upstre
``examples/server`` target) loads the model once at spawn and serves many generations
over HTTP, exactly like the chat backend's persistent ``llama-server``. This manager
owns ONLY the process + HTTP lifecycle; the backend (``sd_cpp_backend.py``) still owns
-asset resolution, request validation, and the public Studio surface.
+asset resolution, request validation, and the public Unsloth surface.
Shape mirrors ``core/rag/embed_llama_server.py``:
* ``start`` -- pick a free loopback port, spawn the server (model loads here),
@@ -318,7 +318,7 @@ class SdCppServer:
``_find_free_port`` binds an ephemeral port, reads it and closes the socket, and sd-server
binds it only AFTER loading the model -- minutes for a multi-gigabyte checkpoint. Another
local process can take the port inside that window, and ``/v1/models`` is a stock
- OpenAI-compatible route that llama.cpp's own server (and a second Studio) answers 200 on,
+ OpenAI-compatible route that llama.cpp's own server (and a second Unsloth) answers 200 on,
so readiness would pass and every generation would be posted to an unrelated listener.
Verifying the listener really belongs to our child closes that. Best-effort by design:
diff --git a/studio/backend/core/inference/sse_control_frames.py b/studio/backend/core/inference/sse_control_frames.py
index 5bdeaf367f3..0fe4b9566d1 100644
--- a/studio/backend/core/inference/sse_control_frames.py
+++ b/studio/backend/core/inference/sse_control_frames.py
@@ -1,9 +1,9 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-"""Keep a provider's bytes off Studio's own control channel.
+"""Keep a provider's bytes off Unsloth's own control channel.
-Studio multiplexes its UI control protocol onto the same SSE stream a provider's
+Unsloth multiplexes its UI control protocol onto the same SSE stream a provider's
chunks are relayed on. The chat client picks those frames out structurally: a
top-level ``type`` of ``tool_start`` / ``tool_end`` / ``tool_output`` /
``tool_args`` / ``tool_status`` (and the local-runtime ``diffusion_frame`` /
@@ -12,7 +12,7 @@ assistant text, as does a ``_toolEvent`` / ``_toolStatus`` key stamped inside an
otherwise ordinary chunk.
Every one of those frames is written by this server. A provider endpoint -- a
-user-configured base_url, so not necessarily one Studio or the user controls --
+user-configured base_url, so not necessarily one Unsloth or the user controls --
has no legitimate reason to emit any of them, and a verbatim relay makes its copy
indistinguishable from ours at the client: a forged card can claim a tool the
user trusts ran and returned something harmless, carrying
@@ -43,7 +43,7 @@ _CONTROL_TYPES = frozenset(
}
)
-# Studio extensions carried inside a chunk. Not part of any provider's wire
+# Unsloth extensions carried inside a chunk. Not part of any provider's wire
# format, and read by the client with the same trust as the frames above.
_CONTROL_KEYS = ("_toolEvent", "_toolStatus", "_diffusionFrame", "_reasoningDurationMs")
diff --git a/studio/backend/core/inference/stt_download_worker.py b/studio/backend/core/inference/stt_download_worker.py
index 23c3de45549..4832a68818d 100644
--- a/studio/backend/core/inference/stt_download_worker.py
+++ b/studio/backend/core/inference/stt_download_worker.py
@@ -82,7 +82,7 @@ def spawn_download(
cwd = str(cwd),
stdout = subprocess.DEVNULL,
stderr = subprocess.PIPE,
- # Die with Studio: a detached worker would keep pulling gigabytes after
+ # Die with Unsloth: a detached worker would keep pulling gigabytes after
# the app closed, with nothing left able to stop it.
**child_popen_kwargs(),
)
@@ -95,7 +95,7 @@ def terminate_download(process: subprocess.Popen) -> None:
The canceller holds the repository reservation until the reap returns, so a
worker that ignores SIGTERM would lock every Model Hub write on that repo
- until Studio restarts.
+ until Unsloth restarts.
"""
try:
process.terminate()
diff --git a/studio/backend/core/inference/stt_ggml_sidecar.py b/studio/backend/core/inference/stt_ggml_sidecar.py
index 623d9ce040b..38bf8fc8b0d 100644
--- a/studio/backend/core/inference/stt_ggml_sidecar.py
+++ b/studio/backend/core/inference/stt_ggml_sidecar.py
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-"""whisper.cpp (GGML/GGUF) speech-to-text sidecar for Studio dictation.
+"""whisper.cpp (GGML/GGUF) speech-to-text sidecar for Unsloth dictation.
Runs the same curated Whisper checkpoints as the Transformers sidecar
(stt_sidecar.py) through whisper.cpp's `whisper-server`, ~2.5x faster at
@@ -16,7 +16,7 @@ than through the Model Hub (whose variant planner only handles `.gguf` chat
layouts).
Binary discovery mirrors `_find_llama_server_binary`: env override, then managed
-Studio home, then PATH. With no binary the engine is unavailable and dictation
+Unsloth home, then PATH. With no binary the engine is unavailable and dictation
falls back to the Transformers sidecar; `scripts/build_whisper_cpp.sh` installs
the binary.
"""
@@ -280,7 +280,7 @@ def slim_runtime_intact(binary: str) -> bool:
# and is_available() said yes, which meant _resolve_serving_stt_engine never fell back and
# every recording 501'd while the UI showed the model as loaded. Only inference can prove
# this, so it is recorded when inference fails and cleared when one succeeds. Process
-# lifetime by design: a reinstall restarts Studio.
+# lifetime by design: a reinstall restarts Unsloth.
_runtime_inference_failure: Optional[str] = None
_runtime_failure_lock = threading.Lock()
@@ -1002,7 +1002,7 @@ class GgmlSttSidecar:
# Co-located GPU libs on the loader path (WSL system HIP first),
# secrets scrubbed from the downloaded binary's env.
env = _whisper_server_child_env(binary),
- # Die with Studio (Linux PDEATHSIG, Windows job) so a crash
+ # Die with Unsloth (Linux PDEATHSIG, Windows job) so a crash
# never orphans a server holding the model.
**child_popen_kwargs(),
)
diff --git a/studio/backend/core/inference/stt_mtmd_sidecar.py b/studio/backend/core/inference/stt_mtmd_sidecar.py
index 3b19e4f0060..11972f1b29a 100644
--- a/studio/backend/core/inference/stt_mtmd_sidecar.py
+++ b/studio/backend/core/inference/stt_mtmd_sidecar.py
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-"""llama.cpp multimodal (mtmd) speech-to-text sidecar for Studio dictation.
+"""llama.cpp multimodal (mtmd) speech-to-text sidecar for Unsloth dictation.
whisper.cpp loads only the Whisper architecture, so newer ASR models run through
llama.cpp instead: a text model plus an audio mmproj, served by `llama-server`
@@ -170,7 +170,7 @@ def _reap(process: Optional[subprocess.Popen]) -> None:
"""Stop a child and wait for it, so its port and VRAM are actually free.
terminate() alone returns before the process has gone, and a child that
- ignores SIGTERM would hold both until Studio exits.
+ ignores SIGTERM would hold both until Unsloth exits.
"""
if process is None:
return
@@ -925,7 +925,7 @@ class MtmdSttSidecar:
# Bundled libs and pip CUDA runtimes on the loader path, secrets
# scrubbed, as the chat backend spawns the same binary.
env = _llama_server_child_env(binary),
- # Die with Studio, so a crash never orphans a server on the GPU.
+ # Die with Unsloth, so a crash never orphans a server on the GPU.
**child_popen_kwargs(),
)
# Published before the wait, so training can preempt a startup that
diff --git a/studio/backend/core/inference/stt_sidecar.py b/studio/backend/core/inference/stt_sidecar.py
index 89d9d7c704a..922afcec5b5 100644
--- a/studio/backend/core/inference/stt_sidecar.py
+++ b/studio/backend/core/inference/stt_sidecar.py
@@ -7,7 +7,7 @@ Standalone speech-to-text (STT) sidecar for dictation.
Loads a Whisper model (via Transformers) in a spawn child of its own, separate
from the chat model's inference subprocess, so dictation works with any chat
model without evicting it. Curated defaults plus any Transformers-compatible
-Whisper repo; weights come through Studio's Model Hub and stay warm briefly
+Whisper repo; weights come through Unsloth's Model Hub and stay warm briefly
between dictations. CUDA runs float16; MPS and CPU run float32.
Everything except the model itself stays here: device choice, the Hub cache,
@@ -307,7 +307,7 @@ def resolve_model_id(model: Optional[str]) -> str:
if _HF_REPO_ID.fullmatch(normalized):
return normalized
raise SttModelIdError(
- "STT model must be one of Studio's defaults or a Hugging Face "
+ "STT model must be one of Unsloth's defaults or a Hugging Face "
"repository in 'owner/model' form."
)
@@ -347,7 +347,7 @@ def _active_hf_hub_cache() -> Path:
from utils.hf_cache_settings import get_hf_cache_paths
paths = get_hf_cache_paths()
- # Studio's live cache setting takes precedence over environment defaults.
+ # Unsloth's live cache setting takes precedence over environment defaults.
if paths.source == "studio":
return Path(paths.hub_cache)
explicit = (os.environ.get("HF_HUB_CACHE") or "").strip()
diff --git a/studio/backend/core/inference/studio_tool_loop.py b/studio/backend/core/inference/studio_tool_loop.py
index 549d98419b1..41b7759f742 100644
--- a/studio/backend/core/inference/studio_tool_loop.py
+++ b/studio/backend/core/inference/studio_tool_loop.py
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-"""Studio-owned tool execution loop, shared by every external provider transport.
+"""Unsloth-owned tool execution loop, shared by every external provider transport.
The loop owns the parts that do not depend on how bytes reach the provider:
turn cycling, the tool budget, the approval handshake, local execution through
@@ -88,19 +88,19 @@ from state.tool_approvals import (
_TOOL_BUDGET_EXHAUSTED = (
- "Studio did not execute this tool call because the per-message tool-call limit was reached. "
+ "Unsloth did not execute this tool call because the per-message tool-call limit was reached. "
"Continue with the available results and answer without calling another tool."
)
-_TOOL_DISABLED = "Studio did not execute this tool call because the tool is disabled."
+_TOOL_DISABLED = "Unsloth did not execute this tool call because the tool is disabled."
_TOOL_CANCELLED = (
- "Studio stopped this tool call before it returned, so there is no result. "
+ "Unsloth stopped this tool call before it returned, so there is no result. "
"The tool may have already done part of its work."
)
_TOOL_TRUNCATED = (
- "Studio did not execute this tool call because the provider stopped mid-call at its "
+ "Unsloth did not execute this tool call because the provider stopped mid-call at its "
"output limit."
)
@@ -108,9 +108,9 @@ _TOOL_TRUNCATED = (
# from the provider's own tool_calls delta, so it needs a short result; the long
# model-facing nudge stays in the conversation.
_TOOL_SKIPPED = {
- "duplicate": "Studio did not run this call because an identical one had already completed.",
+ "duplicate": "Unsloth did not run this call because an identical one had already completed.",
"disabled": _TOOL_DISABLED,
- "render_html_repeat": "Studio did not run this call because render_html already ran.",
+ "render_html_repeat": "Unsloth did not run this call because render_html already ran.",
}
# Verbatim from the local loops: the last pass answers instead of asking for more.
@@ -232,7 +232,7 @@ def _normalized_call(call: dict[str, Any], fallback_id: str = "") -> dict[str, A
if not isinstance(function, dict):
return None
if not isinstance(call_id, str) or not call_id:
- # The id is Studio's correlation key, not the model's contract. Several
+ # The id is Unsloth's correlation key, not the model's contract. Several
# OpenAI-compatible servers omit it; dropping the call lost a real
# request with no error, so mint one instead.
call_id = fallback_id
@@ -307,7 +307,7 @@ class ToolLoopTransport(Protocol):
# structured delta.tool_calls. Codex never does; a self-hosted GGUF often does.
heals_text_tool_calls: bool
- # Whether the transport already stripped Studio's control vocabulary from
+ # Whether the transport already stripped Unsloth's control vocabulary from
# every raw upstream line. A transport that has not is sanitized here; one
# that has must not be sanitized twice, because by this point its own
# synthesized frames (a provider-hosted image result, say) are indis-
@@ -375,7 +375,7 @@ class _Turn:
These reach the client as their own frames but are not part of the
assistant message this loop replays, so the follow-up request would lose
- whatever the provider just produced. Studio's own events carry a
+ whatever the provider just produced. Unsloth's own events carry a
top-level ``type``, so ``_toolEvent`` is unambiguously the provider's.
Both halves matter: ``tool_end`` generally omits ``tool_name``, and for
@@ -760,7 +760,7 @@ async def stream_with_studio_tools(
policy: ToolLoopPolicy,
cancel_event: threading.Event,
) -> AsyncIterator[str]:
- """Stream a provider, execute requested Studio tools, continue to a final answer."""
+ """Stream a provider, execute requested Unsloth tools, continue to a final answer."""
conversation = [dict(message) for message in run.messages]
# Kept before the loop appends anything: this is the branch the request is on.
request_branch = list(run.messages)
@@ -1145,7 +1145,7 @@ async def stream_with_studio_tools(
# a repeated call is exactly the one this loop renames above.
#
# Only for a tool the user DID enable. A call for something
- # outside the catalog is not a tool of Studio's that declined to
+ # outside the catalog is not a tool of Unsloth's that declined to
# run, it is a name this install never offered, and giving it a
# card would advertise a tool the user switched off. That one is
# answered in the conversation only.
@@ -1155,7 +1155,7 @@ async def stream_with_studio_tools(
tool_name = decision.tool_name,
tool_call_id = call.get("stream_id") or decision.tool_call_id,
arguments = decision.arguments,
- result = _TOOL_SKIPPED.get(decision.action, "Studio did not run this call."),
+ result = _TOOL_SKIPPED.get(decision.action, "Unsloth did not run this call."),
provenance = decision.provenance,
):
yield card_line
@@ -1262,7 +1262,7 @@ async def stream_with_studio_tools(
# leaves the replaced response in them.
if accepts_kwarg(execute_tool, "conversation_branch"):
kwargs["conversation_branch"] = request_branch
- # And a budget, so the tool's clamp is not skipped. Studio cannot measure
+ # And a budget, so the tool's clamp is not skipped. Unsloth cannot measure
# an external model's window, and a custom OpenAI-compatible endpoint can
# be a small local server, so a model-chosen 8 chunks is roughly 4K tokens
# replayed on every later call. Unmeasurable means one recall's worth.
diff --git a/studio/backend/core/inference/tools.py b/studio/backend/core/inference/tools.py
index dc2774204c1..e095a2e9761 100644
--- a/studio/backend/core/inference/tools.py
+++ b/studio/backend/core/inference/tools.py
@@ -40,7 +40,7 @@ from .context_window import _RESULT_NOTICE_RESERVE
# The window of the model THIS request is served by, set by execute_tool for the call's
# duration. Left unset, the budget falls back to the process-global probe, which is right
# for the local loops and wrong for anything else: an external-provider request runs
-# Studio's tool loop without touching a resident GGUF, so inheriting that GGUF's window
+# Unsloth's tool loop without touching a resident GGUF, so inheriting that GGUF's window
# let a small resident model truncate pages for a large cloud model, and a large resident
# model hand the full 16,000 characters to a small OpenAI-compatible endpoint.
_UNSET_CONTEXT_TOKENS = object()
@@ -6826,7 +6826,7 @@ def _build_safe_env(workdir: str) -> dict[str, str]:
operator's cached creds, and the temp vars at _sandbox_temp_dir just inside
it. PYTHONPATH carries only the sandbox sitecustomize shim directory.
- PATH starts with the Studio interpreter / venv and OS system dirs so
+ PATH starts with the Unsloth interpreter / venv and OS system dirs so
``python``/``pip`` stay pinned. On Windows only, Git-for-Windows install
dirs from the host PATH are appended so bare ``git`` resolves (#7317).
User-writable host PATH entries (venv, ``node_modules/.bin``, etc.) are
@@ -8871,7 +8871,7 @@ def _holds_no_user_files(target: str, owner: "str | None" = None) -> bool:
marker = _marker_owner(target)
if marker is not None and owner in (None, marker):
continue
- # Studio's own, like the marker above: a spill is truncated tool output this
+ # Unsloth's own, like the marker above: a spill is truncated tool output this
# process wrote and deliberately kept off the file cards, so counting one as
# the user's content leaves an unreachable sandbox behind, reported as holding
# files the user never created. Only the artifacts themselves, by the name
@@ -9579,10 +9579,10 @@ _FULL_ACCESS_SUBSTITUTIONS = (
# so there is nothing false to remove; state the capability instead. "the
# user's own machine" is narrowed at the same time: --secure and -H 0.0.0.0
# are documented remote modes (README), and the tools run on the host serving
- # Studio, which is then not the device the user is looking at.
+ # Unsloth, which is then not the device the user is looking at.
# _TERMINAL_SHELL_NOTE is carried through unchanged except here: its Git Bash
# branch promises a detached program's window appears on the user's desktop,
- # which only holds while Studio is local.
+ # which only holds while Unsloth is local.
(
"opens a window on the user's desktop.",
"opens a window on that machine's desktop, which the user sees only if "
@@ -12009,7 +12009,7 @@ _MAX_PROBE_CHARS_PER_TOKEN = 256
#
# Keyed on the resident llama-server process, because the count depends on the EFFECTIVE
# chat template and the managed fields cannot reconstruct it: user pass-through args are
-# appended verbatim after Studio's own flags (`llama_cpp.py`, "User pass-through args go
+# appended verbatim after Unsloth's own flags (`llama_cpp.py`, "User pass-through args go
# last") and llama.cpp is last-wins, so `--chat-template` in extra args renders through a
# template `_chat_template_override` never sees. Reload the same GGUF into the same window
# with only those args changed and every managed field matches while the rendering does
@@ -14158,7 +14158,7 @@ def _killpg_captured(pgid) -> None:
_tag, pid, identity = pgid
# Fail closed: this runs long after the capture, so without a verified
# identity the pid may be someone else's now. The job object still takes
- # the whole tree when Studio exits, which is the safe half to keep.
+ # the whole tree when Unsloth exits, which is the safe half to keep.
if identity is not None:
_windows_taskkill_tree(pid, identity)
return
@@ -14463,7 +14463,7 @@ _SPILL_MAX_TOTAL_BYTES = 64 * 1024 * 1024
# Exactly the names `_spill_full_output` generates: twelve hex characters of a content
# digest. The prune below deletes what it matches, and the sandbox is the user's own
# directory -- a session may open on one that already holds a folder of this name, and
-# anything in it that Studio did not write is not Studio's to remove.
+# anything in it that Unsloth did not write is not Unsloth's to remove.
_SPILL_NAME_RE = re.compile(r"[0-9a-f]{12}\.txt")
# Written once, when this process creates the spill directory. Ownership is RECORDED
# rather than inferred from the names inside: a sandbox can be a project the user opened,
@@ -14473,7 +14473,7 @@ _SPILL_RECORD_HEADER = "unsloth-studio tool output "
# One lock per spill root. Appending a spill and rewriting the manifest after a prune are
# a read-modify-write over one shared file, and a project's chats share a sandbox: two
# calls spilling at once could otherwise have the pruner drop the entry the other just
-# appended, leaving a file nothing counts, prunes, or recognises as Studio's.
+# appended, leaving a file nothing counts, prunes, or recognises as Unsloth's.
_SPILL_LOCKS: "dict[str, threading.Lock]" = {}
_SPILL_LOCKS_GUARD = threading.Lock()
@@ -14485,12 +14485,12 @@ def _spill_lock(root: str) -> "threading.Lock":
def _spill_records_dir() -> str:
- """Where the spill manifests live: Studio's own storage, NOT the sandbox.
+ """Where the spill manifests live: Unsloth's own storage, NOT the sandbox.
The sandbox is a directory tool code writes to, so nothing kept inside it can be
evidence about the sandbox. A marker file there was replaceable by a link, and once it
is a plain file the model can rewrite its contents and name the user's own files as
- Studio's, which turns the cleanup into a delete and the prune into an unlink. Held
+ Unsloth's, which turns the cleanup into a delete and the prune into an unlink. Held
beside the other records this file already keeps outside the sandboxes.
"""
try:
@@ -14594,7 +14594,7 @@ def _write_spill_file(target_dir: str, name: str, body: str) -> "str | None":
Returns the stamp of what was installed, or None if nothing was. The stamp is taken
here rather than re-read from the path afterwards, because by then another call can
- have replaced the file and the record would name its content as Studio's.
+ have replaced the file and the record would name its content as Unsloth's.
"""
flags = os.O_WRONLY | os.O_CREAT | os.O_EXCL
if not _DIR_FD_WRITES:
@@ -14802,7 +14802,7 @@ def _record_spill(root: str, relative: str, stamp: str, digest: str) -> None:
Not re-read from the path: between the install and this, another call sharing the
sandbox can replace the file, and stating the path then records that call's content as
- Studio's, which a later prune or cleanup would delete. The writer knows what it put
+ Unsloth's, which a later prune or cleanup would delete. The writer knows what it put
there, so it says so.
"""
try:
@@ -14975,7 +14975,7 @@ def _unlink_verified_spill(root: str, path: str, owned: "dict[str, tuple[str, st
Moved to a private name first. A rename is atomic, so from that point the inode this
verifies is the inode this deletes: a sandbox writer that replaces the original name
afterwards replaces nothing that is on its way out. Verifying and then unlinking by
- name cannot promise that, because the manifest lock orders Studio's own threads and
+ name cannot promise that, because the manifest lock orders Unsloth's own threads and
the thing racing here is the sandbox.
Checked again under the private name, and put back if it no longer matches, since at
@@ -15336,7 +15336,7 @@ _MAX_SNAPSHOT_DIRS = 2000 # nor a directory-writing one stall the next call
def _user_path_parts(parts: "list[str]", root: "str | None" = None) -> "list[str]":
"""The segments _MAX_SANDBOX_PATH_SEGMENTS applies to.
- The scratch container is Studio's, not a name the model chose, and on
+ The scratch container is Unsloth's, not a name the model chose, and on
Windows it is what /tmp resolves to, so charging it a segment would drop one
level of the /tmp artifacts served before the workdir stopped being %TEMP%.
@@ -15367,7 +15367,7 @@ def _servable_segment(name: str) -> bool:
return not any("\ud800" <= ch <= "\udfff" for ch in name)
-# Studio's own bookkeeping, written by the sandbox sitecustomize. One exact
+# Unsloth's own bookkeeping, written by the sandbox sitecustomize. One exact
# name we write ourselves, not a pattern reserved over names a tool may pick.
_INTERNAL_SANDBOX_FILES = frozenset({".unsloth_sandbox_remap.json", _SANDBOX_MARKER})
diff --git a/studio/backend/core/inference/video.py b/studio/backend/core/inference/video.py
index b40563e6c91..a4ae2dc0e0a 100644
--- a/studio/backend/core/inference/video.py
+++ b/studio/backend/core/inference/video.py
@@ -309,7 +309,7 @@ def _assert_video_precision_for_target(
# rejected loads the runtime would run and report as fell_back -- Windows ROCm,
# where the torchao stub kills int8 while fp8 still works.
# A family with a HOSTED quantized conditioner never touches the generic path this gate
- # reasons about. Studio loads that artifact itself: INT8 storage, a Hadamard rotation and an
+ # reasons about. Unsloth loads that artifact itself: INT8 storage, a Hadamard rotation and an
# ordinary F.linear, no torchao and no fp8 tensor cores. Left to the code below, the request is
# first rewritten int8 -> fp8 by effective_te_quant (H3 has no keep-bf16 schedule) and then
# refused for want of hardware neither the rewrite nor the real loader needs, so a supported
@@ -1209,8 +1209,8 @@ class VideoBackend:
import diffusers
if not hasattr(diffusers, fam.transformer_class):
raise ValueError(
- "MiniMax-H3 needs the Diffusers revision bundled with this Studio "
- "version. Reinstall Studio dependencies and retry."
+ "MiniMax-H3 needs the Diffusers revision bundled with this Unsloth "
+ "version. Reinstall Unsloth dependencies and retry."
)
if kind != "gguf" and not _is_trusted_video_repo(repo_id):
raise ValueError(
@@ -4370,7 +4370,7 @@ class VideoBackend:
local_files_only = local_files_only,
# Pin the live cache root, as every other loader call does: unset, the fetch
# lands under huggingface_hub's import-time constant and a later cache change
- # re-downloads multiple GB into a root Studio no longer reads.
+ # re-downloads multiple GB into a root Unsloth no longer reads.
cache_dir = hub_cache_dir(),
# The hosted H3 denoisers carry the PRUNED (curve-form) adaLN: the modulation is
# a rank-8 factorization of the time-embedding curve plus a shared table, which
@@ -4578,7 +4578,7 @@ class VideoBackend:
)
# cache_dir for the same reason as the token: load_components forwards extra kwargs through
# ComponentSpec.load into each from_pretrained, and without it those ~145 GB of Hub-pinned
- # components resolve against the import-time HF_HUB_CACHE snapshot rather than Studio's
+ # components resolve against the import-time HF_HUB_CACHE snapshot rather than Unsloth's
# live cache folder, which the user can move.
pipe.load_components(
workflow = workflow,
@@ -4981,7 +4981,7 @@ class VideoBackend:
"""Validate cheaply, then run generate + gallery persist on a daemon thread.
Returns at once, mirroring begin_load: a clip takes minutes to denoise, and
- a proxy in front of Studio (secure mode's Cloudflare tunnel) caps the origin
+ a proxy in front of Unsloth (secure mode's Cloudflare tunnel) caps the origin
response window near 100 seconds, so the HTTP call must not span the
generation. The terminal outcome (phase "completed" with the saved gallery
record, or "failed" with a client-safe error) is reported by
diff --git a/studio/backend/core/inference/video_families.py b/studio/backend/core/inference/video_families.py
index 121d3a87e3b..8ac81af880a 100644
--- a/studio/backend/core/inference/video_families.py
+++ b/studio/backend/core/inference/video_families.py
@@ -102,7 +102,7 @@ class VideoFamily:
# ``<Model>-<SCHEME>.pt`` name ``prequant_repo_filename`` derives. The derived name stays on as
# the fallback, so a repo hosting BOTH an old and a new artifact serves the new one to a build
# that asks for it by name and the old one to every build that does not. That is what lets a
- # rotated (v2) checkpoint ship without regressing an already-installed Studio, which would
+ # rotated (v2) checkpoint ship without regressing an already-installed Unsloth, which would
# otherwise refuse the v2 tag and fall all the way back to the dense download.
# A row may also be (scheme, task, filename), naming the artifact for ONE task; it beats the
# task-agnostic row and, unlike it, gets no filename fallback (see resolve_prequant_source).
@@ -182,7 +182,7 @@ _FAMILIES: tuple[VideoFamily, ...] = (
prequant_repos = (("int8", "unsloth/MiniMax-H3-FP8"), ("fp8", "unsloth/MiniMax-H3-FP8")),
# The INT8 denoiser is ConvRot-rotated (see diffusion_convrot): its weights live in a
# Hadamard-rotated basis and are wrong unless the loader rotates the activations to match,
- # so it carries the v2 format tag a Studio predating that code refuses. Shipping it under
+ # so it carries the v2 format tag an Unsloth predating that code refuses. Shipping it under
# its own name rather than over MiniMax-H3-INT8.pt keeps both true at once: this build
# gets the rotated artifact, and an older install still resolves the plain one instead of
# refusing the v2 tag and falling back to the 66.3 GB dense download.
diff --git a/studio/backend/core/inference/video_gallery.py b/studio/backend/core/inference/video_gallery.py
index 1bbf1b79e2d..742f7f8af46 100644
--- a/studio/backend/core/inference/video_gallery.py
+++ b/studio/backend/core/inference/video_gallery.py
@@ -95,7 +95,7 @@ def transcode_to_file(video_id: str, fmt: str) -> Optional[Path]:
export of a clip that size runs to hundreds of MB, and holding it as one ``bytes`` (then again
in the response) let a couple of concurrent export clicks exhaust the process. The MP4 route
already streams from disk; this makes the transcodes behave the same way."""
- # Ownership-gate like /file: only transcode a Studio-owned clip (readable sidecar), so a guessed stem for a foreign MP4 cannot be re-encoded out either.
+ # Ownership-gate like /file: only transcode an Unsloth-owned clip (readable sidecar), so a guessed stem for a foreign MP4 cannot be re-encoded out either.
path = owned_video_path(video_id)
if path is None:
return None
@@ -268,7 +268,7 @@ def _sidecar_path(video_id: str) -> Path:
return gallery_dir() / f"{video_id}.json"
-# Sidecar keys every genuine Studio record carries. delete()/clear() own a pair only when its sidecar has all of these, so a
+# Sidecar keys every genuine Unsloth record carries. delete()/clear() own a pair only when its sidecar has all of these, so a
# hand-dropped MP4 with a partial sidecar is neither counted as ours nor destroyed. Key-presence only.
_REQUIRED_META = (
"prompt",
@@ -301,7 +301,7 @@ def _read_meta(sidecar: Path) -> Optional[dict[str, Any]]:
def owned_video_path(video_id: str) -> Optional[Path]:
- """Resolve an id to its MP4 only when it is a Studio-owned clip (a readable sidecar), else
+ """Resolve an id to its MP4 only when it is an Unsloth-owned clip (a readable sidecar), else
None. The serve and export routes use this instead of video_path() so a guessed stem for a
hand-dropped/orphan MP4 -- which list_videos/delete/clear already treat as not ours -- can't
be streamed or transcoded out. Mirrors the delete/clear ownership guard."""
@@ -370,7 +370,7 @@ def set_flags(
archived: Optional[bool] = None,
) -> Optional[dict[str, Any]]:
"""Patch one clip's pin/archive flags and return its updated record, or None when the id is
- not a Studio-owned clip. Ownership-gated like delete: a guessed stem for a hand-dropped or
+ not an Unsloth-owned clip. Ownership-gated like delete: a guessed stem for a hand-dropped or
orphan MP4 must not become flaggable."""
# Ownership check and write under one lock, so a concurrent clear cannot delete the pair
# between them and leave this reporting success for a clip that is already gone.
@@ -410,7 +410,7 @@ def delete(video_id: str) -> bool:
def clear(include_archived: bool = False) -> int:
- """Delete Studio-owned gallery pairs (readable sidecar); return how many were removed.
+ """Delete Unsloth-owned gallery pairs (readable sidecar); return how many were removed.
Archived clips are SPARED by default: archiving is how a user sets something aside, so a
"clear the gallery" action that destroyed the archive would defeat it. Pass
diff --git a/studio/backend/core/inference/video_ltx2.py b/studio/backend/core/inference/video_ltx2.py
index b67d782e5fe..01af8a9d720 100644
--- a/studio/backend/core/inference/video_ltx2.py
+++ b/studio/backend/core/inference/video_ltx2.py
@@ -35,7 +35,7 @@ LTX23_EXTRAS_REPO = "unsloth/LTX-2.3-GGUF"
def _live_cache_dir() -> str:
- """Studio's LIVE hub cache root. Read from utils rather than ``diffusion.hub_cache_dir`` to
+ """Unsloth's LIVE hub cache root. Read from utils rather than ``diffusion.hub_cache_dir`` to
avoid a circular import, the same way diffusion_auto_policy does."""
from utils.hf_cache_settings import active_hf_hub_cache
return active_hf_hub_cache()
@@ -657,7 +657,7 @@ def load_ltx23_pipeline(
)
# Shared 2.0/2.3 components from the base repo via model_index, so upstream class renames break loudly here rather than drift.
- # Pinned to the LIVE hub root, not huggingface_hub's import-time constant: Studio's cache
+ # Pinned to the LIVE hub root, not huggingface_hub's import-time constant: Unsloth's cache
# folder is a setting, and the locality gate that cleared this switch reads the live root. An
# unpinned lookup after a mid-session change searches the OTHER root, so under
# local_files_only it raises for a base that is fully downloaded, after eviction.
diff --git a/studio/backend/core/inference/video_minimax_h3.py b/studio/backend/core/inference/video_minimax_h3.py
index f6ae7dc7ba8..38200fe38a4 100644
--- a/studio/backend/core/inference/video_minimax_h3.py
+++ b/studio/backend/core/inference/video_minimax_h3.py
@@ -313,7 +313,7 @@ H3_REF_VIDEO_MIN_SECONDS = 2.0
H3_REF_VIDEO_MAX_SECONDS = 15.0
# How far a trim may reach past the video track before it is refused. A container reports its
# longest track, so a file whose audio outruns its video reads as longer than it can show, and
-# a client picking an interval from that duration (HTMLMediaElement.duration, in Studio's case)
+# a client picking an interval from that duration (HTMLMediaElement.duration, in Unsloth's case)
# asks for slightly more video than exists. Within this margin the last frame is held instead.
H3_REF_TRIM_COVERAGE_SLACK_SECONDS = 0.5
H3_FPS = 24
@@ -1086,7 +1086,7 @@ class MiniMaxH3NativeRuntime:
def transcode_video_to_mp4(source: Path, *, fps: int) -> bytes:
"""Convert an sd.cpp WebM into a gallery-compatible H.264/AAC MP4.
- The native backend is available in Studio's no-torch runtime, so keep this
+ The native backend is available in Unsloth's no-torch runtime, so keep this
export entirely in PyAV rather than routing decoded frames through Diffusers.
"""
import av
diff --git a/studio/backend/core/inference/video_minimax_h3_te.py b/studio/backend/core/inference/video_minimax_h3_te.py
index 6297f70e1ae..d1818978b31 100644
--- a/studio/backend/core/inference/video_minimax_h3_te.py
+++ b/studio/backend/core/inference/video_minimax_h3_te.py
@@ -147,7 +147,7 @@ def h3_te_resident_gb(scheme: Optional[str], *, bf16_gb: float) -> float:
# rotation, 137% without).
#
# This mirrors comfy-kitchen's ``_build_hadamard`` / ``_rotate_activation`` / ``_rotate_weight``
-# exactly, in a few lines of torch, rather than taking a dependency on a wheel Studio does not ship.
+# exactly, in a few lines of torch, rather than taking a dependency on a wheel Unsloth does not ship.
#
# ``build_convrot_hadamard`` and ``rotate_convrot_activation`` are imported at the top of this
# module from ``diffusion_convrot``, where they now live. The DENOISER runs the same ConvRot on its
@@ -306,7 +306,7 @@ def load_h3_quantized_text_encoder(
``cache_dir`` pins the config resolution to the live cache root for the hub-id case, exactly as
the artifact download above and every other loader call in this backend do -- unset, it
resolves through huggingface_hub's import-time constant instead and can re-download into a root
- Studio no longer reads (or fail outright on an offline host that has already staged it).
+ Unsloth no longer reads (or fail outright on an offline host that has already staged it).
``local_files_only`` is a load nobody asked for, which may not fetch anything. The artifact is
~27 GB, and the caller's staging phase (``_fetch_h3_te_quant``) has already accepted it -- so
diff --git a/studio/backend/core/rag/conversation_archive.py b/studio/backend/core/rag/conversation_archive.py
index 7b9204399f0..7099d410cc5 100644
--- a/studio/backend/core/rag/conversation_archive.py
+++ b/studio/backend/core/rag/conversation_archive.py
@@ -710,7 +710,7 @@ def _branch_seed(messages: list[dict], by_id: dict, parent_of: dict, branch) ->
# A LIST, in order, not a set: sets lose repetition and ordering, so an abandoned
# sibling with the same distinct texts tied with the request's own branch and, being
# newer, won. A multiset fixes the repeat case but not the reordered one, so this
- # scores an in-order run. System and developer messages are excluded: Studio's
+ # scores an in-order run. System and developer messages are excluded: Unsloth's
# prepended chat and project instructions are not part of the stored chain.
wanted = [
text
diff --git a/studio/backend/core/rag/web_rank.py b/studio/backend/core/rag/web_rank.py
index 3fd1bf97e99..94a2161f481 100644
--- a/studio/backend/core/rag/web_rank.py
+++ b/studio/backend/core/rag/web_rank.py
@@ -9,7 +9,7 @@ go through the *same* retrieval pipeline the knowledge base uses and only the mo
passages are folded into the evidence.
Nothing here re-implements chunking, embedding, retrieval, ranking, or rendering; it wires
-Studio's existing KB components to the live scrape. The only difference from a persisted KB is
+Unsloth's existing KB components to the live scrape. The only difference from a persisted KB is
the corpus: pages are ingested under a unique throwaway scope deleted in a ``finally`` block, so
an auto-read never pollutes a user's knowledge base, like the per-thread attachment RAG already
does on the same store.
@@ -59,7 +59,7 @@ def retrieve_web_chunks(
model_name: str | None = None,
) -> tuple[str, list[dict]]:
"""Ingest scraped pages into an ephemeral RAG scope, hybrid-retrieve the passages most
- relevant to ``query``, and return ``(rendered_chunks, sources)`` using Studio's KB
+ relevant to ``query``, and return ``(rendered_chunks, sources)`` using Unsloth's KB
formatter.
``pages`` is a list of dicts with ``text`` (required) and optional ``title`` / ``url``
diff --git a/studio/backend/core/research/citations.py b/studio/backend/core/research/citations.py
index 6ea4ff2a500..517afa97eb3 100644
--- a/studio/backend/core/research/citations.py
+++ b/studio/backend/core/research/citations.py
@@ -17,7 +17,7 @@ from core.research.redaction import _escape_link_destination
# Unrolled rather than the equivalent (?:[^\[\]]+|\[[^\[\]]*\])* : that alternation backtracks
# catastrophically on an unterminated "[Document:" (ordinary malformed model output), and this
-# runs on the event loop, so one bad report would stall all of Studio.
+# runs on the event loop, so one bad report would stall all of Unsloth.
_DOCUMENT_CITATION = re.compile(r"\[Document:[^\[\]]*(?:\[[^\[\]]*\][^\[\]]*)*\]")
_MARKDOWN_LINK_START = re.compile(r"\[([^\]\n]+)\]\((https?://)")
_SOURCES_HEADING = re.compile(
diff --git a/studio/backend/core/research_runs.py b/studio/backend/core/research_runs.py
index 1952ecc7202..8242cd8976b 100644
--- a/studio/backend/core/research_runs.py
+++ b/studio/backend/core/research_runs.py
@@ -926,7 +926,7 @@ class ResearchSupervisor:
)
if not pages:
return "", []
- # Reuse Studio's knowledge-base RAG pipeline (ingest -> hybrid retrieve -> <chunk>
+ # Reuse Unsloth's knowledge-base RAG pipeline (ingest -> hybrid retrieve -> <chunk>
# render) over an ephemeral scope; runs off the event loop since embedding and the
# sqlite/vec index work are CPU/GPU bound.
from core.rag import web_rank
@@ -1014,7 +1014,7 @@ class ResearchSupervisor:
def _endpoint(self) -> str:
port = self._server_port()
if port is None:
- raise RuntimeError("Research is waiting for the Studio server port")
+ raise RuntimeError("Research is waiting for the Unsloth server port")
return f"http://127.0.0.1:{port}/v1/chat/completions"
async def _wait_for_local_model(
@@ -1024,7 +1024,7 @@ class ResearchSupervisor:
) -> bool:
"""Wait, up to the run's model timeout, for a model to be loaded again; True if one was.
- A durable run resumes after a Studio restart and is approved long after it was created,
+ A durable run resumes after an Unsloth restart and is approved long after it was created,
so the model it was started with can be gone. Waiting keeps the run alive instead of
ending it on a non-retryable 400 that discards every step and source it gathered.
diff --git a/studio/backend/core/training/dataset_bounds.py b/studio/backend/core/training/dataset_bounds.py
index 649a43b89e4..1a231893741 100644
--- a/studio/backend/core/training/dataset_bounds.py
+++ b/studio/backend/core/training/dataset_bounds.py
@@ -96,7 +96,7 @@ def world_size_from_rank_files(environ: Any = None) -> int:
Only a list of ranks counts, and its length is the count. Anything else -- no such
file, a truncated or malformed payload, some other object, an empty ring hostfile
(which is what mlx.launch writes for a single host) -- reads as 1, the count of
- Studio's own launch. Never raises: a row bound must not be what fails a run.
+ Unsloth's own launch. Never raises: a row bound must not be what fails a run.
A path must name a regular file. mlx.launch writes a temp file, and opening
whatever else a variable happens to name could block a run forever on a fifo.
@@ -134,7 +134,7 @@ def world_size_from_env(environ: Any = None) -> int:
The largest wins: a torchrun launch sets WORLD_SIZE and LOCAL_WORLD_SIZE, and on
one node they agree, while a multi-node one must be sized by the global count.
Anything unusable (unset, empty, a stray "auto", 0, negative) reads as 1, which
- is the count Studio's own single-process launch has.
+ is the count Unsloth's own single-process launch has.
Some launchers advertise the count as a file rather than a number; see
WORLD_SIZE_ENV_FILES.
@@ -183,7 +183,7 @@ def max_steps_dataset_rows(
world_size is what the caller established (the CUDA worker also counts visible
CUDA devices, which env cannot report); anything unusable falls back to the
- launcher env, and that falls back to 1, which is Studio's own launch.
+ launcher env, and that falls back to 1, which is Unsloth's own launch.
"""
steps = _positive_int(max_steps, 0)
if steps <= 0:
diff --git a/studio/backend/core/training/diffusion_checkpoint.py b/studio/backend/core/training/diffusion_checkpoint.py
index cf2bfaffa5e..2e540aec8c6 100644
--- a/studio/backend/core/training/diffusion_checkpoint.py
+++ b/studio/backend/core/training/diffusion_checkpoint.py
@@ -755,7 +755,7 @@ def restore_rng_state(
# B200 SDXL run, 192/192 LoRA tensors differed from the uninterrupted control
# and the first step after the resume was off by 0.024. The exposure is
# ordinary -- the trainer is a spawned child inheriting CUDA_VISIBLE_DEVICES,
- # which Studio masks elsewhere, so a mask change between the run and the Resume
+ # which Unsloth masks elsewhere, so a mask change between the run and the Resume
# click was enough. Restoring device by device covers whatever the bundle
# holds and leaves the rest alone, and is identical to the old behaviour when
# the counts match (verified bit-exact against the same control).
@@ -1826,7 +1826,7 @@ def describe_resume_state(
# ── resume preflight ──────────────────────────────────────────────────────────
def resolve_resume_dir(path_value: str) -> Path:
- """Contain a client-supplied resume path under the Studio outputs root.
+ """Contain a client-supplied resume path under the Unsloth outputs root.
Accepts either the run's ``output_dir`` (what the UI replays, matching the LLM resume
flow) or an explicit ``checkpoint-<N>`` directory. Raises ResumeError with a
@@ -1927,7 +1927,7 @@ def _assert_optimizer_buildable(path: Path, manifest: dict[str, Any]) -> None:
guaranteed to terminate without training.
Deliberately one-directional, and deliberately import-free. ``find_spec`` answers "is
- bitsandbytes installed" without creating a CUDA context in the Studio process, but it
+ bitsandbytes installed" without creating a CUDA context in the Unsloth process, but it
cannot tell an installed-and-broken wheel (which the trainer catches and falls back from)
from a working one. So only the case that cannot be wrong is refused here: 8-bit moments
with no bitsandbytes to load them, or with the fp32 override forcing torch AdamW. The
@@ -2171,7 +2171,7 @@ class LoadedCheckpoint:
def torch_state(self, role: str) -> Optional[Any]:
"""A ``torch.save``d state dict (``optimizer`` / ``scheduler`` / ``rng``), or None.
- Loaded with ``weights_only = True``: these files are written by Studio into its own
+ Loaded with ``weights_only = True``: these files are written by Unsloth into its own
outputs directory, but a resume path is client-supplied, so the loader must never be
able to execute pickled code. Verified to round-trip bitsandbytes AdamW8bit state,
whose quantized moments and maps are plain uint8/fp32 tensors."""
diff --git a/studio/backend/core/training/diffusion_clip_formats.py b/studio/backend/core/training/diffusion_clip_formats.py
index 695000c990e..f87c7d6a9ab 100644
--- a/studio/backend/core/training/diffusion_clip_formats.py
+++ b/studio/backend/core/training/diffusion_clip_formats.py
@@ -3,7 +3,7 @@
"""The one list of video container extensions a training dataset may hold.
-Studio's diffusion dataset layer grew up image-only, so the routes carry their own
+Unsloth's diffusion dataset layer grew up image-only, so the routes carry their own
``_DIFFUSION_DATASET_IMAGE_EXTS``. Clips need the same treatment, but a clip dataset is read
by the trainer and written by the upload endpoint, and those live on opposite sides of the
backend. Putting the set in either one makes the other import it across a layer it has no
diff --git a/studio/backend/core/training/diffusion_dit_trainer.py b/studio/backend/core/training/diffusion_dit_trainer.py
index 004a2ff1f91..9395dbca38e 100644
--- a/studio/backend/core/training/diffusion_dit_trainer.py
+++ b/studio/backend/core/training/diffusion_dit_trainer.py
@@ -1502,7 +1502,7 @@ def _assert_gated_access(base_model: str, hf_token: Optional[str]) -> None:
if name in _GATED_TRAIN_REPOS and not (hf_token and str(hf_token).strip()):
raise ValueError(
f"'{base_model}' is a gated Hugging Face repo. Accept its license on the Hub "
- f"and add your HF token in Studio settings before training from it."
+ f"and add your HF token in Unsloth settings before training from it."
)
diff --git a/studio/backend/core/training/diffusion_h3_clips.py b/studio/backend/core/training/diffusion_h3_clips.py
index d067a027dbb..7536d6d9ffd 100644
--- a/studio/backend/core/training/diffusion_h3_clips.py
+++ b/studio/backend/core/training/diffusion_h3_clips.py
@@ -3,7 +3,7 @@
"""The clip dataset layer for MiniMax-H3 LoRA training.
-MiniMax-H3 is the first family Studio trains from **clips with sound** rather than stills,
+MiniMax-H3 is the first family Unsloth trains from **clips with sound** rather than stills,
and it has no still-image shortcut: its video VAE encodes ``17 * n + 5`` pixel frames at a
time (a 1-frame clip is not a valid input, unlike LTX-2's), and every forward carries audio
rows in the same packed sequence as the video rows. So the dataset unit is a video file with
diff --git a/studio/backend/core/training/diffusion_lora_trainer.py b/studio/backend/core/training/diffusion_lora_trainer.py
index f837201c490..7be384426cb 100644
--- a/studio/backend/core/training/diffusion_lora_trainer.py
+++ b/studio/backend/core/training/diffusion_lora_trainer.py
@@ -4,7 +4,7 @@
"""Diffusion LoRA training for Unsloth Studio (text-to-image, SDXL).
Trains a LoRA adapter on the U-Net of an SDXL pipeline from an image + caption dataset
-and exports it as a diffusers-format ``.safetensors`` that the Studio diffusion backend
+and exports it as a diffusers-format ``.safetensors`` that the Unsloth diffusion backend
(and any diffusers pipeline via ``load_lora_weights``) can load.
Design:
@@ -648,7 +648,7 @@ def run_diffusion_lora_training(
step_loss += float(loss.detach()) / cfg.gradient_accumulation_steps
micro += 1
- # max_grad_norm at or below 0 disables clipping (Studio sends 0.0); passing 0.0 to clip_grad_norm_ would zero every gradient.
+ # max_grad_norm at or below 0 disables clipping (Unsloth sends 0.0); passing 0.0 to clip_grad_norm_ would zero every gradient.
grad_norm = None
if cfg.max_grad_norm and cfg.max_grad_norm > 0:
# Returned value is the total PRE-clip norm, reported to the UI chart.
@@ -666,7 +666,7 @@ def run_diffusion_lora_training(
# Step 1 pays the one-time costs (cudnn autotune, compile warmup), so the rate starts after it.
t_steady = now
if done % cfg.log_every == 0 or done == cfg.train_steps:
- # ``learning_rate`` (not ``lr``) is the field the Studio training pump reads.
+ # ``learning_rate`` (not ``lr``) is the field the Unsloth training pump reads.
if device == "cuda":
peak_gb = round(torch.cuda.max_memory_allocated() / 1e9, 2)
per_step = cfg.train_batch_size * cfg.gradient_accumulation_steps
diff --git a/studio/backend/core/training/diffusion_train_common.py b/studio/backend/core/training/diffusion_train_common.py
index b8a4b31bbaf..5705092965a 100644
--- a/studio/backend/core/training/diffusion_train_common.py
+++ b/studio/backend/core/training/diffusion_train_common.py
@@ -64,7 +64,7 @@ _FORCE_BF16_FAMILIES: frozenset[str] = frozenset(
{"qwen-image", "z-image", "krea-2", "flux.2-klein", "flux.2-dev", "ltx-2", "minimax-h3"}
)
-# VIDEO families (from the separate ``video_families`` registry) Studio can train a LoRA on.
+# VIDEO families (from the separate ``video_families`` registry) Unsloth can train a LoRA on.
# The video registry has no ``trainable`` flag of its own -- it exists for the inference
# picker -- so the trainable set lives here, next to the trainers, and every name in it MUST
# resolve through ``get_trainer``. Not necessarily to the DiT loop: LTX-2 is a
@@ -99,7 +99,7 @@ _CAPTION_EXTS = (".txt", ".caption")
# diffusers' canonical single-file LoRA name, so load_lora_weights(dir) finds it.
DEFAULT_LORA_FILENAME = "pytorch_lora_weights.safetensors"
-# Architectures Studio can neither train nor load: not in the family registry but recognisable by name, so rejecting them by name gives a clear error instead of a mid-run crash.
+# Architectures Unsloth can neither train nor load: not in the family registry but recognisable by name, so rejecting them by name gives a clear error instead of a mid-run crash.
_NON_TRAINABLE_RESIDUAL_TOKENS = frozenset({"sd3", "pixart", "sana", "lumina", "cogview"})
_NON_TRAINABLE_RESIDUAL_PHRASES = ("stable-diffusion-3", "hunyuan-dit")
@@ -134,7 +134,7 @@ def _trainable_family_spec(name: str) -> Any:
def _refuse_untrainable_video_family(name: str) -> None:
- """Raise for a video family Studio has no trainer for.
+ """Raise for a video family Unsloth has no trainer for.
Video bases are invisible to the image registry, so before this gate existed every video
checkpoint fell through ``resolve_trainable_family``'s unknown-name fallback and was
@@ -142,7 +142,7 @@ def _refuse_untrainable_video_family(name: str) -> None:
name instead, with the list of video families that do train."""
trainable = ", ".join(sorted(TRAINABLE_VIDEO_FAMILIES))
raise ValueError(
- f"'{name}' is a video model Studio can't train yet. Video LoRA training currently "
+ f"'{name}' is a video model Unsloth can't train yet. Video LoRA training currently "
f"supports: {trainable}. {_trainable_hint()}"
)
@@ -224,7 +224,7 @@ def _refuse_component_only_repo(base_model: str) -> None:
def _trainable_hint() -> str:
- """A user-facing hint listing the families Studio can train today. Always names SDXL
+ """A user-facing hint listing the families Unsloth can train today. Always names SDXL
explicitly so the message is actionable even as more families become trainable."""
names = ", ".join(_all_trainable_family_names()) or "sdxl"
return (
@@ -855,7 +855,7 @@ def family_train_infos() -> list[dict[str, Any]]:
# MiniMax-H3 has its own trainer but the same base_precision lever and the same bf16-on-
# CUDA requirement. Reading _DIT_TRAIN_FAMILIES here reported precision_modes = [] for it,
# which the Train panel reads as "this GPU cannot train this family" and disables Start
- # with "Not supported on this GPU" -- the trainer was unreachable from Studio on every
+ # with "Not supported on this GPU" -- the trainer was unreachable from Unsloth on every
# host. SDXL keeps its mixed_precision lever and is in neither set.
is_dit = name in _FLOW_TRAIN_FAMILIES
# On a non-bf16 CUDA GPU the start preflight rejects EVERY DiT family, so advertise no precision, else /info offers an
@@ -1014,7 +1014,7 @@ class DiffusionLoraConfig:
"""Return a copy with derived/validated fields filled in. Raises ValueError on a
request that cannot train (bad numbers, or an untrainable base model).
- Also coerces values that arrive as strings/blanks through the Studio config path
+ Also coerces values that arrive as strings/blanks through the Unsloth config path
(``learning_rate`` is preserved as a string there; ``hf_token`` defaults to "")."""
resolved_family = resolve_trainable_family(self.base_model, self.model_family)
if self.train_steps < 1:
@@ -1085,7 +1085,7 @@ class DiffusionLoraConfig:
raise ValueError("save_steps must be >= 0 (0 disables periodic checkpoints)")
if save_total_limit < 0:
raise ValueError("save_total_limit must be >= 0 (0 keeps every checkpoint)")
- # A blank resume path (the Studio default when the field is present but unset) means "fresh run", not the outputs root.
+ # A blank resume path (the Unsloth default when the field is present but unset) means "fresh run", not the outputs root.
resume_from_checkpoint = (
str(self.resume_from_checkpoint).strip()
if self.resume_from_checkpoint is not None
@@ -1115,7 +1115,7 @@ class DiffusionLoraConfig:
# decay = 1.0 would freeze the shadow at its init forever; the update is shadow * decay + param * (1 - decay), so valid decays live in [0, 1).
if not 0.0 <= ema_decay < 1.0:
raise ValueError("ema_decay must be in [0, 1); 0 disables the EMA adapter")
- # A blank cond_cache_dir (the Studio default when unset) means "off", not cwd.
+ # A blank cond_cache_dir (the Unsloth default when unset) means "off", not cwd.
cond_cache_dir = (
str(self.cond_cache_dir).strip() if self.cond_cache_dir is not None else ""
) or None
@@ -1193,7 +1193,7 @@ class DiffusionLoraConfig:
# A zero/negative gamma would zero out (or invert) the min-SNR weight and silently train on a degenerate loss; None is the documented disable.
if self.snr_gamma is not None and float(self.snr_gamma) <= 0:
raise ValueError("snr_gamma must be > 0, or null to disable min-SNR weighting")
- # learning_rate can arrive as a string ("1e-4") from the Studio config path, so coerce it before AdamW sees it.
+ # learning_rate can arrive as a string ("1e-4") from the Unsloth config path, so coerce it before AdamW sees it.
try:
learning_rate = float(self.learning_rate)
except (TypeError, ValueError) as exc:
@@ -1202,7 +1202,7 @@ class DiffusionLoraConfig:
raise ValueError("learning_rate must be > 0")
alpha = self.lora_alpha if self.lora_alpha is not None else self.lora_rank
targets = tuple(self.lora_target_modules) or DEFAULT_LORA_TARGETS
- # A blank Hub token (the Studio default when none is configured) must load anonymously, not as an explicit empty credential.
+ # A blank Hub token (the Unsloth default when none is configured) must load anonymously, not as an explicit empty credential.
token = self.hf_token.strip() if isinstance(self.hf_token, str) else self.hf_token
from core.inference.diffusion_families import (
_is_local_path,
@@ -2160,7 +2160,7 @@ def _publish_to_lora_catalog(
cfg: DiffusionLoraConfig,
steps: Optional[int] = None,
) -> Optional[str]:
- """Best-effort copy of the trained adapter into the Studio diffusion LoRA directory so
+ """Best-effort copy of the trained adapter into the Unsloth diffusion LoRA directory so
the Images LoRA picker (which scans only files directly under ``loras/diffusion``) finds
it without the user moving files. Also writes a ``<alias>.json`` metadata sidecar so the
picker can family-gate the adapter (family, base model, trigger prompt, ...). Returns the
@@ -2173,7 +2173,7 @@ def _publish_to_lora_catalog(
A VIDEO family publishes nothing. ``loras/diffusion`` is read by the Images LoRA picker
alone, and ``core/inference/video.py`` has no LoRA surface at all, so mirroring a video
adapter there would copy a large file into a catalog nothing can load and hand the UI a
- deployment path Studio cannot honour. The run still reports ``lora_path`` (and ``ema_path``),
+ deployment path Unsloth cannot honour. The run still reports ``lora_path`` (and ``ema_path``),
which is the adapter a caller loads directly. Giving video its own catalog and a load path
on the Video tab is a separate, larger piece of work."""
if detect_video_family("", override = cfg.resolved_family) is not None:
@@ -2233,7 +2233,7 @@ def _write_lora_sidecar(
sidecar_path.write_text(json.dumps(meta, indent = 2), encoding = "utf-8")
-# Aliases from the generic Studio training payload onto DiffusionLoraConfig fields, so the shared request shape can also drive this trainer.
+# Aliases from the generic Unsloth training payload onto DiffusionLoraConfig fields, so the shared request shape can also drive this trainer.
_CONFIG_ALIASES = {
"model_name": "base_model",
"max_steps": "train_steps",
@@ -2248,7 +2248,7 @@ _CONFIG_ALIASES = {
def _coerce_gradient_checkpointing(value: Any) -> bool:
- """Studio sends gradient_checkpointing as a string ("none" / "true" / "unsloth"); the
+ """Unsloth sends gradient_checkpointing as a string ("none" / "true" / "unsloth"); the
disable words are False, anything else truthy is True. A real bool passes through."""
if isinstance(value, str):
return value.strip().lower() not in ("", "none", "false", "0", "no", "off")
@@ -2256,7 +2256,7 @@ def _coerce_gradient_checkpointing(value: Any) -> bool:
def _coerce_bool(value: Any) -> bool:
- """Coerce a flag that may arrive as a string through the generic Studio config path
+ """Coerce a flag that may arrive as a string through the generic Unsloth config path
(e.g. "false" / "0" / "off"). A non-empty string like "false" is otherwise truthy, so
an opt-out would silently no-op. A real bool passes through."""
if isinstance(value, str):
@@ -2266,7 +2266,7 @@ def _coerce_bool(value: Any) -> bool:
def _config_from_dict(config: dict) -> DiffusionLoraConfig:
"""Build a DiffusionLoraConfig from a plain dict. Unknown keys are ignored so a richer
- request payload (UI form) does not break construction; a small set of generic Studio
+ request payload (UI form) does not break construction; a small set of generic Unsloth
training keys are aliased onto the diffusion field names, and string flags are coerced."""
valid = DiffusionLoraConfig.__dataclass_fields__.keys()
kwargs: dict[str, Any] = {}
diff --git a/studio/backend/core/training/diffusion_train_extras.py b/studio/backend/core/training/diffusion_train_extras.py
index 124ec45ef2e..be1ab7a24c8 100644
--- a/studio/backend/core/training/diffusion_train_extras.py
+++ b/studio/backend/core/training/diffusion_train_extras.py
@@ -227,12 +227,12 @@ def _sanitize(token: str) -> str:
def _hub_cache_roots() -> list[str]:
"""Hub cache roots to look a repo up in, ACTIVE one first.
- Studio can move its cache during a session (Settings), and loading follows the live setting,
+ Unsloth can move its cache during a session (Settings), and loading follows the live setting,
but ``huggingface_hub.constants.HF_HUB_CACHE`` is a snapshot of the environment at import
time. Reading only that constant left the revision "unresolved" (or pinned to a snapshot in
the previous root) once the cache moved, so pulling a new revision of the same checkpoint no
longer changed this key and a warm run silently reused the old embeddings and latents. The
- constant stays as a fallback, since the trainer subprocess may run without Studio's settings
+ constant stays as a fallback, since the trainer subprocess may run without Unsloth's settings
module importable."""
import os # noqa: PLC0415 — keep the module import list light for the subprocess
diff --git a/studio/backend/core/training/diffusion_training_service.py b/studio/backend/core/training/diffusion_training_service.py
index d734672a05f..2202a1d696a 100644
--- a/studio/backend/core/training/diffusion_training_service.py
+++ b/studio/backend/core/training/diffusion_training_service.py
@@ -265,7 +265,7 @@ def get_diffusion_run(job_id: str) -> Optional[dict]:
def _restate_live_job(rec: dict) -> dict:
"""Undo the interim record's pessimism for the job that is still running, in place.
- An interim record is written as interrupted because that is the outcome if Studio never
+ An interim record is written as interrupted because that is the outcome if Unsloth never
comes back. While the process IS still here and still on that job, the honest answer is
running -- and reporting it as errored would offer a Resume for a directory the live run is
writing into."""
@@ -785,7 +785,7 @@ class DiffusionTrainingService:
convenience, not part of the training contract.
``interim`` writes the same record for a run that is still going, which is what makes a
- checkpoint survive Studio itself dying: the bundle is on disk but only a terminal event
+ checkpoint survive Unsloth itself dying: the bundle is on disk but only a terminal event
used to write the JSON that Previous runs and its Resume action are built from. The
status recorded is the one that is true if nothing else ever happens -- the run was
interrupted -- and the terminal write replaces it in place."""
@@ -797,7 +797,7 @@ class DiffusionTrainingService:
return
if interim:
s["status"] = "error"
- s["message"] = "Studio exited while this run was training."
+ s["message"] = "Unsloth exited while this run was training."
elif s.get("status") not in ("completed", "stopped", "error"):
return
adapter = s.get("output_dir") or cfg.get("output_dir")
@@ -939,7 +939,7 @@ class DiffusionTrainingService:
if written and written not in self._own_checkpoints:
self._own_checkpoints.append(str(written))
# The bundle is on disk; the run JSON is not, and only a terminal event writes
- # one. Studio being killed or shut down after a periodic save therefore left a
+ # one. Unsloth being killed or shut down after a periodic save therefore left a
# resumable checkpoint that Previous runs -- which reads those JSONs and
# nothing else -- had no entry for, so the Resume action did not exist. Written
# as an interrupted run because that is what it IS until the run ends: the
@@ -950,7 +950,7 @@ class DiffusionTrainingService:
# Sticky: whatever older bundle is on disk predates the work this run did, so
# resuming from it would silently lose steps. Mirrors the MLX resume_blocked flag.
s["resume_blocked_reason"] = str(ev.get("message", "checkpoint write failed"))
- # Persisted for the same reason a successful write is. In memory only, a Studio
+ # Persisted for the same reason a successful write is. In memory only, an Unsloth
# exit after this left the last record advertising the OLDER checkpoint as
# resumable -- the one this service has just decided is stale -- and resuming it
# rolls the run back past everything after it. A later checkpoint_saved clears
diff --git a/studio/backend/core/training/fsdp2_design_notes.md b/studio/backend/core/training/fsdp2_design_notes.md
index b1803ec34a3..9a22f95a7ec 100644
--- a/studio/backend/core/training/fsdp2_design_notes.md
+++ b/studio/backend/core/training/fsdp2_design_notes.md
@@ -1,4 +1,4 @@
-# Multi-GPU (FSDP2) design for the Studio diffusion DiT trainer
+# Multi-GPU (FSDP2) design for the Unsloth diffusion DiT trainer
Status: design only. No implementation in this document's scope.
@@ -21,7 +21,7 @@ Out of scope, explicitly:
- nf4 (bitsandbytes): bnb 4-bit `Params4bit` are likewise incompatible with
`fully_shard`. Multi-GPU QLoRA would need per-rank replicated bases (DDP on
the LoRA params only), which is a separate, simpler design; noted below.
-- Pipeline/tensor/context parallelism. The Studio DiTs fit one node; FSDP2
+- Pipeline/tensor/context parallelism. The Unsloth DiTs fit one node; FSDP2
data parallelism is the whole design.
## Wrapping plan (vendored, not imported)
@@ -125,7 +125,7 @@ flash-varlen attention masks). Mapped onto our trainable families:
## Launch and process model
-The Studio trainer runs as a spawned subprocess today. Multi-GPU wraps that
+The Unsloth trainer runs as a spawned subprocess today. Multi-GPU wraps that
same entrypoint with `torchrun --nproc-per-node=N`; the event/stop protocol
stays rank-0-only (ranks != 0 swallow events, poll the same stop flag file).
Determinism: seed per rank as `cfg.seed + rank` for the noise/timestep draws
diff --git a/studio/backend/core/training/trainer.py b/studio/backend/core/training/trainer.py
index 00ba6dc5911..0fbd635c64e 100644
--- a/studio/backend/core/training/trainer.py
+++ b/studio/backend/core/training/trainer.py
@@ -158,7 +158,7 @@ def _drop_hf_stdout_callbacks(trainer) -> None:
`disable_tqdm=True` only swaps ProgressCallback for PrinterCallback, which prints a
raw dict per step instead (`{'loss': '0.5684', 'grad_norm': ..., 'epoch': ...}`).
- Both write to the same stdout, so both have to go; Studio's own progress callback,
+ Both write to the same stdout, so both have to go; Unsloth's own progress callback,
the SSE stream and `training_progress` are unaffected. Best effort: a transformers
build without these classes just keeps its current behaviour.
"""
@@ -577,7 +577,7 @@ class UnslothTrainer:
if not logs:
return
# Trainer's end-of-run and end-of-eval summaries carry numbers that
- # appear nowhere else in Studio (train_samples_per_second,
+ # appear nowhere else in Unsloth (train_samples_per_second,
# train_steps_per_second, total_flos, memory, eval runtime). They used
# to reach the log only through PrinterCallback's raw stdout dict, so
# with that callback gone they are re-published here, structured, once.
@@ -3461,7 +3461,7 @@ class UnslothTrainer:
self._online_eval_dataset = eval_dataset
train_dataset = dataset["dataset"] if isinstance(dataset, dict) else dataset
- # A step-capped run says nothing about passes, but Studio knows the rows
+ # A step-capped run says nothing about passes, but Unsloth knows the rows
# and microbatch size, so resolve it here. World size scales rows consumed
# per step; omitting it would understate the passes.
resolved_epochs = None
@@ -3479,7 +3479,7 @@ class UnslothTrainer:
# kills the feature. Env-only, deliberately NOT worker.py's
# _data_parallel_world_size, which also counts visible CUDA devices:
# that bounds a row subset where over-counting is free, this feeds a
- # veto where both directions are wrong. Studio's multi-GPU load is
+ # veto where both directions are wrong. Unsloth's multi-GPU load is
# device_map="balanced", model-parallel to transformers with _n_gpu = 1,
# so a balanced 4-GPU run draws one GPU's rows per step and counting
# devices would report 4x the passes, vetoing a qualifying run.
@@ -3753,7 +3753,7 @@ class UnslothTrainer:
args = TrainingArguments(**config),
)
self.trainer.add_callback(self._create_progress_callback())
- # Studio publishes progress itself, so HF's stdout callbacks are pure
+ # Unsloth publishes progress itself, so HF's stdout callbacks are pure
# duplication in a log that has no terminal. --verbose keeps them.
_drop_hf_stdout_callbacks(self.trainer)
@@ -3794,7 +3794,7 @@ class UnslothTrainer:
),
)
self.trainer.add_callback(self._create_progress_callback())
- # Studio publishes progress itself, so HF's stdout callbacks are pure
+ # Unsloth publishes progress itself, so HF's stdout callbacks are pure
# duplication in a log that has no terminal. --verbose keeps them.
_drop_hf_stdout_callbacks(self.trainer)
@@ -3841,7 +3841,7 @@ class UnslothTrainer:
self.trainer = Seq2SeqTrainer(**trainer_kwargs)
self.trainer.add_callback(self._create_progress_callback())
- # Studio publishes progress itself, so HF's stdout callbacks are pure
+ # Unsloth publishes progress itself, so HF's stdout callbacks are pure
# duplication in a log that has no terminal. --verbose keeps them.
_drop_hf_stdout_callbacks(self.trainer)
@@ -4364,7 +4364,7 @@ class UnslothTrainer:
# ========== PROGRESS TRACKING ==========
self.trainer.add_callback(self._create_progress_callback())
- # Studio publishes progress itself, so HF's stdout callbacks are pure
+ # Unsloth publishes progress itself, so HF's stdout callbacks are pure
# duplication in a log that has no terminal. --verbose keeps them.
_drop_hf_stdout_callbacks(self.trainer)
diff --git a/studio/backend/core/training/worker.py b/studio/backend/core/training/worker.py
index b79ca5f2d80..791f6d82fe4 100644
--- a/studio/backend/core/training/worker.py
+++ b/studio/backend/core/training/worker.py
@@ -92,7 +92,7 @@ def _data_parallel_world_size() -> int:
extra rank does. XPU and MPS stay at one device there, so only CUDA counts.
The larger of the two, never the sum: a distributed run forces n_gpu to 1, and a
- model-parallel one (device_map="balanced", which is what Studio's own multi-GPU
+ model-parallel one (device_map="balanced", which is what Unsloth's own multi-GPU
load uses) forces it to 1 as well. Rounding up when the model turns out to be
sharded rather than replicated only tokenizes a larger subset of a corpus this
bound is orders of magnitude below anyway; rounding down means the run silently
diff --git a/studio/backend/hub/services/datasets/downloads.py b/studio/backend/hub/services/datasets/downloads.py
index c99c7d6d0cb..f84ea4084c4 100644
--- a/studio/backend/hub/services/datasets/downloads.py
+++ b/studio/backend/hub/services/datasets/downloads.py
@@ -165,7 +165,7 @@ async def download_dataset_response(
key = _download_job_key(repo_id)
# Off the event loop: resolving "auto" can run the Xet reachability probe, and a blackholed DNS
- # makes that outlast its 3s budget while every other Studio request waits behind it.
+ # makes that outlast its 3s budget while every other Unsloth request waits behind it.
use_xet, transport_reason = await asyncio.to_thread(
download_lifecycle.resolve_requested_use_xet,
getattr(body, "transport_mode", None),
diff --git a/studio/backend/hub/services/datasets/local_options.py b/studio/backend/hub/services/datasets/local_options.py
index 222a02d1557..fa9ff724fe2 100644
--- a/studio/backend/hub/services/datasets/local_options.py
+++ b/studio/backend/hub/services/datasets/local_options.py
@@ -263,7 +263,7 @@ def _read_card_metadata(path: Path) -> Any:
# The contract is that an offered split has to be trainable: anything looser is offered and
# then 422s, anything tighter hides a usable option. Deliberately tighter in two places,
# both to keep training inside the cache: a file whose symlink leaves the repository is
-# refused, and only the extensions Studio can train on are offered.
+# refused, and only the extensions Unsloth can train on are offered.
# Only names are read during the scan, so this can sit well above any real snapshot. Past
# it the result would depend on traversal order, so nothing is offered.
@@ -280,9 +280,9 @@ _IGNORED_DATA_FILENAMES = frozenset(
"dummy_data.zip",
}
)
-# What fsspec can decompress in a Studio install, as suffixes that sit after the real one.
+# What fsspec can decompress in an Unsloth install, as suffixes that sit after the real one.
_COMPRESSION_EXTENSIONS = frozenset({".gz", ".gzip", ".bz2", ".xz", ".zip"})
-# Named by datasets but needing codecs a Studio install does not ship, so they raise
+# Named by datasets but needing codecs an Unsloth install does not ship, so they raise
# "Compression type not supported" and offering them would put a dead split in the picker.
# .lzma is the legacy alone-format: datasets registers .xz for its filter, not this.
_UNREADABLE_COMPRESSION = frozenset({".zst", ".zstd", ".lz4", ".lzma"})
@@ -398,7 +398,7 @@ def _file_module(name: str) -> Optional[str]:
def _trainable_name(name: str) -> bool:
- """Whether Studio can train on this file. Narrower than what datasets would read."""
+ """Whether Unsloth can train on this file. Narrower than what datasets would read."""
suffix = _data_suffix(name)
return suffix is not None and suffix in TRAINING_DATA_EXTS
@@ -520,7 +520,7 @@ def _blocked_by_compression(name: str, module: str) -> bool:
def _offerable(entries: list[PurePosixPath], snapshot: Path, module: str) -> Optional[bool]:
- """True when the split holds data Studio can train on, False when it holds none, None
+ """True when the split holds data Unsloth can train on, False when it holds none, None
when the config is unusable. datasets reads every file in the split, so one file that
escapes the cache, or one the builder chokes on, condemns the config rather than
the single file."""
diff --git a/studio/backend/hub/services/download_lifecycle.py b/studio/backend/hub/services/download_lifecycle.py
index 59f49efce37..b63acc15007 100644
--- a/studio/backend/hub/services/download_lifecycle.py
+++ b/studio/backend/hub/services/download_lifecycle.py
@@ -112,7 +112,7 @@ def _health_is_forced(health) -> bool:
def _memory_pressure_reason() -> Optional[str]:
"""Free-RAM verdict for an API caller that sends "auto".
- The Studio UI never reaches here: it resolves Auto through the capabilities probe and submits
+ The Unsloth UI never reaches here: it resolves Auto through the capabilities probe and submits
the concrete xet/http, so that probe applies the same rule. Shared helper, so the two agree."""
try:
from utils.hf_xet_fallback import free_ram_pressure_reason
@@ -192,7 +192,7 @@ def spawn_worker(
# natively at import, so the worker's env has to be sized here. unsloth_zoo decides, so
# there is one rule and not two: it sizes from RAM/cores/disk and honours a user-set
# high-performance flag (standing its own sizing down, since xet-core voids it anyway).
- # UNSLOTH_XET_FORCE_CAPS=1 bounds the machine regardless. Studio hand-rolled this, and the
+ # UNSLOTH_XET_FORCE_CAPS=1 bounds the machine regardless. Unsloth hand-rolled this, and the
# copies drifted: on a 2TB host the worker got a 24GB laptop's buffer and ran 3.4x slower.
from utils import hf_xet_fallback
diff --git a/studio/backend/hub/services/models/cache_inventory.py b/studio/backend/hub/services/models/cache_inventory.py
index 1757754b3bf..d2e27bd651c 100644
--- a/studio/backend/hub/services/models/cache_inventory.py
+++ b/studio/backend/hub/services/models/cache_inventory.py
@@ -451,7 +451,7 @@ def invalidate_hf_cache_scans() -> None:
def _is_hidden_infra_repo(*values: str | None) -> bool:
"""True for infra-only repos (the RAG embedder and the llama.cpp install
- validation probe) that are cached as a side effect of Studio itself and are
+ validation probe) that are cached as a side effect of Unsloth itself and are
not usable chat models."""
return is_hidden_model(*values)
diff --git a/studio/backend/hub/services/models/deletion.py b/studio/backend/hub/services/models/deletion.py
index 0bb040381fe..726c728cd30 100644
--- a/studio/backend/hub/services/models/deletion.py
+++ b/studio/backend/hub/services/models/deletion.py
@@ -295,7 +295,7 @@ def _delete_gguf_variant_from_repos(
if matched and not sibling_active and not _has_remaining_main_gguf(target_repo):
companion_matches = _repo_file_matches(
target_repo,
- # Companions: mmproj and the drafters Studio downloads (MTP with
+ # Companions: mmproj and the drafters Unsloth downloads (MTP with
# every variant, DSpark on opt-in). No main GGUF is left, so they
# cannot be launched; reclaim them with the last variant. An imatrix
# joins them: no longer offered as a variant, so a copy an older build
diff --git a/studio/backend/hub/services/models/downloads.py b/studio/backend/hub/services/models/downloads.py
index 47ecf0ce008..7bca8476f77 100644
--- a/studio/backend/hub/services/models/downloads.py
+++ b/studio/backend/hub/services/models/downloads.py
@@ -217,7 +217,7 @@ async def download_model_response(
variant = scope_variant
key = _download_job_key(repo_id, variant)
# Off the event loop: resolving "auto" can run the Xet reachability probe, and a blackholed DNS
- # makes that outlast its 3s budget while every other Studio request waits behind it.
+ # makes that outlast its 3s budget while every other Unsloth request waits behind it.
use_xet, transport_reason = await asyncio.to_thread(
download_lifecycle.resolve_requested_use_xet,
getattr(body, "transport_mode", None),
diff --git a/studio/backend/hub/services/models/ollama.py b/studio/backend/hub/services/models/ollama.py
index c8ab245367c..62bf3c7b86e 100644
--- a/studio/backend/hub/services/models/ollama.py
+++ b/studio/backend/hub/services/models/ollama.py
@@ -303,7 +303,7 @@ def _ollama_model_info_from_manifest(
rendered_layers = ", ".join(unsupported_layers)
if reject_unsupported_layers:
raise ValueError(
- "Ollama manifest contains unsupported runtime layers that Studio cannot preserve: "
+ "Ollama manifest contains unsupported runtime layers that Unsloth cannot preserve: "
f"{rendered_layers}"
)
logger.debug(
diff --git a/studio/backend/hub/tests/test_resumable_partials.py b/studio/backend/hub/tests/test_resumable_partials.py
index 0624930c052..3fb0a3ee59c 100644
--- a/studio/backend/hub/tests/test_resumable_partials.py
+++ b/studio/backend/hub/tests/test_resumable_partials.py
@@ -196,7 +196,7 @@ def test_the_known_local_filesystems_are_local(tmp_path, monkeypatch):
def test_each_cache_root_is_judged_on_its_own_filesystem(tmp_path, monkeypatch):
- """Studio remembers several cache roots and they need not lock alike.
+ """Unsloth remembers several cache roots and they need not lock alike.
One global verdict taken from the selected cache would have the boot sweep delete a local
cache's still-appendable partials whenever the selected one sits on a network mount.
@@ -269,7 +269,7 @@ def test_only_contention_counts_as_a_working_lock(tmp_path, monkeypatch):
def test_the_probe_does_not_follow_a_planted_symlink(tmp_path):
"""A shared cache is writable by others, and a predictable probe name is a truncation gadget.
- Plants a symlink at the name a pid-based scheme would pick, pointing at a file the Studio
+ Plants a symlink at the name a pid-based scheme would pick, pointing at a file the Unsloth
account owns. Opening that path "wb" follows the link and empties the target, so the probe has
to use a name nobody can guess and create it exclusively.
"""
diff --git a/studio/backend/hub/utils/download_registry.py b/studio/backend/hub/utils/download_registry.py
index 9943958e14f..296df2d4d91 100644
--- a/studio/backend/hub/utils/download_registry.py
+++ b/studio/backend/hub/utils/download_registry.py
@@ -556,7 +556,7 @@ def _purge_incomplete_blobs(
cost of that mistake is another client's whole download.
``owned_hashes``, or ``owns_all_blobs`` for a job that owns its whole repo dir (one with no
- variant, which claim() will not let a sibling share), are blobs whose only Studio-side
+ variant, which claim() will not let a sibling share), are blobs whose only Unsloth-side
writer has just been reaped. Those do not wait out the full grace -- the corpse would
outlive the retry that follows a cancel, which is the frozen bar this whole change is
about -- but they are not simply trusted either: registry ownership proves OUR writer is
diff --git a/studio/backend/hub/utils/hf_cache_state.py b/studio/backend/hub/utils/hf_cache_state.py
index a64775b4a04..145ba1c6fc1 100644
--- a/studio/backend/hub/utils/hf_cache_state.py
+++ b/studio/backend/hub/utils/hf_cache_state.py
@@ -73,7 +73,7 @@ def hf_partials_are_resumable(hub_cache: Optional[str] = None) -> bool:
On 1.18+ this also asks whether the download worker will put the 1.17 writer back
(:mod:`hub.utils.resumable_partials`), since a restored resumer makes partials reusable again.
That half turns on the filesystem the partial is on, so *hub_cache* names the root being asked
- about. Studio remembers several and they need not lock alike: without it, a selected cache on a
+ about. Unsloth remembers several and they need not lock alike: without it, a selected cache on a
network mount would condemn a local cache's partials to the abandoned-partial sweep. Omitting it
asks about the cache in force, which is where a new download lands.
diff --git a/studio/backend/hub/utils/resumable_partials.py b/studio/backend/hub/utils/resumable_partials.py
index 6ded1fe867b..f7a62c6de40 100644
--- a/studio/backend/hub/utils/resumable_partials.py
+++ b/studio/backend/hub/utils/resumable_partials.py
@@ -134,9 +134,9 @@ def _probe_dir(hub_cache: Optional[Path | str] = None) -> Optional[Path]:
``constants.HF_HUB_CACHE`` is resolved at import and moving the cache in Settings does not
rewrite the live process (see ``hub/services/download_lifecycle.py``), so probing it would
judge a different filesystem than the partial lands on. The constant is the fallback for
- callers outside Studio.
+ callers outside Unsloth.
- *hub_cache* names a specific root instead. Studio remembers several, and a partial sitting in
+ *hub_cache* names a specific root instead. Unsloth remembers several, and a partial sitting in
one of them is governed by that root's filesystem, not by whichever is currently selected.
"""
root = None
@@ -146,8 +146,8 @@ def _probe_dir(hub_cache: Optional[Path | str] = None) -> Optional[Path]:
try:
from utils.hf_cache_settings import active_hf_hub_cache
root = Path(active_hf_hub_cache())
- except Exception as exc: # noqa: BLE001 - outside Studio, use the library's own view
- logger.debug("resumable partials: no Studio cache setting (%s)", exc)
+ except Exception as exc: # noqa: BLE001 - outside Unsloth, use the library's own view
+ logger.debug("resumable partials: no Unsloth cache setting (%s)", exc)
if root is None:
try:
from huggingface_hub import constants
diff --git a/studio/backend/lan_access.py b/studio/backend/lan_access.py
index 7d3c9d7f3cf..0afe5e1d43b 100644
--- a/studio/backend/lan_access.py
+++ b/studio/backend/lan_access.py
@@ -3,7 +3,7 @@
"""Runtime LAN listener for Unsloth Studio.
-Studio binds 127.0.0.1 by default, so a phone or laptop on the same network
+Unsloth binds 127.0.0.1 by default, so a phone or laptop on the same network
cannot reach it without relaunching with ``-H 0.0.0.0``. This module adds a
second uvicorn listener over the already-running app, on the machine's own
network addresses and the same port, and takes it away again -- no restart, and
diff --git a/studio/backend/loggers/config.py b/studio/backend/loggers/config.py
index fa143b0269d..3e322af4d3d 100644
--- a/studio/backend/loggers/config.py
+++ b/studio/backend/loggers/config.py
@@ -265,7 +265,7 @@ def with_readable_traceback(renderer):
return _render
-# Set alongside HF_HUB_DISABLE_PROGRESS_BARS when the value is Studio's default rather
+# Set alongside HF_HUB_DISABLE_PROGRESS_BARS when the value is Unsloth's default rather
# than the operator's, so allow_progress_bars() can tell them apart.
_PROGRESS_BARS_DEFAULTED = "UNSLOTH_STUDIO_PROGRESS_BARS_DEFAULTED"
@@ -375,7 +375,7 @@ def keep_progress_bars_countable() -> None:
the whole of a multi-GB download. Same trade as datasets: keep the counter, drop
the writes, so nothing reaches the log either way.
- Only Studio's own default is undone; an operator who set the variable themselves
+ Only Unsloth's own default is undone; an operator who set the variable themselves
asked for no bars and keeps getting none. Afterwards
quiet_third_party_progress_bars() is a no-op in this process, so a later call
cannot re-disable what the poller reads.
@@ -398,7 +398,7 @@ def keep_progress_bars_countable() -> None:
def quiet_bar_kwargs() -> dict:
"""tqdm kwargs that keep a bar counting but stop it writing to the log.
- For Studio's own explicit bars (the dataset conversion loops), which no library
+ For Unsloth's own explicit bars (the dataset conversion loops), which no library
switch reaches. Empty when the operator asked to keep bars, so nothing changes.
"""
value = os.environ.get("HF_HUB_DISABLE_PROGRESS_BARS")
@@ -408,7 +408,7 @@ def quiet_bar_kwargs() -> dict:
def allow_progress_bars() -> None:
- """Undo an inherited Studio default so this process can draw progress bars.
+ """Undo an inherited Unsloth default so this process can draw progress bars.
Called by the export worker, whose stdout is forwarded to the export dialog and
whose Hub upload bar is the only live byte progress a long push_to_hub has. An
@@ -424,7 +424,7 @@ def quiet_third_party_progress_bars() -> None:
"""Turn off the tqdm bars transformers / diffusers / huggingface_hub draw
during an in-process model load.
- A bar is written with carriage returns to a terminal, so in Studio's log it
+ A bar is written with carriage returns to a terminal, so in Unsloth's log it
lands as a burst of lines like
Loading weights: 8%|> | 30/398 [00:00<00:01, 277.16it/s][A
diff --git a/studio/backend/loggers/handlers.py b/studio/backend/loggers/handlers.py
index 89da165a359..f1d1d14f84e 100644
--- a/studio/backend/loggers/handlers.py
+++ b/studio/backend/loggers/handlers.py
@@ -89,7 +89,7 @@ _QUIET_POLL_PATHS = {
# question ("the server is up and answering"), and the SPA fires them together in one
# burst, so heartbeating them independently emits one line per path per window instead
# of one line per window. They share a single bucket: the first of the burst logs with
-# its real path, the rest of that window is dropped. Measured over four Studio sessions
+# its real path, the rest of that window is dropped. Measured over four Unsloth sessions
# these were 39-69% of the access log and the shared bucket removed 25-47% of it.
#
# Only this group is shared. The other _QUIET_POLL_PATHS entries (/api/train/runs,
diff --git a/studio/backend/main.py b/studio/backend/main.py
index 1fbc5803f16..eee91679be4 100644
--- a/studio/backend/main.py
+++ b/studio/backend/main.py
@@ -225,7 +225,7 @@ if _STUDIO_ROOT_RESOLVED != _LEGACY_STUDIO_ROOT:
_MANAGED_LLAMA_CPP_PATH = _STUDIO_ROOT_RESOLVED / "llama.cpp"
if not os.environ.get("UNSLOTH_LLAMA_CPP_PATH"):
os.environ["UNSLOTH_LLAMA_CPP_PATH"] = str(_MANAGED_LLAMA_CPP_PATH)
- # A CLI/desktop launcher may already have exported Studio's own install path.
+ # A CLI/desktop launcher may already have exported Unsloth's own install path.
# Classify by the canonical value so that inherited default remains editable.
from utils.llama_cpp_path_settings import mark_managed_llama_cpp_path
@@ -995,7 +995,7 @@ app.add_middleware(SecurityHeadersMiddleware)
# Swagger UI and ReDoc, on FastAPI's own paths but served entirely from this origin.
# FastAPI's built-in pages load ~2.3 MB of JavaScript from cdn.jsdelivr.net and start it with
# an inline script. localStorage is origin-scoped, not path-scoped, so anything running on
-# /docs can read the Studio tokens session.ts keeps there and call the API as that user. The
+# /docs can read the Unsloth tokens session.ts keeps there and call the API as that user. The
# bundles are vendored under assets/docs_ui (pinned + digest-checked by
# tests/test_docs_ui_assets.py) and the inline init runs off the same per-response nonce the
# bootstrap script uses, so script-src stays 'self' and works offline as a bonus.
@@ -1386,7 +1386,7 @@ app.include_router(inference_router, prefix = "/api/inference", tags = ["inferen
# Unsloth-only inference endpoints (cancel, etc.) are not on the /v1 OpenAI-compat prefix.
app.include_router(inference_studio_router, prefix = "/api/inference", tags = ["inference"])
-# Studio-only text-to-video endpoints; not exposed on the /v1 OpenAI-compat prefix.
+# Unsloth-only text-to-video endpoints; not exposed on the /v1 OpenAI-compat prefix.
app.include_router(video_router, prefix = "/api/inference", tags = ["inference"])
# OpenAI-compatible: mount the inference router at /v1 for external tools.
@@ -1725,7 +1725,7 @@ async def health_check(request: Request):
"desktop_manageability_version": 2,
"supports_desktop_auth": True,
"supports_desktop_backend_ownership": True,
- # Opaque per-install id; launchers reject sibling Studios on the same port.
+ # Opaque per-install id; launchers reject sibling Unsloth instances on the same port.
"studio_root_id": _studio_root_id(),
"native_path_leases_supported": native_path_leases_supported(),
**({"desktop_owner": owner} if (owner := _desktop_owner()) else {}),
diff --git a/studio/backend/models/inference.py b/studio/backend/models/inference.py
index 6339022c919..d47a3b89243 100644
--- a/studio/backend/models/inference.py
+++ b/studio/backend/models/inference.py
@@ -1790,7 +1790,7 @@ class ChatCompletionRequest(BaseModel):
"returns a 400 with code=context_length_exceeded. 'truncate_middle' is "
"limited to client-tool or response_format passthrough and retries after "
"keeping the first and recent turns. 'truncate_oldest' provides a rolling "
- "window for plain and Studio-tool chats by dropping complete oldest turns. "
+ "window for plain and Unsloth-tool chats by dropping complete oldest turns. "
"Both truncation policies preserve system messages and tool-call groups."
),
)
@@ -1807,12 +1807,12 @@ class ChatCompletionRequest(BaseModel):
run_tools_locally: Optional[bool] = Field(
None,
description = (
- "[x-unsloth] Execute the selected tools on the Studio host instead of "
+ "[x-unsloth] Execute the selected tools on the Unsloth host instead of "
"asking the provider to run its own hosted builtins. Only meaningful "
"for providers that ship hosted tools of the same name (OpenAI, "
"Gemini, Kimi, OpenRouter), where 'web_search' alone is ambiguous: "
"the same request means hosted search to a client written before "
- "Studio ran tools for external providers. Omitted keeps the hosted "
+ "Unsloth ran tools for external providers. Omitted keeps the hosted "
"behaviour, so an older client is unaffected."
),
)
diff --git a/studio/backend/models/providers.py b/studio/backend/models/providers.py
index 3f948a8b6bd..9db9c572ce5 100644
--- a/studio/backend/models/providers.py
+++ b/studio/backend/models/providers.py
@@ -35,7 +35,7 @@ class ProviderRegistryEntry(BaseModel):
)
supports_studio_tools: bool = Field(
False,
- description = "Whether Studio runs its own tool loop (search/code/MCP/RAG) against this provider",
+ description = "Whether Unsloth runs its own tool loop (search/code/MCP/RAG) against this provider",
)
hidden: bool = Field(
False,
diff --git a/studio/backend/models/training.py b/studio/backend/models/training.py
index d8d45ec197b..d7af4ca4b69 100644
--- a/studio/backend/models/training.py
+++ b/studio/backend/models/training.py
@@ -884,8 +884,8 @@ class DiffusionTrainingStartRequest(BaseModel):
description = (
"Directory for the PERSISTENT conditioning cache (latents + text embeddings), reused "
"across runs: a rerun whose images, captions and resolution are unchanged skips "
- "loading the VAE and the multi-GB text encoders entirely. Studio-relative names are "
- "resolved under the Studio outputs root and absolute paths must stay inside it. "
+ "loading the VAE and the multi-GB text encoders entirely. Unsloth-relative names are "
+ "resolved under the Unsloth outputs root and absolute paths must stay inside it. "
"null or blank keeps the in-memory cache, which is rebuilt every run."
),
)
@@ -943,7 +943,7 @@ class DiffusionTrainingStartRequest(BaseModel):
None,
description = (
"Continue a previous run: its output_dir (the newest complete checkpoint inside it "
- "is used) or one explicit checkpoint-<N> directory. Must resolve inside the Studio "
+ "is used) or one explicit checkpoint-<N> directory. Must resolve inside the Unsloth "
"outputs root, and must match this run's family, base model, dataset, LoRA "
"configuration and precision. train_steps is then the TARGET TOTAL, so resuming a "
"checkpoint at step 11 with train_steps=500 trains steps 12..500."
@@ -1009,7 +1009,7 @@ class DiffusionTrainingStatusResponse(BaseModel):
lora_path: Optional[str] = None
# The second, EMA-averaged adapter written in the run's ema subdir when ema_decay was enabled.
ema_path: Optional[str] = None
- # Where the adapter was mirrored into the Studio LoRA catalog, and what family / base it trained from, so the UI can deploy it.
+ # Where the adapter was mirrored into the Unsloth LoRA catalog, and what family / base it trained from, so the UI can deploy it.
catalog_path: Optional[str] = None
family: Optional[str] = None
base_model: Optional[str] = None
@@ -1081,7 +1081,7 @@ class DiffusionTrainingRunsResponse(BaseModel):
class DiffusionDatasetSummary(BaseModel):
- """One dataset folder under the Studio datasets root: images, clips, or both."""
+ """One dataset folder under the Unsloth datasets root: images, clips, or both."""
name: str
path: str
@@ -1130,7 +1130,7 @@ class DiffusionTrainableFamily(BaseModel):
class DiffusionTrainingInfoResponse(BaseModel):
- """Where diffusion training reads/writes on this Studio, plus usable datasets and the
+ """Where diffusion training reads/writes on this Unsloth, plus usable datasets and the
trainable model families (so the UI can offer a base picker with realistic guidance)."""
datasets_root: str
diff --git a/studio/backend/requirements/diffusers-pin.txt b/studio/backend/requirements/diffusers-pin.txt
index af43ce8a715..fdb7ff78099 100644
--- a/studio/backend/requirements/diffusers-pin.txt
+++ b/studio/backend/requirements/diffusers-pin.txt
@@ -1,10 +1,10 @@
-# The Diffusers revision Studio is built against. THE single source of truth for it:
+# The Diffusers revision Unsloth is built against. THE single source of truth for it:
# no other requirements file may name diffusers, and a test in
# tests/studio/install/test_diffusers_pin.py enforces that.
#
# Why a git archive and not a release: MiniMax-H3 needs the modular ModularPipeline /
# MiniMaxH3Transformer3DModel work that landed after 0.39.0 and is not in any published
-# wheel yet, so a released version makes Studio refuse to load H3 at all. The archive
+# wheel yet, so a released version makes Unsloth refuse to load H3 at all. The archive
# reports itself as 0.40.0.dev0.
#
# Why it is installed from its own file, in its own step: base.txt is applied near the
diff --git a/studio/backend/requirements/single-env/overrides-darwin-arm64.txt b/studio/backend/requirements/single-env/overrides-darwin-arm64.txt
index 054cf21b7ae..7ecc7e9f4f8 100644
--- a/studio/backend/requirements/single-env/overrides-darwin-arm64.txt
+++ b/studio/backend/requirements/single-env/overrides-darwin-arm64.txt
@@ -1,4 +1,4 @@
-# Keep mlx-vlm / mlx-lm on the same Transformers floor as the main Studio
+# Keep mlx-vlm / mlx-lm on the same Transformers floor as the main Unsloth
# environment when uv applies their dependency metadata.
transformers>=5.5.0; python_version >= "3.10"
transformers>=4.57.6; python_version < "3.10"
diff --git a/studio/backend/routes/auth.py b/studio/backend/routes/auth.py
index 53857403ea0..33e2052f687 100644
--- a/studio/backend/routes/auth.py
+++ b/studio/backend/routes/auth.py
@@ -104,7 +104,7 @@ def _reset_password_command() -> str:
same as runnable: an Application Control policy leaves the generated,
unsigned unsloth.exe on disk and denies it at CreateProcess (issue #8490),
and a bare `unsloth` resolves to that same file because PATHEXT puts .EXE
- ahead of the .cmd shim. Whoever is locked out of Studio is exactly who needs
+ ahead of the .cmd shim. Whoever is locked out of Unsloth is exactly who needs
this command to work, so it must not be the one a policy refuses. Preference
order is therefore the interpreter's module entry, which needs no quoting in
cmd or PowerShell, then `unsloth.cmd` -- spelling the extension is what stops
diff --git a/studio/backend/routes/chat_history.py b/studio/backend/routes/chat_history.py
index bc48a249d0d..e79c3a8fbd3 100644
--- a/studio/backend/routes/chat_history.py
+++ b/studio/backend/routes/chat_history.py
@@ -148,9 +148,9 @@ class ChatThread(BaseModel):
def thread_from_row(row: dict) -> ChatThread:
"""Build a ChatThread from a DATABASE row, tolerating a snapshot it cannot read.
- `settings` is the first strictly validated nested model Studio builds out of the
+ `settings` is the first strictly validated nested model Unsloth builds out of the
database rather than off the wire, and a stored snapshot outlives the build that
- wrote it: a newer Studio adding a seventeenth setting, widening an enum or
+ wrote it: a newer Unsloth adding a seventeenth setting, widening an enum or
raising a bound writes a blob this one rejects. Refusing it here 500s the chat on
open and takes the entire history export with it, since the export validates
every thread. `_json_loads` already shrugs off JSON that will not parse; JSON
@@ -188,7 +188,7 @@ def readable_thread_settings(settings: dict) -> Optional[dict]:
def _unreadable_thread_settings(stored: dict) -> dict:
"""The part of a stored snapshot this build cannot validate, and so must not delete.
- An older Studio opening a database a newer one wrote drops the fields it cannot read.
+ An older Unsloth opening a database a newer one wrote drops the fields it cannot read.
A blind replacement would make that loss permanent instead of temporary, so a write
carries forward everything the writer could not have known about: unknown keys, and
known keys holding values this build rejects.
@@ -976,7 +976,7 @@ def save_project(payload: ChatProject, current_subject: str = Depends(get_curren
try:
return ChatProject(**upsert_chat_project(payload.model_dump()))
except ProjectWorkspaceError as exc:
- # A project is the only thing Studio writes to Documents, so a folder it
+ # A project is the only thing Unsloth writes to Documents, so a folder it
# cannot create there fails here and nowhere else. Only this error, and
# only its own path: the same upsert also opens the database, which
# lives somewhere else entirely.
diff --git a/studio/backend/routes/inference.py b/studio/backend/routes/inference.py
index 554b946c85f..562ebbb8736 100644
--- a/studio/backend/routes/inference.py
+++ b/studio/backend/routes/inference.py
@@ -423,7 +423,7 @@ def _tts_max_new_tokens(payload, prompt: Optional[str] = None) -> int:
``prompt`` shares the loaded context with the output, so a Max tokens slider near the
ceiling plus a long prompt overflowed the context the page loaded with. Capped here so
- both the Studio and OpenAI routes inherit it.
+ both the Unsloth and OpenAI routes inherit it.
"""
budget = min(
AUDIO_GENERATION_MAX_TOKENS,
@@ -613,7 +613,7 @@ def _choice_seed(
def _raise_unsupported_n(path_label: str, monitor_id: Optional[str] = None) -> None:
"""Refuse n > 1 on a path that cannot sample twice.
- Pass the monitor row when one is already open, or Studio keeps reporting a
+ Pass the monitor row when one is already open, or Unsloth keeps reporting a
generation that was refused before it began.
"""
message = f"n > 1 is not supported for {path_label}."
@@ -1556,7 +1556,7 @@ def _openai_llama_admission_budget(llama_backend) -> Optional[int]:
has it. ``context_length`` is NOT that once the server has been read back:
``_reconcile_effective_ctx_with_server`` adopts the PER-SLOT ``n_ctx`` from
``default_generation_settings`` into it, and computes the total alongside as
- ``n_ctx * slots`` (slots being 1 only under ``--kv-unified``). Studio appends
+ ``n_ctx * slots`` (slots being 1 only under ``--kv-unified``). Unsloth appends
that flag only when ``n_parallel > 1`` and the binary supports it, so a build
without it, or a user ``--no-kv-unified``, gives N private caches while
``context_length`` names one of them: an N-fold under-budget that collapses
@@ -1598,7 +1598,7 @@ def _openai_llama_admission_extra_prompt_tokens(payload) -> int:
def _openai_llama_admission_media_tokens(payload) -> int:
"""Media the request carries in Unsloth's legacy top-level fields, in tokens.
- Studio's own composer sends every attachment as ``image_base64`` /
+ Unsloth's own composer sends every attachment as ``image_base64`` /
``audio_base64`` / ``video_base64``, never as ``messages`` content parts, and the
generation path splices them into the prompt AFTER this estimate is taken
(``_openai_messages_for_gguf_chat``, ``_inject_audio_part``,
@@ -1682,7 +1682,7 @@ def _openai_llama_admission_tokens(
# Keyed on the resolved execution path, NOT on payload.tools. The loop opens on
# `enable_tools`, `mcp_enabled`, the CLI --enable-tools policy or a checkpoint
# repair, none of which need a client `tools` array, so keying on the array
- # undercharged Studio's own tool traffic; and a passthrough or /responses request
+ # undercharged Unsloth's own tool traffic; and a passthrough or /responses request
# that merely forwards `tools` to llama-server runs ONE generation per HTTP call,
# so charging it the whole cache serialised the client-driven loop for nothing.
if tool_loop:
@@ -2600,7 +2600,7 @@ def _request_has_api_key(request: Any) -> bool:
def _request_is_internal_workflow(request: Any) -> bool:
- """True only for Studio's own workflow keys (Deep Research, data recipes).
+ """True only for Unsloth's own workflow keys (Deep Research, data recipes).
Checked against the stored internal-key hashes, never a prefix, so a caller
cannot mint one by sending an sk-unsloth-looking bearer. Fails closed when the
@@ -2620,7 +2620,7 @@ def _request_is_internal_workflow(request: Any) -> bool:
def _request_is_saved_credential_workflow(request: Any) -> bool:
"""True only for the one workflow key allowed to spend a saved provider credential.
- "Internal" is not the licence: Studio mints internal keys for data recipes
+ "Internal" is not the licence: Unsloth mints internal keys for data recipes
too, and ``routes/data_recipe/jobs.py`` writes that key straight into the
recipe's own provider block so a user-authored recipe subprocess holds it.
Granting every internal key the saved-connection exception would therefore
@@ -2650,16 +2650,16 @@ def _request_is_saved_credential_workflow(request: Any) -> bool:
def _request_used_api_key(request: Any) -> bool:
"""True when this request authenticated with a third party's sk-unsloth key.
- Studio's own chat hits these same endpoints with a session JWT, so this is
+ Unsloth's own chat hits these same endpoints with a session JWT, so this is
what separates "someone is using Unsloth as an API server" from "someone is
- using Unsloth". Internal workflow keys (Deep Research, data recipes) are Studio
+ using Unsloth". Internal workflow keys (Deep Research, data recipes) are Unsloth
itself and are excluded, or every research step would pop the API monitor open.
"""
# Total by construction: this must never fail a load. It also gates durable API
- # usage receipts, so an indeterminate key origin must not attribute Studio's own
+ # usage receipts, so an indeterminate key origin must not attribute Unsloth's own
# workflow traffic to an external caller. Saved-secret authorization uses
# _request_has_api_key instead, narrowed by _request_is_internal_workflow where a
- # Studio workflow needs its own connection.
+ # Unsloth workflow needs its own connection.
token = _request_api_key_token(request)
if token is None:
# keyless traffic is someone using Unsloth as an API server too
@@ -3209,13 +3209,13 @@ def _selects_only_provider_hosted_tools(payload, provider_type: str | None) -> b
``enable_tools: true`` plus ``enabled_tools: ["web_search", ...]`` is the
documented way to ask a provider for its hosted tools, and it is what every
- bundle shipped before Studio's loop reached external providers. Read only by
+ bundle shipped before Unsloth's loop reached external providers. Read only by
name, the same bytes now also describe a local-loop request, and taking the
- loop would swap the provider's search for Studio's and silently drop the
- hosted-only names (code_execution, image_generation, web_fetch) that Studio
+ loop would swap the provider's search for Unsloth's and silently drop the
+ hosted-only names (code_execution, image_generation, web_fetch) that Unsloth
has no implementation of.
- Anything that names a Studio-only tool (python, terminal,
+ Anything that names an Unsloth-only tool (python, terminal,
search_knowledge_base) or asks for MCP is unambiguous and keeps the loop, and
so does every self-hosted provider, which declares no hosted tools at all.
"""
@@ -3230,13 +3230,13 @@ def _selects_only_provider_hosted_tools(payload, provider_type: str | None) -> b
return False
# Matched against the whole hosted vocabulary rather than this provider's own
# slice: the pre-PR bundle sent one list of hosted names per turn, and a name
- # the provider does not implement was simply ignored by it. Studio has no
+ # the provider does not implement was simply ignored by it. Unsloth has no
# local implementation of those names either, so reading such a request as
# "local" would drop them just the same, only after also replacing the
# provider's search with ours.
if not all(isinstance(name, str) and name in HOSTED_TOOL_NAMES for name in enabled):
return False
- # run_tools_locally only decides the ambiguous names, the ones Studio can
+ # run_tools_locally only decides the ambiguous names, the ones Unsloth can
# also run itself. A selection with no SELECTED local stand-in stays hosted
# whatever the flag says: honouring it would enter the loop, find an empty
# catalog, fall back to the same passthrough, and skip the confirmation
@@ -3273,14 +3273,14 @@ def _tool_call_names(message) -> list[Optional[str]]:
def _only_studio_memory_tool_history(payload) -> bool:
- """True when the request's ONLY tool history is Studio's own conversation memory.
+ """True when the request's ONLY tool history is Unsloth's own conversation memory.
Once the model uses `search_conversation`, the branch keeps an assistant `tool_calls`
turn and its `role="tool"` result and the client replays both forever. Read as a CLIENT
tool contract, that history routes every later turn to the llama-server passthrough,
which runs no context fit, so the epoch, the carried-forward block and the automatic
- recall vanish one turn after the compaction that created them. It is Studio's own
- read-only tool run by Studio's own loop, so it must route as a tools-on Studio chat.
+ recall vanish one turn after the compaction that created them. It is Unsloth's own
+ read-only tool run by Unsloth's own loop, so it must route as a tools-on Unsloth chat.
Deliberately strict: a caller-supplied `tools` catalog, an unnamed call or result, or
any other tool name means "not ours", so a real client tool loop is never claimed.
@@ -4370,10 +4370,10 @@ async def _select_request_tools(
# tool is still absent (the archive is written mid-request) and the forced recall
# covers that turn. getattr, because this helper also serves the token-count request
# model, which carries no thread_id.
- # Follows the ARCHIVE, not the caller's allowlist: Studio always sends an explicit
+ # Follows the ARCHIVE, not the caller's allowlist: Unsloth always sends an explicit
# enabled_tools array and has no reason to name an internal tool it shows no pill for,
# so the filter above removed search_conversation and neither it nor the compaction
- # nudge gated on it ever reached a Studio chat. It is read-only and always-safe, so it
+ # nudge gated on it ever reached an Unsloth chat. It is read-only and always-safe, so it
# is added on that condition rather than requested.
has_archive = _thread_has_conversation_archive(getattr(payload, "thread_id", None))
tools = [t for t in tools if t["function"]["name"] != "search_conversation"]
@@ -5653,7 +5653,7 @@ def _should_strip_tensor_split(request: LoadRequest) -> bool:
free-VRAM split. Either way an inherited --tensor-split must go, else the
cleared case silently keeps the stale ratio while status reports None.
Unlike _should_strip_split_mode this leaves --split-mode untouched, so a
- user's row/none/layer mode survives a Studio split-ratio edit. When the
+ user's row/none/layer mode survives an Unsloth split-ratio edit. When the
Tensor Parallelism toggle IS overriding the mode, _should_strip_split_mode
(called alongside this at every site) strips --split-mode anyway.
"""
@@ -6212,7 +6212,7 @@ def _llama_status_model_ids(llama_backend) -> "tuple[Optional[str], Optional[str
def _llama_status_checkpoint_id(llama_backend) -> Optional[str]:
- """The exact string a Studio client holds as ``params.checkpoint`` for the loaded
+ """The exact string an Unsloth client holds as ``params.checkpoint`` for the loaded
GGUF: ``status.model_identifier ?? status.active_model``. Built from the same pair the
status handler returns so the two cannot drift."""
display_model_id, model_identifier = _llama_status_model_ids(llama_backend)
@@ -6488,7 +6488,7 @@ async def _maybe_auto_download_model(
hf_token = _auto_download_hf_token(fastapi_request),
require_vision = require_vision,
subject = current_subject,
- # These endpoints also serve Studio's chat on a JWT, so only mark real API traffic.
+ # These endpoints also serve Unsloth's chat on a JWT, so only mark real API traffic.
via_api_key = _request_used_api_key(fastapi_request),
)
except Exception as exc:
@@ -6529,7 +6529,7 @@ def _record_refused_request(
never runs. Only the caller that dispatched a download gets a row from
``record_lifecycle``; anyone refused while it runs left no trace at all, and a
download some other caller started carries their attribution, so an API-key
- client waiting on it never opened the overlay and read as Studio's own traffic.
+ client waiting on it never opened the overlay and read as Unsloth's own traffic.
"""
state = getattr(fastapi_request, "state", None)
if getattr(state, "skip_api_monitor", False):
@@ -6911,7 +6911,7 @@ async def _maybe_auto_switch_model(
exits; a route that still has its own capability/backend checks that can reject
(e.g. GGUF-only /v1/completions, /audio/generate) passes ``False`` and claims
itself only after those checks pass, so a later rejection can't strand a
- preview-owned model as Studio-owned. ``require_image`` makes the vision check
+ preview-owned model as Unsloth-owned. ``require_image`` makes the vision check
that rejection modality-aware, since an audio request needs the projector but
not a vision tower. ``modality_label`` names the inputs actually attached, so
the rejection does not report a modality the request never carried.
@@ -6939,7 +6939,7 @@ async def _maybe_auto_switch_model(
_swap_scope = getattr(fastapi_request, "scope", None)
note_admitted_inference(_swap_scope)
# A preview swapped a different checkpoint in since this request entered; running now
- # would serve the preview's model to Studio, so reject and let the client retry. Covers a
+ # would serve the preview's model to Unsloth, so reject and let the client retry. Covers a
# request that waited on the gate through the swap AND one that passed the gate before it
# but is still pre-admission. Deferred here (not a middleware 503) so an external-provider
# request that untracks and returns before this hook is never rejected for a swap it never
@@ -6955,7 +6955,7 @@ async def _maybe_auto_switch_model(
# absent so it falls through instead of raising in the membership checks below.
if not isinstance(requested_model, str) or not requested_model:
# Omitted/default model on a non-preview call runs against the resident model,
- # so claim it for Studio (a preview keeps its own ownership).
+ # so claim it for Unsloth (a preview keeps its own ownership).
if claim_resident:
_claim_slot_for_non_preview(fastapi_request)
return
@@ -6980,7 +6980,7 @@ async def _maybe_auto_switch_model(
_claim_slot_for_non_preview(fastapi_request)
return
- # The common Studio path names the model that is already serving. Resolve that
+ # The common Unsloth path names the model that is already serving. Resolve that
# from resident state before consulting the filesystem index: rebuilding a stale
# multi-root index here used to hold the request for seconds before streaming.
if auto_switch_on and await asyncio.to_thread(_loaded_identity_satisfies, requested_model):
@@ -7041,7 +7041,7 @@ async def _maybe_auto_switch_model(
)
):
# Unknown name, model already resident: the non-preview call uses it,
- # so claim it for Studio.
+ # so claim it for Unsloth.
if claim_resident:
_claim_slot_for_non_preview(fastapi_request)
return
@@ -7111,7 +7111,7 @@ async def _maybe_auto_switch_model(
b._openai_advertised_id = override_id
if _already_serving():
- # A non-preview request adopting this model claims it for Studio, so a later
+ # A non-preview request adopting this model claims it for Unsloth, so a later
# preview can't swap it out from under an active OpenAI caller.
if claim_resident:
_set_preview_resident(None)
@@ -7284,7 +7284,7 @@ async def _auto_switch_from_request_body(request: Request, current_subject: str)
# Serves the GGUF-only /v1/completions and /v1/embeddings routes, which still 503 "No
# GGUF model loaded" after this returns. Don't claim here (claim_resident=False); the
# caller claims only once it confirms a GGUF is loaded, so that 503 can't strand a
- # preview-owned non-GGUF model as Studio-owned.
+ # preview-owned non-GGUF model as Unsloth-owned.
await _maybe_auto_switch_model(model, request, current_subject, claim_resident = False)
return body
@@ -7349,7 +7349,7 @@ def _should_validate_before_switch() -> bool:
and also when the slot is preview-owned: with both features off no load runs, but
_maybe_auto_switch_model still claims the slot (clears the preview marker) for a
non-preview turn. A request rejected after that claim would have converted the
- preview-owned model into a Studio-owned one for nothing, stranding the next
+ preview-owned model into an Unsloth-owned one for nothing, stranding the next
preview for a different checkpoint on the 503 slot guard, so validate first.
"""
return _automatic_model_load_may_run() or _preview_slot_is_owned()
@@ -7370,7 +7370,7 @@ def _preview_same_checkpoint(loaded: str, requested: str) -> bool:
"""True when the resident slot already serves the preview's checkpoint. Exact string
match first: it is the fast path and the only comparison that makes sense for a non-path
identifier (an HF repo id like ``org/model``). Otherwise compare resolved filesystem
- paths, so a checkpoint Studio loaded through an equivalent spelling -- a relative
+ paths, so a checkpoint Unsloth loaded through an equivalent spelling -- a relative
``outputs/run`` vs the absolute path the preview resolver produces -- still borrows the
slot instead of 503'ing. realpath preserves case-sensitive distinct paths (it never
lowercases, so /outputs/Run and /outputs/run stay distinct); a non-path identifier just
@@ -7384,10 +7384,10 @@ def _preview_same_checkpoint(loaded: str, requested: str) -> bool:
def _claim_slot_for_non_preview(fastapi_request) -> None:
- """Non-preview local generation adopts the resident model for Studio.
+ """Non-preview local generation adopts the resident model for Unsloth.
Clearing the preview marker means a later preview for another checkpoint gets a
- 503 instead of swapping the model out from under an active Studio/OpenAI turn. A
+ 503 instead of swapping the model out from under an active Unsloth/OpenAI turn. A
``/p`` preview request keeps its own ownership (it may still be swapped by the
next preview), so skip when the request is a preview -- audio previews reach
generate_audio through openai_chat_completions, so the path check, not the
@@ -7416,7 +7416,7 @@ async def load_model_for_preview(
from utils.transformers_version import sidecar_swap_in_progress
# A refused preview never touches the model, so it must not stamp keep-warm
- # activity (public /p spam could otherwise pin an idle Studio model in VRAM);
+ # activity (public /p spam could otherwise pin an idle Unsloth model in VRAM);
# untrack also balances the preview in-flight counter for the dropped request.
scope = getattr(fastapi_request, "scope", None)
async with _auto_switch_lock():
@@ -7445,7 +7445,7 @@ async def load_model_for_preview(
def _refuse_studio_owned_model() -> None:
if loaded is None or _is_preview_resident(loaded):
return
- # A LoRA preview forces adapters on. Borrowing a Studio-owned LoRA
+ # A LoRA preview forces adapters on. Borrowing an Unsloth-owned LoRA
# would mutate its shared adapter state, so require an unload instead.
if (
same_target
@@ -7455,7 +7455,7 @@ async def load_model_for_preview(
untrack_current_request(scope)
raise HTTPException(
status_code = 503,
- detail = "Studio already has a different model loaded. Unload it before using this preview.",
+ detail = "Unsloth already has a different model loaded. Unload it before using this preview.",
headers = {"Retry-After": "10"},
)
@@ -7463,23 +7463,23 @@ async def load_model_for_preview(
# For a real load (not a same-target borrow) mark the swap in progress BEFORE
# the admitted-count check below so the two are atomic against a concurrent
# non-preview request: preview_swapped_since_entry() keys on the live
- # _preview_swap_inflight, so a Studio request reaching _maybe_auto_switch_model
+ # _preview_swap_inflight, so an Unsloth request reaching _maybe_auto_switch_model
# after this marker is rejected, while one admitted before it is caught by the
- # busy check. Setting it only after the check left a gap where a Studio request
+ # busy check. Setting it only after the check left a gap where an Unsloth request
# admitted between the check and the marker ran against the slot this preview
# is about to replace. Skip it for a same-target borrow: that changes nothing
- # (no counter bump), so marking would 503 concurrent Studio requests for no
+ # (no counter bump), so marking would 503 concurrent Unsloth requests for no
# reason. Cleared only after the lifecycle gate releases.
if not same_target:
note_preview_swap_begin()
_swap_begun = True
- # A same-checkpoint request would still restart a Studio-owned GGUF whose
+ # A same-checkpoint request would still restart an Unsloth-owned GGUF whose
# live settings differ from these bare defaults (#5401), so admitted
- # (post-auth) Studio inference blocks first. Only admitted local inference
+ # (post-auth) Unsloth inference blocks first. Only admitted local inference
# is counted, not raw _inflight: the middleware tracks a POST before
# FastAPI auth, so a pre-auth or unauthenticated non-preview request would
# otherwise starve previews. Queued (pending) requests are likewise not
- # counted; a genuinely queued Studio request is protected by the swap
+ # counted; a genuinely queued Unsloth request is protected by the swap
# reject (it wakes to a retryable 503 rather than the swapped-in model).
if other_admitted_inference_count() > 0:
untrack_current_request(scope)
@@ -7493,13 +7493,13 @@ async def load_model_for_preview(
if same_target:
# The resident model already serves this exact checkpoint, so
# borrow it as-is instead of reloading with bare preview settings
- # (which would reconfigure/restart an idle Studio-owned GGUF,
- # #5401). Ownership is unchanged: Studio's model stays Studio's, a
+ # (which would reconfigure/restart an idle Unsloth-owned GGUF,
+ # #5401). Ownership is unchanged: Unsloth's model stays Unsloth's, a
# preview-owned one stays preview-owned.
return
# A real load reclaims the GPU for chat (_load_model_impl's acquire_for(CHAT)),
# which evicts a resident Images/Video pipeline -- unloading the engine out from
- # under an in-flight Studio generation. Those routes never reach
+ # under an in-flight Unsloth generation. Those routes never reach
# note_admitted_inference (they don't touch the llama slot), and a video clip
# generates in the background after its POST returns, so the admitted-count guard
# above sees nothing; gate on GPU ownership instead, which is exactly what the
@@ -7518,16 +7518,16 @@ async def load_model_for_preview(
raise HTTPException(
status_code = 503,
detail = (
- "Studio is using the GPU for image or video generation. "
+ "Unsloth is using the GPU for image or video generation. "
"Unload that model before using this preview."
),
headers = {"Retry-After": "10"},
)
# _load_model_impl clears the preview marker mid-load (it reclaims the
- # slot for Studio). If the load then fails while the prior model is
+ # slot for Unsloth). If the load then fails while the prior model is
# still resident (e.g. a GPU-selection or pre-spawn error), leaving the
# marker cleared would make the next preview for another checkpoint see
- # that still-preview model as Studio-owned and 503. Restore the prior
+ # that still-preview model as Unsloth-owned and 503. Restore the prior
# ownership on failure; only a successful load takes the new marker.
prior_marker = _get_preview_resident()
loaded_ok = False
@@ -7542,7 +7542,7 @@ async def load_model_for_preview(
current_request_counted = True,
# Same active-generation gate load_model_gated applies, which the
# preview would otherwise bypass by calling the impl directly. Never
- # forced: a public preview must refuse rather than stop Studio chats.
+ # forced: a public preview must refuse rather than stop Unsloth chats.
on_reload_confirmed = lambda *, cancel: _raise_or_cancel_active_generations(
force = False,
action = "Loading a model",
@@ -7556,7 +7556,7 @@ async def load_model_for_preview(
raise HTTPException(
status_code = 503,
detail = (
- "Studio is using the GPU for image or video generation. "
+ "Unsloth is using the GPU for image or video generation. "
"Unload that model before using this preview."
),
headers = {"Retry-After": "10"},
@@ -7749,7 +7749,7 @@ def _remote_gguf_companion_bytes(
# What an unreadable remote drafter costs the guard. Sized to the largest drafter
-# class Studio knows of (a DSpark sidecar is about 11 GB) rather than a typical one,
+# class Unsloth knows of (a DSpark sidecar is about 11 GB) rather than a typical one,
# since --spec-draft-hf names any repo and over-estimating is this guard's direction.
# Only reached when the listing cannot be read, where llama-server may still open the
# repo from the local HF cache and make every one of those bytes resident.
@@ -7860,7 +7860,7 @@ def _cached_repo_gguf_bytes(repo: str, hint: str = "") -> int:
from core.inference.llama_cpp import _gguf_extra_shards
from utils.models.drafters import dflash_budget_bytes
- # The cache Studio is pointed at now, not the one huggingface_hub resolved at
+ # The cache Unsloth is pointed at now, not the one huggingface_hub resolved at
# import: a moved cache is where the drafter that will load actually is.
try:
from utils.hf_cache_settings import active_hf_hub_cache
@@ -8205,12 +8205,12 @@ def _estimate_gguf_required_gb(
# still arrive by a route this cannot see.
_extras_own_draft_path = _extra_args_mtp_draft_path(llama_extra_args, env = {})
# An extras draft path wins whether or not they own --spec-type: the launch
- # appends the caller's flags after Studio's, so last-wins leaves exactly one
+ # appends the caller's flags after Unsloth's, so last-wins leaves exactly one
# --model-draft resident. It is charged as _extras_bytes below, so charging
# the repository's sidecar too is a double count that 409s a load that fits.
_extras_own_drafter = bool(_extras_own_draft_path)
# -ngld 0 / --spec-draft-device cpu applies to whichever separate drafter
- # launches, Studio's included, so none of them belongs in a VRAM budget. An
+ # launches, Unsloth's included, so none of them belongs in a VRAM budget. An
# embedded head ignores draft-only flags and is inside the weights anyway.
_draft_pinned_to_cpu = _extra_args_draft_offloaded_to_cpu(llama_extra_args, env = os.environ)
_forced_dspark = bool(
@@ -8317,7 +8317,7 @@ def _estimate_gguf_required_gb(
# switch so the inherited-projector gate below can read it either way.
_dv_opens_projector = True
if extra_args_disable_mmproj(llama_extra_args):
- # llama_cpp.py skips the resolve entirely, so nothing of Studio's own goes
+ # llama_cpp.py skips the resolve entirely, so nothing of Unsloth's own goes
# on the command line and nothing is downloaded. (It does NOT unload an
# inherited path, which is charged below.)
_dv_opens_projector = False
@@ -8343,7 +8343,7 @@ def _estimate_gguf_required_gb(
elif dflash_requested:
# Only when extras own --spec-type: _build_speculative_flags then
# returns before discovery's sidecar is emitted, so llama-server opens
- # theirs alone. Without it Studio emits its own too and which lands is
+ # theirs alone. Without it Unsloth emits its own too and which lands is
# unknown, so both stay charged.
_manual_draft = (
_extra_args_mtp_draft_path(llama_extra_args, env = {})
@@ -8406,14 +8406,14 @@ def _estimate_gguf_required_gb(
# A projector this config never named: llama-server reads LLAMA_ARG_MMPROJ
# straight into params.mmproj.path, so an inherited one loads and takes VRAM
- # that nothing above charged. Two things stop it, and only two. Studio's own
+ # that nothing above charged. Two things stop it, and only two. Unsloth's own
# --mmproj overrides the env, argv being applied after set_env, so exactly one
# file loads and charging both bills one projector twice. And under the vision
# switch the loader keeps only an audio-only file, asked through the loader's
# own helper so the two cannot answer differently.
#
# NOT the extras opt-out on its own. --no-mmproj / --no-mmproj-auto set
- # params.no_mmproj, which stops Studio resolving a projector of its own and
+ # params.no_mmproj, which stops Unsloth resolving a projector of its own and
# stops the HF auto-download, but server-context.cpp gates the load on a
# non-empty mmproj.path and never reads that field. So an inherited path loads
# straight through the opt-out. What the opt-out does do is empty the command
@@ -8427,7 +8427,7 @@ def _estimate_gguf_required_gb(
# argv overrides the env, but only when there IS argv: a configured projector
# the switch suppressed, or extras that skipped the resolve, both leave the
# command line empty and let the inherited path load after all. So this asks
- # what Studio actually emits, not merely what the config names -- the same
+ # what Unsloth actually emits, not merely what the config names -- the same
# answer _sized_attrs above was built from, so the two cannot disagree about
# which single projector this launch opens.
_studio_mmproj_on_argv = bool(
@@ -9494,7 +9494,7 @@ def _resolve_inherited_extra_args(
# chat_template_override. A bundled family template (e.g. gemma-4) counts as
# a first-class template even when the request omits chat_template_override,
# so strip the inherited --chat-template-file then too -- else the stale arg
- # (appended last) shadows the bundled template while Studio reports its caps.
+ # (appended last) shadows the bundled template while Unsloth reports its caps.
fields_set = getattr(request, "model_fields_set", set())
stripped = strip_shadowing_flags(
stored_args,
@@ -10264,7 +10264,7 @@ async def _load_model_impl(
return None
api_monitor.discard(_load_event)
logger.info("Model already loaded (GGUF): %s, skipping reload", model_log_label)
- # A no-op Studio load of a preview-owned checkpoint still claims it.
+ # A no-op Unsloth load of a preview-owned checkpoint still claims it.
_set_preview_resident(None)
return _gguf_load_response(
llama_backend,
@@ -10302,7 +10302,7 @@ async def _load_model_impl(
) and _mlx_runtime_settings_match(backend, request):
api_monitor.discard(_load_event) # nothing loaded, no monitor row
logger.info(f"Model already loaded (Unsloth): {model_log_label}, skipping reload")
- # A no-op Studio load of a preview-owned checkpoint still claims it.
+ # A no-op Unsloth load of a preview-owned checkpoint still claims it.
_set_preview_resident(None)
inference_config = load_inference_config(backend.active_model_name)
_model_info = backend.models.get(backend.active_model_name, {})
@@ -10633,7 +10633,7 @@ async def _load_model_impl(
# A failed load can leave the prior preview checkpoint resident though the marker
# was cleared before teardown (a non-GGUF load unloads only the new entry; a GGUF load can
# raise before tearing down the old llama-server). Restore its ownership so a later
- # preview isn't 503'd against a model Studio never adopted. Guarded on the prior
+ # preview isn't 503'd against a model Unsloth never adopted. Guarded on the prior
# model still being resident, so it never mis-marks a torn-down/replaced model.
if _prior_preview_marker is not None and _loaded_slot_ident() == _prior_preview_marker:
_set_preview_resident(_prior_preview_marker)
@@ -11674,7 +11674,7 @@ def _install_breaks_exact_resume(run_id: str) -> bool:
return False
-# studio_router only: a Studio preflight, kept off the OpenAI-compatible /v1 mount.
+# studio_router only: an Unsloth preflight, kept off the OpenAI-compatible /v1 mount.
@studio_router.post("/transformers-upgrade-check", response_model = TransformersUpgradeCheckResponse)
async def check_transformers_upgrade_route(
request: TransformersUpgradeCheckRequest, current_subject: str = Depends(get_current_subject)
@@ -12305,7 +12305,7 @@ async def get_api_monitor(current_subject: str = Depends(get_current_subject)):
else:
operating_status = "idle"
# With request logging off, ``snapshot()`` returns an empty list -- the same shape
- # as a Studio that simply hasn't served a request yet. Signal the disabled state so
+ # as an Unsloth that simply hasn't served a request yet. Signal the disabled state so
# the UI can explain the empty list instead of claiming there was no API traffic.
return {
"status": operating_status,
@@ -12367,7 +12367,7 @@ async def generate_stream(
For vision models, provide image_base64 (base64-encoded image).
"""
# Enforce the preview-swap reject FIRST, before reading any backend state. If a public
- # preview loaded a different checkpoint while this native Studio request waited on the
+ # preview loaded a different checkpoint while this native Unsloth request waited on the
# keep-warm gate, the middleware flagged the scope; the loaded-model and image-capability
# checks below would otherwise run against the swapped-in model and return a hard 400
# instead of the intended retryable 503. generate_stream skips _maybe_auto_switch_model,
@@ -12478,7 +12478,7 @@ async def generate_stream(
# A backend sentinel (subprocess down, no active model, model being
# unloaded) delivered in-band under the already-sent 200. The stream ends
# cleanly, so flag it failed or the middleware reads this failed generation
- # as a successful Studio turn and claims a preview-owned model.
+ # as a successful Unsloth turn and claims a preview-owned model.
mark_response_failed(_gs_scope)
yield f"data: {json.dumps({'error': _friendly_gen_stream_error(chunk)})}\n\n"
yield "data: [DONE]\n\n"
@@ -12966,7 +12966,7 @@ async def _generate_tts_wav(
# Audio-capable backend confirmed. The middleware claims the slot on a 2xx, so no claim
# here: claiming before the audio backend runs could strand a preview-owned checkpoint
- # as Studio-owned if generation then fails.
+ # as Unsloth-owned if generation then fails.
# Apply per-model recommended sampling + any operator UNSLOTH_SAMPLING_* pin before
# generating, so `unsloth run --temperature` (and the other pins) and per-model
# recommendations reach audio (TTS) generation too, not just chat. The gen lambdas read
@@ -13149,7 +13149,7 @@ async def _external_tts_speech(body: AudioSpeechRequest, request: Request) -> Re
allow_saved_key = not _request_has_api_key(request),
prefer_saved_key = True,
)
- # The guard coordinates this process, while Studio can also be edited by
+ # The guard coordinates this process, while Unsloth can also be edited by
# another backend process. Provider updates write routing metadata before
# the replacement secret, so a final row check prevents an old URL from
# being paired with the newly written key.
@@ -14828,7 +14828,7 @@ async def _proxy_to_external_provider(
detail = "Either provider_id or provider_type is required for external provider routing.",
)
- # Studio's tools run on this host, so any provider whose wire format can
+ # Unsloth's tools run on this host, so any provider whose wire format can
# carry a tool schema out and a result back can use them. The capability is
# declared per provider type in the registry, not hardcoded here.
#
@@ -14850,7 +14850,7 @@ async def _proxy_to_external_provider(
and not _selects_only_provider_hosted_tools(payload, provider_type)
)
codex_studio_tool_loop = studio_tool_loop and provider_type == "openai_codex"
- # Studio's UI asks for the gate by permission_mode, not by confirm_tool_calls,
+ # Unsloth's UI asks for the gate by permission_mode, not by confirm_tool_calls,
# so reading the raw flag admits the exact request the local routes reject: a
# non-streaming permission_mode="ask" with the flag omitted proxies through
# with its tools live and no confirmation the caller explicitly asked for.
@@ -14936,7 +14936,7 @@ async def _proxy_to_external_provider(
if _request_has_api_key(request) and not _request_is_saved_credential_workflow(request):
raise HTTPException(
status_code = 403,
- detail = "ChatGPT subscriptions are available only to Studio UI and internal workflows.",
+ detail = "ChatGPT subscriptions are available only to Unsloth UI and internal workflows.",
)
if not payload.provider_id or payload.encrypted_api_key:
raise HTTPException(
@@ -15083,7 +15083,7 @@ async def _proxy_to_external_provider(
tools_on = _effective_enable_tools(payload) is True,
mcp_allowed = bool(payload.mcp_enabled),
)
- # The Studio loop owns its schemas. Do not also expose a caller-supplied
+ # The Unsloth loop owns its schemas. Do not also expose a caller-supplied
# catalog: Codex would return calls that this server is not authorized to run.
tool_payloads = studio_tool_payloads
# This path runs python/terminal locally too (disable_sandbox =
@@ -15333,7 +15333,7 @@ async def _proxy_to_external_provider(
# connection was already validated as an enabled saved one by
# research_runs._sanitize_config, and the key is verified against storage.
# Scoped to that one workflow rather than to "internal", because the other
- # internal key Studio mints is held by a user-authored recipe subprocess.
+ # internal key Unsloth mints is held by a user-authored recipe subprocess.
allow_saved_key = (
not _request_has_api_key(request) or _request_is_saved_credential_workflow(request)
),
@@ -15382,7 +15382,7 @@ async def _proxy_to_external_provider(
# `model_fields_set` tracks explicit-vs-default per request.
_top_k_explicit = payload.top_k if "top_k" in payload.model_fields_set else None
- # Studio-owned tool loop for every non-Codex provider that declares the
+ # Unsloth-owned tool loop for every non-Codex provider that declares the
# capability. The catalog comes from the same selector the local and Codex
# paths use, so an omitted enabled_tools means "all allowed built-ins" and an
# explicit empty list stays empty.
@@ -15439,10 +15439,10 @@ async def _proxy_to_external_provider(
response_format = _extract_response_format(payload),
)
if run_studio_tool_loop:
- # The Studio loop owns the tool surface for this turn. The caller's
+ # The Unsloth loop owns the tool surface for this turn. The caller's
# own catalog is dropped for the same reason the Codex path drops it
# (the model would return calls this server is not authorized to
- # run), and the hosted names Studio runs itself are withheld so the
+ # run), and the hosted names Unsloth runs itself are withheld so the
# provider's builtins do not double up on the local web_search.
# Hosted-only tools still ride along: Images and Fetch have their own
# toggles and no local stand-in, so dropping them would turn a lit
@@ -16221,7 +16221,7 @@ async def openai_chat_completions(
# ── Audio INPUT path: decode WAV and route to audio input generation ──
if payload.audio_base64 and model_info.get("has_audio_input"):
# This route re-listens to the recording and answers afresh, so there is
- # no boundary to resume from; the Studio UI already hides Continue here.
+ # no boundary to resume from; the Unsloth UI already hides Continue here.
if _continue_final_message(payload):
raise HTTPException(
status_code = 400,
@@ -19788,7 +19788,7 @@ async def serve_sandbox_file(
or image/svg+xml would be same-origin script execution. nosniff plus a
Content-Disposition filename is what makes serving them safe.
- Accepts auth via an Authorization header or a query token. Studio uses an
+ Accepts auth via an Authorization header or a query token. Unsloth uses an
authenticated fetch and object URL; query auth remains for older clients.
"""
# ── Authentication (header or query param) ──────────────────
@@ -20234,7 +20234,7 @@ async def openai_completions(request: Request, current_subject: str = Depends(ge
elif _pre is not _UNPARSEABLE_BODY:
# A valid JSON body that is not an object (e.g. [] or null) is rejected below as
# "Request body must be a JSON object"; reject it here, before the switch, so the
- # slot claim can't convert a preview-owned model to Studio-owned for a request
+ # slot claim can't convert a preview-owned model to Unsloth-owned for a request
# that never runs.
raise HTTPException(status_code = 400, detail = "Request body must be a JSON object")
@@ -20258,7 +20258,7 @@ async def openai_completions(request: Request, current_subject: str = Depends(ge
# GGUF is loaded and the body is valid. The middleware claims the slot on a successful
# 2xx, so no claim here: llama-server can still return a non-2xx for a valid body (e.g. a
# no-pooling error on /v1/embeddings against a non-embedding GGUF), so claiming before the
- # upstream response would strand a preview-owned checkpoint as Studio-owned.
+ # upstream response would strand a preview-owned checkpoint as Unsloth-owned.
_resolved_max_tokens = _effective_openai_max_tokens_from_values(body.get("max_tokens"))
body["max_tokens"] = (
@@ -20545,7 +20545,7 @@ async def openai_embeddings(request: Request, current_subject: str = Depends(get
elif _pre is not _UNPARSEABLE_BODY:
# A valid JSON body that is not an object (e.g. [] or null) is rejected below as
# "Request body must be a JSON object"; reject it here, before the switch, so the
- # slot claim can't convert a preview-owned model to Studio-owned for a request
+ # slot claim can't convert a preview-owned model to Unsloth-owned for a request
# that never runs.
raise HTTPException(status_code = 400, detail = "Request body must be a JSON object")
# Embeddings is a model-bearing inference path too, so honor auto-switch. Unlike
@@ -20572,7 +20572,7 @@ async def openai_embeddings(request: Request, current_subject: str = Depends(get
# GGUF is loaded and the body is valid. The middleware claims the slot on a successful
# 2xx, so no claim here: llama-server can still return a non-2xx for a valid body (e.g. a
# no-pooling error on /v1/embeddings against a non-embedding GGUF), so claiming before the
- # upstream response would strand a preview-owned checkpoint as Studio-owned.
+ # upstream response would strand a preview-owned checkpoint as Unsloth-owned.
target_url = f"{llama_backend.base_url}/v1/embeddings"
prompt_text = _flatten_monitor_prompt(body.get("input", ""))
@@ -22525,7 +22525,7 @@ async def openai_responses(
current_subject,
require_vision = _messages_have_image(messages),
# Streaming Responses require a GGUF backend and 400 in _responses_stream after this
- # switch; claiming here would strand a preview-owned model as Studio-owned for a
+ # switch; claiming here would strand a preview-owned model as Unsloth-owned for a
# request that never generates. Defer to the middleware, which claims on a 2xx.
claim_resident = False,
)
@@ -27155,7 +27155,7 @@ async def _openai_passthrough_non_streaming_upstream(
# ──────────────────────────────────────────────────────────────────────────
-# Diffusion (local text-to-image). Studio-only routes (studio_router is not mounted under /v1); the backend is in-process and
+# Diffusion (local text-to-image). Unsloth-only routes (studio_router is not mounted under /v1); the backend is in-process and
# synchronous, so blocking calls are offloaded with asyncio.to_thread. Single error boundary: the backend raises, we map to HTTP.
# ──────────────────────────────────────────────────────────────────────────
@@ -27308,7 +27308,7 @@ async def diffusion_download_plan(
# weights -- and then got the predictable 409. Both checks are network-free.
# Not while a trainer holds the GPU. An UNCACHED scheme sends
# assert_precision_available into a quantise-and-matmul smoke probe, which initialises
- # CUDA and allocates in the Studio process -- the very thing the load route's training
+ # CUDA and allocates in the Unsloth process -- the very thing the load route's training
# guard exists to prevent, and the plan runs BEFORE that guard has had a say. Staging
# files during training is legitimate and needs no GPU, so the plan is answered without
# the precision check; /images/load still refuses the same pick afterwards.
@@ -27882,7 +27882,7 @@ async def get_gallery_image_file(
):
from core.inference import image_gallery
- # Ownership-gate the serve like delete/clear: resolve only a Studio-owned PNG, so a guessed stem cannot stream out a foreign file.
+ # Ownership-gate the serve like delete/clear: resolve only an Unsloth-owned PNG, so a guessed stem cannot stream out a foreign file.
path = await asyncio.to_thread(image_gallery.owned_image_path, image_id)
if path is None:
raise HTTPException(status_code = 404, detail = "Image not found.")
@@ -28140,7 +28140,7 @@ async def cancel_diffusion_generation(current_subject: str = Depends(get_current
# ──────────────────────────────────────────────────────────────────────────
# OpenAI-compatible images API (POST /v1/images/generations). The inference router is mounted at both /api/inference and /v1, so this
-# also answers /v1/images/generations for OpenAI clients. The Studio Image tab uses the richer /images/generate above; this is the spec shape.
+# also answers /v1/images/generations for OpenAI clients. The Unsloth Image tab uses the richer /images/generate above; this is the spec shape.
# ──────────────────────────────────────────────────────────────────────────
@@ -28376,7 +28376,7 @@ async def _generate_openai_images(
raise HTTPException(status_code = 503, detail = _NO_IMAGE_MODEL_MSG)
# The activation refusal is the one message here written FOR the caller: it names the
# resolution, the budget and the remedies. Sanitising it into "Image generation failed."
- # left an OpenAI client with a 500 for a request only they can fix, while the Studio
+ # left an OpenAI client with a 500 for a request only they can fix, while the Unsloth
# route showed the reason. Typed, so no other ValueError's raw text escapes.
if isinstance(exc, ImageActivationShortfallError):
raise HTTPException(
diff --git a/studio/backend/routes/llama.py b/studio/backend/routes/llama.py
index e956cc7cae9..cb81044bcde 100644
--- a/studio/backend/routes/llama.py
+++ b/studio/backend/routes/llama.py
@@ -205,7 +205,7 @@ class LlamaBackendStatusResponse(BaseModel):
"auto",
description = (
"The recorded choice; 'auto' means hardware detection. A name this "
- "build does not know was written by a newer Studio and is read-only."
+ "build does not know was written by a newer Unsloth and is read-only."
),
)
selection_applied: bool = Field(
diff --git a/studio/backend/routes/openai_codex_auth.py b/studio/backend/routes/openai_codex_auth.py
index 4db0a340453..dfc2f57d422 100644
--- a/studio/backend/routes/openai_codex_auth.py
+++ b/studio/backend/routes/openai_codex_auth.py
@@ -181,7 +181,7 @@ async def list_subscription_models(
except (codex_auth.CodexAuthError, codex_client.CodexReauthorizationError) as exc:
# resolve_access has already marked the connection as needing reauthorization, so
# say so in the answer rather than through a 401: the client's authFetch reads
- # every 401 as an expired Studio session, refreshes it and retries, and the retry
+ # every 401 as an expired Unsloth session, refreshes it and retries, and the retry
# would come back as a plain curated list with the connection looking healthy.
# A source the picker does not treat as authoritative carries the signal instead.
logger.info(
diff --git a/studio/backend/routes/profile_stats.py b/studio/backend/routes/profile_stats.py
index 46e98277c9f..c7fb370b420 100644
--- a/studio/backend/routes/profile_stats.py
+++ b/studio/backend/routes/profile_stats.py
@@ -36,7 +36,7 @@ async def get_profile_stats(
) -> dict[str, Any]:
"""Usage stats from this install, with API receipts scoped to the caller.
- Studio chat and training history is legacy install-wide data because those
+ Unsloth chat and training history is legacy install-wide data because those
tables have no subject column. Authenticated external API usage is always
filtered to ``current_subject`` and cannot cross accounts.
diff --git a/studio/backend/routes/research_runs.py b/studio/backend/routes/research_runs.py
index 04730cf7cc1..3618870ed5c 100644
--- a/studio/backend/routes/research_runs.py
+++ b/studio/backend/routes/research_runs.py
@@ -232,7 +232,7 @@ def _sanitize_config(payload: CreateResearchRun, thread: dict) -> dict:
):
raise HTTPException(
status_code = 400,
- detail = "Durable research requires a saved connection whose provider supports Studio tools",
+ detail = "Durable research requires a saved connection whose provider supports Unsloth tools",
)
provider = providers_db.get_provider(provider_id)
if provider is None:
@@ -242,14 +242,14 @@ def _sanitize_config(payload: CreateResearchRun, thread: dict) -> dict:
# connection is stored under the backend "openai" type but surfaced to
# the UI as "custom" / "vllm" / "ollama" / "llama_cpp", and the composer
# offers research for those aliases because their registry entries
- # declare Studio tools. Comparing the two for equality therefore 400s
+ # declare Unsloth tools. Comparing the two for equality therefore 400s
# exactly the connections this path exists to serve, while the ordinary
# inference route already overrides the type from the row.
saved_provider_type = provider["provider_type"]
if not provider_runs_local_tools(saved_provider_type) or not provider["is_enabled"]:
raise HTTPException(
status_code = 400,
- detail = "Durable research requires an enabled connection whose provider supports Studio tools",
+ detail = "Durable research requires an enabled connection whose provider supports Unsloth tools",
)
request["providerType"] = saved_provider_type
diff --git a/studio/backend/routes/settings.py b/studio/backend/routes/settings.py
index 7e11cd5c217..5391c970a65 100644
--- a/studio/backend/routes/settings.py
+++ b/studio/backend/routes/settings.py
@@ -1052,7 +1052,7 @@ def update_llama_cpp_path(
current_subject: str = Depends(get_current_subject),
via_api_key: bool = Depends(authenticated_via_api_key),
) -> LlamaCppPathResponse:
- # Only the interactive Studio UI may change this executable setting.
+ # Only the interactive Unsloth UI may change this executable setting.
require_ui_session(via_api_key)
try:
set_custom_llama_cpp_path(payload.path)
diff --git a/studio/backend/routes/training.py b/studio/backend/routes/training.py
index f14c16e63d2..df6338ca6db 100644
--- a/studio/backend/routes/training.py
+++ b/studio/backend/routes/training.py
@@ -134,7 +134,7 @@ class TrainingStopRequest(PydanticBaseModel):
class TrainingResetRequest(PydanticBaseModel):
- # Stays optional: every Studio build before the train-page rework posts /reset with no
+ # Stays optional: every Unsloth build before the train-page rework posts /reset with no
# body, and those clients only ever reset a finished run. The backend refuses an
# unscoped reset that would touch a LIVE run instead, so the guard costs no compat.
expected_job_id: Optional[str] = PydanticField(
@@ -2646,7 +2646,7 @@ def _preflight_gated_base(base_model: str, hf_token: Optional[str]) -> None:
status_code = 400,
detail = (
f"Access to '{repo}' is gated or unauthorized. Accept the model's license "
- f"on its Hugging Face page and add your HF token in Studio settings, then "
+ f"on its Hugging Face page and add your HF token in Unsloth settings, then "
f"try again."
),
)
@@ -2729,7 +2729,7 @@ async def start_diffusion_training(
detail = (
"Cannot start diffusion (Images) training over the API while an inference "
"request is in progress. Wait for it to finish, or start training from the "
- "Studio UI."
+ "Unsloth UI."
),
)
@@ -3345,7 +3345,7 @@ def _dataset_folder_is_case_insensitive(folder: Path) -> bool:
Probed once per process against the real filesystem rather than keyed off ``sys.platform``:
NTFS and the default APFS fold case, but macOS also ships case-SENSITIVE APFS volumes and a
- Linux host can keep its Studio home on an exFAT/NTFS mount. A failed probe answers False,
+ Linux host can keep its Unsloth home on an exFAT/NTFS mount. A failed probe answers False,
which keeps the case-sensitive behaviour (two names, two files) unchanged.
"""
global _DATASETS_CASE_INSENSITIVE
@@ -3410,7 +3410,7 @@ async def upload_diffusion_dataset(
_interlock: None = Depends(diffusion_dataset_interlock),
):
"""Upload training images (and optional caption .txt / metadata.jsonl files) into a
- named folder under the Studio datasets root, creating it if needed. Repeat uploads
+ named folder under the Unsloth datasets root, creating it if needed. Repeat uploads
into the same name accumulate, so large datasets can arrive in batches. The returned
name can be passed directly as ``data_dir`` to /diffusion/start."""
import os
@@ -3626,7 +3626,7 @@ _MAX_CAPTION_CHARS = 2000
def _resolve_dataset_folder(name: str, *, must_exist: bool = True) -> Path:
- """Validate ``name`` (single component, no traversal) and resolve it under the Studio
+ """Validate ``name`` (single component, no traversal) and resolve it under the Unsloth
datasets root. 404 when a read target is missing."""
from utils.paths import datasets_root
@@ -3646,7 +3646,7 @@ def _resolve_dataset_folder(name: str, *, must_exist: bool = True) -> Path:
except (OSError, ValueError):
raise HTTPException(
status_code = 400,
- detail = f"Dataset '{cleaned}' escapes the Studio datasets directory.",
+ detail = f"Dataset '{cleaned}' escapes the Unsloth datasets directory.",
)
return folder
@@ -4229,7 +4229,7 @@ async def import_diffusion_dataset_example(
current_subject: str = Depends(get_current_subject),
_interlock: None = Depends(diffusion_dataset_interlock),
):
- """Materialize a curated example dataset into a Studio dataset folder (images + .txt
+ """Materialize a curated example dataset into an Unsloth dataset folder (images + .txt
captions), ready to train. Idempotent: a folder that already holds images is returned
as-is rather than re-downloaded."""
_require_diffusion_dataset_mutable()
diff --git a/studio/backend/routes/video.py b/studio/backend/routes/video.py
index ee544b4a986..6e417607c92 100644
--- a/studio/backend/routes/video.py
+++ b/studio/backend/routes/video.py
@@ -151,7 +151,7 @@ async def video_download_plan(
# unsupported host paid for tens of GB of weights to be told afterwards. Network-free.
#
# Skipped while a trainer holds the GPU: an uncached scheme takes this into a
- # quantise-and-matmul smoke probe that initialises CUDA in the Studio process, and the
+ # quantise-and-matmul smoke probe that initialises CUDA in the Unsloth process, and the
# plan runs before the load's training guard can refuse. Staging needs no GPU.
# Ranking opens a CUDA context per candidate, which the training guard exists to prevent,
# so the RANKING waits until training is known idle. Validating and translating the ids
@@ -563,7 +563,7 @@ async def get_gallery_video_file(
):
from core.inference import video_gallery
- # Ownership-gate the serve like delete/clear: resolve only a Studio-owned MP4, so a guessed stem cannot stream out a foreign clip.
+ # Ownership-gate the serve like delete/clear: resolve only an Unsloth-owned MP4, so a guessed stem cannot stream out a foreign clip.
path = await asyncio.to_thread(video_gallery.owned_video_path, video_id)
if path is None:
raise HTTPException(status_code = 404, detail = "Video not found.")
diff --git a/studio/backend/run.py b/studio/backend/run.py
index 58bcb21f68a..d370aac2e9f 100644
--- a/studio/backend/run.py
+++ b/studio/backend/run.py
@@ -162,7 +162,7 @@ def public_check_disabled() -> bool:
"""True when the operator has turned off the third-party startup lookups.
On a wildcard bind Unsloth asks ifconfig.me for the public IP and check-host.net
- whether the port is reachable. Both are useful for sharing a Studio but both tell
+ whether the port is reachable. Both are useful for sharing an Unsloth but both tell
an outside service this machine is running one, which lab and privacy-sensitive
deployments do not want (#7307 Problem 8). Set the var to opt out.
"""
@@ -352,7 +352,7 @@ def _print_localhost_ipv6_mismatch_warning(local_url: str, port: int) -> None:
print(
f"{warn_c} Warning: localhost resolves to IPv6 (::1), but Unsloth "
- f"Studio is listening on 127.0.0.1 only. Open {local_url} instead of "
+ f"Unsloth is listening on 127.0.0.1 only. Open {local_url} instead of "
f"http://localhost:{port}.{reset}",
flush = True,
)
@@ -539,9 +539,9 @@ def _tool_policy_notice(host: str, secure: bool, enable_tools: "Optional[bool]")
return "Server-side tools are DISABLED (--disable-tools)."
if enable_tools is None:
# This launcher installs no tools-on default (that is `unsloth studio
- # run`), so the request decides and the Studio UI sends its pills.
+ # run`), so the request decides and the Unsloth UI sends its pills.
return (
- "Server-side tools follow each request's enable_tools; the Studio UI's "
+ "Server-side tools follow each request's enable_tools; the Unsloth UI's "
"tool toggles decide. Pass --enable-tools to force them on for every "
"request."
)
@@ -1219,7 +1219,7 @@ def _live_sibling(records: "list", me: int, timed: "list") -> "int | None":
def live_sibling_backend() -> "int | None":
- """PID of another live Studio backend of this install, or None.
+ """PID of another live Unsloth backend of this install, or None.
Two of ours at once is a supported configuration: `_resolve_port` refuses
only the port one of ours already holds, and `_abort_already_running` tells
@@ -1846,7 +1846,7 @@ def _is_missing_watch_fd_thread(exc):
def _harden_console_close(stream):
- """Stop a displaced console stream's close() from aborting Studio startup.
+ """Stop a displaced console stream's close() from aborting Unsloth startup.
``_setup_server_disk_logging`` replaces ``sys.stdout``/``sys.stderr`` with a
tee. That changes the object identity of the console stream, so a third-party
@@ -2363,13 +2363,13 @@ def run_server(
from utils.process_lifetime import initialize_parent_lifetime, reap_recorded_children
initialize_parent_lifetime()
- # macOS has neither PR_SET_PDEATHSIG nor job objects, so a Studio that
+ # macOS has neither PR_SET_PDEATHSIG nor job objects, so an Unsloth that
# crashed left its sidecars running. Sweep before spawning anything: a
# leftover holds VRAM, a port, and the files an update has to replace.
try:
reaped = reap_recorded_children()
if reaped:
- logger.warning("Reaped %d orphan(s) from a previous Studio: %s", len(reaped), reaped)
+ logger.warning("Reaped %d orphan(s) from a previous Unsloth: %s", len(reaped), reaped)
except Exception as e:
logger.warning("Could not sweep orphans from a previous run: %s", e)
@@ -2993,7 +2993,7 @@ def _build_arg_parser():
default = _PARALLEL_DEFAULT_PLAIN,
help = (
f"llama-server parallel decode slots ({_PARALLEL_MIN}..{_PARALLEL_MAX}). "
- f"Default {_PARALLEL_DEFAULT_PLAIN}. The Studio run settings "
+ f"Default {_PARALLEL_DEFAULT_PLAIN}. The Unsloth run settings "
"(Parallel Slots) override it per load."
),
)
diff --git a/studio/backend/state/tool_policy.py b/studio/backend/state/tool_policy.py
index aa6cbac9fbd..bab612eae7c 100644
--- a/studio/backend/state/tool_policy.py
+++ b/studio/backend/state/tool_policy.py
@@ -17,7 +17,7 @@ The OVERRIDE (`set_tool_policy`) comes from an explicit `--enable-tools`/
The DEFAULT (`set_tool_policy_default`) is what an omitted `enable_tools` falls
back to. `unsloth studio run` installs True for every bind, `--secure` included,
so a plain request to a tool-capable model can use tools. It is only a default:
-a request that says `enable_tools: false` (what the Studio UI sends with its tool
+a request that says `enable_tools: false` (what the Unsloth UI sends with its tool
pills off) turns them off, which the override deliberately would not.
No other launcher installs it. `unsloth studio`, the desktop app and Colab leave
diff --git a/studio/backend/storage/api_usage_db.py b/studio/backend/storage/api_usage_db.py
index 6b65193460e..62958b7b6f4 100644
--- a/studio/backend/storage/api_usage_db.py
+++ b/studio/backend/storage/api_usage_db.py
@@ -165,7 +165,7 @@ def record_api_usage(receipt: ApiUsageReceipt) -> bool:
if not _is_busy_error(exc) or attempt + 1 == _WRITE_RETRIES:
raise
# The worker is the only production writer of these receipts. A
- # short bounded backoff lets unrelated Studio transactions finish
+ # short bounded backoff lets unrelated Unsloth transactions finish
# without ever holding up the inference/streaming caller.
_sleep_after_busy(min(0.01 * (2**attempt), _WORKER_BUSY_RETRY_SECONDS))
@@ -243,7 +243,7 @@ class ApiUsageWriter:
break
# record_api_usage already made its bounded fast retries.
# Retain this accepted item at the head of the single
- # writer until a normal long Studio transaction releases
+ # writer until a normal long Unsloth transaction releases
# SQLite. The stop sentinel remains behind it, so final
# shutdown drains rather than silently dropping usage.
busy_failures += 1
diff --git a/studio/backend/storage/credential_secrets.py b/studio/backend/storage/credential_secrets.py
index da49836586d..77d5eac57a2 100644
--- a/studio/backend/storage/credential_secrets.py
+++ b/studio/backend/storage/credential_secrets.py
@@ -3,7 +3,7 @@
"""Encrypted installation-wide credential persistence in ``studio.db``.
-Studio is a single-user local application. Credentials belong to the installation,
+Unsloth is a single-user local application. Credentials belong to the installation,
not to an authenticated subject. The AES key lives separately in auth.db and the
credential kind/scope are authenticated so ciphertext rows cannot be swapped.
"""
diff --git a/studio/backend/storage/profile_stats_db.py b/studio/backend/storage/profile_stats_db.py
index d56b302d867..477b4ee9edd 100644
--- a/studio/backend/storage/profile_stats_db.py
+++ b/studio/backend/storage/profile_stats_db.py
@@ -653,7 +653,7 @@ def compute_profile_stats(
) -> dict[str, Any]:
"""Aggregate profile statistics, subject-scoping only external API usage.
- Legacy Studio chat and training history is install-wide because those rows
+ Legacy Unsloth chat and training history is install-wide because those rows
have no authenticated owner. An empty subject intentionally sees no API
receipts, keeping non-route callers fail-closed.
"""
diff --git a/studio/backend/storage/providers_db.py b/studio/backend/storage/providers_db.py
index df000473df9..5d49bef2fb7 100644
--- a/studio/backend/storage/providers_db.py
+++ b/studio/backend/storage/providers_db.py
@@ -8,7 +8,7 @@ per-function connections). API keys are NOT stored here: they live only in
the browser (localStorage) and are sent encrypted per-request.
Enabled model selections and discovered catalog IDs are stored server-side so
-remote Studio clients see the same connection state (#7281).
+remote Unsloth clients see the same connection state (#7281).
"""
from __future__ import annotations
diff --git a/studio/backend/storage/studio_db.py b/studio/backend/storage/studio_db.py
index 74664097da5..7d10c2722eb 100644
--- a/studio/backend/storage/studio_db.py
+++ b/studio/backend/storage/studio_db.py
@@ -3012,7 +3012,7 @@ def _mark_chat_attachment_inventory_clean(conn: sqlite3.Connection) -> None:
def _rebuild_chat_attachment_inventory(conn: sqlite3.Connection) -> None:
- """Rebuild after schema upgrade or a write from an older Studio build."""
+ """Rebuild after schema upgrade or a write from an older Unsloth build."""
conn.execute("DELETE FROM chat_attachment_inventory")
tombstones: dict[tuple[str, str], set[str]] = {}
for row in conn.execute(
diff --git a/studio/backend/tests/conftest.py b/studio/backend/tests/conftest.py
index 468b2778a34..b7935300f07 100644
--- a/studio/backend/tests/conftest.py
+++ b/studio/backend/tests/conftest.py
@@ -276,7 +276,7 @@ def _empty_hf_hub_cache(tmp_path_factory):
def _hf_cache_is_empty(_empty_hf_hub_cache, monkeypatch):
"""Point BOTH hub-cache roots at an empty dir, so the suite is host independent.
- Studio pins its live setting out of this env snapshot; huggingface_hub falls back to
+ Unsloth pins its live setting out of this env snapshot; huggingface_hub falls back to
``constants.HF_HUB_CACHE``. A dev holding FLUX.1-dev otherwise watches its files leave a
download plan AND the mirror swap decline. Pinned at the ROOT, not by stubbing a probe: that
reaches only one of the four cache reads, and ``_upstream_is_cached`` walks the tree itself.
diff --git a/studio/backend/tests/log_budget/replay.py b/studio/backend/tests/log_budget/replay.py
index 187d0e6fba3..63b505e0716 100644
--- a/studio/backend/tests/log_budget/replay.py
+++ b/studio/backend/tests/log_budget/replay.py
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-"""Replay a Studio session through the real middleware in virtual time.
+"""Replay an Unsloth session through the real middleware in virtual time.
No sleeping and no wall clock. The middleware takes its timestamps from
``time.perf_counter`` in its own module namespace, so swapping that namespace for a clock
diff --git a/studio/backend/tests/log_budget/session.py b/studio/backend/tests/log_budget/session.py
index 32bf0739485..5d6825dd63e 100644
--- a/studio/backend/tests/log_budget/session.py
+++ b/studio/backend/tests/log_budget/session.py
@@ -1,14 +1,14 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-"""What an idle Studio actually asks for, and how often.
+"""What an idle Unsloth actually asks for, and how often.
Every path the middleware classifies has to appear here with a poll period. That is the
whole mechanism: you cannot quiet a path without saying how often it is polled, and you
cannot start polling a path without classifying it. ``test_log_budget`` checks both
directions, so this file and ``loggers/handlers.py`` cannot drift apart silently.
-Periods marked "measured" come from driving two real Studio instances for twelve minutes
+Periods marked "measured" come from driving two real Unsloth instances for twelve minutes
and reading the access log back. The rest are the interval the UI declares at its call
site, and are marked "declared"; they are used identically by the replay and by the
expectation, so an imprecise one costs realism in the global envelope, never correctness of
@@ -117,7 +117,7 @@ KNOWN_UNCLASSIFIED_POLLS: frozenset[str] = frozenset()
# class formula perfectly and still push the total up, which is exactly what happened to
# /api/liveness, whose 15s probe sat in the 300ms burst class and logged every single time.
#
-# Raising either of these is a product decision about how much Studio is allowed to write.
+# Raising either of these is a product decision about how much Unsloth is allowed to write.
# It is not a knob to turn because a test went red. The class formulas tell you whether the
# suppression rules are being honoured; these tell you whether the result is acceptable.
#
diff --git a/studio/backend/tests/manual/windows_rocm_vram_check.py b/studio/backend/tests/manual/windows_rocm_vram_check.py
index 20e52c0a5eb..3f09c407a79 100644
--- a/studio/backend/tests/manual/windows_rocm_vram_check.py
+++ b/studio/backend/tests/manual/windows_rocm_vram_check.py
@@ -18,7 +18,7 @@ This answers three questions on a real Windows ROCm box:
no spawns.
3. What do the Windows-only gates actually evaluate to?
-Run from ``studio/backend`` with the Studio venv's python::
+Run from ``studio/backend`` with the Unsloth venv's python::
python tests/manual/windows_rocm_vram_check.py --gib 4
diff --git a/studio/backend/tests/test_anthropic_messages.py b/studio/backend/tests/test_anthropic_messages.py
index cc867535122..670e2b46cd3 100644
--- a/studio/backend/tests/test_anthropic_messages.py
+++ b/studio/backend/tests/test_anthropic_messages.py
@@ -3622,7 +3622,7 @@ def assert_anthropic_stream_conformant(lines):
for name, data in events[1:]:
assert data.get("type") == name, f"event {name} carries data.type {data.get('type')}"
if name in ("ping", "tool_result"):
- # tool_result is Studio's own event for a server-executed tool; real
+ # tool_result is Unsloth's own event for a server-executed tool; real
# SDKs ignore it, and it must never claim a content block index.
assert "index" not in data, "tool_result must not consume a block index"
continue
diff --git a/studio/backend/tests/test_api_monitor.py b/studio/backend/tests/test_api_monitor.py
index e3bbb99897e..9d95fa66e0c 100644
--- a/studio/backend/tests/test_api_monitor.py
+++ b/studio/backend/tests/test_api_monitor.py
@@ -536,7 +536,7 @@ def test_api_monitor_clear_is_scoped_to_one_subject():
def test_api_monitor_records_whether_the_caller_used_an_api_key():
- # Studio's chat hits these endpoints on a JWT, and the panel auto-opens off this flag.
+ # Unsloth's chat hits these endpoints on a JWT, and the panel auto-opens off this flag.
monitor = ApiMonitor(max_entries = 4)
ui = monitor.start(
endpoint = "/api/inference/chat",
diff --git a/studio/backend/tests/test_audio_token_detection.py b/studio/backend/tests/test_audio_token_detection.py
index 8a31cf86432..8276fcc0f2a 100644
--- a/studio/backend/tests/test_audio_token_detection.py
+++ b/studio/backend/tests/test_audio_token_detection.py
@@ -183,7 +183,7 @@ def test_an_offline_miss_is_not_reprobed_on_every_poll(monkeypatch, tmp_path):
def test_the_offline_miss_expires_so_a_later_download_is_seen(monkeypatch):
"""Bounded, not permanent: the base may be downloaded, or a training run may finish
- writing the tokenizer it was missing, and neither restarts Studio."""
+ writing the tokenizer it was missing, and neither restarts Unsloth."""
from utils.models import model_config
monkeypatch.setattr(model_config, "_audio_detection_cache", {})
diff --git a/studio/backend/tests/test_auto_offload_ctx_fit_floor_coupling.py b/studio/backend/tests/test_auto_offload_ctx_fit_floor_coupling.py
index b53aee690b8..56b75615d8a 100644
--- a/studio/backend/tests/test_auto_offload_ctx_fit_floor_coupling.py
+++ b/studio/backend/tests/test_auto_offload_ctx_fit_floor_coupling.py
@@ -158,7 +158,7 @@ def test_the_floor_is_the_only_thing_keeping_the_fallback_out_of_placement(
assert outcome["awarded"] is expect_award
if expect_award:
- # Residency awarded: Studio owns placement and llama.cpp's fitter is off.
+ # Residency awarded: Unsloth owns placement and llama.cpp's fitter is off.
assert outcome["fit"] == "off"
assert outcome["devices"] == (0,)
else:
diff --git a/studio/backend/tests/test_cached_gguf_routes.py b/studio/backend/tests/test_cached_gguf_routes.py
index f3f820ca2a5..decf5fdd2fc 100644
--- a/studio/backend/tests/test_cached_gguf_routes.py
+++ b/studio/backend/tests/test_cached_gguf_routes.py
@@ -4252,7 +4252,7 @@ def test_failed_hub_context_follows_the_cache_the_variants_were_read_from(monkey
def test_switching_cache_storage_does_not_join_a_stuck_scan(monkeypatch, tmp_path):
- """Pointing Studio at another cache has to start a fresh scan. Coalescing on the request
+ """Pointing Unsloth at another cache has to start a fresh scan. Coalescing on the request
alone made the new request wait on the scan wedged against the old volume."""
import storage.studio_db as studio_db
import utils.hf_cache_settings as hf_cache_settings
@@ -5565,7 +5565,7 @@ def test_a_pipeline_index_this_listing_cannot_read_leaves_the_model_untagged(tmp
def test_a_remote_code_pipeline_class_is_not_read_out_of_its_list_form(tmp_path):
"""A community pipeline whose code ships in its own repo writes
``["<module stem>", "<ClassName>"]`` here, which diffusers treats as remote code (it resolves
- the class with ``getattr`` only ``if isinstance(cls_name, str)``). Studio declines models that
+ the class with ``getattr`` only ``if isinstance(cls_name, str)``). Unsloth declines models that
need ``trust_remote_code``, so tagging one would advertise a model the load path refuses, after
the chat model has been evicted."""
from core.inference.diffusion_families import pipeline_class_from_index
@@ -6672,7 +6672,7 @@ def test_cached_model_rows_flag_a_diffusion_repo_this_backend_cannot_load(monkey
rows = {row["repo_id"]: row for row in models_route.cached_model_rows()}
row = rows["someuser/my-sdxl-finetune"]
- # Still listed, since Studio's Images picker consumes these rows; only chat excludes it.
+ # Still listed, since Unsloth's Images picker consumes these rows; only chat excludes it.
assert row["diffusers"] is True
# The trust rule leaves task None on purpose, which is why the flag is needed.
assert row.get("task") is None
diff --git a/studio/backend/tests/test_chat_load_during_training.py b/studio/backend/tests/test_chat_load_during_training.py
index 9e095910a55..973e2853e68 100644
--- a/studio/backend/tests/test_chat_load_during_training.py
+++ b/studio/backend/tests/test_chat_load_during_training.py
@@ -1396,7 +1396,7 @@ class TestEstimateGgufRequiredGb(unittest.TestCase):
guard refused an inference load that fits. Identity is the resolved path,
so a symlink or another spelling of the same file dedupes too. A drafter
somewhere else is charged instead of the discovered sidecar, not on top of
- it: the loader ranks the extras path ahead of Studio's and the launch
+ it: the loader ranks the extras path ahead of Unsloth's and the launch
appends the caller's flags last, so only one --model-draft is resident.
"""
import os
@@ -1833,7 +1833,7 @@ class TestEstimateGgufRequiredGb(unittest.TestCase):
def test_a_priced_remote_extras_drafter_is_not_charged_twice(self):
"""--spec-draft-hf names the drafter that actually loads, and it is now
priced from its own listing, so the target repository's sidecar must NOT
- be charged as well: _build_speculative_flags returns before Studio emits
+ be charged as well: _build_speculative_flags returns before Unsloth emits
that sidecar, so it never becomes resident and billing it 409s a load
that fits. (Before the remote repo was priced this test asserted the
opposite, which was the safe reading while the drafter was charged
@@ -2202,7 +2202,7 @@ class TestEstimateGgufRequiredGb(unittest.TestCase):
def test_a_bare_model_draft_overrides_the_repository_sidecar(self):
"""No --spec-type needed for the override to win: the loader ranks the
- extras draft path ahead of Studio's and the launch appends the caller's
+ extras draft path ahead of Unsloth's and the launch appends the caller's
flags last, so exactly one --model-draft is resident. Charging the repo's
sidecar as well 409s a load that fits."""
import tempfile
@@ -2240,7 +2240,7 @@ class TestEstimateGgufRequiredGb(unittest.TestCase):
def test_a_cpu_pinned_discovered_sidecar_is_not_charged_vram(self):
"""-ngld 0 applies to whichever separate drafter launches, including one
- Studio resolved itself with no draft path in the extras at all. It is then
+ Unsloth resolved itself with no draft path in the extras at all. It is then
host-resident, so charging it against the training job's VRAM 409s a load
that takes none."""
import tempfile
@@ -2830,7 +2830,7 @@ class TestEstimateGgufRequiredGb(unittest.TestCase):
self.assertAlmostEqual(r._estimate_gguf_kv_gb("m", 4096, None, 4), 16.0)
self.assertEqual(seen["n_parallel"], 4)
self.assertTrue(seen["kv_unified"])
- # User extras are appended after Studio's managed default.
+ # User extras are appended after Unsloth's managed default.
r._estimate_gguf_kv_gb("m", 4096, ["--no-kv-unified"], 4)
self.assertFalse(seen["kv_unified"])
# An older binary without the flag keeps separate KV streams.
diff --git a/studio/backend/tests/test_chat_thread_settings.py b/studio/backend/tests/test_chat_thread_settings.py
index f10d767e980..5465e35431b 100644
--- a/studio/backend/tests/test_chat_thread_settings.py
+++ b/studio/backend/tests/test_chat_thread_settings.py
@@ -202,7 +202,7 @@ def test_settings_column_is_added_to_an_existing_database(tmp_path, monkeypatch)
assert studio_db.get_chat_thread("thread-1")["settings"] == SETTINGS
-# A snapshot on disk outlives the build that wrote it. A newer Studio adding a
+# A snapshot on disk outlives the build that wrote it. A newer Unsloth adding a
# setting, widening an enum or raising a bound writes a blob this build has never
# seen, and it reaches the response model rather than the request one, so refusing
# it 500s the chat on open and takes the whole history export with it. The wire
diff --git a/studio/backend/tests/test_checkpoint_compaction.py b/studio/backend/tests/test_checkpoint_compaction.py
index c19ecc9a5ad..a2c4fd13449 100644
--- a/studio/backend/tests/test_checkpoint_compaction.py
+++ b/studio/backend/tests/test_checkpoint_compaction.py
@@ -280,7 +280,7 @@ def test_a_multiline_instruction_survives_being_read_back():
]
assert checkpoint._block_items(checkpoint.render_checkpoint([nested])) == [nested]
- # A flat block, no continuation indent, still reads line by line. It carries Studio's
+ # A flat block, no continuation indent, still reads line by line. It carries Unsloth's
# own header, which is what marks a block as ours; a foreign one is not read at all.
flat = (
checkpoint._OPEN
@@ -515,7 +515,7 @@ def test_a_process_with_tools_disabled_never_resets(monkeypatch):
def _memory_tool_branch():
- """A Studio branch as the client replays it after ONE search_conversation call."""
+ """An Unsloth branch as the client replays it after ONE search_conversation call."""
return [
{"role": "system", "content": "you are helpful"},
{"role": "user", "content": "what did I say about the dataset?"},
@@ -593,7 +593,7 @@ def test_a_real_client_tool_loop_still_takes_the_passthrough():
assert inference_route._only_studio_memory_tool_history(payload) is False
assert inference_route._takes_tool_passthrough(payload, _ToolCapableBackend()) is True
- # And a client catalog alongside Studio's own history is still the client's request.
+ # And a client catalog alongside Unsloth's own history is still the client's request.
with_catalog = ChatCompletionRequest(
model = "local",
messages = _memory_tool_branch(),
@@ -766,7 +766,7 @@ def test_only_a_checkpoint_fitted_request_is_told_the_conversation_was_reset():
def test_a_request_that_withdrew_the_tool_loop_never_resets(monkeypatch):
"""The process policy is not the only way `search_conversation` fails to arrive.
- Studio honours `tool_choice: "none"` twice over: the tool loop is suppressed, and the
+ Unsloth honours `tool_choice: "none"` twice over: the tool loop is suppressed, and the
request is excluded from the checkpoint repair that otherwise re-admits
search_conversation alone. A caller that sets it sets it every turn, so a reset would
hide the dropped turns behind a tool that never arrives. Same refusal as
@@ -1674,10 +1674,10 @@ def test_a_caller_owned_carried_forward_tag_is_left_alone():
"""The delimiter is prompt text, and prompt text belongs to whoever wrote it.
A caller whose own system prompt happens to use `<carried_forward>` had that section
- read as Studio's block: stripped on every reset, its bullet lines reintroduced further
+ read as Unsloth's block: stripped on every reset, its bullet lines reintroduced further
down as lower-authority quoted USER history, and anything not bullet-shaped deleted
outright. Silently rewriting a caller's system policy is worse than carrying nothing,
- so the block is recognised by the header Studio itself writes, not by the tag alone.
+ so the block is recognised by the header Unsloth itself writes, not by the tag alone.
"""
caller = (
"You are a support agent.\n"
@@ -1697,7 +1697,7 @@ def test_a_caller_owned_carried_forward_tag_is_left_alone():
assert (
"Escalate refunds over 500 dollars." in system
), "non-bullet lines of the caller's section were deleted"
- # And Studio's own block is still appended, and still read back on the next reset.
+ # And Unsloth's own block is still appended, and still read back on the next reset.
assert system.count("<carried_forward>") == 2
assert "STATUS::ZQXVARA123-ALPHA" in system
assert checkpoint._block_items(
@@ -1815,7 +1815,7 @@ def test_a_reset_that_no_longer_holds_stops_reopening_the_tool_loop(monkeypatch)
Reload a checkpointed thread with a bigger window and the whole branch fits again, so
the fit stops replaying the boundary and records no checkpoint. Scanning back to an
- older reset then forced the Studio tool loop open on every later turn, overriding
+ older reset then forced the Unsloth tool loop open on every later turn, overriding
enable_tools = false, and with it the n > 1 and non-streaming guards, to repair a
compaction that no longer exists.
"""
diff --git a/studio/backend/tests/test_child_lifetime_boundary.py b/studio/backend/tests/test_child_lifetime_boundary.py
index 0d41cb279f8..45754ed0b73 100644
--- a/studio/backend/tests/test_child_lifetime_boundary.py
+++ b/studio/backend/tests/test_child_lifetime_boundary.py
@@ -60,7 +60,7 @@ PARENT = textwrap.dedent(
argv = _get_shell_cmd('"%s" -c "%s"' % (sys.executable, payload))
kw = {}
if sys.argv[3] == "job":
- # The helper Studio's own spawns go through: PR_SET_PDEATHSIG on Linux,
+ # The helper Unsloth's own spawns go through: PR_SET_PDEATHSIG on Linux,
# nothing on macOS, job inheritance on Windows.
from utils.process_lifetime import child_popen_kwargs
kw = child_popen_kwargs()
diff --git a/studio/backend/tests/test_compute_buffer.py b/studio/backend/tests/test_compute_buffer.py
index 30bab5228a0..4b2ba88acb0 100644
--- a/studio/backend/tests/test_compute_buffer.py
+++ b/studio/backend/tests/test_compute_buffer.py
@@ -469,7 +469,7 @@ class TestContextBufferLayerSplit:
def test_kimi_k3_1m_four_gpu_reserve(self):
# The reported case: Kimi-K3 UD-IQ1_M, 1M ctx, 4 GPUs, ub 512. llama.cpp
- # allocated 4.0 GiB per device; Studio reserved 1.5 GiB.
+ # allocated 4.0 GiB per device; Unsloth reserved 1.5 GiB.
b = _backend(embd = 7168, mla = 576)
gib = b._compute_buffer_ctx_bytes(1048576, cache_type_kv = "f16", layer_split = True) / (
1024**3
@@ -741,7 +741,7 @@ class TestPipelineParallelPredicate:
@pytest.mark.parametrize("flag", ["-ngl", "--gpu-layers", "--n-gpu-layers"])
def test_finite_gpu_layers_below_the_count_disables(self, flag):
- # User extras land after Studio's -ngl -1, so this last-wins.
+ # User extras land after Unsloth's -ngl -1, so this last-wins.
assert self._off([flag, "1"], n_layers = 93) is True
assert self._off([f"{flag}=1"], n_layers = 93) is True
@@ -1257,7 +1257,7 @@ class TestSplitRateRecheckAfterSelection:
# ── The scratch rate keys off the LIGHTER axis ───────────────────────────────
#
-# Since ggml-org/llama.cpp#23792 Studio no longer rewrites the requested type for the
+# Since ggml-org/llama.cpp#23792 Unsloth no longer rewrites the requested type for the
# tensor attempt, so an asymmetric pair is reachable in the one mode with no --fit
# valve. The budget resolves ONE scalar, the heavier axis, for KV bytes; handing that
# to _compute_buffer_ctx_bytes prices a q4_0 K cache as if nothing were quantized,
@@ -1288,7 +1288,7 @@ class TestScratchTakesTheLighterAxis:
assert (heavier != expected) == (_kv_bytes_per_elem(k) != _kv_bytes_per_elem(v))
def test_a_managed_symmetric_request_leaves_both_terms_equal(self):
- """Studio emits one type on both axes, so nothing changes for the common
+ """Unsloth emits one type on both axes, so nothing changes for the common
case -- this fix must not move the fit for a plain q8_0 load."""
for kv in ("f16", "q8_0", "q4_0", "iq4_nl"):
assert _planned_scratch_cache_type(kv, None) == kv
diff --git a/studio/backend/tests/test_control_markup_neutralize_7066.py b/studio/backend/tests/test_control_markup_neutralize_7066.py
index f117b43ce40..73d3e06e62c 100644
--- a/studio/backend/tests/test_control_markup_neutralize_7066.py
+++ b/studio/backend/tests/test_control_markup_neutralize_7066.py
@@ -818,7 +818,7 @@ def test_catalog_tool_with_injected_name_is_dropped_not_rewritten():
# The caller's own catalog still holds the real entry.
assert len(tools) == 2 and tools[0]["function"]["name"] == hostile
# The predicate is the markup rewrite, not OpenAI's name grammar, so every name a
- # passthrough client or Studio parser can send still ships.
+ # passthrough client or Unsloth parser can send still ships.
keepers = [
{"type": "function", "function": {"name": name}}
for name in ("get_weather", "mcp__srv__a-b", "ns.tool", "functions.get_weather:0")
@@ -1178,7 +1178,7 @@ _FOREIGN_SPELLING_FORGERIES = {
def test_foreign_delimiter_spellings_are_neutralized(family):
"""DeepSeek uses the fullwidth bar U+FF5C, Llama-4 renamed Llama-3's header markers,
Command-R capitalises everything and Phi-4 adds a role separator. All are supported
- Studio families, and all forged an assistant turn before joining the pattern (#7066)."""
+ Unsloth families, and all forged an assistant turn before joining the pattern (#7066)."""
payload, markers = _FOREIGN_SPELLING_FORGERIES[family]
for marker in markers:
assert marker not in neutralize_control_markup(f"a {marker} b"), marker
@@ -5234,7 +5234,7 @@ def test_a_vocabulary_holding_non_strings_does_not_raise():
def test_a_shard_without_tokenizer_metadata_falls_back_rather_than_half_profiling():
- """A split GGUF carries the tokenizer only in shard 1. Studio loads the main shard, but
+ """A split GGUF carries the tokenizer only in shard 1. Unsloth loads the main shard, but
if anything ever profiled a later one the result must be the curated sweep, not a thin
profile that silently stops breaking this model's markers (#7066)."""
# What a non-first shard yields: no template, no vocabulary.
diff --git a/studio/backend/tests/test_conversation_archive.py b/studio/backend/tests/test_conversation_archive.py
index eb7d059c15d..60422eb5cb4 100644
--- a/studio/backend/tests/test_conversation_archive.py
+++ b/studio/backend/tests/test_conversation_archive.py
@@ -3757,7 +3757,7 @@ def test_a_batch_mixing_a_search_with_an_ordinary_tool_keeps_its_transcript_span
def test_a_system_prompt_does_not_stall_the_branch_seed(conn):
- """Studio prepends chat and project instructions to every outbound request.
+ """Unsloth prepends chat and project instructions to every outbound request.
That synthetic `system` message is not part of the stored chain, so a strict cursor
stalled on it: no leaf could advance past `wanted[0]`, every one scored zero, and the
diff --git a/studio/backend/tests/test_conversation_recall_injection.py b/studio/backend/tests/test_conversation_recall_injection.py
index 41cd73a785c..f231b05a67c 100644
--- a/studio/backend/tests/test_conversation_recall_injection.py
+++ b/studio/backend/tests/test_conversation_recall_injection.py
@@ -631,7 +631,7 @@ def test_sticky_boundary_ignores_an_anchor_the_branch_no_longer_has(monkeypatch)
def test_sticky_boundary_anchor_skips_the_system_turn(monkeypatch):
"""Counted the way `_branch_boundary` counts: system and developer turns do not.
- Studio prefixes every request with a system message, so counting it would put every
+ Unsloth prefixes every request with a system message, so counting it would put every
anchor one place late and quietly deepen every boundary by one.
"""
from core.inference import llama_cpp
@@ -1113,10 +1113,10 @@ def test_conversation_search_returns_what_the_budget_does_hold(archived, monkeyp
def test_the_conversation_tool_survives_studios_explicit_allowlist(monkeypatch):
- """Studio always sends enabled_tools, and it never names this internal tool.
+ """Unsloth always sends enabled_tools, and it never names this internal tool.
While the gate could only REMOVE, the allowlist filter dropped search_conversation
- first, so neither it nor the compaction nudge ever appeared in a Studio chat.
+ first, so neither it nor the compaction nudge ever appeared in an Unsloth chat.
"""
import asyncio
import types
diff --git a/studio/backend/tests/test_cpt_modules_to_save_reaches_every_branch.py b/studio/backend/tests/test_cpt_modules_to_save_reaches_every_branch.py
index 039b9d6e587..72a0e810a79 100644
--- a/studio/backend/tests/test_cpt_modules_to_save_reaches_every_branch.py
+++ b/studio/backend/tests/test_cpt_modules_to_save_reaches_every_branch.py
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved.
-"""Studio's CPT path routes embed_tokens/lm_head through `modules_to_save`.
+"""Unsloth's CPT path routes embed_tokens/lm_head through `modules_to_save`.
Every branch of `Trainer.prepare_model_for_training` that builds an adapter therefore
has to forward that argument. The audio branches used to omit it, which silently froze
diff --git a/studio/backend/tests/test_dataset_check_format_missing.py b/studio/backend/tests/test_dataset_check_format_missing.py
index 26ff24c8e29..24980fa9e61 100644
--- a/studio/backend/tests/test_dataset_check_format_missing.py
+++ b/studio/backend/tests/test_dataset_check_format_missing.py
@@ -18,7 +18,7 @@ from routes import datasets as datasets_route # noqa: E402
@pytest.fixture(autouse = True)
def isolated_studio_home(tmp_path, monkeypatch):
- """Keep fixtures out of the developer's real Studio uploads directory."""
+ """Keep fixtures out of the developer's real Unsloth uploads directory."""
monkeypatch.setenv("UNSLOTH_STUDIO_HOME", str(tmp_path))
return tmp_path
diff --git a/studio/backend/tests/test_dataset_map_num_proc.py b/studio/backend/tests/test_dataset_map_num_proc.py
index 2390a8c880f..9f88eff5225 100644
--- a/studio/backend/tests/test_dataset_map_num_proc.py
+++ b/studio/backend/tests/test_dataset_map_num_proc.py
@@ -3,7 +3,7 @@
"""Tests for ``dataset_map_num_proc()``.
-``None``, not ``1``, is the disable sentinel: on ``datasets`` >= 4.1 (Studio pins
+``None``, not ``1``, is the disable sentinel: on ``datasets`` >= 4.1 (Unsloth pins
4.3.0) ``map()`` takes the pool branch for any ``num_proc >= 1``, while 3.x runs
``1`` in-process, so that split is asserted per installed release.
@@ -223,7 +223,7 @@ def test_none_builds_no_pool_but_a_count_does(monkeypatch):
def test_num_proc_one_is_not_a_disable_sentinel():
"""Pin the reason ``dataset_map_num_proc`` returns ``None`` and never ``1``.
- ``datasets`` 3.x runs ``num_proc=1`` in-process; 4.x (Studio pins 4.3.0)
+ ``datasets`` 3.x runs ``num_proc=1`` in-process; 4.x (Unsloth pins 4.3.0)
builds a ``Pool(1)``. Only ``None`` is in-process on both, so assert per
installed version rather than hard-coding one.
"""
@@ -364,7 +364,7 @@ def test_a_serial_request_survives_the_config_round_trip(monkeypatch):
def test_the_config_value_is_still_in_process_after_the_layer_reads_it(monkeypatch):
- """End to end: what Studio stores, read back the way the SFT config layer reads it."""
+ """End to end: what Unsloth stores, read back the way the SFT config layer reads it."""
policy = _policy_or_skip()
_patch_device(monkeypatch, hw.DeviceType.CPU)
@@ -503,7 +503,7 @@ def test_the_override_is_honoured_on_spawn_platforms(monkeypatch, platform):
def test_the_override_is_not_capped_by_the_studio_heuristics(monkeypatch):
- """Uncapped by contract, including by the multi-GPU cap Studio adds after."""
+ """Uncapped by contract, including by the multi-GPU cap Unsloth adds after."""
policy = _policy_or_skip()
policy.reset_warning_state()
_patch_device(monkeypatch, hw.DeviceType.CUDA, visible_gpus = 4)
@@ -515,7 +515,7 @@ def test_the_override_is_not_capped_by_the_studio_heuristics(monkeypatch):
def test_an_older_zoo_falls_back_to_the_unsloth_copy(monkeypatch):
- """unsloth.dataset_num_proc is the same policy; Studio should use it too.
+ """unsloth.dataset_num_proc is the same policy; Unsloth should use it too.
Only when unsloth is already imported: importing it from here would make
hardware detection patch torch and pull in the model stack.
@@ -549,7 +549,7 @@ def test_an_older_zoo_falls_back_to_the_unsloth_copy(monkeypatch):
def test_no_policy_anywhere_keeps_the_previous_behaviour(monkeypatch):
- """Neither module importable: the pre-policy Studio count, not a crash."""
+ """Neither module importable: the pre-policy Unsloth count, not a crash."""
import builtins
monkeypatch.delitem(sys.modules, "unsloth", raising = False)
diff --git a/studio/backend/tests/test_debug_log_redaction.py b/studio/backend/tests/test_debug_log_redaction.py
index ff2148a8522..b3bcbd59821 100644
--- a/studio/backend/tests/test_debug_log_redaction.py
+++ b/studio/backend/tests/test_debug_log_redaction.py
@@ -60,7 +60,7 @@ SECRETS = [
# credential after it was never looked at.
("Authorization: Basic dXNlcm5hbWU6c3VwZXJzZWNyZXQ=", "dXNlcm5hbWU6c3VwZXJzZWNyZXQ="),
("headers={'authorization': 'Basic dXNlcjpwdw=='}", "dXNlcjpwdw=="),
- # Studio's UI session cookie gates these very endpoints.
+ # Unsloth's UI session cookie gates these very endpoints.
("Cookie: unsloth_session=8f3c9d1ab77e4f0a9c2b3d4e", "8f3c9d1ab77e4f0a9c2b3d4e"),
("set-cookie: refresh=8f3c9d1ab77e4f0a9c2b; HttpOnly", "8f3c9d1ab77e4f0a9c2b"),
("CI token glpat-ABCDEFGHIJKLMNOPQRST", "glpat-ABCDEFGHIJKLMNOPQRST"),
@@ -99,7 +99,7 @@ KEEP = [
' File "/opt/venv/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1518 in _call_impl',
"llama-server --port 8080 --n-gpu-layers 99 --ctx-size 32768",
'{"timestamp":"2026-08-13T09:00:00Z","level":"error","event":"llama_start_failed"}',
- # Words a credential rule is tempted by, as Studio actually writes them.
+ # Words a credential rule is tempted by, as Unsloth actually writes them.
# Blanking any of these hides the failure being diagnosed.
"provider rejected the request: Bearer credentials expired",
"Authorization header missing, expected Bearer authentication",
diff --git a/studio/backend/tests/test_diffusion_attention.py b/studio/backend/tests/test_diffusion_attention.py
index 2fb894f849b..d11964f9621 100644
--- a/studio/backend/tests/test_diffusion_attention.py
+++ b/studio/backend/tests/test_diffusion_attention.py
@@ -704,7 +704,7 @@ def test_kernels_hub_compatible_reads_hub_version(monkeypatch):
def test_transient_resolution_failure_is_not_memoised(monkeypatch):
"""A probe that times out on a loaded box is transient. Caching it would turn one
- hiccup into "no xFormers for the rest of this Studio session", so only DETERMINISTIC
+ hiccup into "no xFormers for the rest of this Unsloth session", so only DETERMINISTIC
answers (a URL, or a refusal that depends purely on the resident torch) are cached."""
import utils.wheel_utils as wu
diff --git a/studio/backend/tests/test_diffusion_auto_policy.py b/studio/backend/tests/test_diffusion_auto_policy.py
index 864e1f0f141..08463868329 100644
--- a/studio/backend/tests/test_diffusion_auto_policy.py
+++ b/studio/backend/tests/test_diffusion_auto_policy.py
@@ -110,7 +110,7 @@ def test_klein_base_9b_is_sized_like_the_9b_not_the_4b():
)
assert base_9b == nine_b
assert base_9b is not None and default is not None and base_9b[0] > 2 * default[0]
- # The unsloth mirror is what Studio actually loads, and canonical_base has to route it here too.
+ # The unsloth mirror is what Unsloth actually loads, and canonical_base has to route it here too.
assert (
family_bf16_components_gb(_fam("flux.2-klein"), base_repo = "unsloth/FLUX.2-klein-base-9B")
== base_9b
@@ -272,7 +272,7 @@ def test_a_local_override_is_never_gated_on_disk_space(monkeypatch):
def test_the_cached_probe_is_pinned_to_the_active_cache_root(monkeypatch):
"""Unpinned, cached_checkpoint_path reads only huggingface_hub's import-time constant.
- Studio's cache folder is a setting, so after it changes the retry proves the checkpoint cached
+ Unsloth's cache folder is a setting, so after it changes the retry proves the checkpoint cached
in the LIVE root while an unpinned probe here still calls it uncached and re-applies the gate,
defeating the moved-cache retry this excuse exists for. The retry and the loader both pin the
active root; so must this.
diff --git a/studio/backend/tests/test_diffusion_backend.py b/studio/backend/tests/test_diffusion_backend.py
index 3f3916a8793..d22da94eb24 100644
--- a/studio/backend/tests/test_diffusion_backend.py
+++ b/studio/backend/tests/test_diffusion_backend.py
@@ -1313,7 +1313,7 @@ class _Resident:
class _RecastingPipeline:
- """``from_pipe`` as every diffusers Studio can install implements it: reuse the resident
+ """``from_pipe`` as every diffusers Unsloth can install implements it: reuse the resident
components, then cast them in name order to float32 unless the caller named a dtype."""
seen: dict = {}
@@ -1409,7 +1409,7 @@ def test_from_pipe_no_recast_leaves_every_component_at_its_loaded_dtype(
encoder is float32 already by then, so catching the error is not a fix; unquantized
raises nothing at all and the whole pipeline is silently doubled in place. The two
pipeline classes cover a from_pipe that recasts and one that has stopped, so an upstream
- fix landing under Studio cannot change the outcome."""
+ fix landing under Unsloth cannot change the outcome."""
from core.inference.diffusion import DiffusionBackend
resident = _Resident(quantized_transformer = quantized_transformer)
@@ -5593,7 +5593,7 @@ def _split_cache_roots(
*,
register_root = False,
):
- """Studio's live cache root and a second one holding what a mid-session cache-folder change
+ """Unsloth's live cache root and a second one holding what a mid-session cache-folder change
left behind, both empty. ``register_root`` makes the second dir huggingface_hub's import-time
constant, the root ``cache_dir = None`` resolves to; without it the constant points at a third
empty dir, so ``other`` is reachable only as an explicit staged snapshot. Either way the test
@@ -5669,7 +5669,7 @@ def _other_root_base_snapshot(
*,
register_root = False,
):
- """A base repo cached ONLY under the other cache root, with Studio's live root empty: what
+ """A base repo cached ONLY under the other cache root, with Unsloth's live root empty: what
a mid-session cache-folder change leaves behind, handed back as ``_base_local_dir``. Sparse."""
_live, other = _split_cache_roots(tmp_path, monkeypatch, register_root = register_root)
snapshot = other / "models--bfl--base" / "snapshots" / ("a" * 40)
@@ -6511,7 +6511,7 @@ def _fake_hf_api(
monkeypatch.setattr("huggingface_hub.HfApi", lambda *a, **k: _Api())
# Download-plan tests describe their cache state explicitly. Never let a developer's real
- # Studio cache make an entry disappear from these otherwise hermetic tests.
+ # Unsloth cache make an entry disappear from these otherwise hermetic tests.
monkeypatch.setattr(
DiffusionBackend,
"_hub_file_is_cached",
@@ -7352,7 +7352,7 @@ def test_download_plan_for_a_pipeline_kind_ignores_the_prequant_cache(monkeypatc
def test_download_plan_restages_a_base_split_across_both_cache_roots(monkeypatch):
- # Studio's cache folder is a setting, so a base can end up half in the old root and half in the
+ # Unsloth's cache folder is a setting, so a base can end up half in the old root and half in the
# new one. _prefetch_files refuses to name a snapshot in that state and the assembly is pinned
# to hub_cache_dir(), so the old-root half is invisible to from_pretrained. Staging nothing
# there means the load re-pulls it inline, past the plan's progress, cancel and disk preflight.
diff --git a/studio/backend/tests/test_diffusion_base_precision.py b/studio/backend/tests/test_diffusion_base_precision.py
index b015acdcc0f..f22546a9127 100644
--- a/studio/backend/tests/test_diffusion_base_precision.py
+++ b/studio/backend/tests/test_diffusion_base_precision.py
@@ -712,7 +712,7 @@ def test_request_model_base_precision():
base_model = "x", data_dir = "d", output_dir = "o", base_precision = "int4"
)
- # The generic Studio dict path carries base_precision through onto DiffusionLoraConfig.
+ # The generic Unsloth dict path carries base_precision through onto DiffusionLoraConfig.
cfg = _config_from_dict(
{
"base_model": _FLUX_DENSE,
diff --git a/studio/backend/tests/test_diffusion_checkpoint_resume.py b/studio/backend/tests/test_diffusion_checkpoint_resume.py
index f5949bd5216..08f40eea689 100644
--- a/studio/backend/tests/test_diffusion_checkpoint_resume.py
+++ b/studio/backend/tests/test_diffusion_checkpoint_resume.py
@@ -128,7 +128,7 @@ def _healthy_diffusers(healthy_diffusers):
@pytest.fixture
def run_dir(tmp_path, monkeypatch):
- """A run output directory inside the (per-test) Studio outputs root, since the resume
+ """A run output directory inside the (per-test) Unsloth outputs root, since the resume
path resolver refuses anything outside it."""
from utils.paths import outputs_root
diff --git a/studio/backend/tests/test_diffusion_convrot.py b/studio/backend/tests/test_diffusion_convrot.py
index 6fe28162c4d..4b5c54894f9 100644
--- a/studio/backend/tests/test_diffusion_convrot.py
+++ b/studio/backend/tests/test_diffusion_convrot.py
@@ -289,7 +289,7 @@ def test_format_tag_follows_the_rotation():
[
(pq.PREQUANT_FORMAT, {}, True),
(pq.PREQUANT_FORMAT_ROTATED, _meta(["a"]), True),
- # A rotated artifact tagged v1 loads clean on a Studio predating the online half and
+ # A rotated artifact tagged v1 loads clean on an Unsloth predating the online half and
# renders wrong pixels. Refuse it here too: whoever wrote the tag is not to be trusted
# about the rest of the file either.
(pq.PREQUANT_FORMAT, _meta(["a"]), False),
diff --git a/studio/backend/tests/test_diffusion_dataset_api.py b/studio/backend/tests/test_diffusion_dataset_api.py
index 3ee94334c90..2d12f5ba923 100644
--- a/studio/backend/tests/test_diffusion_dataset_api.py
+++ b/studio/backend/tests/test_diffusion_dataset_api.py
@@ -4,7 +4,7 @@
"""Tests for the diffusion dataset labeling + example-import routes.
The routes are hit with the FastAPI TestClient; the datasets root is redirected to a
-tmp_path so nothing touches a real Studio home. The example importer is exercised with a
+tmp_path so nothing touches a real Unsloth home. The example importer is exercised with a
mocked datasets.load_dataset so no network / GPU is needed.
"""
diff --git a/studio/backend/tests/test_diffusion_device.py b/studio/backend/tests/test_diffusion_device.py
index 0848ba6bb06..a8f7c463944 100644
--- a/studio/backend/tests/test_diffusion_device.py
+++ b/studio/backend/tests/test_diffusion_device.py
@@ -153,7 +153,7 @@ def _install(
monkeypatch.setitem(sys.modules, "utils.hardware", fake_uh)
-# ── Studio-layer path ─────────────────────────────────────────────────
+# ── Unsloth-layer path ─────────────────────────────────────────────────
def test_cuda_ampere_bf16(monkeypatch):
@@ -249,7 +249,7 @@ def test_mps_probe_nonfinite_uses_fp32(monkeypatch):
def test_studio_cpu_on_apple_prefers_mps(monkeypatch):
torch = _make_torch(mps_available = True, mps_probe = "pass")
- _install(monkeypatch, torch, studio_device = "cpu") # Studio reports CPU (no mlx pkg)
+ _install(monkeypatch, torch, studio_device = "cpu") # Unsloth reports CPU (no mlx pkg)
t = dd.resolve_diffusion_device_target()
assert t.device == "mps" and t.dtype == BF16
diff --git a/studio/backend/tests/test_diffusion_dit_trainer_flow_shift.py b/studio/backend/tests/test_diffusion_dit_trainer_flow_shift.py
index 4bce5932cc4..dc1a9356242 100644
--- a/studio/backend/tests/test_diffusion_dit_trainer_flow_shift.py
+++ b/studio/backend/tests/test_diffusion_dit_trainer_flow_shift.py
@@ -68,7 +68,7 @@ def test_flow_shift_explicit_values_and_validation():
base_model = "Qwen/Qwen-Image", data_dir = "d", output_dir = "o", flow_shift = 2.2
).normalized()
assert cfg.flow_shift == 2.2
- # String numerics from the Studio config path coerce; "auto" passes through.
+ # String numerics from the Unsloth config path coerce; "auto" passes through.
assert (
DiffusionLoraConfig(base_model = "b", data_dir = "d", output_dir = "o", flow_shift = "3.0")
.normalized()
diff --git a/studio/backend/tests/test_diffusion_dit_trainer_ltx2.py b/studio/backend/tests/test_diffusion_dit_trainer_ltx2.py
index f2e06f4c4ec..c684caa5127 100644
--- a/studio/backend/tests/test_diffusion_dit_trainer_ltx2.py
+++ b/studio/backend/tests/test_diffusion_dit_trainer_ltx2.py
@@ -580,7 +580,7 @@ def _run_cfg(base_model: str, tmp_path) -> DiffusionLoraConfig:
def test_a_video_run_publishes_no_adapter_into_the_image_lora_catalog(tmp_path, monkeypatch):
# loras/diffusion is scanned by the Images LoRA picker alone, and core/inference/video.py has
# no LoRA surface at all, so mirroring a video adapter there copies a large file into a
- # catalog nothing can load and reports a catalog_path Studio cannot deploy.
+ # catalog nothing can load and reports a catalog_path Unsloth cannot deploy.
from pathlib import Path
catalog = tmp_path / "loras" / "diffusion"
diff --git a/studio/backend/tests/test_diffusion_gated_base.py b/studio/backend/tests/test_diffusion_gated_base.py
index 3aeaf128b61..0c59259ea76 100644
--- a/studio/backend/tests/test_diffusion_gated_base.py
+++ b/studio/backend/tests/test_diffusion_gated_base.py
@@ -795,7 +795,7 @@ def _stub_shared_download(
"""Record the cache root each companion download resolves against.
``cached_elsewhere`` names the files that exist ONLY under huggingface_hub's import-time root
- (Studio's cache folder was changed mid-session), so the live root is a miss for them."""
+ (Unsloth's cache folder was changed mid-session), so the live root is a miss for them."""
import utils.hf_xet_fallback as X
seen: list = []
@@ -836,7 +836,7 @@ def test_the_prefetch_reuses_a_base_asset_cached_under_the_other_root(monkeypatc
assert seen == [
# cached only under the import-time root: reached through it, not re-pulled into the live one
("ae.safetensors", None),
- # nowhere on disk: a real download, still pinned to the root Studio is reading
+ # nowhere on disk: a real download, still pinned to the root Unsloth is reading
("text_encoder/model.safetensors", "/live-hub"),
]
@@ -950,7 +950,7 @@ def test_a_base_excused_by_the_other_root_is_loaded_from_that_snapshot(monkeypat
lambda *a, **k: types.SimpleNamespace(name = "flux.1", single_file_is_pipeline = False),
)
monkeypatch.setattr("core.inference.diffusion._resolve_base_repo", lambda *a, **k: private)
- # Studio's cache folder was changed: the live root holds none of it.
+ # Unsloth's cache folder was changed: the live root holds none of it.
monkeypatch.setattr(
"core.inference.diffusion.hub_cache_dir", lambda: str(tmp_path / "live-hub")
)
diff --git a/studio/backend/tests/test_diffusion_h3_trainer.py b/studio/backend/tests/test_diffusion_h3_trainer.py
index a8d79c76c88..0f4a9fe4be2 100644
--- a/studio/backend/tests/test_diffusion_h3_trainer.py
+++ b/studio/backend/tests/test_diffusion_h3_trainer.py
@@ -1152,7 +1152,7 @@ def test_h3_is_advertised_as_trainable_with_the_precisions_it_has():
train this family" and disables Start with "Not supported on this GPU". MiniMax-H3 was only
in _FLOW_TRAIN_FAMILIES, while the info builder keyed the precision branch on
_DIT_TRAIN_FAMILIES, so it reported [] even on a host that can train, and the trainer this
- PR adds was unreachable from Studio.
+ PR adds was unreachable from Unsloth.
Judged against a reference DiT family rather than against a hardcoded list, so the test
describes the host it runs on: on a GPU-less runner BOTH are legitimately empty, and the
diff --git a/studio/backend/tests/test_diffusion_hub_access.py b/studio/backend/tests/test_diffusion_hub_access.py
index 26c774c84d9..7e537774781 100644
--- a/studio/backend/tests/test_diffusion_hub_access.py
+++ b/studio/backend/tests/test_diffusion_hub_access.py
@@ -134,7 +134,7 @@ def test_a_self_referential_chain_terminates():
def test_an_ambient_token_counts_as_a_token(monkeypatch):
- """With token=None the Hub still uses HF_TOKEN or the cached login, so keying off Studio's
+ """With token=None the Hub still uses HF_TOKEN or the cached login, so keying off Unsloth's
own token alone tells an already-authenticated user to add a token they have."""
import huggingface_hub.utils as hub_utils
diff --git a/studio/backend/tests/test_diffusion_lora_trainer.py b/studio/backend/tests/test_diffusion_lora_trainer.py
index 5644bcc8fa9..b6089058414 100644
--- a/studio/backend/tests/test_diffusion_lora_trainer.py
+++ b/studio/backend/tests/test_diffusion_lora_trainer.py
@@ -396,7 +396,7 @@ def test_config_rejects_nonpositive_snr_gamma():
def test_config_coerces_string_learning_rate():
- # The Studio config path preserves learning_rate as a string; normalize to float.
+ # The Unsloth config path preserves learning_rate as a string; normalize to float.
cfg = DiffusionLoraConfig(
base_model = "b", data_dir = "d", output_dir = "o", learning_rate = "1e-4"
).normalized()
@@ -415,7 +415,7 @@ def test_config_blank_hf_token_is_anonymous():
def test_config_from_dict_aliases_generic_studio_keys():
- # The generic Studio training payload uses different key names; alias them.
+ # The generic Unsloth training payload uses different key names; alias them.
cfg = _config_from_dict(
{
"model_name": "b",
@@ -444,7 +444,7 @@ def test_config_from_dict_canonical_key_beats_alias():
def test_gradient_checkpointing_string_coercion():
- # Studio sends a string; the disable words are False, everything else truthy True.
+ # Unsloth sends a string; the disable words are False, everything else truthy True.
for off in ("none", "None", "false", "0", "no", "off", ""):
assert _coerce_gradient_checkpointing(off) is False
for on in ("true", "unsloth", "yes"):
diff --git a/studio/backend/tests/test_diffusion_memory.py b/studio/backend/tests/test_diffusion_memory.py
index a15070db232..4b7de2ee014 100644
--- a/studio/backend/tests/test_diffusion_memory.py
+++ b/studio/backend/tests/test_diffusion_memory.py
@@ -901,7 +901,7 @@ def test_plan_fits_total_capacity():
# load-time refusal that replaces that SIGKILL with a message.
_MPS_TOTAL_MIB = 16 * 1024
-_MPS_FREE_MIB = int(_MPS_TOTAL_MIB * 0.80) # RAM free once macOS + a browser + Studio are up
+_MPS_FREE_MIB = int(_MPS_TOTAL_MIB * 0.80) # RAM free once macOS + a browser + Unsloth are up
def _unified_plan(
@@ -1038,7 +1038,7 @@ def test_unified_oversize_decision_matrix_for_the_real_video_families():
where the weights genuinely cannot fit, and must stay silent where they can.
``video_families`` is a pure table module (no torch, no diffusers), so this stays hermetic.
- ``free`` is modelled at 80% of RAM, the share left once macOS, a browser and Studio are up.
+ ``free`` is modelled at 80% of RAM, the share left once macOS, a browser and Unsloth are up.
"""
from core.inference.video_families import _FAMILIES
from core.inference.diffusion_memory import (
diff --git a/studio/backend/tests/test_diffusion_predownload_guard_platforms.py b/studio/backend/tests/test_diffusion_predownload_guard_platforms.py
index c6ec0809f63..05298649dad 100644
--- a/studio/backend/tests/test_diffusion_predownload_guard_platforms.py
+++ b/studio/backend/tests/test_diffusion_predownload_guard_platforms.py
@@ -53,7 +53,7 @@ LUMINA_2 = [
)
]
-# Every OS Studio ships on. The classifier reads the device and the driver's `integrated`
+# Every OS Unsloth ships on. The classifier reads the device and the driver's `integrated`
# flag and never sys.platform, so these are here to prove that rather than to vary it.
PLATFORMS = ("linux", "wsl", "win32", "darwin")
diff --git a/studio/backend/tests/test_diffusion_prequant.py b/studio/backend/tests/test_diffusion_prequant.py
index 6f8e2537e5e..354c9c5c8e6 100644
--- a/studio/backend/tests/test_diffusion_prequant.py
+++ b/studio/backend/tests/test_diffusion_prequant.py
@@ -601,7 +601,7 @@ def test_the_checkpoint_is_deserialized_under_an_allowlist(monkeypatch):
def test_the_allowlist_names_every_constructor_the_hosted_checkpoints_use(
monkeypatch, real_prequant_safe_globals
):
- """The exact set read out of the pickles Studio actually resolves.
+ """The exact set read out of the pickles Unsloth actually resolves.
Surveyed with ``pickletools`` (no unpickling) over every hosted prequant repo the family
tables name -- image and video, fp8 and int8, rotated and not -- so a checkpoint naming
@@ -791,7 +791,7 @@ def test_a_torch_without_safe_globals_refuses_rather_than_reopening_the_pickle(m
def test_an_old_torch_registers_nothing_at_all(monkeypatch):
"""2.4/2.5 take the (object, name) pairs without looking at them and only fail later, in
``_get_user_allowed_globals``, which reads ``f.__module__`` off every entry of a PROCESS-WIDE
- list -- so a tuple left there breaks every OTHER weights_only load in Studio too. Hence:
+ list -- so a tuple left there breaks every OTHER weights_only load in Unsloth too. Hence:
decide by version first, register nothing below 2.6."""
torch = types.ModuleType("torch")
torch.serialization = types.SimpleNamespace(
@@ -1420,7 +1420,7 @@ def test_other_root_revalidation_never_breaks_a_load_that_works(monkeypatch, tmp
def test_an_uncached_checkpoint_downloads_into_the_live_root(monkeypatch):
- # The other half: a real fetch must land where Studio is reading, not under the stale constant.
+ # The other half: a real fetch must land where Unsloth is reading, not under the stale constant.
asked: list = []
source = PrequantSource(
kind = "repo", location = "unsloth/Z-Image-Turbo-FP8", filename = "Z-Image-Turbo-FP8.pt"
@@ -1740,7 +1740,7 @@ def test_load_config_reads_the_same_cache_root_as_the_checkpoint(monkeypatch, tm
def test_the_config_follows_the_checkpoint_into_the_other_cache_root(monkeypatch, tmp_path):
- """``_resolve_checkpoint_path`` can answer from huggingface_hub's import-time root while Studio
+ """``_resolve_checkpoint_path`` can answer from huggingface_hub's import-time root while Unsloth
pins its live one, so a config pinned to the live root misses in exactly the cache-moved case
the checkpoint lookup just accepted -- silently, as the raise becomes a None return."""
import torch
diff --git a/studio/backend/tests/test_diffusion_routes.py b/studio/backend/tests/test_diffusion_routes.py
index c9a6518aca3..4b44591ca3b 100644
--- a/studio/backend/tests/test_diffusion_routes.py
+++ b/studio/backend/tests/test_diffusion_routes.py
@@ -1575,7 +1575,7 @@ def test_the_plan_refuses_an_impossible_precision_before_anything_is_staged(clie
def test_the_plan_does_not_probe_the_gpu_while_training_holds_it(client, monkeypatch):
"""An UNCACHED scheme sends assert_precision_available into a quantise-and-matmul smoke
- probe, which initialises CUDA and allocates in the Studio process. /images/load refuses
+ probe, which initialises CUDA and allocates in the Unsloth process. /images/load refuses
outright while a trainer is running, for exactly that reason -- but the UI asks for the
plan first, so the probe ran before that guard had a say. Staging files needs no GPU, so
the plan is answered; the load still refuses the same pick afterwards."""
@@ -1816,7 +1816,7 @@ def test_download_plan_surfaces_a_gated_base_as_a_400(client, monkeypatch):
"'black-forest-labs/FLUX.1-dev' is gated on Hugging Face and this model cannot be "
"downloaded without it. Accept its licence at "
"https://huggingface.co/black-forest-labs/FLUX.1-dev, then add a Hugging Face token "
- "that has access in Studio settings and try again."
+ "that has access in Unsloth settings and try again."
)
def _plan(model_path, **kwargs):
diff --git a/studio/backend/tests/test_diffusion_speed.py b/studio/backend/tests/test_diffusion_speed.py
index 30247ab83d9..7f53a5f8923 100644
--- a/studio/backend/tests/test_diffusion_speed.py
+++ b/studio/backend/tests/test_diffusion_speed.py
@@ -710,7 +710,7 @@ def test_regional_compile_arms_cache_hook_inners(monkeypatch):
# ── the inductor runtime gate ────────────────────────────────────────────────
-# The Studio workers already refuse torch.compile when Triton is missing on Windows; the diffusion
+# The Unsloth workers already refuse torch.compile when Triton is missing on Windows; the diffusion
# and video backends run in the SERVER process, which those gates never reach.
diff --git a/studio/backend/tests/test_diffusion_train_extras.py b/studio/backend/tests/test_diffusion_train_extras.py
index 4c1008dc11c..34237204061 100644
--- a/studio/backend/tests/test_diffusion_train_extras.py
+++ b/studio/backend/tests/test_diffusion_train_extras.py
@@ -315,7 +315,7 @@ def test_source_revision_marks_a_dir_update_and_never_raises(tmp_path):
def test_source_revision_reads_the_active_hub_cache(tmp_path, monkeypatch):
- """Studio can move its HF cache mid-session and loading follows the live setting, but
+ """Unsloth can move its HF cache mid-session and loading follows the live setting, but
huggingface_hub's HF_HUB_CACHE constant is a snapshot from import time. Reading only that left
the marker unresolved (or pinned to the old root), so pulling a new revision of the same
checkpoint stopped invalidating the conditioning cache and a warm run reused stale latents."""
@@ -350,7 +350,7 @@ def test_hub_cache_roots_puts_the_active_studio_cache_first(monkeypatch, tmp_pat
def test_hub_cache_roots_survives_without_studio_settings(monkeypatch, tmp_path):
- # The trainer subprocess may run without Studio's settings module importable, so the env and the library constant still have to work.
+ # The trainer subprocess may run without Unsloth's settings module importable, so the env and the library constant still have to work.
import builtins
from core.training import diffusion_train_extras as extras
diff --git a/studio/backend/tests/test_diffusion_train_perf.py b/studio/backend/tests/test_diffusion_train_perf.py
index f6aa8e58766..27bb065178d 100644
--- a/studio/backend/tests/test_diffusion_train_perf.py
+++ b/studio/backend/tests/test_diffusion_train_perf.py
@@ -175,7 +175,7 @@ def test_config_validates_new_fields():
# compile_transformer is case/space-insensitive and stored lowered.
assert _cfg(compile_transformer = " ON ").normalized().compile_transformer == "on"
- # The generic Studio dict path preserves the flags without inventing defaults.
+ # The generic Unsloth dict path preserves the flags without inventing defaults.
cfg = _config_from_dict(
{
"base_model": _SDXL,
@@ -188,7 +188,7 @@ def test_config_validates_new_fields():
assert cfg.enable_tf32 is False
assert cfg.cache_latents is False
- # String flags from the generic Studio dict path are coerced: "false" is a truthy string, so an opt-out would silently no-op.
+ # String flags from the generic Unsloth dict path are coerced: "false" is a truthy string, so an opt-out would silently no-op.
cfg = _config_from_dict(
{
"base_model": _SDXL,
@@ -707,7 +707,7 @@ def test_a_child_that_cleaned_up_is_not_cleaned_up_again(tmp_path, monkeypatch):
def test_a_checkpoint_makes_the_run_recoverable_before_it_ends(tmp_path, monkeypatch):
"""Previous runs is built from the run JSONs and nothing else, and only a terminal event
- wrote one. Studio being killed after a periodic save therefore left a resumable bundle on
+ wrote one. Unsloth being killed after a periodic save therefore left a resumable bundle on
disk with no entry and no Resume action for it."""
import inspect
import json as _json
@@ -749,7 +749,7 @@ def test_a_checkpoint_makes_the_run_recoverable_before_it_ends(tmp_path, monkeyp
def test_a_failed_checkpoint_write_is_recorded_too(tmp_path, monkeypatch):
- """The failure is sticky in memory, but only a successful write asked for a record. Studio
+ """The failure is sticky in memory, but only a successful write asked for a record. Unsloth
exiting after one left the last persisted record advertising the OLDER checkpoint as
resumable -- the one the service has just decided is stale -- and resuming it rolls the run
back past everything after it."""
diff --git a/studio/backend/tests/test_diffusion_training.py b/studio/backend/tests/test_diffusion_training.py
index e0f2586ac9b..151217fef69 100644
--- a/studio/backend/tests/test_diffusion_training.py
+++ b/studio/backend/tests/test_diffusion_training.py
@@ -468,7 +468,7 @@ def client(monkeypatch):
return c
-# Studio-relative paths: the route resolves/contains them before spawn.
+# Unsloth-relative paths: the route resolves/contains them before spawn.
_BODY = {
"base_model": "stabilityai/sdxl-turbo",
"data_dir": "uploads/my-images",
@@ -482,7 +482,7 @@ def test_route_start_ok(client):
assert r.status_code == 200, r.text
assert r.json() == {"job_id": "job-123", "status": "running"}
assert client._fake.started_with["base_model"] == "stabilityai/sdxl-turbo"
- # Paths were resolved to absolute Studio-contained locations before spawn.
+ # Paths were resolved to absolute Unsloth-contained locations before spawn.
from pathlib import Path
assert Path(client._fake.started_with["data_dir"]).is_absolute()
@@ -1048,7 +1048,7 @@ def test_route_start_rejects_nonpositive_snr_gamma(client):
def test_route_start_rejects_uncontained_paths(client):
- # An absolute path outside the Studio dataset roots is a 400, not silently accepted.
+ # An absolute path outside the Unsloth dataset roots is a 400, not silently accepted.
r = client.post("/api/train/diffusion/start", json = {**_BODY, "data_dir": "/etc"})
assert r.status_code == 400
diff --git a/studio/backend/tests/test_diffusion_transformer_quant.py b/studio/backend/tests/test_diffusion_transformer_quant.py
index 7fafc4d0620..6777fdc49f2 100644
--- a/studio/backend/tests/test_diffusion_transformer_quant.py
+++ b/studio/backend/tests/test_diffusion_transformer_quant.py
@@ -563,7 +563,7 @@ def test_the_probe_child_is_adopted_so_a_shutdown_sweep_can_reach_it(
monkeypatch, _probe_lifetime_records
):
# The child-side PDEATHSIG bind is Linux only, and the Windows job object is documented to
- # fail when Studio already runs inside an incompatible host job. In that configuration this
+ # fail when Unsloth already runs inside an incompatible host job. In that configuration this
# record is the only thing left that can reach a probe still holding a CUDA context, both
# from the shutdown sweep and from the next startup.
import multiprocessing
@@ -623,7 +623,7 @@ def test_a_transient_spawn_oserror_is_retried_rather_than_latched(
):
# Descriptors, process slots and /dev/shm all come back. Latching the OSError would hold the
# backend on the in-process probe -- and so on the ~800 MiB the child exists to avoid -- for
- # every later miss, until Studio restarts.
+ # every later miss, until Unsloth restarts.
import multiprocessing
calls = {"n": 0}
diff --git a/studio/backend/tests/test_docs_ui_assets.py b/studio/backend/tests/test_docs_ui_assets.py
index 06a0e60901c..91778e092af 100644
--- a/studio/backend/tests/test_docs_ui_assets.py
+++ b/studio/backend/tests/test_docs_ui_assets.py
@@ -3,7 +3,7 @@
"""The vendored Swagger UI and ReDoc bundles stay byte-identical to the releases they came from.
-These files execute on the Studio origin, which is where session.ts keeps the access and
+These files execute on the Unsloth origin, which is where session.ts keeps the access and
refresh tokens, so the point of shipping them rather than loading them from a CDN is that
their bytes are fixed at review time. A silent edit here is a script change nobody read.
"""
diff --git a/studio/backend/tests/test_embedding_load_report_quiet.py b/studio/backend/tests/test_embedding_load_report_quiet.py
index b33f2a1f7e6..6b5de540fe4 100644
--- a/studio/backend/tests/test_embedding_load_report_quiet.py
+++ b/studio/backend/tests/test_embedding_load_report_quiet.py
@@ -5,7 +5,7 @@
transformers >= 5 prints a multi-line, ANSI-coloured "<Model> LOAD REPORT" table
through logger.warning plus a "Loading weights" tqdm bar. bge-small-en-v1.5 always
-trips it (legacy embeddings.position_ids key), so every Studio boot emitted ~7
+trips it (legacy embeddings.position_ids key), so every Unsloth boot emitted ~7
unstructured lines into an otherwise JSON log. They are captured and re-emitted on
our own logger instead: debug when benign, warning when the report mentions
anything that could change the model.
diff --git a/studio/backend/tests/test_external_confirm_gate_and_saved_keys.py b/studio/backend/tests/test_external_confirm_gate_and_saved_keys.py
index 1db52fdf292..0e3ebeabb87 100644
--- a/studio/backend/tests/test_external_confirm_gate_and_saved_keys.py
+++ b/studio/backend/tests/test_external_confirm_gate_and_saved_keys.py
@@ -7,10 +7,10 @@ Both are one-line conditions in ``_proxy_to_external_provider`` and both are
reachable only by driving the route, so they are pinned here rather than through
a helper's return value:
-* the confirm gate. Studio's UI expresses "ask me first" as ``permission_mode``,
+* the confirm gate. Unsloth's UI expresses "ask me first" as ``permission_mode``,
not as ``confirm_tool_calls``, so a guard that reads the raw flag admits the
very request the local routes reject.
-* the saved-credential exception for internal workflow keys. Studio mints those
+* the saved-credential exception for internal workflow keys. Unsloth mints those
keys for more than one workflow, and the data-recipe key is handed to a
user-authored recipe subprocess, so "internal" alone cannot be the licence to
spend every saved cloud credential.
@@ -169,7 +169,7 @@ def test_an_explicit_confirm_flag_still_401s_the_streaming_hosted_only_request(m
"""The pre-existing rejection must survive the mode-derived one.
A streaming request whose selection is purely the provider's hosted tools
- never enters Studio's loop, so an explicit ``confirm_tool_calls`` cannot be
+ never enters Unsloth's loop, so an explicit ``confirm_tool_calls`` cannot be
honoured there either.
"""
inf = _install(monkeypatch, "openai")
@@ -351,7 +351,7 @@ def test_a_third_party_key_never_unlocks_a_saved_connection(monkeypatch):
def test_an_interactive_session_still_uses_its_saved_connection(monkeypatch):
- """Studio's own chat sends a session JWT and no API key at all."""
+ """Unsloth's own chat sends a session JWT and no API key at all."""
from routes import inference as inf
seen: list[bool] = []
diff --git a/studio/backend/tests/test_external_hosted_tool_passthrough.py b/studio/backend/tests/test_external_hosted_tool_passthrough.py
index 366374ebf8f..b3bf4938545 100644
--- a/studio/backend/tests/test_external_hosted_tool_passthrough.py
+++ b/studio/backend/tests/test_external_hosted_tool_passthrough.py
@@ -9,7 +9,7 @@ this capability existed, and a third-party client can send the documented
hosted-tool body forever:
* ``enable_tools: true`` + ``enabled_tools: ["web_search", "code_execution"]``
- has always meant "the provider runs its own server tools". Studio's loop must
+ has always meant "the provider runs its own server tools". Unsloth's loop must
not read those same bytes as a request to run *its* web_search and drop
``code_execution`` on the floor (it has no local implementation of it).
* an omitted ``permission_mode`` must resolve exactly as it does on the Codex
@@ -133,7 +133,7 @@ def _run(inf, payload):
# The gate as it stood at merge base b3376300: only the Codex subscription ran
-# Studio's tools on an external provider. Every other provider took the plain
+# Unsloth's tools on an external provider. Every other provider took the plain
# passthrough, whatever the request said about tools. Kept as executable code so
# the expectations below are derived from the old behaviour, not restated.
def _merge_base_takes_studio_loop(payload, provider_type: str) -> bool:
@@ -171,7 +171,7 @@ def test_a_hosted_tool_request_still_reaches_the_provider(monkeypatch, provider_
chunks = _run(inf, payload)
passthrough = FakeExternalClient.last["passthrough"]
- assert passthrough is not None, "the Studio loop stole a hosted-tool request"
+ assert passthrough is not None, "the Unsloth loop stole a hosted-tool request"
# Forwarded verbatim: dropping a name here is the provider losing a tool.
assert passthrough["enabled_tools"] == selection
assert passthrough["stream"] is True
@@ -190,7 +190,7 @@ def test_a_hosted_code_execution_is_not_dropped(monkeypatch):
def test_a_code_execution_with_run_tools_locally_still_answers_the_confirm_gate(monkeypatch):
"""`run_tools_locally` must not smuggle a hosted-only turn past the 400.
- Studio has no `code_execution`, so the local catalog is empty whatever the
+ Unsloth has no `code_execution`, so the local catalog is empty whatever the
flag says and the route falls back to the provider. The confirmation
rejection keys on the request NOT having taken the loop, so a "local"
reading here answers a confirm-me request with an unconfirmed sandbox run.
@@ -230,7 +230,7 @@ def test_a_code_execution_with_run_tools_locally_still_reaches_the_provider(monk
@pytest.mark.parametrize("provider_type", SELF_HOSTED_PROVIDERS)
def test_a_self_hosted_provider_still_runs_studios_own_web_search(monkeypatch, provider_type):
"""Shape 2, the PR's primary use case: a self-hosted server has no hosted
- tools at all, so the same body can only mean Studio's local loop."""
+ tools at all, so the same body can only mean Unsloth's local loop."""
assert provider_hosted_tools(provider_type) == frozenset()
inf = _install(monkeypatch, provider_type)
with pytest.raises(LoopEntered):
@@ -248,7 +248,7 @@ def test_a_self_hosted_provider_still_runs_studios_own_web_search(monkeypatch, p
],
)
def test_a_local_only_selection_takes_the_loop_on_a_hosted_provider(monkeypatch, overrides):
- """Shape 3: one Studio-only name (or MCP) is unambiguous, so the feature
+ """Shape 3: one Unsloth-only name (or MCP) is unambiguous, so the feature
works on hosted providers too."""
# ``_select_request_tools`` imports this from ``core.inference.tools`` inside the function
# body, so it is never an attribute of ``routes.inference``: patching the route set a dead
@@ -285,7 +285,7 @@ def test_a_malformed_enabled_tools_is_not_a_hosted_request(bad):
def test_a_codex_declares_no_hosted_tools():
- """Codex's `web_search` is Studio's own tool run by the Codex loop, so the
+ """Codex's `web_search` is Unsloth's own tool run by the Codex loop, so the
hosted check must never fire there."""
assert provider_hosted_tools("openai_codex") == frozenset()
@@ -312,7 +312,7 @@ def test_b_an_omitted_permission_mode_arms_the_auto_gate(monkeypatch):
"nudge_tool_calls", [None, False, True], ids = ["omitted", "disabled", "enabled"]
)
def test_b_external_tool_loop_receives_requested_nudge_setting(monkeypatch, nudge_tool_calls):
- """The external Studio loop must receive the request-level nudge policy."""
+ """The external Unsloth loop must receive the request-level nudge policy."""
monkeypatch.setattr(
"core.inference.tools.get_enabled_mcp_tools",
lambda: _noop_mcp(),
diff --git a/studio/backend/tests/test_external_hosted_tool_selection.py b/studio/backend/tests/test_external_hosted_tool_selection.py
index 7d728783594..911fb3996a7 100644
--- a/studio/backend/tests/test_external_hosted_tool_selection.py
+++ b/studio/backend/tests/test_external_hosted_tool_selection.py
@@ -1,15 +1,15 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-"""Hosted tools that survive a turn the Studio loop runs.
+"""Hosted tools that survive a turn the Unsloth loop runs.
Images and Fetch have their own pills, no local implementation, and no
relationship to Search / Code / RAG. So a request can legitimately mix them with
-a Studio tool, and the loop has to forward those names to the provider instead
+an Unsloth tool, and the loop has to forward those names to the provider instead
of withholding the whole hosted surface: the alternative is a lit toggle for a
tool the model is never offered.
-Search and code execution are the opposite case. Studio runs those itself once
+Search and code execution are the opposite case. Unsloth runs those itself once
the loop is up, so forwarding them too would run both sides of one tool and bill
the provider for its half.
"""
@@ -129,7 +129,7 @@ def _clean_policy():
[
(["python", "terminal", "image_generation"], ["image_generation"]),
(["search_knowledge_base", "image_generation"], ["image_generation"]),
- # web_search is Studio's own once the loop runs, so it never rides along.
+ # web_search is Unsloth's own once the loop runs, so it never rides along.
(["web_search", "python", "image_generation"], ["image_generation"]),
(["python", "terminal"], []),
(["web_search"], []),
@@ -169,7 +169,7 @@ def test_an_absent_or_malformed_selection_is_not_a_crash():
@pytest.mark.parametrize("provider_type", ["openai", "gemini"])
def test_images_plus_a_studio_tool_still_reaches_the_provider(monkeypatch, provider_type):
- """The regression in one line: Images plus Code took the Studio loop, and the
+ """The regression in one line: Images plus Code took the Unsloth loop, and the
loop used to withhold every hosted name, so image_generation vanished while
its toggle stayed on."""
transport = _loop_transport(
@@ -194,7 +194,7 @@ def test_automatic_rag_does_not_cost_the_user_their_image_tool(monkeypatch):
def test_the_loop_keeps_its_own_search(monkeypatch):
- """Studio's web_search is running locally this turn, so the provider must not
+ """Unsloth's web_search is running locally this turn, so the provider must not
be asked to run its own as well."""
transport = _loop_transport(monkeypatch, "openai", ["web_search", "python"])
assert transport._request_kwargs["enabled_tools"] is None
diff --git a/studio/backend/tests/test_external_provider_route_wiring.py b/studio/backend/tests/test_external_provider_route_wiring.py
index 169f153082f..0ddc43b4727 100644
--- a/studio/backend/tests/test_external_provider_route_wiring.py
+++ b/studio/backend/tests/test_external_provider_route_wiring.py
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-"""Seams between the external-provider route and the shared Studio tool loop.
+"""Seams between the external-provider route and the shared Unsloth tool loop.
Both are one-line policy decisions in ``_proxy_to_external_provider`` that no
loop test can reach: the tool-call budget it hands the loop, and whether a
diff --git a/studio/backend/tests/test_external_provider_usage_chunk.py b/studio/backend/tests/test_external_provider_usage_chunk.py
index 77ac1891b3d..f2bc3ff89a1 100644
--- a/studio/backend/tests/test_external_provider_usage_chunk.py
+++ b/studio/backend/tests/test_external_provider_usage_chunk.py
@@ -193,7 +193,7 @@ def test_custom_provider_registry_is_hidden():
"""Hidden entries stay filtered by default and are opt-in via include_hidden.
They used to be dropped from /registry unconditionally, which is why the UI
- could never learn that the self-hosted presets run Studio tools. Exposing
+ could never learn that the self-hosted presets run Unsloth tools. Exposing
them by default would instead make a cached pre-change bundle render them as
duplicate dropdown rows, since that bundle filters on a hardcoded name set
rather than on ``hidden``. So the default is unchanged and the current UI
diff --git a/studio/backend/tests/test_external_tool_edge_cases.py b/studio/backend/tests/test_external_tool_edge_cases.py
index b6cf1669031..f448375fa26 100644
--- a/studio/backend/tests/test_external_tool_edge_cases.py
+++ b/studio/backend/tests/test_external_tool_edge_cases.py
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-"""Adversarial edge cases for the provider-agnostic Studio tool loop.
+"""Adversarial edge cases for the provider-agnostic Unsloth tool loop.
``tests/test_studio_tool_loop.py`` covers the happy paths. This file covers what
a hostile, buggy or merely unusual provider can do to the loop: malformed SSE,
diff --git a/studio/backend/tests/test_external_tool_stream_abuse.py b/studio/backend/tests/test_external_tool_stream_abuse.py
index 097df4a66d3..f8fea64a183 100644
--- a/studio/backend/tests/test_external_tool_stream_abuse.py
+++ b/studio/backend/tests/test_external_tool_stream_abuse.py
@@ -6,7 +6,7 @@
``tests/test_external_tool_edge_cases.py`` covers malformed and adversarial
*chunks*. This file covers the channel itself: the loop relays provider bytes on
the very same SSE stream it writes its own control frames to, so anything the
-provider can put on that stream is a candidate for impersonating Studio. It also
+provider can put on that stream is a candidate for impersonating Unsloth. It also
covers the framing layer underneath (CRLF, comments, multi-line ``data:``,
frames after ``[DONE]``), the tool-call fields the loop trusts to name a tool,
and the liveness properties the loop has to hold against an endpoint that simply
@@ -366,10 +366,10 @@ def test_studio_own_control_frames_still_reach_the_client(executed):
def test_a_provider_cannot_forge_studio_private_chunk_keys(executed):
- """``_toolEvent`` and friends are Studio extensions, not provider fields.
+ """``_toolEvent`` and friends are Unsloth extensions, not provider fields.
The same card can be painted from inside an otherwise ordinary chunk, because
- the client also lifts ``_toolEvent`` straight out of one. Studio stamps that
+ the client also lifts ``_toolEvent`` straight out of one. Unsloth stamps that
key itself on the provider-hosted tool events it synthesises, so a copy
arriving from the endpoint is indistinguishable downstream.
"""
@@ -592,7 +592,7 @@ def test_a_tool_marker_split_around_a_multibyte_char_still_heals(executed):
def test_a_tool_the_user_did_not_enable_is_never_executed(executed):
"""The catalog is the authorization list, not a suggestion.
- ``python`` exists in Studio, but this request only offered ``web_search``.
+ ``python`` exists in Unsloth, but this request only offered ``web_search``.
Executing it because the provider named it would let any endpoint run
arbitrary code the user never switched on. It is a no-op, not an error, so no
card is painted; the model is told in the conversation instead, which is what
@@ -778,7 +778,7 @@ def test_no_enabled_tool_names_never_means_any_tool(executed):
``heal_gate`` is handed the selected catalog precisely so a ``None``
allowlist can never reach the parser: ``None`` there means "match anything",
- which turns a marked block naming any Studio tool into an execution.
+ which turns a marked block naming any Unsloth tool into an execution.
"""
payload = json.dumps({"name": "python", "arguments": {"code": "import os"}})
body = f"<tool_call>{payload}</tool_call>"
diff --git a/studio/backend/tests/test_external_tools_compat.py b/studio/backend/tests/test_external_tools_compat.py
index 8125e59dd35..e49d9fe3962 100644
--- a/studio/backend/tests/test_external_tools_compat.py
+++ b/studio/backend/tests/test_external_tools_compat.py
@@ -6,7 +6,7 @@
These tests do not exercise the tool loop itself (``test_studio_tool_loop.py``
owns that). They pin the contract at the seams where an *existing* install can
break during an upgrade, because each of those seams is a place where the two
-halves of Studio are versioned independently:
+halves of Unsloth are versioned independently:
* the ``/api/providers/registry`` payload, read by a browser that may still be
running a JS bundle from before this capability existed (old FE + new BE);
@@ -255,7 +255,7 @@ def test_response_format_is_omitted_when_the_caller_does_not_ask(monkeypatch):
TGI types it as a Rust enum with no ``text`` variant and 422s on the
OpenAI-default ``{"type": "text"}``; LM Studio before 0.3.18 400s on the
- same. Studio talks to those through the ``custom`` preset, so the field has
+ same. Unsloth talks to those through the ``custom`` preset, so the field has
to stay absent unless a caller explicitly asked for structured output.
"""
captured: dict = {}
diff --git a/studio/backend/tests/test_full_access_tool_prompt.py b/studio/backend/tests/test_full_access_tool_prompt.py
index ba844444db9..863a2f33bf2 100644
--- a/studio/backend/tests/test_full_access_tool_prompt.py
+++ b/studio/backend/tests/test_full_access_tool_prompt.py
@@ -73,10 +73,10 @@ def test_full_access_descriptions_drop_the_isolation_claim(tool):
assert "sandbox is disabled" in description
assert "wherever Unsloth Studio is running" in description
# Docker is a documented deployment, where only mounted paths are visible,
- # so the reach is the Studio process's, not a whole machine's.
+ # so the reach is the Unsloth process's, not a whole machine's.
assert "container with only some paths mounted" in description
# The remote modes (--secure / -H 0.0.0.0, README) put the tools on the host
- # serving Studio, not on the device the user is looking at, so the prompt
+ # serving Unsloth, not on the device the user is looking at, so the prompt
# must not claim the two are the same.
assert "user's own machine" not in description
# The workdir really is still the per-session dir in bypass mode
@@ -184,7 +184,7 @@ def test_python_full_access_description_still_omits_the_shell():
def test_full_access_drops_the_local_desktop_promise(monkeypatch):
"""The Git Bash branch of the shell note says a detached program opens a
- window on the user's desktop, which only holds while Studio is local. The
+ window on the user's desktop, which only holds while Unsloth is local. The
Full access text now says it may be remote or containerized, so the two
would contradict each other."""
monkeypatch.setattr(sys, "platform", "win32")
@@ -282,7 +282,7 @@ def test_nudge_states_the_environment_under_full_access():
nudge = _build_tool_action_nudge(tools = _CODE_TOOLS, model_name = "test-8B", full_access = True)
assert "where Unsloth Studio is running" in nudge
assert "code sandbox and the approval prompts disabled" in nudge
- # Containerized Studio sees only its mounts, so the claim is scoped to what
+ # Containerized Unsloth sees only its mounts, so the claim is scoped to what
# the process can reach rather than to the machine.
assert "whatever that process can reach" in nudge
assert "container that mounts only some" in nudge
@@ -313,7 +313,7 @@ def test_the_tip_names_only_the_selected_code_tools(enabled, expected):
for absent in {"python", "terminal"} - set(enabled):
assert f"The {absent} tool runs where" not in nudge
assert f"and {absent} tools run where" not in nudge
- # Studio can be served remotely, so the tools' host is not necessarily the
+ # Unsloth can be served remotely, so the tools' host is not necessarily the
# device in front of the user.
assert "not necessarily the device the user is viewing this on" in nudge
# The actual reported failure: the model asserted isolation instead of
diff --git a/studio/backend/tests/test_gguf_reload_inheritance.py b/studio/backend/tests/test_gguf_reload_inheritance.py
index da64f6e3fee..14cb3437f23 100644
--- a/studio/backend/tests/test_gguf_reload_inheritance.py
+++ b/studio/backend/tests/test_gguf_reload_inheritance.py
@@ -281,7 +281,7 @@ def test_extra_args_source_default_is_none():
class TestRepeatLoadMatchesTheEffectiveCache:
"""A repeat /load of an identical request must reuse the healthy server.
- self._cache_type_kv records only what Studio emitted as a MANAGED flag, so a
+ self._cache_type_kv records only what Unsloth emitted as a MANAGED flag, so a
cache set through extras or the environment leaves it None on one side and a
type on the other; the old scalar-against-scalar comparison then read an
identical repeat as a mismatch and tore the server down to relaunch the same
diff --git a/studio/backend/tests/test_gpu_arch_gate_consumers_7624.py b/studio/backend/tests/test_gpu_arch_gate_consumers_7624.py
index c19a9901280..3ed1476aaa2 100644
--- a/studio/backend/tests/test_gpu_arch_gate_consumers_7624.py
+++ b/studio/backend/tests/test_gpu_arch_gate_consumers_7624.py
@@ -548,7 +548,7 @@ class TestArchRetryDropsTensorSplit:
assert LlamaCppBackend._without_tensor_split(cmd) is None
# Known limitation, pinned not fixed: the scan is positional, so a VALUE
# spelled exactly like the flag is removed as if it were one and the
- # two-token form then swallows the argument after it. No Studio-built argv
+ # two-token form then swallows the argument after it. No Unsloth-built argv
# can reach this -- the only free-text values are the model path and the
# HF-derived --alias, llama.cpp's own value tokens being numbers or enum
# words -- so teaching the scanner every flag's arity is not worth it. If a
diff --git a/studio/backend/tests/test_gpu_arch_gate_os_matrix_7624.py b/studio/backend/tests/test_gpu_arch_gate_os_matrix_7624.py
index 68f9ec9028a..f11e808bfb7 100644
--- a/studio/backend/tests/test_gpu_arch_gate_os_matrix_7624.py
+++ b/studio/backend/tests/test_gpu_arch_gate_os_matrix_7624.py
@@ -2115,7 +2115,7 @@ class TestHsaOverrideGfxVersion:
class TestAnInstallFromBeforeThisPr:
- """An install written by an older Studio has no ``mapped_targets``, and the
+ """An install written by an older Unsloth has no ``mapped_targets``, and the
fingerprint deliberately does not cover the field, so it is never refreshed for
that reason alone. Such a host must behave EXACTLY as it did before the PR: the
fix arrives with the next llama.cpp update, and until then nothing may change,
diff --git a/studio/backend/tests/test_gpu_init_crash_message.py b/studio/backend/tests/test_gpu_init_crash_message.py
index d5366cdd063..63e5b62770c 100644
--- a/studio/backend/tests/test_gpu_init_crash_message.py
+++ b/studio/backend/tests/test_gpu_init_crash_message.py
@@ -272,7 +272,7 @@ class TestGpuInitCrashMessage:
class TestPlatformMatrix:
- """Every OS and runtime flavour Studio ships, so the recovery cannot leak
+ """Every OS and runtime flavour Unsloth ships, so the recovery cannot leak
into a path that already worked."""
# (platform, library prefix, library suffix, binary name)
@@ -800,7 +800,7 @@ class TestCpuIsolatedReplay:
assert staged is not None
assert not dead.exists()
- # No owner stamp means an older Studio wrote it; leave it alone.
+ # No owner stamp means an older Unsloth wrote it; leave it alone.
assert legacy.exists()
def test_a_live_owner_keeps_its_runtime(self, monkeypatch, tmp_path):
diff --git a/studio/backend/tests/test_hf_xet_fallback.py b/studio/backend/tests/test_hf_xet_fallback.py
index d3f1ebec881..b0757d6db4a 100644
--- a/studio/backend/tests/test_hf_xet_fallback.py
+++ b/studio/backend/tests/test_hf_xet_fallback.py
@@ -691,7 +691,7 @@ def test_start_watchdog_passes_everything_to_a_zoo_that_accepts_it(monkeypatch):
def test_apply_xet_env_delegates_to_the_zoo(monkeypatch):
- """One rule, in one place: Studio asks the zoo to size the worker rather than sizing it too."""
+ """One rule, in one place: Unsloth asks the zoo to size the worker rather than sizing it too."""
import types
import utils.hf_xet_fallback as shim
@@ -783,7 +783,7 @@ def test_a_zoo_that_can_resize_is_asked_for_the_workers_own_cache(monkeypatch):
# --- free-RAM clamp (issue #9032) ---------------------------------------------------------------
-# The zoo sizes Xet's buffers from TOTAL RAM, which cannot see a loaded model. Studio clamps the
+# The zoo sizes Xet's buffers from TOTAL RAM, which cannot see a loaded model. Unsloth clamps the
# result to what is free. The bar: shrink under pressure, change nothing otherwise.
_GB = 1_000_000_000
diff --git a/studio/backend/tests/test_hosted_code_execution_placement.py b/studio/backend/tests/test_hosted_code_execution_placement.py
index 99d0d2ad56f..15765e9b279 100644
--- a/studio/backend/tests/test_hosted_code_execution_placement.py
+++ b/studio/backend/tests/test_hosted_code_execution_placement.py
@@ -1,18 +1,18 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-"""Which side runs the code when a turn mixes the Code pill with a Studio tool.
+"""Which side runs the code when a turn mixes the Code pill with an Unsloth tool.
``code_execution`` runs in the provider's sandbox; ``python`` / ``terminal`` run
-on the machine Studio is installed on. They are two trust boundaries, not two
+on the machine Unsloth is installed on. They are two trust boundaries, not two
spellings of one feature, so the request says which one it wants by name and
-this server forwards accordingly. Studio has no implementation of
+this server forwards accordingly. Unsloth has no implementation of
``code_execution`` (``ALL_TOOLS`` is web_search / python / terminal / render_html
/ search_knowledge_base), so filtering it out as "locally replaced" does not
substitute anything -- it drops the tool while its pill stays lit, and the model
is never offered a sandbox at all.
-The one case that IS a substitution is a request naming both, which no Studio
+The one case that IS a substitution is a request naming both, which no Unsloth
build sends: there the local names win and the hosted one is dropped, so a
single pill can never bill the provider and run on this host at the same time.
"""
@@ -30,7 +30,7 @@ def test_studio_really_has_no_local_code_execution():
@pytest.mark.parametrize("provider_type", ["openai", "anthropic", "gemini"])
def test_hosted_code_execution_rides_along_with_a_studio_tool(provider_type):
- """RAG or MCP selects the Studio loop; the Code pill must still reach the
+ """RAG or MCP selects the Unsloth loop; the Code pill must still reach the
provider's sandbox rather than being dropped on the way."""
assert hosted_only_tools(provider_type, ["search_knowledge_base", "code_execution"]) == [
"code_execution"
@@ -44,7 +44,7 @@ def test_the_local_code_tools_still_win_when_a_request_names_both():
def test_web_search_is_still_never_forwarded():
- """Studio's catalog does contain web_search, so that one really is replaced."""
+ """Unsloth's catalog does contain web_search, so that one really is replaced."""
assert hosted_only_tools("openai", ["web_search", "search_knowledge_base"]) == []
assert hosted_only_tools("anthropic", ["web_search", "python"]) == []
diff --git a/studio/backend/tests/test_hosted_result_replay.py b/studio/backend/tests/test_hosted_result_replay.py
index d7e46912f4c..b573ef23f46 100644
--- a/studio/backend/tests/test_hosted_result_replay.py
+++ b/studio/backend/tests/test_hosted_result_replay.py
@@ -9,7 +9,7 @@ client as its own ``_toolEvent`` frame, but the loop rebuilds the assistant
message from the text and tool calls it saw, so that output was absent from the
replayed conversation and the model answered from the local results alone.
-Studio's own tool events carry a top-level ``type`` and never appear as
+Unsloth's own tool events carry a top-level ``type`` and never appear as
``_toolEvent``, so local results are not replayed twice.
"""
diff --git a/studio/backend/tests/test_hub_download_ambient_token.py b/studio/backend/tests/test_hub_download_ambient_token.py
index a3030a80c5c..c53e11ec39c 100644
--- a/studio/backend/tests/test_hub_download_ambient_token.py
+++ b/studio/backend/tests/test_hub_download_ambient_token.py
@@ -3,7 +3,7 @@
"""The backend's own HF_TOKEN is the operator's credential, not a shared service credential.
-The Studio UI sends the user's saved token in ``X-Unsloth-HF-Token`` on every hub download, so
+The Unsloth UI sends the user's saved token in ``X-Unsloth-HF-Token`` on every hub download, so
only a caller that has none reaches the ambient fallback. A UI session is the installation's
owner and keeps it (Settings hands that session the saved token anyway). An sk-unsloth API key
is the lesser credential -- Settings refuses it the saved token -- so it must not reach private
diff --git a/studio/backend/tests/test_hub_download_transport_auto.py b/studio/backend/tests/test_hub_download_transport_auto.py
index 643e27e38a8..9ec24c004ce 100644
--- a/studio/backend/tests/test_hub_download_transport_auto.py
+++ b/studio/backend/tests/test_hub_download_transport_auto.py
@@ -166,7 +166,7 @@ def test_xet_worker_is_sized_from_the_machine(monkeypatch):
def test_the_zoo_decides_and_studio_does_not_second_guess_it(monkeypatch):
- """Studio used to force the flag off here. Two copies of one rule drifted, and on a 2TB host the
+ """Unsloth used to force the flag off here. Two copies of one rule drifted, and on a 2TB host the
worker ended up with a 24GB laptop's buffer, 3.4x slower than the machine's own setting."""
import utils.hf_xet_fallback as shim
@@ -198,7 +198,7 @@ def test_the_zoo_decides_and_studio_does_not_second_guess_it(monkeypatch):
def test_high_performance_is_cleared_even_without_the_tuning_module(monkeypatch):
"""An unsloth_zoo with no `hf_xet_tuning` is exactly the version that sets
HF_XET_HIGH_PERFORMANCE=1 at import, so routing the clear through the (then empty) overrides
- would hand the worker a 64GB buffer ceiling on the installs Studio alone cannot fix."""
+ would hand the worker a 64GB buffer ceiling on the installs Unsloth alone cannot fix."""
import utils.hf_xet_fallback as shim
monkeypatch.setattr(shim, "apply_xet_env", lambda *a, **k: None)
diff --git a/studio/backend/tests/test_launch_flags_are_capability_gated.py b/studio/backend/tests/test_launch_flags_are_capability_gated.py
index 3a1648fa9ea..45ea8358a47 100644
--- a/studio/backend/tests/test_launch_flags_are_capability_gated.py
+++ b/studio/backend/tests/test_launch_flags_are_capability_gated.py
@@ -6,7 +6,7 @@
The probe checks 17 optional flags with _is_real before emitting them, but
--flash-attn, --no-context-shift and --jinja were emitted unconditionally. That
is fine for the pinned prebuilt, which has all three. It is not fine for a stale
-or user-supplied LLAMA_SERVER_PATH, which Studio explicitly supports: an unknown
+or user-supplied LLAMA_SERVER_PATH, which Unsloth explicitly supports: an unknown
argument makes llama-server exit immediately rather than start degraded, and the
user sees a generic startup failure.
@@ -327,7 +327,7 @@ class TestAFlaglessBuildIgnoresTheFlashAttentionEnv:
"""A build with no --flash-attn never reads LLAMA_ARG_FLASH_ATTN either.
llama.cpp resolves each LLAMA_ARG_* variable through the common_arg that
- declares it, so a binary predating the flag registers neither. Studio still
+ declares it, so a binary predating the flag registers neither. Unsloth still
reads the inherited env when it records what the child is running, and a
recorded-on flash attention under-sizes the padded V cache the resume-slot
estimate is capped on.
diff --git a/studio/backend/tests/test_liveness_reports_inference_active.py b/studio/backend/tests/test_liveness_reports_inference_active.py
index 0088ff05448..1b80402710b 100644
--- a/studio/backend/tests/test_liveness_reports_inference_active.py
+++ b/studio/backend/tests/test_liveness_reports_inference_active.py
@@ -268,7 +268,7 @@ def test_liveness_covers_the_image_persist_tail():
def test_both_image_routes_publish_the_persist_marker():
- """The Studio route and the OpenAI-compatible one write the gallery on separate paths.
+ """The Unsloth route and the OpenAI-compatible one write the gallery on separate paths.
Only the first used to count, so an OpenAI client's persist was invisible to both
generate-progress and liveness."""
import inspect
diff --git a/studio/backend/tests/test_llama_admission_kv_budget_media_and_tools.py b/studio/backend/tests/test_llama_admission_kv_budget_media_and_tools.py
index 70bea0bedde..afc41b6ae1f 100644
--- a/studio/backend/tests/test_llama_admission_kv_budget_media_and_tools.py
+++ b/studio/backend/tests/test_llama_admission_kv_budget_media_and_tools.py
@@ -3,14 +3,14 @@
"""Two holes in the KV reservation the estimator has to charge for.
-Media: Studio's composer sends attachments in the legacy top-level ``image_base64`` /
+Media: Unsloth's composer sends attachments in the legacy top-level ``image_base64`` /
``audio_base64`` / ``video_base64`` fields, and the generation path splices them into
the prompt AFTER admission is decided. Charging only ``messages`` priced an image at
zero while llama.cpp's mtmd embeddings take real KV positions.
Tool loop: the server-side loop opens on ``enable_tools`` / ``mcp_enabled`` / the CLI
policy / a checkpoint repair, none of which require a client ``tools`` array, so a
-predicate keyed on ``payload.tools`` charged Studio's own tool traffic the opening
+predicate keyed on ``payload.tools`` charged Unsloth's own tool traffic the opening
estimate for a lease that runs up to 25 growing rounds.
"""
diff --git a/studio/backend/tests/test_llama_backend_marker.py b/studio/backend/tests/test_llama_backend_marker.py
index 506e7b19f0d..7119677d97f 100644
--- a/studio/backend/tests/test_llama_backend_marker.py
+++ b/studio/backend/tests/test_llama_backend_marker.py
@@ -99,7 +99,7 @@ def test_the_api_offers_exactly_the_requestable_backends():
def test_the_api_reports_an_unreadable_newer_backend_request_verbatim():
- """A choice written by a newer Studio survives the response model.
+ """A choice written by a newer Unsloth survives the response model.
Coercing it to "auto" would tell the picker this install is detecting when it
is not, and the picker would then happily overwrite the newer choice.
diff --git a/studio/backend/tests/test_llama_backend_selection.py b/studio/backend/tests/test_llama_backend_selection.py
index 9ef3df280d5..c6daf28e5f5 100644
--- a/studio/backend/tests/test_llama_backend_selection.py
+++ b/studio/backend/tests/test_llama_backend_selection.py
@@ -131,7 +131,7 @@ def test_windows_rocm_bundle_satisfies_a_rocm_request():
# Written by this build.
({"backend": "rocm", "backend_request": "rocm"}, "rocm"),
({"backend": "cuda", "backend_request": "auto"}, "auto"),
- # A choice from a newer Studio is returned verbatim, never as "auto":
+ # A choice from a newer Unsloth is returned verbatim, never as "auto":
# "auto" would license this build to re-detect over it.
({"backend": "sycl", "backend_request": "sycl"}, "sycl"),
({"asset": "x.tar.gz", "llama_backend": "sycl"}, "sycl"),
@@ -460,7 +460,7 @@ def test_metadata_records_both_the_backend_and_the_choice(tmp_path):
marker = json.loads((tmp_path / "UNSLOTH_PREBUILT_INFO.json").read_text())
assert marker["backend"] == "vulkan"
assert marker["backend_request"] == "vulkan"
- # The superseded field stays, so an older Studio keeps re-asserting Vulkan.
+ # The superseded field stays, so an older Unsloth keeps re-asserting Vulkan.
assert marker["llama_backend"] == "vulkan"
diff --git a/studio/backend/tests/test_llama_cpp_mmproj_fallback.py b/studio/backend/tests/test_llama_cpp_mmproj_fallback.py
index b28837b1620..d956bf66ed9 100644
--- a/studio/backend/tests/test_llama_cpp_mmproj_fallback.py
+++ b/studio/backend/tests/test_llama_cpp_mmproj_fallback.py
@@ -4,7 +4,7 @@
"""Tests for llama-server multimodal-projector startup recovery.
A GGUF vision model launches with ``--mmproj <projector>``. When GPU memory
-cannot hold the projector, Studio first retries with ``--no-mmproj-offload``
+cannot hold the projector, Unsloth first retries with ``--no-mmproj-offload``
so image input remains available. Incompatible projectors, or startup crashes
that also fail that CPU-projector retry, keep the existing text-only fallback.
These tests pin the diagnostics, argv rewrites, fallback ordering, and runtime
@@ -363,7 +363,7 @@ _drop_env_v = LlamaCppBackend._drop_env_quantized_v_cache
class TestFlashAttnOffQuantizedKvCache:
"""Only the V cache requires flash attention in llama.cpp (init aborts with
"V cache quantization requires flash_attn"); a quantized K cache runs fine
- without FA. Studio launches FA on, so a quantized --cache-type-v is legal at
+ without FA. Unsloth launches FA on, so a quantized --cache-type-v is legal at
launch but would make the FA-off crash-recovery retry crash on init. The
fallback must reset a quantized V cache (main and draft) to f16 while leaving
the K cache and non-quantized (f16/bf16/f32) types unchanged -- resetting K
@@ -511,7 +511,7 @@ class TestFlashAttnOffQuantizedKvCache:
class TestDropEnvQuantizedVCache:
"""The argv rewrite can't reach a cache type set purely through the
- environment (Studio deliberately lets an env-only type reach the child), so
+ environment (Unsloth deliberately lets an env-only type reach the child), so
the FA-off retry separately drops a quantized V-cache env var. Only V is
dropped: a quantized K cache is FA-independent and must survive."""
@@ -636,7 +636,7 @@ class TestRetryContract:
def test_signal_crash_tries_non_destructive_rungs_before_dropping_vision(self):
# Ladder order: FA-off first, then projector-on-CPU. Only if both fail
- # does Studio remove --mmproj and become text-only.
+ # does Unsloth remove --mmproj and become text-only.
assert _signal_crash(-11) is True
fa_retry = _flash_off(_VISION_CMD)
assert fa_retry is not None
diff --git a/studio/backend/tests/test_llama_cpp_mtp_detection.py b/studio/backend/tests/test_llama_cpp_mtp_detection.py
index 70327a681e2..6eb4242a067 100644
--- a/studio/backend/tests/test_llama_cpp_mtp_detection.py
+++ b/studio/backend/tests/test_llama_cpp_mtp_detection.py
@@ -1117,7 +1117,7 @@ def test_probe_detects_post_rename_ngram_mod_flavor(tmp_path):
assert caps["supports_ngram_mod"] is True
assert caps["spec_draft_n_max_flag"] == "--spec-draft-n-max"
# The build's own depth, off the same line: a pass-through --spec-type makes
- # the child run on this rather than on anything Studio emits, and the Hybrid
+ # the child run on this rather than on anything Unsloth emits, and the Hybrid
# Mamba rollback reserve scales by it.
assert caps["spec_draft_n_max_default"] == 16
@@ -3071,7 +3071,7 @@ def test_a_hanging_binary_is_probed_once_per_model_load(tmp_path, monkeypatch):
def test_a_missing_binary_is_not_cached_so_it_is_seen_as_soon_as_it_lands(tmp_path):
"""The found:False early return sits above the cache and costs a stat rather than a
subprocess, so it must stay uncached: an install finishing mid-session has to be
- picked up without a Studio restart."""
+ picked up without an Unsloth restart."""
binary = tmp_path / "llama-server"
_clear_caps_cache()
diff --git a/studio/backend/tests/test_llama_cpp_placement.py b/studio/backend/tests/test_llama_cpp_placement.py
index 472dff1567e..471f6063dea 100644
--- a/studio/backend/tests/test_llama_cpp_placement.py
+++ b/studio/backend/tests/test_llama_cpp_placement.py
@@ -242,7 +242,7 @@ def test_dspark_composed_argv_respects_placement_fit_decision(tmp_path, use_fit)
def test_dspark_keeps_a_user_fit_flag(tmp_path):
"""A caller's --fit is theirs to set: the sidecar loads under either value,
- so Studio has no reason to rewrite it."""
+ so Unsloth has no reason to rewrite it."""
backend, gguf = _backend(tmp_path, vulkan = False, memory = [(0, 24_000, 24_000)])
sidecar = tmp_path / "dspark-model-Q8_0.gguf"
sidecar.write_bytes(b"draft")
@@ -848,8 +848,8 @@ def test_a_pass_through_drafter_pays_the_rollback_its_type_calls_for(
def test_a_pass_through_spec_block_budgets_the_depth_the_build_defaults_to(
tmp_path, requested_depth
):
- # Studio emits no --spec-draft-n-max when the extras own the spec block, so
- # the child runs at the build's own default. Budgeting Studio's 2 instead
+ # Unsloth emits no --spec-draft-n-max when the extras own the spec block, so
+ # the child runs at the build's own default. Budgeting Unsloth's 2 instead
# under-reserves the rollback copies, which scale directly with it -- and a
# request field carries no further than the platform default does, since
# neither is emitted.
@@ -941,7 +941,7 @@ def test_a_post_rename_build_ignores_the_legacy_depth_variable(tmp_path, monkeyp
def test_an_unreadable_help_budgets_the_deepest_shipped_draft_depth(tmp_path):
# The probe timed out, or the help line carries no default. The child is still
- # drafting at whatever the build defaults to, so Studio's own explicit-mode 2
+ # drafting at whatever the build defaults to, so Unsloth's own explicit-mode 2
# would under-reserve the rollback copies by up to eight times.
backend, gguf, _sidecar = _hybrid_reserve_backend(
tmp_path,
@@ -1610,7 +1610,7 @@ def _offload_backend(tmp_path, *, gguf_gb, free_mib, avail_mib, monkeypatch, **k
def test_weights_larger_than_vram_plus_ram_are_refused(tmp_path, monkeypatch):
"""The field case: a 13.3 GB GGUF on a 6 GB laptop card holding 4877 MiB free needs
about 8.5 GB of host RAM, which a 10 GB host cannot hold. Unrefused, the mmap'd
- remainder thrashes until the OS kills Studio and the desktop session."""
+ remainder thrashes until the OS kills Unsloth and the desktop session."""
backend, gguf = _offload_backend(
tmp_path, gguf_gb = 13.3, free_mib = 4877, avail_mib = 10_000, monkeypatch = monkeypatch
)
@@ -2169,7 +2169,7 @@ def test_an_unprobed_pool_still_abstains_when_nothing_was_masked(tmp_path, monke
def test_a_gpu_less_host_running_a_cpu_only_build_still_abstains(tmp_path, monkeypatch):
- """Studio installs a CPU-only prebuilt on a host with no GPU, so that host probes an
+ """Unsloth installs a CPU-only prebuilt on a host with no GPU, so that host probes an
empty pool AND reports a build with no GPU backend. Letting the build state alone
charge the whole model refused a 7.5 GB GGUF with 9 GB of RAM, which loads on main,
and blamed GPU memory on a machine that has no GPU."""
diff --git a/studio/backend/tests/test_llama_cpp_slot_resume.py b/studio/backend/tests/test_llama_cpp_slot_resume.py
index fc1222b2da1..9478ead3767 100644
--- a/studio/backend/tests/test_llama_cpp_slot_resume.py
+++ b/studio/backend/tests/test_llama_cpp_slot_resume.py
@@ -311,7 +311,7 @@ def test_explicit_cache_prompt_flag_overrides_env(monkeypatch, tmp_path):
def test_user_cache_prompt_overrides_studio_no_cache_flag(monkeypatch, tmp_path):
- # User extras follow Studio's flags, so an explicit --cache-prompt wins.
+ # User extras follow Unsloth's flags, so an explicit --cache-prompt wins.
backend = _resume_backend(tmp_path)
backend._prompt_cache_disabled = True
backend._extra_args = ["--cache-prompt"]
diff --git a/studio/backend/tests/test_llama_cpp_start_failure_classification.py b/studio/backend/tests/test_llama_cpp_start_failure_classification.py
index c6c5785b8f7..4e632dcbecb 100644
--- a/studio/backend/tests/test_llama_cpp_start_failure_classification.py
+++ b/studio/backend/tests/test_llama_cpp_start_failure_classification.py
@@ -512,7 +512,7 @@ class TestMissingSharedLibrary:
class TestBundledHipRocrMismatch:
- """Studio prepends system ROCm, the prebuilt still binds its bundled HIP,
+ """Unsloth prepends system ROCm, the prebuilt still binds its bundled HIP,
and glibc exits 127 on the symbol lookup (#8998). That used to read as a
missing llama-server and get retried as a VRAM miss. Neither is true.
"""
@@ -944,7 +944,7 @@ class TestMacOSLoaderEdgeCases:
assert len(msg) < 1000
def test_the_health_timeout_marker_is_not_absorbed_into_a_dyld_reason(self):
- # Studio appends its own marker to the captured output; it must not be
+ # Unsloth appends its own marker to the captured output; it must not be
# quoted back to the user as part of dyld's diagnosis.
out = (
"dyld[1]: Library not loaded: @rpath/libllama.dylib\n"
@@ -964,7 +964,7 @@ class TestMacOSLoaderEdgeCases:
class TestDiagnosticsDoNotLeak:
"""The output tail is llama-server's own stdout, and llama-server inherits
- nearly all of Studio's environment."""
+ nearly all of Unsloth's environment."""
_OUT = "build: 9415\nenv dump: OPENAI_API_KEY=sk-owner-secret-1234567890\nabort"
@@ -1342,7 +1342,7 @@ class TestOutputIsNeverTrustedForBeingOurOwnFraming:
message: printing "llama-server output:" as its first line returned its
stdout verbatim, past the redaction and past the 2000-character cap. The
fixed point was for a caller that does not exist; the bypass was reachable
- by anything Studio launches.
+ by anything Unsloth launches.
"""
_LOG = "/Users/me/.unsloth/studio/logs/llama-server/llama-1-port-8080.log"
@@ -1747,7 +1747,7 @@ class TestRejectedArguments:
assert "stoi" not in msg
def test_a_value_error_on_a_flag_the_user_did_not_set_stays_neutral(self):
- # Studio emits its own options conditionally on the capability probe, so a
+ # Unsloth emits its own options conditionally on the capability probe, so a
# build that reads "--flash-attn on" differently rejects a value the box
# never held. Sending that reader to edit their extra arguments points them
# at a setting they cannot use to fix it.
@@ -1856,7 +1856,7 @@ class TestArgumentErrorsAreQuotedShort:
class TestTensorSplitQuantizedKvUnsupported:
"""llama.cpp before ggml-org/llama.cpp#23792 (b9455) refused a quantized KV
- cache under --split-mode tensor. Studio no longer pre-empts that refusal, so
+ cache under --split-mode tensor. Unsloth no longer pre-empts that refusal, so
the message has to name the remedy: the generic invalid-GGUF/OOM fallback sends
the user to check their file or buy VRAM, neither of which is the problem."""
diff --git a/studio/backend/tests/test_llama_cpp_tool_loop.py b/studio/backend/tests/test_llama_cpp_tool_loop.py
index 47396badb23..f908763dd70 100644
--- a/studio/backend/tests/test_llama_cpp_tool_loop.py
+++ b/studio/backend/tests/test_llama_cpp_tool_loop.py
@@ -5924,7 +5924,7 @@ def test_a_long_tool_run_reports_a_boundary_in_the_requests_own_terms(monkeypatc
)
branch = [
- # Studio always prepends one and a fit never evicts it, so counting it as the
+ # Unsloth always prepends one and a fit never evicts it, so counting it as the
# front of the branch reported zero on every compaction.
{"role": "system", "content": "you are helpful"},
{"role": "user", "content": "u" * 1200},
diff --git a/studio/backend/tests/test_llama_extra_args_platforms.py b/studio/backend/tests/test_llama_extra_args_platforms.py
index 4ffd074dbff..d04e538c884 100644
--- a/studio/backend/tests/test_llama_extra_args_platforms.py
+++ b/studio/backend/tests/test_llama_extra_args_platforms.py
@@ -3,7 +3,7 @@
"""The extra-arguments pass-through across every platform and accelerator.
-Studio emits a different command on each of these: CUDA, ROCm and Vulkan take
+Unsloth emits a different command on each of these: CUDA, ROCm and Vulkan take
different offload flags, Metal takes none of them, and Windows spells the binary
and the paths differently. The claim this suite has to defend is the same on all of
them, and it is a claim about what does NOT change:
@@ -11,7 +11,7 @@ them, and it is a claim about what does NOT change:
with the box empty, the command is byte-identical to the one Unsloth emitted
before this feature existed.
-The matrix is the Cartesian product of the platforms Studio ships on and the
+The matrix is the Cartesian product of the platforms Unsloth ships on and the
accelerators it detects, driven through the real ``load_model`` with the command
captured at the Popen boundary.
"""
@@ -185,19 +185,19 @@ def test_a_windows_shaped_value_survives_as_one_token(tmp_path, monkeypatch, pla
@pytest.mark.parametrize("platform", PLATFORMS, ids = [p[0] for p in PLATFORMS])
def test_the_denied_env_twins_are_scrubbed_on_every_platform(tmp_path, monkeypatch, platform):
# llama.cpp reads LLAMA_ARG_* before argv on all of them, so denying the token
- # without the variable would leave the capability reachable wherever Studio runs.
+ # without the variable would leave the capability reachable wherever Unsloth runs.
_apply_platform(monkeypatch, platform)
monkeypatch.setenv("LLAMA_ARG_AGENT", "1")
monkeypatch.setenv("LLAMA_ARG_TOOLS", "all")
- # The logging twin matters most of all: Studio classifies a failed start by
+ # The logging twin matters most of all: Unsloth classifies a failed start by
# reading llama-server's output, and nothing it emits later overrides this.
monkeypatch.setenv("LLAMA_ARG_LOG_FILE", "/tmp/llama.log")
# --api-prefix moves /health, which every load waits on, and an inherited API key
- # makes the healthy child refuse requests Studio sends without one.
+ # makes the healthy child refuse requests Unsloth sends without one.
monkeypatch.setenv("LLAMA_ARG_API_PREFIX", "/llama")
monkeypatch.setenv("LLAMA_API_KEY", "sk-someone-elses")
monkeypatch.setenv("LLAMA_ARG_API_KEY_FILE", "/etc/llama.keys")
- # Given both TLS twins llama-server listens on https, while Studio probes /health
+ # Given both TLS twins llama-server listens on https, while Unsloth probes /health
# and proxies over http: the child is healthy and every load times out.
monkeypatch.setenv("LLAMA_ARG_SSL_KEY_FILE", "/etc/llama/key.pem")
monkeypatch.setenv("LLAMA_ARG_SSL_CERT_FILE", "/etc/llama/cert.pem")
diff --git a/studio/backend/tests/test_llama_server_args.py b/studio/backend/tests/test_llama_server_args.py
index 1a7f7f23d41..f6d7012f800 100644
--- a/studio/backend/tests/test_llama_server_args.py
+++ b/studio/backend/tests/test_llama_server_args.py
@@ -236,7 +236,7 @@ def test_a_bare_positional_is_rejected():
# Startup output is how a bad GGUF is told from an OOM from a rejected flag.
"--log-file",
"--log-disable",
- # Slot-state dir: Studio owns it for KV persistence across idle unload.
+ # Slot-state dir: Unsloth owns it for KV persistence across idle unload.
"--slot-save-path",
# These print and exit instead of serving.
"-h",
@@ -1128,7 +1128,7 @@ def test_every_denied_flag_with_a_twin_in_the_help_is_scrubbed():
# pairs that mattered, so a name dropped from the denylist, or a twin dropped
# from the scrub, is a red test rather than a back door found later.
#
- # llama.cpp applies the environment BEFORE argv, so the ones Studio always emits
+ # llama.cpp applies the environment BEFORE argv, so the ones Unsloth always emits
# are overridden anyway; the rest are the reason this exists.
for env_var, flag in (
("LLAMA_ARG_UI_MCP_PROXY", "--ui-mcp-proxy"),
@@ -1159,7 +1159,7 @@ def test_every_denied_flag_with_a_twin_in_the_help_is_scrubbed():
for kept in ("LLAMA_ARG_MMPROJ", "LLAMA_ARG_MMPROJ_URL"):
assert kept not in _lsa.DENIED_ENV_VARS, kept
# HF_TOKEN is deliberately not here: it is the standard Hugging Face credential
- # Studio's own downloads use, not a llama-server behaviour switch, and the child
+ # Unsloth's own downloads use, not a llama-server behaviour switch, and the child
# is always given a local -m path rather than a repo to fetch.
assert "HF_TOKEN" not in _lsa.DENIED_ENV_VARS
_lsa.scrub_denied_env(env)
diff --git a/studio/backend/tests/test_load_mode_fit_matrix.py b/studio/backend/tests/test_load_mode_fit_matrix.py
index f2972ad60db..7fcbbbc37b6 100644
--- a/studio/backend/tests/test_load_mode_fit_matrix.py
+++ b/studio/backend/tests/test_load_mode_fit_matrix.py
@@ -405,7 +405,7 @@ def test_the_fitters_margin_is_not_credited_to_the_fit(monkeypatch):
avail_mib = 2 * 1024,
)
- # --fit off (Studio proved the placement): no fitter, no margin, the card pays.
+ # --fit off (Unsloth proved the placement): no fitter, no margin, the card pays.
assert _fit(0.0) == FIT_MODE
# --fit on: the last 1 GiB is the fitter's, so 0.5 GiB of weights spill, and
# 2 GiB of RAM is exactly the headroom, so nothing is left to hold them.
@@ -429,7 +429,7 @@ def test_the_margin_is_charged_per_device():
(False, 0.0, True, 1024.0),
# Manual + Auto starts from the tighter floor.
(True, 0.0, True, 512.0),
- # A lowered VRAM budget raises the margin Studio asks the fitter to keep.
+ # A lowered VRAM budget raises the margin Unsloth asks the fitter to keep.
(False, 2048.0, True, 3072.0),
# ...and never below the 512 MiB floor.
(True, -4096.0, True, 512.0),
@@ -647,7 +647,7 @@ def test_an_abstaining_fit_reproduces_the_old_argv_exactly(axes, extras, toggles
Every host where the fit cannot prove a fit -- unreadable RAM, an unsized
model, Apple Silicon, a load too big for the machine -- has to come out of
- this byte-identical to a Studio that never had the feature.
+ this byte-identical to an Unsloth instance that never had the feature.
"""
(keep, no_reserve), user, _fit, supports, host = axes
toggles(keep, no_reserve)
@@ -1258,7 +1258,7 @@ def _vulkan(footprint, avail_mib, monkeypatch, **kwargs):
],
)
def test_a_replaced_vulkan_pin_voids_the_credit(extras, monkeypatch):
- """Studio pins Vulkan0,Vulkan1 from the credited ordinals; a pass-through
+ """Unsloth pins Vulkan0,Vulkan1 from the credited ordinals; a pass-through
--device lands after it and last-wins."""
assert _vulkan(18 * GIB, 4 * 1024, monkeypatch, extra_args = extras) is None
@@ -1955,7 +1955,7 @@ def test_the_fit_prices_pass_through_adapter_weights(tmp_path, monkeypatch):
def test_the_fit_prices_the_legacy_two_token_scaled_adapter(tmp_path, monkeypatch):
"""``--lora-scaled FNAME SCALE`` is the spelling older llama-servers declared,
- and Studio runs whatever binary it is pointed at. Reading only FNAME as the
+ and Unsloth runs whatever binary it is pointed at. Reading only FNAME as the
operand and dropping it for want of a colon prices the adapter at zero, which is
the optimistic direction: a load that needs 21 GiB on a 20 GiB card would be
handed a loader that cannot page.
diff --git a/studio/backend/tests/test_log_bounds.py b/studio/backend/tests/test_log_bounds.py
index ca8b9f4d293..81baaaec921 100644
--- a/studio/backend/tests/test_log_bounds.py
+++ b/studio/backend/tests/test_log_bounds.py
@@ -7,7 +7,7 @@ The volume guards cap how many lines get written. This one caps what is left on
afterwards, which is a separate failure: a family that writes one file per operation and
never prunes grows for the life of the install, and nothing in the line budget notices.
-``utils.debug_log_sources.FAMILIES`` is the authoritative inventory of what Studio writes,
+``utils.debug_log_sources.FAMILIES`` is the authoritative inventory of what Unsloth writes,
so it is the list a new family cannot avoid appearing on.
"""
diff --git a/studio/backend/tests/test_log_budget.py b/studio/backend/tests/test_log_budget.py
index 296ffdfc27b..751458a2024 100644
--- a/studio/backend/tests/test_log_budget.py
+++ b/studio/backend/tests/test_log_budget.py
@@ -3,7 +3,7 @@
"""Log volume must not regress, and every polled path must be classified.
-Studio's log-reduction work is several PRs deep and every round of it started with someone
+Unsloth's log-reduction work is several PRs deep and every round of it started with someone
noticing a log was huge. Nothing stopped the next chatty endpoint. These are the two guards
that do: an envelope on how much an idle app writes, and a closure check that makes it
impossible to add a poll without saying which suppression rule owns it.
@@ -148,7 +148,7 @@ class TestVolumeEnvelope:
f"Biggest contributors:\n {worst}\n\n"
"If you added an endpoint, give it a heartbeat class in "
"loggers/handlers.py rather than raising the envelope. Raising it is a "
- "decision about how much Studio is allowed to write when nobody is using "
+ "decision about how much Unsloth is allowed to write when nobody is using "
"it."
)
diff --git a/studio/backend/tests/test_media_auto_switch.py b/studio/backend/tests/test_media_auto_switch.py
index 8647c2e4d21..7bc68780faf 100644
--- a/studio/backend/tests/test_media_auto_switch.py
+++ b/studio/backend/tests/test_media_auto_switch.py
@@ -594,7 +594,7 @@ def test_the_video_route_switches_before_it_touches_the_backend(monkeypatch):
)
assert resp.status_code == 200
- # Not the OpenAI envelope: this route is a Studio surface and its errors are plain details.
+ # Not the OpenAI envelope: this route is an Unsloth surface and its errors are plain details.
assert calls == [("unsloth/Wan2.2", arb.VIDEO, False, "hf_abc")]
diff --git a/studio/backend/tests/test_media_family_assembler_offline.py b/studio/backend/tests/test_media_family_assembler_offline.py
index a73314b87c2..1ec9d716a5c 100644
--- a/studio/backend/tests/test_media_family_assembler_offline.py
+++ b/studio/backend/tests/test_media_family_assembler_offline.py
@@ -437,7 +437,7 @@ def test_the_video_assembly_hands_the_flag_to_the_ltx23_assembler():
# ── the live cache root ──────────────────────────────────────────────────────────
-# Studio's HF cache folder is a SETTING (PUT /settings/hugging-face-cache), and changing it only
+# Unsloth's HF cache folder is a SETTING (PUT /settings/hugging-face-cache), and changing it only
# rewrites the DB: os.environ and huggingface_hub's import-time constant keep the startup value.
# So after a change the live root and the import-time root differ, and an unset cache_dir resolves
# through the stale one. That mismatch predates this PR and used to be survivable, because a miss
@@ -464,7 +464,7 @@ def test_the_krea_assembler_pins_every_component_to_the_live_cache(
):
seen = _drive_krea(monkeypatch, tmp_path, local_files_only = True)
# The direct loader calls. "tokenizer" and "text_encoder" are absent by design: those two tags
- # record the kwargs handed to load_krea2_tokenizer / load_krea2_text_encoder, which are Studio
+ # record the kwargs handed to load_krea2_tokenizer / load_krea2_text_encoder, which are Unsloth
# helpers rather than hub calls, so they take no cache_dir and pin internally instead. The test
# below drives them for real.
for tag in ("scheduler", "vae", "transformer", "model_index"):
diff --git a/studio/backend/tests/test_media_keepwarm.py b/studio/backend/tests/test_media_keepwarm.py
index 27920496863..ef04cf29b39 100644
--- a/studio/backend/tests/test_media_keepwarm.py
+++ b/studio/backend/tests/test_media_keepwarm.py
@@ -325,7 +325,7 @@ def test_a_job_that_lives_between_two_polls_still_gets_the_full_ttl(media, monke
def test_a_veto_applied_during_the_step_stops_the_next_teardown(media, monkeypatch):
# One step tears down both backends and freeing several GB takes seconds. Reading the
# effective TTL once for the whole step let a residency veto turned on during the
- # diffusion unload be ignored by the video one, so Studio freed a model its own settings
+ # diffusion unload be ignored by the video one, so Unsloth freed a model its own settings
# response already reported as pinned.
ttl = {"value": 60}
monkeypatch.setattr(settings, "get_media_auto_unload_idle_seconds", lambda: ttl["value"])
@@ -502,7 +502,7 @@ def test_a_chat_ttl_alone_leaves_the_media_backends_alone(media, store, monkeypa
def test_the_off_tick_does_not_import_the_media_modules(store, monkeypatch):
# Off is the default and has to stay free: the tick runs every 15s from startup, so
# importing diffusion or video to find out there is nothing loaded would drag torch
- # into a Studio that never opened either page. No engine fakes here on purpose --
+ # into an Unsloth that never opened either page. No engine fakes here on purpose --
# this is the real resolution path.
store[settings.OPENAI_AUTO_SWITCH_SETTING_KEY] = True
store[settings.AUTO_UNLOAD_IDLE_SETTING_KEY] = 600
@@ -533,7 +533,7 @@ def test_a_failing_unload_does_not_stop_the_other_backend(media, monkeypatch):
def test_an_unimported_backend_is_not_imported_to_check_it(monkeypatch):
# The tick runs every 15s from startup; resolving the engines would drag torch in
- # on a Studio that has never opened the Image or Video page.
+ # on an Unsloth that has never opened the Image or Video page.
for module in ("core.inference.diffusion", "core.inference.sd_cpp_backend"):
monkeypatch.delitem(sys.modules, module, raising = False)
monkeypatch.delitem(sys.modules, "core.inference.video", raising = False)
@@ -561,7 +561,7 @@ def test_a_path_that_is_not_a_mounted_route_is_not_tracked():
# by repeating one below the TTL.
assert mk.owner_for_path("/v1/not-a-route/images/generations") is None
assert mk.owner_for_path("/api/inference/nope/video/generate") is None
- # The Studio routes are mounted under /api/inference only; /v1 carries the OpenAI shape.
+ # The Unsloth routes are mounted under /api/inference only; /v1 carries the OpenAI shape.
assert mk.owner_for_path("/v1/images/generate") is None
assert mk.owner_for_path("/v1/video/load") is None
diff --git a/studio/backend/tests/test_metal_explicit_context_guard.py b/studio/backend/tests/test_metal_explicit_context_guard.py
index 7bf34458798..c8fb8b6eb04 100644
--- a/studio/backend/tests/test_metal_explicit_context_guard.py
+++ b/studio/backend/tests/test_metal_explicit_context_guard.py
@@ -8,7 +8,7 @@ Auto was moved to it: an explicit request was passed through verbatim, on the th
"--fit on" is a backstop. It is one, but not a trustworthy one here. llama.cpp will reduce
an explicit context (fit_params_min_ctx defaults to 4096; only "-c 0" disables it), but it
decides from ggml-metal's free-memory report, off the device's recommendedMaxWorkingSetSize,
-which knows nothing of Studio's own resident gigabyte or two, other running apps, or the
+which knows nothing of Unsloth's own resident gigabyte or two, other running apps, or the
iogpu wired limit actually being blown. When that estimate is optimistic the request stands
and the launch over-commits wired memory, which Jetsam cannot reclaim, so the machine
panics instead of the load failing. An M1 Max 32 GB hit exactly that on
diff --git a/studio/backend/tests/test_metal_never_starts_at_native_context.py b/studio/backend/tests/test_metal_never_starts_at_native_context.py
index e08f7179611..45ea2c028a4 100644
--- a/studio/backend/tests/test_metal_never_starts_at_native_context.py
+++ b/studio/backend/tests/test_metal_never_starts_at_native_context.py
@@ -245,7 +245,7 @@ class TestAPassThroughZeroContext:
class TestTheEmittedCommand:
"""What llama-server actually receives, argv-level.
- Floor and drop are only correct together: extras are appended after Studio's
+ Floor and drop are only correct together: extras are appended after Unsloth's
own -c and llama.cpp is last-wins, so a surviving "-c 0" undoes the floor.
"""
@@ -335,7 +335,7 @@ class TestAutoLayers:
class TestAutoLayersWithTheFitterTurnedOff:
"""The Auto-layers exemption is only as good as the fitter it defers to.
- Extras land after Studio's own "--fit on" and win, so a pass-through
+ Extras land after Unsloth's own "--fit on" and win, so a pass-through
"--fit off" leaves a command carrying no -c and no fitter, which is
llama.cpp's native context and the over-commit this branch prevents.
"""
@@ -383,7 +383,7 @@ class TestAutoLayersWithTheFitterTurnedOff:
class TestAnInheritedContextEnvironment:
"""LLAMA_ARG_CTX_SIZE runs -c's own handler, and env parses before argv.
- So the command line wins wherever Studio emits one. Auto-layers emits none,
+ So the command line wins wherever Unsloth emits one. Auto-layers emits none,
on purpose, leaving an inherited 0 to cancel the --fit that sizes the mode.
"""
diff --git a/studio/backend/tests/test_metal_paravirtual_guard.py b/studio/backend/tests/test_metal_paravirtual_guard.py
index 66ce3c981a1..7cb0f4dd25d 100644
--- a/studio/backend/tests/test_metal_paravirtual_guard.py
+++ b/studio/backend/tests/test_metal_paravirtual_guard.py
@@ -461,7 +461,7 @@ def test_a_user_owned_drafter_is_pinned_to_cpu_too():
"""A user --spec-type makes _build_speculative_flags emit nothing, so their
--model-draft never appeared in spec_flags and the drafter kept running corrupt."""
user_extras = ["--spec-type", "draft-simple", "--model-draft", "/models/d.gguf"]
- # Studio emits no spec block at all here, which is why spec_flags alone is blind.
+ # Unsloth emits no spec block at all here, which is why spec_flags alone is blind.
backend = llama_cpp.LlamaCppBackend()
assert (
backend._build_speculative_flags(
diff --git a/studio/backend/tests/test_middleware.py b/studio/backend/tests/test_middleware.py
index 7b064bf7d13..eb57be9ac54 100644
--- a/studio/backend/tests/test_middleware.py
+++ b/studio/backend/tests/test_middleware.py
@@ -310,7 +310,7 @@ class TestMaxBodyMiddleware:
def test_v1_surface_is_body_protected(self, main_module):
# /images/generations is mounted at both /api/inference and /v1, and every /v1 POST must be body-capped via the blanket
- # prefix or an unbounded prompt buffers outside the Studio request limit. Also confirms /v1 chat/completions stays protected.
+ # prefix or an unbounded prompt buffers outside the Unsloth request limit. Also confirms /v1 chat/completions stays protected.
for path in (
"/v1/images/generations",
"/v1/audio/generate",
@@ -569,7 +569,7 @@ class TestSecurityHeadersMiddleware:
assert 'spec-url="/studio/openapi.json"' in redoc
assert "/studio/docs-assets/redoc.standalone.js" in redoc
- # Unprefixed deployments, which is every default Studio, stay unprefixed.
+ # Unprefixed deployments, which is every default Unsloth, stay unprefixed.
plain = TestClient(main_module.app).get("/docs").text
assert "/studio/" not in plain
assert "'/openapi.json'" in plain
diff --git a/studio/backend/tests/test_mla_kv_cache_symmetry.py b/studio/backend/tests/test_mla_kv_cache_symmetry.py
index c431ee86d7e..0829da55f60 100644
--- a/studio/backend/tests/test_mla_kv_cache_symmetry.py
+++ b/studio/backend/tests/test_mla_kv_cache_symmetry.py
@@ -13,7 +13,7 @@ check, so it decides first:
return nullptr;
}
-is_mla() covers DeepSeek V2/V3/R1, Kimi K2 and GLM-4.7/5.x, which Studio
+is_mla() covers DeepSeek V2/V3/R1, Kimi K2 and GLM-4.7/5.x, which Unsloth
already recognises through kv_lora_rank.
The flash-attention-off retry resets a quantized V cache to f16 and
diff --git a/studio/backend/tests/test_mlx_inference_backend.py b/studio/backend/tests/test_mlx_inference_backend.py
index 7df357212da..fa2065a2279 100644
--- a/studio/backend/tests/test_mlx_inference_backend.py
+++ b/studio/backend/tests/test_mlx_inference_backend.py
@@ -1625,7 +1625,7 @@ def _audio_processor(sr = 16000, extractor = True):
],
)
def test_mlx_audio_classification(monkeypatch, processor, renders, capable, expected):
- """Studio keeps the rate and rendering gates; the checkpoint answer is zoo's."""
+ """Unsloth keeps the rate and rendering gates; the checkpoint answer is zoo's."""
from core.inference import mlx_inference
seen = {}
@@ -1826,7 +1826,7 @@ def test_mlx_vlm_renderer_audio_marker_contract(model_type, places_marker):
def test_mlx_registered_renderer_accepts_published_nemotron_model_type_case():
"""The official checkpoint capitalizes its model type while mlx-vlm's
- registry uses lowercase. Studio must reach the registered renderer rather
+ registry uses lowercase. Unsloth must reach the registered renderer rather
than rejecting the checkpoint before the loader's normalization can run."""
# Real mlx-vlm and Zoo, like the renderer contract test above. Bare
# backend CI ships neither, so skip rather than error.
@@ -2934,7 +2934,7 @@ def test_a_vision_override_is_checked_even_when_the_native_render_needs_recovery
def test_vlm_seed_rides_on_the_sampler_not_a_seed_kwarg(monkeypatch):
"""The pinned mlx-vlm has no seed parameter, and a newer one ignores it at
- Studio's default min_p/top_k -- so the seed must ride on the sampler, built
+ Unsloth's default min_p/top_k -- so the seed must ride on the sampler, built
with the whole filtering chain the runtime would otherwise have built."""
from core.inference import mlx_inference
from core.inference.mlx_inference import MLXInferenceBackend
diff --git a/studio/backend/tests/test_mlx_repair.py b/studio/backend/tests/test_mlx_repair.py
index b4331442641..f5dc3e9e857 100644
--- a/studio/backend/tests/test_mlx_repair.py
+++ b/studio/backend/tests/test_mlx_repair.py
@@ -139,7 +139,7 @@ def test_repair_install_pins_transformers_and_cleans_up(monkeypatch):
assert pkg in cmd
assert created_paths and not Path(created_paths[0]).exists()
# The install mirrors the main installer by relaxing the transformers pin via
- # UV_OVERRIDE so a current mlx-vlm can coexist with the Studio Transformers pin.
+ # UV_OVERRIDE so a current mlx-vlm can coexist with the Unsloth Transformers pin.
env = captured["env"]
assert env is not None
assert env.get("UV_OVERRIDE", "").endswith("overrides-darwin-arm64.txt")
diff --git a/studio/backend/tests/test_mmproj_placement_policy.py b/studio/backend/tests/test_mmproj_placement_policy.py
index 52504a79894..2d12b66cbc4 100644
--- a/studio/backend/tests/test_mmproj_placement_policy.py
+++ b/studio/backend/tests/test_mmproj_placement_policy.py
@@ -525,7 +525,7 @@ def test_a_heterogeneous_pair_is_ranked_before_the_projector_is_charged(tmp_path
def test_a_remembered_mmproj_auto_does_not_survive_the_vision_switch(tmp_path):
"""--mmproj-auto asks llama-server to find the adjacent projector on its own, so
- suppressing Studio's --mmproj and the env vars is not enough: vision would come
+ suppressing Unsloth's --mmproj and the env vars is not enough: vision would come
back on a load that reports it off and never charged the projector's VRAM.
llama.cpp is last-wins on the pair, so the disable form has to follow the extras."""
backend, gguf = _backend(tmp_path, memory = [(0, 7_600, 8_192)])
@@ -652,7 +652,7 @@ def test_the_download_interlock_is_not_relaxed_by_the_vision_switch(tmp_path):
def test_a_user_pinned_projector_is_not_charged_against_vram(tmp_path):
"""--no-mmproj-offload puts the projector in host RAM, so its bytes are not on
the card. Charging them anyway shrank the context and spilled layers to make
- room for VRAM nothing occupies, which is worse placement than Studio's own."""
+ room for VRAM nothing occupies, which is worse placement than Unsloth's own."""
backend, gguf = _backend(tmp_path, memory = [(0, 7_600, 8_192)])
cmd = _launch(backend, gguf, extra_args = ["--no-mmproj-offload"])["cmd"]
@@ -982,15 +982,15 @@ def test_the_negative_environment_spelling_pins_on_presence_alone(tmp_path, monk
)
def test_the_resolved_placement_follows_arg_cpps_own_precedence(extras, env, expected):
"""Environment first, argv on top, the negative spelling short-circuiting on
- presence. Anything else and Studio budgets for a placement the child does not
+ presence. Anything else and Unsloth budgets for a placement the child does not
run."""
assert _resolved_mmproj_offload(extras, env) is expected
def test_an_unparseable_environment_value_is_still_the_callers_placement(tmp_path, monkeypatch):
- """No side to budget for, but the variable is set, so Studio must not append its
+ """No side to budget for, but the variable is set, so Unsloth must not append its
own spelling on top: common_params_parse throws on the value and the load fails
- naming the caller's variable, not a Studio flag they never chose."""
+ naming the caller's variable, not an Unsloth flag they never chose."""
monkeypatch.setenv("LLAMA_ARG_MMPROJ_OFFLOAD", "yes")
backend, gguf = _backend(tmp_path, memory = [(0, 8_692, 16_384)])
@@ -1357,7 +1357,7 @@ def test_studios_own_projector_outranks_the_inherited_one_in_the_estimate(tmp_pa
def test_a_suppressed_image_projector_hands_the_budget_to_the_inherited_one(tmp_path, monkeypatch):
"""The combination that slipped through: the CONFIGURED projector is
- image-capable, so the switch drops it and Studio emits no --mmproj at all, while
+ image-capable, so the switch drops it and Unsloth emits no --mmproj at all, while
the inherited one is audio-only and is kept. argv only beats the environment when
there IS argv, so the inherited projector is what loads, and it is what has to be
charged."""
@@ -1394,7 +1394,7 @@ def test_a_suppressed_image_projector_hands_the_budget_to_the_inherited_one(tmp_
def test_the_extras_opt_out_does_not_excuse_an_inherited_projector(tmp_path, monkeypatch):
- """--no-mmproj sets params.no_mmproj, which stops Studio resolving one of its own
+ """--no-mmproj sets params.no_mmproj, which stops Unsloth resolving one of its own
and stops the HF download, but server-context.cpp gates the load on a non-empty
mmproj.path and never reads that field. The inherited projector loads straight
through the opt-out, so the guard has to keep charging it."""
@@ -1413,7 +1413,7 @@ def test_the_extras_opt_out_does_not_excuse_an_inherited_projector(tmp_path, mon
def test_the_extras_opt_out_moves_the_charge_to_the_inherited_projector(tmp_path, monkeypatch):
- """--no-mmproj makes llama_cpp.py skip the resolve, so Studio emits no --mmproj
+ """--no-mmproj makes llama_cpp.py skip the resolve, so Unsloth emits no --mmproj
and the configured projector never loads. It does not unset an inherited path,
which then loads unopposed. The estimate has to move with the launch: drop the
configured file, charge the inherited one.
diff --git a/studio/backend/tests/test_model_memory_settings.py b/studio/backend/tests/test_model_memory_settings.py
index bd41e088d94..fd42bc5bb27 100644
--- a/studio/backend/tests/test_model_memory_settings.py
+++ b/studio/backend/tests/test_model_memory_settings.py
@@ -2420,7 +2420,7 @@ class TestAnActiveFitterVoidsTheAllLayersVerdict:
class TestTheEffectiveFitterState:
"""fit_is_enabled_in answers for the extras; this answers for the child, so
- Studio's own --fit counts and llama.cpp's ON default is respected."""
+ Unsloth's own --fit counts and llama.cpp's ON default is respected."""
@pytest.mark.parametrize(
("args", "env", "expected"),
@@ -2443,7 +2443,7 @@ class TestTheEffectiveFitterState:
assert _lsa.fit_is_effectively_on(args, env) is expected
def test_the_launch_asks_over_the_whole_command(self):
- """Source check: Studio emits its own --fit into cmd, so reading the
+ """Source check: Unsloth emits its own --fit into cmd, so reading the
extras alone would miss it."""
import inspect
diff --git a/studio/backend/tests/test_model_picker_regression.py b/studio/backend/tests/test_model_picker_regression.py
index f38a4d0b8df..03caa767caf 100644
--- a/studio/backend/tests/test_model_picker_regression.py
+++ b/studio/backend/tests/test_model_picker_regression.py
@@ -46,7 +46,7 @@ from utils.hidden_models import is_hidden_model
@pytest.fixture(autouse = True)
def _pin_default_embedder(monkeypatch):
- """Pin the effective embedder to Studio's static default so hiding is
+ """Pin the effective embedder to Unsloth's static default so hiding is
deterministic and cannot depend on ambient RAG config / env."""
default = "unsloth/bge-small-en-v1.5"
monkeypatch.setattr(rag_config, "EMBEDDING_MODEL", default, raising = False)
diff --git a/studio/backend/tests/test_mtp_drafter_companion.py b/studio/backend/tests/test_mtp_drafter_companion.py
index a07e86845c2..ae670bec574 100644
--- a/studio/backend/tests/test_mtp_drafter_companion.py
+++ b/studio/backend/tests/test_mtp_drafter_companion.py
@@ -1490,7 +1490,7 @@ def test_deleting_one_of_several_variants_keeps_the_dspark_drafter(tmp_path):
def test_deleting_the_last_variant_reclaims_an_opt_in_dspark_drafter(tmp_path):
- """Studio downloads the sidecar itself once the user opts in, and companion
+ """Unsloth downloads the sidecar itself once the user opts in, and companion
filtering keeps it out of the variant menu, so leaving it behind is an
invisible ~11 GB allocation. Nothing can launch it with no main GGUF left."""
from hub.services.models.deletion import _delete_gguf_variant_from_repos
@@ -1542,7 +1542,7 @@ def test_a_suffix_scheme_sidecar_is_not_mistaken_for_a_quant(tmp_path):
def test_deleting_the_last_variant_keeps_a_dflash_weight(tmp_path):
"""Negative control: dflash is a family name a user picks for real weights,
- and Studio never fetches it as a companion, so it is not reclaimable."""
+ and Unsloth never fetches it as a companion, so it is not reclaimable."""
from hub.services.models.deletion import _delete_gguf_variant_from_repos
repo, snap = _cache_repo(
diff --git a/studio/backend/tests/test_mtp_partial_offload_evidence.py b/studio/backend/tests/test_mtp_partial_offload_evidence.py
index 9b18a095b25..0f8b006851a 100644
--- a/studio/backend/tests/test_mtp_partial_offload_evidence.py
+++ b/studio/backend/tests/test_mtp_partial_offload_evidence.py
@@ -6,7 +6,7 @@
Auto stands the embedded Hybrid Mamba MTP head down by emitting
``--spec-type none`` when the placement is partial, because the recurrent
rollback copies then cost more layers than the drafting wins back. Getting the
-EVIDENCE test wrong is expensive in both directions: too strict and Studio is
+EVIDENCE test wrong is expensive in both directions: too strict and Unsloth is
back to the 3.11 token/s of the reported regression, too loose and it gives up a
real speedup on a card that had room for every layer.
@@ -507,7 +507,7 @@ def test_the_reported_regression_is_still_fixed(tmp_path):
Qwen3.8-27B UD-IQ2_M, about 12 GiB free, Auto, four slots: nvidia-smi answers,
the planner runs over a real device list and cannot fit the model, so --fit on
IS a verdict here and the stand-down must fire. If a tightening of the fit arm
- ever breaks this, Studio is back to 3.11 token/s.
+ ever breaks this, Unsloth is back to 3.11 token/s.
See https://huggingface.co/unsloth/Qwen3.8-27B-GGUF/discussions/18.
"""
diff --git a/studio/backend/tests/test_mtp_vram_budget.py b/studio/backend/tests/test_mtp_vram_budget.py
index eed8b9d8869..88ab0ee2b15 100644
--- a/studio/backend/tests/test_mtp_vram_budget.py
+++ b/studio/backend/tests/test_mtp_vram_budget.py
@@ -1249,7 +1249,7 @@ class TestUnemittableCacheTypeFallsBackToTheEnvBudget:
"""A type llama.cpp's kv_cache_type_from_str does not know is never emitted
(_VALID_CACHE_TYPES), so the child inherits LLAMA_ARG_CACHE_TYPE_K/_V instead.
- Before ggml-org/llama.cpp#23792 Studio's tensor gate happened to cover this:
+ Before ggml-org/llama.cpp#23792 Unsloth's tensor gate happened to cover this:
it dropped any type outside {f16,bf16,f32} -- including an unknown one -- and
then re-adopted the heavier env type for the reserve, with the comment "Else
the child allocates f32 KV against an f16 budget." Removing the gate removed
diff --git a/studio/backend/tests/test_native_tls_entrypoints.py b/studio/backend/tests/test_native_tls_entrypoints.py
index c2e214c00e9..b03463f65f3 100644
--- a/studio/backend/tests/test_native_tls_entrypoints.py
+++ b/studio/backend/tests/test_native_tls_entrypoints.py
@@ -98,7 +98,7 @@ def test_prebuilt_core_gate_matches_the_generated_source():
def test_backend_serves_no_tls_in_process():
"""truststore's injection is client-side: a context built after it cannot serve TLS.
- Studio serves plain HTTP on loopback, but an in-process HTTPS listener added
+ Unsloth serves plain HTTP on loopback, but an in-process HTTPS listener added
later would fail at handshake wherever activation is default-on.
"""
server_side = ("PROTOCOL_TLS_SERVER", "ssl_certfile", "ssl_keyfile")
diff --git a/studio/backend/tests/test_nextn_target_kv_policy.py b/studio/backend/tests/test_nextn_target_kv_policy.py
index 1aa4e76f521..2fb34dddb3d 100644
--- a/studio/backend/tests/test_nextn_target_kv_policy.py
+++ b/studio/backend/tests/test_nextn_target_kv_policy.py
@@ -174,7 +174,7 @@ ARCH_TRUTH_TABLE = [
("cohere2moe", False),
("exaone4", False),
("granite-switch", False), # nextn=1 leaks for a ROUTER layer that needs KV
- # An arch this Studio has never heard of must fail closed.
+ # An arch this Unsloth has never heard of must fail closed.
("some_future_arch", False),
]
diff --git a/studio/backend/tests/test_nudge_tool_calls_wiring.py b/studio/backend/tests/test_nudge_tool_calls_wiring.py
index ddb5752262d..2af23ff2fdf 100644
--- a/studio/backend/tests/test_nudge_tool_calls_wiring.py
+++ b/studio/backend/tests/test_nudge_tool_calls_wiring.py
@@ -5,11 +5,11 @@
The request flag is explicit at every boundary. ``None`` follows the shared
process default from ``passthrough_healing.nudge_enabled`` (off unless
-``UNSLOTH_TOOL_CALL_NUDGE=1``), while Studio may opt in by sending ``True``.
+``UNSLOTH_TOOL_CALL_NUDGE=1``), while Unsloth may opt in by sending ``True``.
Mechanism (verified here without loading a model):
- * the GGUF loop and external Studio loop use the same normalizer;
+ * the GGUF loop and external Unsloth loop use the same normalizer;
* the external route forwards the request flag into ``ToolLoopPolicy``;
* the API request models default the flag to ``None`` (opt-in / off);
* the Unsloth-facing routes forward the request's flag, and the Unsloth frontend
diff --git a/studio/backend/tests/test_offload_planner_seam.py b/studio/backend/tests/test_offload_planner_seam.py
index 8415045723b..bc48eeb4589 100644
--- a/studio/backend/tests/test_offload_planner_seam.py
+++ b/studio/backend/tests/test_offload_planner_seam.py
@@ -311,7 +311,7 @@ def test_an_abstaining_plan_emits_no_flags():
def test_a_plan_that_already_fits_emits_no_flags():
- """The planner disagreeing with Studio ("it fits after all") is not licence
+ """The planner disagreeing with Unsloth ("it fits after all") is not licence
to pin every layer and turn the fitter off."""
got = _plan(_Stub(), free_mib = 200 * 1024)
assert got is not None and not got.spills_anything
@@ -321,7 +321,7 @@ def test_a_plan_that_already_fits_emits_no_flags():
def test_the_measured_cache_floors_the_planners_own_estimate():
"""layout.kv_bytes is a bare f16 GQA product with no cache-dtype, SWA, MLA,
stream or padding term, so on an MLA or f32-cache load it lands under the
- cache Studio already sized. Under is the dangerous direction: the deficit
+ cache Unsloth already sized. Under is the dangerous direction: the deficit
comes out small, too few blocks spill, and --fit off follows the plan."""
stub = _Stub()
layout = stub._tensor_spill_layout("/models/stub.gguf")
@@ -577,7 +577,7 @@ def test_the_projector_and_mtp_reserve_reach_the_planner():
"""The layout is rebuilt from the target GGUF's tensor table, so a vision
projector and the MTP draft reserve are invisible to it -- yet both are in
the model_size_fit that produced the use_fit verdict this arm answers.
- Leaving them out makes the deficit too small on exactly the loads Studio
+ Leaving them out makes the deficit too small on exactly the loads Unsloth
already judged not to fit, and the launch then follows that with --fit off.
"""
stub = _Stub()
@@ -672,7 +672,7 @@ def test_an_engaged_draft_charges_the_excluded_mtp_blocks():
(common/common.cpp:1713), which clears the TENSOR_SKIP those blocks
otherwise carry (models/glm4-moe.cpp:42-44,
llama-model-loader.cpp:1123-1131), and i_gpu_start counting backwards from
- n_layer_all (llama-model.cpp:1449) places them on a GPU first. Studio's own
+ n_layer_all (llama-model.cpp:1449) places them on a GPU first. Unsloth's own
budget already paid for them -- an embedded head contributes 0 to the draft
weights precisely because they sit inside model_size -- so leaving them out
here makes the deficit too small, which is the optimistic direction.
@@ -742,7 +742,7 @@ def test_the_compute_buffer_reaches_the_planner():
def test_the_seam_hands_the_planner_raw_free_vram_for_the_split():
"""llama.cpp sizes its row ranges from raw free VRAM and knows nothing about
- Studio's budget, so the seam has to pass the raw numbers separately. Observed
+ Unsloth's budget, so the seam has to pass the raw numbers separately. Observed
through the call rather than the source: the planner records what it was
given."""
seen = {}
@@ -783,7 +783,7 @@ def test_a_pinned_draft_device_declines_the_plan():
def test_a_pass_through_parallel_that_grows_the_cache_declines_the_plan():
- """Slots are sizing, not placement. Studio's --parallel is emitted first and
+ """Slots are sizing, not placement. Unsloth's --parallel is emitted first and
the extras are appended after it, so a larger pass-through wins at the child
while the deficit here was priced for the smaller count -- too few blocks
spilled, then pinned with --fit off. A SMALLER one only over-reserves, which
diff --git a/studio/backend/tests/test_online_tokenization.py b/studio/backend/tests/test_online_tokenization.py
index 50502d18766..d6ceb045b03 100644
--- a/studio/backend/tests/test_online_tokenization.py
+++ b/studio/backend/tests/test_online_tokenization.py
@@ -133,7 +133,7 @@ def test_online_config_args_are_the_four_keys_the_mechanism_needs():
@pytest.mark.parametrize("platform", ["win32", "darwin"])
def test_spawn_platforms_keep_the_eager_path(monkeypatch, platform):
- """Studio already forces `dataloader_num_workers = 0` there, because a
+ """Unsloth already forces `dataloader_num_workers = 0` there, because a
modified `sys.path` does not survive the spawn. Never a crash: just off."""
monkeypatch.setattr(sys, "platform", platform)
decision = decide_online_tokenization(**_base_kwargs())
@@ -267,7 +267,7 @@ def test_the_text_column_check_reads_metadata_and_never_a_row():
def test_a_spawn_start_method_keeps_the_eager_path_on_linux(monkeypatch):
"""The gate is named for Windows and macOS, but the hazard it describes is
- `spawn` re-importing the entry point against a `sys.path` Studio modified in
+ `spawn` re-importing the entry point against a `sys.path` Unsloth modified in
process. A Linux host set to spawn is the same hazard."""
import multiprocessing
diff --git a/studio/backend/tests/test_online_tokenization_runtime.py b/studio/backend/tests/test_online_tokenization_runtime.py
index 33ecdd5393e..fec40fee30e 100644
--- a/studio/backend/tests/test_online_tokenization_runtime.py
+++ b/studio/backend/tests/test_online_tokenization_runtime.py
@@ -193,7 +193,7 @@ def test_train_uses_the_loader_the_barrier_filled():
def test_the_workers_are_gone_once_training_is_over():
"""Persistent workers survive train() by design, so something has to end
- them; otherwise Studio merges, quantizes and exports alongside them."""
+ them; otherwise Unsloth merges, quantizes and exports alongside them."""
before = len(multiprocessing.active_children())
trainer = _FakeTrainer(_view())
_prewarm(trainer, PREWARM)
diff --git a/studio/backend/tests/test_online_tokenization_wiring.py b/studio/backend/tests/test_online_tokenization_wiring.py
index 721a334c638..9bf1ac2f1ab 100644
--- a/studio/backend/tests/test_online_tokenization_wiring.py
+++ b/studio/backend/tests/test_online_tokenization_wiring.py
@@ -82,7 +82,7 @@ ROWS = MIN_ROWS_FOR_ONLINE + 5
def _single_process_launch(monkeypatch):
- """Clear every launcher variable, so a run reads as Studio's own launch.
+ """Clear every launcher variable, so a run reads as Unsloth's own launch.
Same helper and same constant tuples as ``test_training_preflight.py``: the
two must not disagree about what counts as a launcher, or one file starts
@@ -417,7 +417,7 @@ def test_a_failure_while_attaching_rolls_the_dataset_back(monkeypatch):
def test_a_step_cap_is_resolved_into_passes_rather_than_guessed(monkeypatch):
- """`max_steps` alone reads as "unknown length" in the gate; Studio knows the
+ """`max_steps` alone reads as "unknown length" in the gate; Unsloth knows the
row count and the microbatch size, so it answers the question here."""
decision, _, _, _ = _run(monkeypatch, config_overrides = {"max_steps": 30, "num_train_epochs": 1})
assert decision.enabled, decision.reason
diff --git a/studio/backend/tests/test_openai_auto_download.py b/studio/backend/tests/test_openai_auto_download.py
index 0a88a1ef0db..c206f562b7a 100644
--- a/studio/backend/tests/test_openai_auto_download.py
+++ b/studio/backend/tests/test_openai_auto_download.py
@@ -422,7 +422,7 @@ def test_the_cache_is_per_token(hub):
def test_the_gated_message_names_the_header_that_actually_works(hub):
- # Auto-download never uses the server's token, so a Studio setting would loop the caller.
+ # Auto-download never uses the server's token, so an Unsloth setting would loop the caller.
hub["info"] = _Info(_gguf_repo_info().siblings, gated = "manual")
hub["auth_denied"] = True
refusal = _run("meta-llama/Llama-2-7b-hf")
@@ -814,7 +814,7 @@ def _download_rows():
def test_a_ui_session_download_is_not_marked_as_api_traffic(hub):
"""The monitor overlay auto-opens on via_api_key, which exists to separate
- "someone is serving other clients" from "someone is using Unsloth". Studio's
+ "someone is serving other clients" from "someone is using Unsloth". Unsloth's
own chat hits these same /v1 endpoints with a session JWT, so hardcoding the
flag on the download row popped the panel open mid-chat."""
from fastapi import HTTPException
@@ -852,18 +852,18 @@ def test_an_api_key_download_keeps_the_attribution_and_names_its_caller(hub):
def test_an_api_key_caller_waiting_on_someone_elses_download_gets_a_row(hub):
- """A download started by Studio's own chat is attributed to the session, so an
+ """A download started by Unsloth's own chat is attributed to the session, so an
API-key client that asks for the same repo while it runs is refused before the
handler's own api_monitor.start. Without a row of its own that call is invisible:
the only row is the session's via_api_key=False download, so the overlay stays
- shut and the monitor presents API traffic as Studio's own."""
+ shut and the monitor presents API traffic as Unsloth's own."""
from fastapi import HTTPException
from auth.authentication import API_KEY_PREFIX
from core.inference.api_monitor import api_monitor
api_monitor.clear()
with pytest.raises(HTTPException):
- # Studio's chat (session JWT) starts the download and takes the slot.
+ # Unsloth's chat (session JWT) starts the download and takes the slot.
_hook("unsloth/x-GGUF", _Req(), enabled = True, current_subject = "unsloth")
seeded = {row["id"] for row in api_monitor.snapshot(subject = "unsloth")}
diff --git a/studio/backend/tests/test_openai_auto_switch.py b/studio/backend/tests/test_openai_auto_switch.py
index 5be321ba599..9a84af06d1d 100644
--- a/studio/backend/tests/test_openai_auto_switch.py
+++ b/studio/backend/tests/test_openai_auto_switch.py
@@ -4469,7 +4469,7 @@ def test_chat_count_tokens_collapses_system_turns(monkeypatch):
payload = _count_request(
[
{"role": "system", "content": "Runtime rules."},
- {"role": "system", "content": "Studio prompt."},
+ {"role": "system", "content": "Unsloth prompt."},
{"role": "user", "content": "hello"},
]
)
@@ -4478,7 +4478,7 @@ def test_chat_count_tokens_collapses_system_turns(monkeypatch):
systems = [m for m in messages if m.get("role") in ("system", "developer")]
assert len(systems) == 1, messages
assert "Runtime rules." in systems[0].get("content", "")
- assert "Studio prompt." in systems[0].get("content", "")
+ assert "Unsloth prompt." in systems[0].get("content", "")
@pytest.mark.parametrize(
diff --git a/studio/backend/tests/test_openai_codex_subscription.py b/studio/backend/tests/test_openai_codex_subscription.py
index 6ae69a9332f..14740cdad4e 100644
--- a/studio/backend/tests/test_openai_codex_subscription.py
+++ b/studio/backend/tests/test_openai_codex_subscription.py
@@ -1998,7 +1998,7 @@ def test_a_superseded_catalog_read_does_not_commit(monkeypatch):
def test_chat_drops_a_catalog_another_worker_rebound(monkeypatch):
"""The OAuth bundle is shared through the DB; the catalog is per process.
- Studio serializes token refreshes across workers on purpose, so this process can hold
+ Unsloth serializes token refreshes across workers on purpose, so this process can hold
a catalog for an account the connection has since moved off.
"""
stale_slug = "gpt-5.7-nova"
@@ -2035,7 +2035,7 @@ def test_the_model_route_reports_a_dead_connection(monkeypatch):
"provider-10", _credential = ("user", "session"), via_api_key = False
)
)
- # Not a 401: authFetch would read that as an expired Studio session, refresh it and
+ # Not a 401: authFetch would read that as an expired Unsloth session, refresh it and
# retry, and the retry would look like a healthy curated list.
assert answered["source"] == "reauthorization_required"
assert [model["id"] for model in answered["models"]] == curated
diff --git a/studio/backend/tests/test_openai_images_generations_route.py b/studio/backend/tests/test_openai_images_generations_route.py
index 814ca9107d6..ff14ff12bbd 100644
--- a/studio/backend/tests/test_openai_images_generations_route.py
+++ b/studio/backend/tests/test_openai_images_generations_route.py
@@ -488,7 +488,7 @@ def test_signed_image_link_rejects_tampering_and_expiry(monkeypatch, tmp_path):
def test_activation_shortfall_is_an_actionable_400(monkeypatch):
"""The one exception here whose text is written FOR the caller. Sanitising it into a bare 500
- left an OpenAI client with a server error for a request only they can fix, while the Studio
+ left an OpenAI client with a server error for a request only they can fix, while the Unsloth
route showed them the resolution, the budget and the remedies."""
from core.inference.diffusion_memory import ImageActivationShortfallError
diff --git a/studio/backend/tests/test_openai_responses_reasoning_replay.py b/studio/backend/tests/test_openai_responses_reasoning_replay.py
index b337f7a8d0e..3734ad558a1 100644
--- a/studio/backend/tests/test_openai_responses_reasoning_replay.py
+++ b/studio/backend/tests/test_openai_responses_reasoning_replay.py
@@ -5,7 +5,7 @@
OpenAI's function-calling guide is explicit for manually managed history: "any
reasoning items returned in model responses with tool calls must also be passed
-back with tool call outputs". The Studio tool loop rebuilds the conversation
+back with tool call outputs". The Unsloth tool loop rebuilds the conversation
between turns by hand, so the provider has to hand the items out on the terminal
chunk and take them back on the next request. The openai_codex client already
does exactly this round trip for the same endpoint; this is the generic path
diff --git a/studio/backend/tests/test_orphaned_children.py b/studio/backend/tests/test_orphaned_children.py
index 52cb817c06f..0f50c4d9224 100644
--- a/studio/backend/tests/test_orphaned_children.py
+++ b/studio/backend/tests/test_orphaned_children.py
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-"""No child outlives the Studio that spawned it.
+"""No child outlives the Unsloth that spawned it.
The chain this closes: a tool call runs under a shell wrapper, the kill path
reaped only the wrapper on Windows, and the orphaned venv python then made
@@ -140,7 +140,7 @@ def test_update_gate_blocks_on_a_single_orphan(tmp_path):
@pytest.mark.skipif(IS_WINDOWS, reason = "contrast case for POSIX")
def test_update_gate_is_a_noop_on_posix(tmp_path):
- """On Linux/macOS nothing checks for a running Studio before an update."""
+ """On Linux/macOS nothing checks for a running Unsloth before an update."""
from unsloth_cli import _studio_runtime_gate
_studio_runtime_gate.ensure_managed_environment_is_idle(tmp_path / "anything")
@@ -190,7 +190,7 @@ def test_macos_style_orphans_are_recorded_and_reaped(tmp_path, monkeypatch):
record = records / f"{os.getpid()}.json"
assert record.is_file(), "the child was not recorded"
- # Pretend a previous Studio wrote this and died. The identity is what
+ # Pretend a previous Unsloth wrote this and died. The identity is what
# decides, not the pid: a dead pid is recycled fast on a busy machine
# (macOS especially), and an owner whose start time no longer matches is
# a different process, so its recorded children are orphans.
@@ -230,7 +230,7 @@ def test_liveness_probe_does_not_kill_what_it_probes():
def test_a_second_studio_does_not_erase_the_first_record(tmp_path, monkeypatch):
- """Two Studios can share a home; one record per owner keeps both tracked."""
+ """Two Unsloth instances can share a home; one record per owner keeps both tracked."""
from utils import process_lifetime as pl
records = tmp_path / "children"
@@ -240,7 +240,7 @@ def test_a_second_studio_does_not_erase_the_first_record(tmp_path, monkeypatch):
child = subprocess.Popen([sys.executable, "-c", "import time; time.sleep(30)"])
try:
pl.adopt_pid(child.pid)
- # A sibling Studio's record, written under its own pid.
+ # A sibling Unsloth's record, written under its own pid.
import json
other = records / "424242.json"
@@ -261,7 +261,7 @@ def test_a_second_studio_does_not_erase_the_first_record(tmp_path, monkeypatch):
def test_a_live_owner_is_never_reaped(tmp_path, monkeypatch):
- """Two Studios at once must not kill each other's children."""
+ """Two Unsloth instances at once must not kill each other's children."""
from utils import process_lifetime as pl
monkeypatch.setenv("UNSLOTH_STUDIO_CHILD_RECORD", str(tmp_path / "children"))
@@ -395,7 +395,7 @@ def test_a_group_outliving_its_leader_is_still_reaped(tmp_path, monkeypatch):
def test_a_child_sharing_studios_group_is_never_recorded():
- """Recording that group would make the sweep kill Studio and every sibling."""
+ """Recording that group would make the sweep kill Unsloth and every sibling."""
from utils import process_lifetime as pl
if pl._is_windows():
@@ -415,7 +415,7 @@ def test_a_child_sharing_studios_group_is_never_recorded():
def test_ctrl_c_is_passed_on_by_the_console_handler():
"""Ctrl+C and Ctrl+Break must report "not handled" so Python's own signal
handler still runs. Returning True (or raising inside the ctypes callback,
- where the BOOL result is then undefined) would leave Studio unstoppable."""
+ where the BOOL result is then undefined) would leave Unsloth unstoppable."""
import run
assert run._console_event_is_shutdown(0) is False # CTRL_C_EVENT
@@ -513,7 +513,7 @@ def test_a_confirmed_shutdown_still_clears_the_record(tmp_path, monkeypatch):
def test_a_live_owner_survives_an_unreadable_identity(tmp_path, monkeypatch):
- """A `ps` that failed for a moment must not cost a running Studio its
+ """A `ps` that failed for a moment must not cost a running Unsloth its
sidecars."""
import json
@@ -542,7 +542,7 @@ def test_a_live_owner_survives_an_unreadable_identity(tmp_path, monkeypatch):
lambda pid: None if pid == os.getppid() else real(pid),
)
assert pl.reap_recorded_children() == []
- assert child.poll() is None, "a live Studio's child was killed"
+ assert child.poll() is None, "a live Unsloth's child was killed"
finally:
_kill(child.pid)
@@ -1039,7 +1039,7 @@ def test_a_zombie_owner_does_not_shield_its_children(tmp_path, monkeypatch):
)
pl.reap_recorded_children(timeout = 1.0)
- assert terminated == [9501], "a zombie Studio kept its orphans alive"
+ assert terminated == [9501], "a zombie Unsloth kept its orphans alive"
def test_a_group_that_cannot_be_taken_keeps_its_record(tmp_path, monkeypatch):
@@ -1721,7 +1721,7 @@ def test_a_validation_server_left_running_stays_recorded(monkeypatch):
def test_the_installer_announces_and_groups_its_validation_server():
- """The other half of the handoff, in the script Studio runs."""
+ """The other half of the handoff, in the script Unsloth runs."""
source = (Path(__file__).resolve().parents[2] / "install_llama_prebuilt.py").read_text(
encoding = "utf-8"
)
diff --git a/studio/backend/tests/test_plan_classifier_accuracy.py b/studio/backend/tests/test_plan_classifier_accuracy.py
index d5bec895846..67cf204ac07 100644
--- a/studio/backend/tests/test_plan_classifier_accuracy.py
+++ b/studio/backend/tests/test_plan_classifier_accuracy.py
@@ -9,7 +9,7 @@ classifier is right on what models actually emit, so this file scores it against
corpus captured from local models (``tests/data/plan_vs_answer.jsonl``).
How the corpus was built: three GGUF models (Qwen3-0.6B, Qwen3-1.7B,
-Llama-3.2-1B-Instruct) were driven through llama-server with the real Studio tool
+Llama-3.2-1B-Instruct) were driven through llama-server with the real Unsloth tool
schemas over prompts spanning tool-requiring questions, questions needing no tool,
list-formatted answers, ambiguous requests, non-English, and follow-ups issued after
a tool had already run. Turns cut off by the token cap were dropped, since a
diff --git a/studio/backend/tests/test_preview_routes.py b/studio/backend/tests/test_preview_routes.py
index 50903c2a8a8..b59d9dcc099 100644
--- a/studio/backend/tests/test_preview_routes.py
+++ b/studio/backend/tests/test_preview_routes.py
@@ -124,7 +124,7 @@ def test_page_renders_with_csp(client):
def test_page_renders_friendly_busy_message(client):
response = client.get(f"/p/demorun?k={_sig('demorun')}")
- assert "Studio is currently using another model" in response.text
+ assert "Unsloth is currently using another model" in response.text
def test_page_escapes_title(tmp_path, monkeypatch, captured):
@@ -896,7 +896,7 @@ def test_slot_claim_happens_before_admitted_decrement(slot_state, monkeypatch):
_run_middleware(_app, "/v1/chat/completions")
assert observed["admitted_at_claim"] == 1
assert llama_keepwarm._admitted_inference == 0 # decremented afterwards
- assert not inference._is_preview_resident("/outputs/run/ckpt-a") # claimed for Studio
+ assert not inference._is_preview_resident("/outputs/run/ckpt-a") # claimed for Unsloth
_reset_keepwarm_counters()
llama_keepwarm._admitted_inference = 0
diff --git a/studio/backend/tests/test_process_lifetime.py b/studio/backend/tests/test_process_lifetime.py
index 7bd411cddf0..aff7edb95e2 100644
--- a/studio/backend/tests/test_process_lifetime.py
+++ b/studio/backend/tests/test_process_lifetime.py
@@ -147,7 +147,7 @@ def _run_preexec(monkeypatch, *, owner_pid, getppid):
def test_pdeathsig_keeps_child_whose_parent_is_pid_1(monkeypatch):
- # Studio as a container entrypoint runs as pid 1, so a healthy child sees
+ # Unsloth as a container entrypoint runs as pid 1, so a healthy child sees
# getppid() == 1; killing it took down every llama-server spawn (#7886).
_run_preexec(monkeypatch, owner_pid = 1, getppid = 1)
diff --git a/studio/backend/tests/test_process_lifetime_never_signals_init.py b/studio/backend/tests/test_process_lifetime_never_signals_init.py
index 2b1ec759e4f..4e9483fb06e 100644
--- a/studio/backend/tests/test_process_lifetime_never_signals_init.py
+++ b/studio/backend/tests/test_process_lifetime_never_signals_init.py
@@ -9,7 +9,7 @@ pid 1 as a child turns the startup sweep into a SIGTERM of everything the user
owns, a five second wait, then a SIGKILL of the same.
That is not hypothetical. It was observed on a shared build box, from a record
-holding `{"pid": 1, "identity": "...", "pgid": 1}`: starting Studio killed the
+holding `{"pid": 1, "identity": "...", "pgid": 1}`: starting Unsloth killed the
user's tmux server and all twenty of their unrelated agent processes within one
second, then SIGKILLed the replacement tmux server exactly `timeout` later.
@@ -78,7 +78,7 @@ def test_unsignalable_values_are_rejected(pid):
def test_the_public_name_is_the_internal_one():
"""Other modules import the public spelling. If the two ever come apart, the
- floor stops meaning one thing across Studio, which is how a site gets missed."""
+ floor stops meaning one thing across Unsloth, which is how a site gets missed."""
assert pl._signalable is pl.is_signalable_pid
@@ -328,7 +328,7 @@ def test_llama_pidfile_reaper_refuses_init(tmp_path, monkeypatch, recorded_signa
Every check behind the floor is stubbed to say yes, deliberately. Leave them
real and this test passes with the floor removed, because `_pid_is_llama_server(1)`
is False on a normal box and it is the cmdline check, not the floor, doing the
- work. #7894 established Studio can run as a container entrypoint, and a
+ work. #7894 established Unsloth can run as a container entrypoint, and a
container whose entrypoint is llama-server has a process at pid 1 that answers
yes to all of them.
"""
@@ -354,7 +354,7 @@ def test_llama_orphan_sweep_skips_init(tmp_path, monkeypatch):
"""The orphan sweep must not kill pid 1 even when pid 1 looks exactly like an
owned, parentless llama-server.
- That is not a contrived shape: #7894 established Studio can run as a
+ That is not a contrived shape: #7894 established Unsloth can run as a
container entrypoint, and a container whose entrypoint is llama-server puts
a process this sweep recognises at pid 1. Killing it takes the container
down. The /proc scan and the psutil scan both feed one kill loop, so the
diff --git a/studio/backend/tests/test_project_workspace_location.py b/studio/backend/tests/test_project_workspace_location.py
index 6ef6e3b9d67..0833a3fc404 100644
--- a/studio/backend/tests/test_project_workspace_location.py
+++ b/studio/backend/tests/test_project_workspace_location.py
@@ -3,7 +3,7 @@
"""Where a project's workspace folder lands, and what happens when it cannot.
-Project workspaces are the only thing Studio writes into the user's Documents,
+Project workspaces are the only thing Unsloth writes into the user's Documents,
so a Documents folder it guesses wrong about breaks project creation and
nothing else. On Windows that guess is wrong by default whenever OneDrive's
Known Folder Move has repointed Documents at the synced copy.
@@ -103,7 +103,7 @@ def test_the_workspace_error_carries_the_folder_it_could_not_make(tmp_path, monk
def test_creating_a_project_says_which_folder_failed(tmp_path, monkeypatch):
- """A folder Studio cannot create is the one failure this route has.
+ """A folder Unsloth cannot create is the one failure this route has.
It used to surface as a bare 500, which says nothing about which folder or
what to do, and the folder is one the user can move.
diff --git a/studio/backend/tests/test_provider_control_frame_spoofing.py b/studio/backend/tests/test_provider_control_frame_spoofing.py
index 507c52adfcf..81891bed0e3 100644
--- a/studio/backend/tests/test_provider_control_frame_spoofing.py
+++ b/studio/backend/tests/test_provider_control_frame_spoofing.py
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-"""A provider endpoint must not be able to speak Studio's UI control protocol.
+"""A provider endpoint must not be able to speak Unsloth's UI control protocol.
The tool loop is not the only relay: a request with tools off streams the
provider's lines straight through ``stream_chat_completion``, and the chat client
@@ -267,7 +267,7 @@ def test_a_forged_card_never_survives_the_plain_relay(monkeypatch):
"""Tools off is the easiest case to forge into: nothing else is running.
The user sees a tool card claiming ``python`` executed and returned something
- harmless, sourced ``local``, on a request where Studio ran no tools at all.
+ harmless, sourced ``local``, on a request where Unsloth ran no tools at all.
"""
forged = {
"type": "tool_end",
diff --git a/studio/backend/tests/test_rag_embeddings.py b/studio/backend/tests/test_rag_embeddings.py
index c23ee874581..af1c09cde58 100644
--- a/studio/backend/tests/test_rag_embeddings.py
+++ b/studio/backend/tests/test_rag_embeddings.py
@@ -206,7 +206,7 @@ def test_device_defaults_to_cpu_on_an_accelerator_host(monkeypatch):
"""A GPU must not be used just because it is there.
This embedder loads in the backend process, where the first CUDA allocation pins a
- primary context nothing can hand back, so an idle Studio that indexed one document
+ primary context nothing can hand back, so an idle Unsloth that indexed one document
would carry it for the rest of the session.
"""
monkeypatch.setattr(embeddings.config, "EMBED_DEVICE", "auto")
diff --git a/studio/backend/tests/test_rag_nudge_roster_compat.py b/studio/backend/tests/test_rag_nudge_roster_compat.py
index 6781e719c19..a4bda4e4f9b 100644
--- a/studio/backend/tests/test_rag_nudge_roster_compat.py
+++ b/studio/backend/tests/test_rag_nudge_roster_compat.py
@@ -4,7 +4,7 @@
"""The document roster on old installs, hostile file names, and every platform.
The roster reads ``rag.db`` on the request path and puts what it finds in the system
-prompt, so the two ways it can go wrong are a database written by an older Studio that
+prompt, so the two ways it can go wrong are a database written by an older Unsloth that
does not have the tables the predicate names, and a file name carrying something the
quoting does not stop. Both are covered here, along with the async conversion and a
proof that none of it depends on the host or the accelerator.
@@ -45,7 +45,7 @@ def _more(out):
@pytest.fixture
def fresh_process(monkeypatch):
"""rag_home resets _schema_ready but not _extension_loaded, and rag_available()
- short-circuits on the latter. Reset both, which is what a Studio start looks like."""
+ short-circuits on the latter. Reset both, which is what an Unsloth start looks like."""
from storage import rag_db
monkeypatch.setattr(rag_db, "_extension_loaded", False)
@@ -223,7 +223,7 @@ def test_roster_is_quiet_when_the_vector_extension_is_missing(rag_home, monkeypa
def test_roster_ignores_columns_and_tables_it_does_not_know(rag_conn):
- """A9. Forwards compatibility: a newer Studio's extra columns must not confuse it."""
+ """A9. Forwards compatibility: a newer Unsloth's extra columns must not confuse it."""
_doc(rag_conn, "project_p1", "d1", "future.pdf")
rag_conn.execute("ALTER TABLE documents ADD COLUMN some_future_column TEXT")
rag_conn.execute("CREATE TABLE some_future_table (x TEXT)")
diff --git a/studio/backend/tests/test_remote_access_settings.py b/studio/backend/tests/test_remote_access_settings.py
index b8255448cbd..fd0e85e0fed 100644
--- a/studio/backend/tests/test_remote_access_settings.py
+++ b/studio/backend/tests/test_remote_access_settings.py
@@ -485,7 +485,7 @@ def test_stop_does_not_wait_forever_on_a_start_that_never_claims_ownership(monke
def test_streaming_is_not_advertised_while_a_quick_tunnel_carries_the_traffic(monkeypatch):
# Cloudflare documents that Quick Tunnels do not support Server-Sent Events,
- # and Studio only ever opens Quick Tunnels. Measured against a real tunnel: an
+ # and Unsloth only ever opens Quick Tunnels. Measured against a real tunnel: an
# SSE endpoint answers 200 with text/event-stream but delivers zero events.
monkeypatch.setattr(remote_access, "_start_worker", None)
monkeypatch.setattr(remote_access, "_stop_worker", None)
diff --git a/studio/backend/tests/test_research_internal_call_tool_gate.py b/studio/backend/tests/test_research_internal_call_tool_gate.py
index 40683d552b9..76eda221dc8 100644
--- a/studio/backend/tests/test_research_internal_call_tool_gate.py
+++ b/studio/backend/tests/test_research_internal_call_tool_gate.py
@@ -136,7 +136,7 @@ def test_the_opt_out_changes_nothing_a_default_install_does(monkeypatch, policy)
def test_json_mode_research_calls_send_llama_server_an_unchanged_body():
# The JSON-mode phases take the llama-server passthrough, not the loop above, so pin
# that wire body too: no tools means no tool_choice is forwarded, and Unsloth-only
- # extensions never leave Studio.
+ # extensions never leave Unsloth.
from models.inference import ChatCompletionRequest
class _PassthroughBackend:
diff --git a/studio/backend/tests/test_research_internal_key_monitor.py b/studio/backend/tests/test_research_internal_key_monitor.py
index 9f21b2af488..aebc46adfa6 100644
--- a/studio/backend/tests/test_research_internal_key_monitor.py
+++ b/studio/backend/tests/test_research_internal_key_monitor.py
@@ -58,7 +58,7 @@ def test_session_jwt_and_missing_header_are_not_api_traffic():
def test_unknown_key_is_treated_as_third_party():
- # An unrecognised key cannot be Studio's own, so it must keep its monitor attribution.
+ # An unrecognised key cannot be Unsloth's own, so it must keep its monitor attribution.
assert auth_storage.is_internal_api_key("sk-unsloth-deadbeefdeadbeef") is False
assert _request_used_api_key(_Request("Bearer sk-unsloth-deadbeefdeadbeef")) is True
diff --git a/studio/backend/tests/test_reset_password_command.py b/studio/backend/tests/test_reset_password_command.py
index 961d4dfd645..7be94783a35 100644
--- a/studio/backend/tests/test_reset_password_command.py
+++ b/studio/backend/tests/test_reset_password_command.py
@@ -3,7 +3,7 @@
"""The command a locked-out user is told to run has to run.
-It is printed exactly when someone cannot get into Studio, so every way of
+It is printed exactly when someone cannot get into Unsloth, so every way of
being wrong here is a way of stranding them: naming the executable a policy
denies (issue #8490), or naming an isolated module route that cannot see the
site its own package lives in.
diff --git a/studio/backend/tests/test_rocm_vram_probe_no_hip_context.py b/studio/backend/tests/test_rocm_vram_probe_no_hip_context.py
index 6fdcb1a513a..bfaa06db6f9 100644
--- a/studio/backend/tests/test_rocm_vram_probe_no_hip_context.py
+++ b/studio/backend/tests/test_rocm_vram_probe_no_hip_context.py
@@ -9,7 +9,7 @@ elsewhere. ``get_device_properties`` and ``get_device_capability`` do not, which
why the System tab already reads totals through properties.
NVIDIA hosts were already safe because the probe asks nvidia-smi first. ROCm hosts
-were not: they fell straight through to torch, so a Studio backend serving GGUF
+were not: they fell straight through to torch, so an Unsloth backend serving GGUF
models paid a permanent ~700 MiB for a number it only reads, on a card whose models
run in a llama-server CHILD that then cannot use it. amd-smi answers the same
question from a subprocess.
diff --git a/studio/backend/tests/test_run_tools_locally_discriminator.py b/studio/backend/tests/test_run_tools_locally_discriminator.py
index 5a51c2f5235..43d0842f073 100644
--- a/studio/backend/tests/test_run_tools_locally_discriminator.py
+++ b/studio/backend/tests/test_run_tools_locally_discriminator.py
@@ -98,7 +98,7 @@ def test_a_hosted_only_name_with_no_local_stand_in_stays_hosted(provider_type):
from core.inference.tools import ALL_TOOLS
from routes.inference import _selects_only_provider_hosted_tools
- # The premise: Studio has nothing to substitute.
+ # The premise: Unsloth has nothing to substitute.
assert "image_generation" not in {tool["function"]["name"] for tool in ALL_TOOLS}
payload = _payload(enabled_tools = ["image_generation"])
@@ -127,7 +127,7 @@ def test_the_flag_cannot_route_a_hosted_only_selection_into_the_loop(provider_ty
def test_code_execution_alone_stays_hosted_because_its_stand_ins_are_unselected(provider_type):
"""code_execution has a stand-in mapping, but this request selects neither half.
- Studio ships no code_execution, so the loop has nothing to execute. Reading
+ Unsloth ships no code_execution, so the loop has nothing to execute. Reading
the flag off the mere existence of the mapping enters the loop, finds an
empty catalog, falls back to the same passthrough, and skips the
confirmation rejection on the way.
@@ -137,7 +137,7 @@ def test_code_execution_alone_stays_hosted_because_its_stand_ins_are_unselected(
from routes.inference import _select_request_tools, _selects_only_provider_hosted_tools
# The premise, derived rather than asserted: a mapping exists, nothing it
- # points at was selected, and Studio has no code_execution of its own.
+ # points at was selected, and Unsloth has no code_execution of its own.
assert LOCAL_STANDINS_FOR_HOSTED_TOOLS["code_execution"] == frozenset({"python", "terminal"})
assert "code_execution" not in {tool["function"]["name"] for tool in ALL_TOOLS}
@@ -153,7 +153,7 @@ def test_code_execution_alone_stays_hosted_because_its_stand_ins_are_unselected(
@pytest.mark.parametrize("provider_type", HOSTED_PROVIDERS)
def test_code_execution_beside_a_selected_stand_in_still_takes_the_loop(provider_type):
- """The other half of the rule: web_search is Studio's to run and
+ """The other half of the rule: web_search is Unsloth's to run and
code_execution rides along, so the check above must not sweep this up."""
from routes.inference import _selects_only_provider_hosted_tools
@@ -166,7 +166,7 @@ def test_code_execution_beside_a_selected_stand_in_still_takes_the_loop(provider
@pytest.mark.parametrize("provider_type", HOSTED_PROVIDERS)
def test_a_mixed_selection_with_the_flag_still_takes_the_loop(provider_type):
- """One name Studio can run is enough; the hosted one rides along as a flag."""
+ """One name Unsloth can run is enough; the hosted one rides along as a flag."""
from routes.inference import _selects_only_provider_hosted_tools
payload = _payload(
diff --git a/studio/backend/tests/test_sandbox_files_and_storage_roots.py b/studio/backend/tests/test_sandbox_files_and_storage_roots.py
index 5d777919299..bdfccb47844 100644
--- a/studio/backend/tests/test_sandbox_files_and_storage_roots.py
+++ b/studio/backend/tests/test_sandbox_files_and_storage_roots.py
@@ -942,7 +942,7 @@ def test_a_directory_of_plain_python_files_is_not_a_cache(tmp_path, monkeypatch)
def test_a_marked_directory_is_cleared(tmp_path, monkeypatch):
- """Studio writes the marker when it creates the location."""
+ """Unsloth writes the marker when it creates the location."""
cache = tmp_path / "compiled_cache"
cache.mkdir()
(cache / "helper.py").write_text("print(1)\n")
@@ -1052,7 +1052,7 @@ def test_a_shared_compile_location_keeps_preserved_patterns(tmp_path, monkeypatc
def test_a_marked_shared_directory_is_still_cleared_whole(tmp_path, monkeypatch):
- """The marker means Studio made the directory, so the old behaviour stands."""
+ """The marker means Unsloth made the directory, so the old behaviour stands."""
cache = tmp_path / "marked"
cache.mkdir()
@@ -1268,7 +1268,7 @@ def test_the_marker_survives_a_cache_clear(tmp_path, monkeypatch):
def test_an_unrelated_cache_named_folder_in_the_cwd_is_not_ours(tmp_path, monkeypatch):
- """Studio is launched from wherever the shell happens to be, so the name
+ """Unsloth is launched from wherever the shell happens to be, so the name
alone cannot license an rmtree."""
launch_dir = tmp_path / "someproject"
cache = launch_dir / "unsloth_compiled_cache"
@@ -1526,7 +1526,7 @@ def test_a_pre_existing_compile_directory_is_never_marked_as_ours(tmp_path, monk
from utils import cache_cleanup
from utils.paths import storage_roots
- # Where Studio would pin it, already there and holding someone else's files.
+ # Where Unsloth would pin it, already there and holding someone else's files.
pinned = Path(storage_roots.cache_root()).parent / "compiled_cache"
pinned.mkdir(parents = True)
(pinned / "someones_notes.txt").write_text("keep me")
@@ -1822,7 +1822,7 @@ def test_a_real_project_workspace_is_still_left_alone(tmp_path, monkeypatch):
def test_a_foreign_tool_result_keeps_its_own_fields():
- """Studio's wrapper always carries images; anything else with text and
+ """Unsloth's wrapper always carries images; anything else with text and
sessionId is someone else's result and must not be reduced to its text."""
# The predicate lives beside the rest of the sandbox contract, and the
# adapter and both tool cards share that one copy.
@@ -2588,7 +2588,7 @@ def test_a_symlinked_cache_marker_does_not_license_a_delete(tmp_path, monkeypatc
def test_a_real_cache_marker_still_counts(tmp_path):
- """The other half: a directory Studio made is still cleaned out."""
+ """The other half: a directory Unsloth made is still cleaned out."""
from utils import cache_cleanup
ours = tmp_path / "unsloth_compiled_cache"
diff --git a/studio/backend/tests/test_sandbox_tools.py b/studio/backend/tests/test_sandbox_tools.py
index ad4e1a8e9b0..8c538793c40 100644
--- a/studio/backend/tests/test_sandbox_tools.py
+++ b/studio/backend/tests/test_sandbox_tools.py
@@ -556,7 +556,7 @@ class TestSandboxEnvIsolation:
env = _build_safe_env(str(tmp_path))
parts = env["PATH"].split(os.pathsep)
assert str(git_dir) in parts
- # Curated prefix stays ahead of host Git so Studio python/pip win.
+ # Curated prefix stays ahead of host Git so Unsloth python/pip win.
assert parts.index(str(git_dir)) > 0
def test_host_path_dirs_not_inherited(self, monkeypatch, tmp_path):
diff --git a/studio/backend/tests/test_scan_folder_health.py b/studio/backend/tests/test_scan_folder_health.py
index f7359278a37..5c0091918a5 100644
--- a/studio/backend/tests/test_scan_folder_health.py
+++ b/studio/backend/tests/test_scan_folder_health.py
@@ -395,7 +395,7 @@ def test_the_hub_scan_probes_off_the_event_loop(tmp_path: Path):
Every other filesystem step in ``_collect_models_from_default_sources`` is
already wrapped in ``asyncio.to_thread``. This one opens up to 64 directories
per registered folder, and on a stalled network mount ``scandir`` sits in the
- kernel with nothing to yield to, so the whole Studio server stops answering.
+ kernel with nothing to yield to, so the whole Unsloth server stops answering.
"""
import asyncio as _asyncio
diff --git a/studio/backend/tests/test_scoped_download_job.py b/studio/backend/tests/test_scoped_download_job.py
index 209d8428a99..7c08462471f 100644
--- a/studio/backend/tests/test_scoped_download_job.py
+++ b/studio/backend/tests/test_scoped_download_job.py
@@ -169,7 +169,7 @@ def test_a_different_file_set_is_not_adopted(monkeypatch):
def test_a_start_reports_whether_it_attached_to_a_live_job(monkeypatch):
# A second client starting the same download is accepted and gets the live job's
# transport, which reads exactly like a fresh Xet start. Only this flag separates
- # them, and the Studio download notice keys off it.
+ # them, and the Unsloth download notice keys off it.
monkeypatch.setattr(dl, "_reject_if_load_in_flight", lambda repo_id: None)
monkeypatch.setattr(dl, "resolve_cached_repo_id_case", lambda repo, **k: repo)
monkeypatch.setattr(dl, "scoped_file_blob_hashes", lambda *a, **k: frozenset())
diff --git a/studio/backend/tests/test_sd_cpp_args.py b/studio/backend/tests/test_sd_cpp_args.py
index e4b5b97c951..406c32274e8 100644
--- a/studio/backend/tests/test_sd_cpp_args.py
+++ b/studio/backend/tests/test_sd_cpp_args.py
@@ -248,7 +248,7 @@ def test_build_appends_offload_and_extra_args_last():
assert "--offload-to-cpu" in cmd
assert _pair(cmd, "--threads") == "8"
assert "-v" in cmd
- # extra args come after everything Studio set (last-wins for power users)
+ # extra args come after everything Unsloth set (last-wins for power users)
assert cmd[-2:] == ["--rng", "cuda"]
@@ -658,7 +658,7 @@ def test_video_build_appends_extra_args_verbatim_and_last():
)
assert cmd[-2:] == ["--rng", "cuda"]
assert cmd[-1] != "cuda" or cmd[-2] == "--rng"
- # Studio's own value is still there, earlier, so sd.cpp's last-wins parser takes the override.
+ # Unsloth's own value is still there, earlier, so sd.cpp's last-wins parser takes the override.
assert cmd.count("--rng") == 2
diff --git a/studio/backend/tests/test_sd_cpp_backend.py b/studio/backend/tests/test_sd_cpp_backend.py
index 49f799d693f..6eb162b19cb 100644
--- a/studio/backend/tests/test_sd_cpp_backend.py
+++ b/studio/backend/tests/test_sd_cpp_backend.py
@@ -625,7 +625,7 @@ def test_asset_specs_flux2_klein_selects_encoder_by_variant():
# A rename or takedown in a community repack breaks every no-GPU load needing the file, so each
-# one Studio depended on now has a byte-identical unsloth mirror.
+# one Unsloth depended on now has a byte-identical unsloth mirror.
_REPACKER_ORGS = frozenset(
{"comfy-org", "comfyanonymous", "quantstack", "city96", "calcuis", "orabazes"}
)
@@ -996,7 +996,7 @@ _H3_HELP = _PRE_H3_HELP + (
def test_h3_binary_gate_replaces_a_stale_managed_install(monkeypatch, tmp_path):
- # An upgraded Studio still carrying an older managed sd-cli got that binary handed straight
+ # An upgraded Unsloth still carrying an older managed sd-cli got that binary handed straight
# back: only runnability was probed, so the H3 load reported ready on a build with no H3
# support and the first generation failed, after the whole bundle had already downloaded.
stale = tmp_path / "stale" / "sd-cli"
@@ -1058,7 +1058,7 @@ def test_h3_binary_gate_refuses_but_keeps_a_user_supplied_build(monkeypatch, tmp
with pytest.raises(RuntimeError, match = "does not advertise MiniMax-H3") as excinfo:
bk.ensure_h3_sd_cpp_binary()
assert own.exists()
- # Not Studio's to delete, so the refusal must not ask for anything to be removed. The old
+ # Not Unsloth's to delete, so the refusal must not ask for anything to be removed. The old
# wording said "remove that directory" whatever the binary was, and PATH discovery hands this
# branch /usr/bin/sd, i.e. it read as "remove /usr/bin".
assert "remove" not in str(excinfo.value)
@@ -2102,7 +2102,7 @@ def test_a_cached_community_repack_is_reused_instead_of_re_downloading_the_mirro
def test_a_repack_left_in_the_pre_change_cache_root_still_wins_over_the_mirror(
monkeypatch, tmp_path
):
- """Changing Studio's cache folder must not cost the user the repack they already hold.
+ """Changing Unsloth's cache folder must not cost the user the repack they already hold.
The fetch passes reuse_other_cache_root, so a file cached only under huggingface_hub's
import-time root resolves through that root -- but only under the repo id it was filed as.
diff --git a/studio/backend/tests/test_sd_cpp_engine.py b/studio/backend/tests/test_sd_cpp_engine.py
index 9f3b3dbdaa2..369623687fc 100644
--- a/studio/backend/tests/test_sd_cpp_engine.py
+++ b/studio/backend/tests/test_sd_cpp_engine.py
@@ -43,7 +43,7 @@ def _isolate_binary_discovery(tmp_path_factory, monkeypatch):
Clearing ``SD_CLI_PATH`` / ``UNSLOTH_SD_CPP_PATH`` and patching ``Path.home`` is not enough:
hop 3 goes through ``managed_install_root()``, which honors ``UNSLOTH_STUDIO_HOME`` /
``STUDIO_HOME`` and resolves to ``<studio home>/../stable-diffusion.cpp``. Anyone running the
- suite with a Studio home set -- which is the documented way to run side-by-side Studios -- gets
+ suite with an Unsloth home set -- which is the documented way to run side-by-side Unsloth instances -- gets
a real binary back and every "nothing is installed" assertion here fails. Hop 4 (the in-tree
developer build) has the same problem for anyone who built sd.cpp in the checkout.
@@ -261,7 +261,7 @@ def test_identity_probe_does_not_memoize_a_nonzero_exit_it_learned_nothing_from(
# loader with nothing identifying on either stream. That is a CompletedProcess, not an
# exception, so it would otherwise be cached as a definitive "not stable-diffusion.cpp"
# against a file that never changed -- and installing the missing library would not get it
- # re-probed until Studio restarted.
+ # re-probed until Unsloth restarted.
_clear_env(monkeypatch)
candidate = tmp_path / "sd"
candidate.write_text("#!/bin/sh\n")
@@ -354,7 +354,7 @@ def test_identity_verdict_expires(tmp_path, monkeypatch):
def test_identity_probe_does_not_memoize_a_probe_that_failed(tmp_path, monkeypatch):
# A timeout or a failed spawn does not touch the file, so its memo key does not change either.
# Remembering that "no" would blacklist a genuine build for the life of the process over one
- # slow --help under disk or memory pressure -- Studio would have to be restarted to see it.
+ # slow --help under disk or memory pressure -- Unsloth would have to be restarted to see it.
_clear_env(monkeypatch)
candidate = tmp_path / "sd"
candidate.write_text("#!/bin/sh\n")
diff --git a/studio/backend/tests/test_sd_cpp_install.py b/studio/backend/tests/test_sd_cpp_install.py
index f7aa03263cf..229d920d96a 100644
--- a/studio/backend/tests/test_sd_cpp_install.py
+++ b/studio/backend/tests/test_sd_cpp_install.py
@@ -280,7 +280,7 @@ def test_install_downloads_verifies_extracts(tmp_path, monkeypatch):
sd_cli = install(install_dir = tmp_path)
assert sd_cli.name == "sd-cli" and sd_cli.is_file()
assert not (tmp_path / name).exists() # archive cleaned up after extract
- # The ownership marker lets the uninstaller delete a Studio-installed sd.cpp while keeping a user's own checkout.
+ # The ownership marker lets the uninstaller delete an Unsloth-installed sd.cpp while keeping a user's own checkout.
assert (tmp_path / ".unsloth-studio-owned").is_file()
@@ -295,7 +295,7 @@ def test_install_into_empty_dir_claims_ownership(tmp_path, monkeypatch):
def test_install_into_nonempty_unowned_dir_is_refused(tmp_path, monkeypatch):
- # A pre-existing, non-empty directory Studio did not create must not be extracted into; install() refuses up front.
+ # A pre-existing, non-empty directory Unsloth did not create must not be extracted into; install() refuses up front.
zb = _zip_with_sd_cli()
_stub_release(monkeypatch, zip_bytes = zb, digest = "sha256:" + hashlib.sha256(zb).hexdigest())
target = tmp_path / "stable-diffusion.cpp"
@@ -303,7 +303,7 @@ def test_install_into_nonempty_unowned_dir_is_refused(tmp_path, monkeypatch):
user_file = target / "USER_WORK"
user_file.write_text("keep", encoding = "utf-8")
- with pytest.raises(RuntimeError, match = "not a Studio-managed directory"):
+ with pytest.raises(RuntimeError, match = "not an Unsloth-managed directory"):
install(install_dir = target)
# The user's directory is left exactly as it was: file intact, no marker, nothing extracted.
@@ -335,7 +335,7 @@ def test_install_sha256_mismatch_raises_and_cleans_up(tmp_path, monkeypatch):
def test_partial_install_failure_is_reclaimed_on_retry(tmp_path, monkeypatch):
# A crash AFTER extraction leaves the target non-empty. Because ownership is marked BEFORE the partial writes, the retry
- # recognises the debris as ours and re-extracts instead of tripping the "not a Studio-managed directory" refusal.
+ # recognises the debris as ours and re-extracts instead of tripping the "not an Unsloth-managed directory" refusal.
zb = _zip_with_sd_cli()
_stub_release(monkeypatch, zip_bytes = zb, digest = "sha256:" + hashlib.sha256(zb).hexdigest())
target = tmp_path / "sdcpp"
@@ -670,7 +670,7 @@ def test_safe_extractall_rejects_a_symlink_at_a_reserved_installer_path(tmp_path
def test_safe_extractall_rejects_a_symlink_onto_a_reserved_installer_path(tmp_path):
- # The marker exists before extraction on any root Studio owns, so a link to it resolves
+ # The marker exists before extraction on any root Unsloth owns, so a link to it resolves
# to a file and _locate_sd_cli reports an empty one as the executable.
target = tmp_path / "install"
target.mkdir()
@@ -1070,7 +1070,7 @@ def test_safe_extractall_extracts_normal_members(tmp_path):
def test_find_sd_cpp_binary_honors_studio_home(tmp_path, monkeypatch):
- # A binary installed under a custom Studio root must be discovered without also setting UNSLOTH_SD_CPP_PATH.
+ # A binary installed under a custom Unsloth root must be discovered without also setting UNSLOTH_SD_CPP_PATH.
from core.inference import sd_cpp_engine as eng
monkeypatch.delenv("SD_CLI_PATH", raising = False)
@@ -1084,7 +1084,7 @@ def test_find_sd_cpp_binary_honors_studio_home(tmp_path, monkeypatch):
def test_managed_root_is_under_the_studio_home_like_every_other_component(tmp_path, monkeypatch):
- """The sd.cpp tree installs *under* the Studio home, not beside it.
+ """The sd.cpp tree installs *under* the Unsloth home, not beside it.
llama.cpp (``default_managed_llama_dir``), whisper.cpp and node all place their tree at
``<studio home>/<component>``. sd.cpp used the home's *parent*, which put the tree outside the
@@ -1127,7 +1127,7 @@ def test_the_legacy_sibling_tree_is_adopted_only_when_it_carries_the_marker(tmp_
Back-compat is marker-gated on purpose: the old location is ``<home>/../stable-diffusion.cpp``,
which for a relative home is the working directory, so an unmarked match there is far more
- likely to be someone's clone than a previous Studio install."""
+ likely to be someone's clone than a previous Unsloth install."""
from core.inference import sd_cpp_engine as eng
monkeypatch.delenv("SD_CLI_PATH", raising = False)
@@ -1664,7 +1664,7 @@ def test_unrunnable_binary_in_an_unmarked_root_is_kept_because_install_would_ref
monkeypatch.setattr(bk, "_server_binary_runnable", lambda *_a, **_k: False)
def _refuse(**_kwargs):
- raise RuntimeError("sd.cpp install target already exists and is not a Studio-managed dir")
+ raise RuntimeError("sd.cpp install target already exists and is not an Unsloth-managed dir")
stub = types.ModuleType("install_sd_cpp_prebuilt")
stub.install = _refuse
@@ -1745,7 +1745,7 @@ def _managed_tree(
monkeypatch,
accelerator = None,
):
- """A Studio-owned install tree, optionally carrying an install record."""
+ """An Unsloth-owned install tree, optionally carrying an install record."""
root = tmp_path / "sd-home" / "stable-diffusion.cpp"
(root / "sd-bin").mkdir(parents = True)
(root / ".unsloth-studio-owned").touch()
@@ -1788,7 +1788,7 @@ def test_a_cpu_install_is_reinstalled_when_cuda_is_requested(tmp_path, monkeypat
def test_a_legacy_sibling_install_is_read_from_its_own_root(tmp_path, monkeypatch):
"""The accelerator record belongs to the tree the binary is in.
- A tree an older build installed BESIDE the Studio home is still found by the finder, but the
+ A tree an older build installed BESIDE the Unsloth home is still found by the finder, but the
current managed root is now under the home and holds nothing. Reading the record from there
reports the install as unrecorded, and unrecorded reads as a mismatch for a GPU target: the
matching CUDA bundle already on disk would be downloaded again on every load."""
@@ -2462,7 +2462,7 @@ def test_an_unreadable_record_does_not_retire_the_memo(tmp_path, monkeypatch):
def test_an_external_record_update_retires_the_memo(tmp_path, monkeypatch):
"""The memo speaks only for the record it could not replace. Once the installer CLI or another
- Studio rewrites that file, the file is the newer answer -- otherwise this process would keep
+ Unsloth rewrites that file, the file is the newer answer -- otherwise this process would keep
reporting its own stale accelerator and treat the other one's CUDA binaries as a CPU match."""
root = tmp_path / "sd"
root.mkdir()
@@ -2830,7 +2830,7 @@ def test_a_re_found_cli_goes_through_the_usability_gate(tmp_path, monkeypatch):
def test_a_cancelled_request_leaves_the_install_wait(tmp_path, monkeypatch):
"""The caller holds the generate lock across this wait, so a cancel or unload that could not
- get out of it reads as a hung Studio for up to the whole 900s while nothing has even started.
+ get out of it reads as a hung Unsloth for up to the whole 900s while nothing has even started.
Nothing notifies the condition on cancel, so the wait has to re-check rather than block once."""
import core.inference.sd_cpp_backend as bk
@@ -2924,7 +2924,7 @@ def test_a_failure_before_the_sweep_is_an_ordinary_install_failure(tmp_path, mon
def _owned_tree_holding(tmp_path, rel: str) -> Path:
- """A Studio-owned install dir already carrying a previous bundle's sd-cli at ``rel``."""
+ """An Unsloth-owned install dir already carrying a previous bundle's sd-cli at ``rel``."""
(tmp_path / ".unsloth-studio-owned").touch()
old = tmp_path / rel
old.parent.mkdir(parents = True, exist_ok = True)
@@ -3174,7 +3174,7 @@ def test_the_legacy_lookup_uses_the_lexical_parent_of_a_symlinked_home(tmp_path,
def test_a_serverless_install_does_not_fall_back_to_the_legacy_server(tmp_path, monkeypatch):
- """The finder also probes the tree beside the Studio home, so when the bundle just installed
+ """The finder also probes the tree beside the Unsloth home, so when the bundle just installed
ships no sd-server the hit can be the legacy one, built for another accelerator. Returning it
ran a forced CUDA load on the old CPU build instead of the one-shot CLI."""
import core.inference.sd_cpp_backend as bk
@@ -3201,7 +3201,7 @@ def test_a_serverless_install_does_not_fall_back_to_the_legacy_server(tmp_path,
def test_a_serverless_install_is_not_downloaded_again_on_every_later_load(tmp_path, monkeypatch):
- """Rejecting the legacy server is only half the answer. The tree beside the Studio home keeps
+ """Rejecting the legacy server is only half the answer. The tree beside the Unsloth home keeps
that mismatched server, so the next load found it again, judged the accelerator changed and
reinstalled the bundle already sitting in the current root -- once per model load, forever.
The completed matching install in that root is the authoritative one: serverless, not stale."""
diff --git a/studio/backend/tests/test_server_disk_logging_outstream.py b/studio/backend/tests/test_server_disk_logging_outstream.py
index 0ff27666a0f..bb9a6dc9732 100644
--- a/studio/backend/tests/test_server_disk_logging_outstream.py
+++ b/studio/backend/tests/test_server_disk_logging_outstream.py
@@ -200,7 +200,7 @@ class TestTeeStreamClose:
class TestColabStartupRegression:
"""End-to-end: the exact trigger -- an absl-style handler closing the
orphaned OutStream during the ``logging.shutdown`` that uvicorn's
- ``uvicorn.Config`` -> ``dictConfig`` runs -- must not crash Studio, and the
+ ``uvicorn.Config`` -> ``dictConfig`` runs -- must not crash Unsloth, and the
tee must keep logging afterwards.
``logging.shutdown`` is driven over a LOCAL weakref list (identical code path
diff --git a/studio/backend/tests/test_stt_download_validation.py b/studio/backend/tests/test_stt_download_validation.py
index a612b145310..c45605dfcc3 100644
--- a/studio/backend/tests/test_stt_download_validation.py
+++ b/studio/backend/tests/test_stt_download_validation.py
@@ -5,7 +5,7 @@
snapshot_download pulls it into the shared HF cache.
Regression for a Codex finding: the Transformers engine accepts arbitrary
-`owner/model` repos, so an authenticated caller could make Studio download a
+`owner/model` repos, so an authenticated caller could make Unsloth download a
large non-STT repository before load-time validation ever ran. Whisper-
compatibility is now enforced (metadata-only, no weights) before the background
download starts. The GGUF engine only accepts curated ids, so it is not gated.
diff --git a/studio/backend/tests/test_stt_install_and_snapshot_validation.py b/studio/backend/tests/test_stt_install_and_snapshot_validation.py
index cf725b1f2f3..bfc09ca77ba 100644
--- a/studio/backend/tests/test_stt_install_and_snapshot_validation.py
+++ b/studio/backend/tests/test_stt_install_and_snapshot_validation.py
@@ -4,7 +4,7 @@
"""Regressions for the second review pass on the local STT dictation feature:
1. scripts/build_whisper_cpp.sh must not rm -rf a whisper.cpp/src tree under a
- custom Studio home unless Studio itself created it (ownership marker), the
+ custom Unsloth home unless Unsloth itself created it (ownership marker), the
same policy studio/setup.sh applies before its destructive replacements.
2. _snapshot_is_complete must reject pickle (pytorch_model.bin) checkpoints
outright; only safetensors weights count as a usable snapshot.
@@ -126,7 +126,7 @@ def test_build_script_keeps_legacy_home_behavior(tmp_path):
env["HOME"] = str(fake_home)
result = _run_build_script(env)
- # The legacy managed dir is always Studio-owned; no gate, straight to git.
+ # The legacy managed dir is always Unsloth-owned; no gate, straight to git.
assert "not marked as an Unsloth-owned" not in result.stderr
assert "stub-git-invoked" in result.stderr
diff --git a/studio/backend/tests/test_stt_mtmd_sidecar.py b/studio/backend/tests/test_stt_mtmd_sidecar.py
index 7da2b990357..a386b85ff71 100644
--- a/studio/backend/tests/test_stt_mtmd_sidecar.py
+++ b/studio/backend/tests/test_stt_mtmd_sidecar.py
@@ -1104,7 +1104,7 @@ def test_download_probe_is_memoised_then_dropped_when_a_download_ends(monkeypatc
def test_download_probe_expires(monkeypatch):
- """A cache emptied outside Studio is noticed without a restart."""
+ """A cache emptied outside Unsloth is noticed without a restart."""
mtmd_mod._forget_downloaded_probe()
monkeypatch.setattr(mtmd_mod, "_DOWNLOADED_PROBE_TTL_SECONDS", 0.0)
calls = []
diff --git a/studio/backend/tests/test_studio_tool_loop.py b/studio/backend/tests/test_studio_tool_loop.py
index 69ae9bd9fb7..54eebe30655 100644
--- a/studio/backend/tests/test_studio_tool_loop.py
+++ b/studio/backend/tests/test_studio_tool_loop.py
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-"""The provider-agnostic Studio tool loop.
+"""The provider-agnostic Unsloth tool loop.
The transport is faked so these exercise the loop itself: turn cycling, the
budget, approvals, and the text-form healing that self-hosted models need. The
@@ -258,7 +258,7 @@ def test_a_conversation_search_here_gets_the_active_branch(executed):
assert [call["name"] for call in executed] == ["search_conversation"]
assert executed[0]["conversation_branch"] == branch
# And a budget, or the tool's clamp is skipped and a model-chosen top_k of 8 appends
- # roughly 4K tokens to a prompt this loop replays. Studio cannot measure an external
+ # roughly 4K tokens to a prompt this loop replays. Unsloth cannot measure an external
# model's window, so the cap is one ordinary recall's worth.
from core.rag import config as rag_config
@@ -1093,7 +1093,7 @@ def test_a_skipped_duplicate_closes_the_card_the_provider_already_painted(execut
ends = _events(lines, "tool_end")
assert len(ends) == 2
assert [end["tool_call_id"] for end in ends] == ["call_a", "call_a"]
- assert ends[1]["result"].startswith("Studio did not run this call")
+ assert ends[1]["result"].startswith("Unsloth did not run this call")
# Opened as well as closed. The client retires a card id when it closes it,
# so a second tool_end on the same id resolves to no card and the adapter
# drops it -- the skip would be invisible again. Announcing it first draws
diff --git a/studio/backend/tests/test_system_poll_no_cuda_context.py b/studio/backend/tests/test_system_poll_no_cuda_context.py
index a6e7aee1d2b..a3e944ae7b0 100644
--- a/studio/backend/tests/test_system_poll_no_cuda_context.py
+++ b/studio/backend/tests/test_system_poll_no_cuda_context.py
@@ -8,7 +8,7 @@ monitor and every 3s from Settings -> Resources. Both land on
get_backend_visible_gpu_info and get_visible_gpu_utilization. Where nvidia-smi is
absent (ROCm, or any host without it on PATH) those used to reach
torch.cuda.mem_get_info, which attaches a primary context worth ~612 MiB on this
-class of GPU and is never released while the process lives. An idle Studio would
+class of GPU and is never released while the process lives. An idle Unsloth would
therefore lose that memory to telemetry alone.
get_device_properties answers name and total capacity with no context, and it
diff --git a/studio/backend/tests/test_tensor_parallel.py b/studio/backend/tests/test_tensor_parallel.py
index f06f9efc647..9f63fb72946 100644
--- a/studio/backend/tests/test_tensor_parallel.py
+++ b/studio/backend/tests/test_tensor_parallel.py
@@ -1709,7 +1709,7 @@ def test_load_model_does_not_gate_the_kv_cache_on_tensor_mode():
class TestLegacyBuildQuantizedKvInTensorMode:
- """Studio stopped pre-emptively rewriting a quantized KV cache for the tensor
+ """Unsloth stopped pre-emptively rewriting a quantized KV cache for the tensor
attempt (ggml-org/llama.cpp#23792, b9455), so an older binary now refuses the
load itself. That refusal is a clean LLAMA_LOG_ERROR + return nullptr, not a
GGML_ASSERT, so nothing in the #6415 path can see it -- these pin the marker's
diff --git a/studio/backend/tests/test_tensor_quant_kv_platform_matrix.py b/studio/backend/tests/test_tensor_quant_kv_platform_matrix.py
index ec1264e64f4..4373ce5d7f4 100644
--- a/studio/backend/tests/test_tensor_quant_kv_platform_matrix.py
+++ b/studio/backend/tests/test_tensor_quant_kv_platform_matrix.py
@@ -78,7 +78,7 @@ CACHE_CELLS = [
# iq4_nl is in _VALID_CACHE_TYPES, so the gate removal admits it. ggml-org/
# llama.cpp#27116 reports it still asserting under a tensor split on b10441;
# that abort carries split_axis, so _should_record_tensor_split_abort latches
- # it and the route falls back. Studio's job is only to emit what was asked.
+ # it and the route falls back. Unsloth's job is only to emit what was asked.
("iq4_nl", "iq4_nl", "iq4_nl"),
]
@@ -126,7 +126,7 @@ def test_the_requested_cache_reaches_every_platform_unchanged(
):
"""No OS and no accelerator rewrites the requested KV cache type.
- Studio emits one type on both axes for a managed request, so both must equal
+ Unsloth emits one type on both axes for a managed request, so both must equal
what was asked, on every cell, whether or not tensor mode survives.
"""
tensor_viable = accelerator[5]
@@ -217,7 +217,7 @@ def test_an_inherited_quantized_kv_env_survives_on_every_platform(
# is left to the child. Pinned so the cache assertions above cannot be
# read as a claim about placement.
assert env["LLAMA_ARG_TENSOR_SPLIT"] == "9,1"
- # Env-only: Studio emits no flag of its own, so it records no type. Pinned
+ # Env-only: Unsloth emits no flag of its own, so it records no type. Pinned
# because /status and the reload matcher both read this, and the matcher
# compares it against an intent field that is also None for this shape.
assert backend.cache_type_kv is None
@@ -292,16 +292,16 @@ def _stable_join(cmd: list[str]) -> str:
def test_a_config_saved_by_a_pre_23792_studio_still_loads(tmp_path, monkeypatch):
- """Upgrading Studio must not invalidate a saved model config.
+ """Upgrading Unsloth must not invalidate a saved model config.
A user who set "Tensor Parallelism + q8_0" before this change had it silently
coerced to f16. The same saved config now gets what it asked for -- which is
the fix -- and nothing about reading it changes: no field is added, removed or
- renamed, so an old config loads here and a new one loads on an old Studio.
+ renamed, so an old config loads here and a new one loads on an old Unsloth.
"""
backend, gguf = _cell_backend(tmp_path, monkeypatch, PLATFORMS[0], ACCELERATORS[0])
- # Exactly the fields a pre-#23792 Studio wrote for this combination.
+ # Exactly the fields a pre-#23792 Unsloth wrote for this combination.
cmd = _launch(backend, gguf, tensor_parallel = True, cache_type_kv = "q8_0")["cmd"]
assert cmd[cmd.index("--split-mode") + 1] == "tensor"
@@ -312,7 +312,7 @@ def test_the_load_intent_gained_no_field(tmp_path):
"""Schema tripwire for both directions of the upgrade.
The fix threads a second cache type through the planner, and the cheap way to
- do that would have been a new GgufLoadIntent field -- which an older Studio
+ do that would have been a new GgufLoadIntent field -- which an older Unsloth
reading a newer config would reject. It is a function parameter instead; this
fails if that ever changes.
"""
diff --git a/studio/backend/tests/test_text_io_encoding.py b/studio/backend/tests/test_text_io_encoding.py
index 33060b6bc85..4e53d225067 100644
--- a/studio/backend/tests/test_text_io_encoding.py
+++ b/studio/backend/tests/test_text_io_encoding.py
@@ -7,7 +7,7 @@
``locale.getencoding()`` when no ``encoding`` is passed. On Windows that is
cp1252 (or cp932, cp1251, ... by system locale), not UTF-8, so a chat template,
model config or path containing ``ä ö ü → 世`` mojibakes or raises
-``UnicodeDecodeError`` mid-load. Studio's files are UTF-8, so say so.
+``UnicodeDecodeError`` mid-load. Unsloth's files are UTF-8, so say so.
"""
from __future__ import annotations
@@ -606,7 +606,7 @@ def test_a_corrupt_pid_file_does_not_abort_shutdown(tmp_path: Path, monkeypatch)
pid_file = tmp_path / "studio.pid"
pid_file.write_bytes(b"\x80\xff")
monkeypatch.setattr(studio_run, "_PID_FILE", pid_file)
- # _legacy_heir scans the real Studio root, so without this the last assertion asks whether
+ # _legacy_heir scans the real Unsloth root, so without this the last assertion asks whether
# a server happens to be running on the machine: with one, the record is handed over rather
# than unlinked. The handoff has its own test below.
monkeypatch.setattr(studio_run, "_legacy_heir", lambda: None)
diff --git a/studio/backend/tests/test_third_party_progress_bars.py b/studio/backend/tests/test_third_party_progress_bars.py
index d477a833bcd..fb79914d115 100644
--- a/studio/backend/tests/test_third_party_progress_bars.py
+++ b/studio/backend/tests/test_third_party_progress_bars.py
@@ -315,7 +315,7 @@ def test_bars_stay_registered_once_the_worker_takes_them_back(monkeypatch, capfd
def test_an_operator_who_turned_bars_off_keeps_them_off(monkeypatch):
- # Only Studio's own default is ever taken back.
+ # Only Unsloth's own default is ever taken back.
monkeypatch.setattr(log_config, "_BARS_RESTORED", False)
monkeypatch.setenv(_HUB, "1")
monkeypatch.delenv(log_config._PROGRESS_BARS_DEFAULTED, raising = False)
diff --git a/studio/backend/tests/test_tool_result_fits_window.py b/studio/backend/tests/test_tool_result_fits_window.py
index 3cf526efb65..a1daef8aa9d 100644
--- a/studio/backend/tests/test_tool_result_fits_window.py
+++ b/studio/backend/tests/test_tool_result_fits_window.py
@@ -57,14 +57,14 @@ def _spill_path(out: str) -> str:
@pytest.fixture(autouse = True)
def _records(tmp_path_factory, monkeypatch):
- """Ownership records live in Studio's own storage, so tests get their own copy of it
+ """Ownership records live in Unsloth's own storage, so tests get their own copy of it
rather than writing into the real one."""
where = tmp_path_factory.mktemp("tool-output-records")
monkeypatch.setattr(tools, "_spill_records_dir", lambda: str(where))
def _own(workdir) -> "os.PathLike":
- """The spill directory as Studio itself would leave it: created, and recorded as ours.
+ """The spill directory as Unsloth itself would leave it: created, and recorded as ours.
Tests that pre-create it are standing in for a sandbox this process has already
spilled into. A directory made any other way has no record, which is the case
@@ -581,7 +581,7 @@ class TestPruningOnlyTouchesStudioSpills:
def test_an_unowned_directory_is_never_written_to(self, tmp_path):
"""And nothing is added to it either, so the notice falls back to no paging hint
- rather than putting Studio's files among the user's."""
+ rather than putting Unsloth's files among the user's."""
(tmp_path / tools._SPILL_DIR).mkdir()
(tmp_path / tools._SPILL_DIR / "notes.txt").write_text("mine")
@@ -711,7 +711,7 @@ class TestTheSpillStaysInsideTheSandbox:
tools._prune_spills(str(target))
# os.remove would only unlink the link, so the file it points at is safe either
- # way; what the filter buys is that a name Studio did not write is left alone.
+ # way; what the filter buys is that a name Unsloth did not write is left alone.
assert (target / ("f" * 12 + ".txt")).is_symlink()
assert victim.read_text() == "keep me"
@@ -1104,7 +1104,7 @@ class TestAProjectIsBoundedAsOneWorkspace:
class TestDeletingAChatIsNotBlockedByItsSpills:
def test_a_sandbox_holding_only_spills_is_still_removable(self, tmp_path):
- """Spills are Studio's own, written by this process and deliberately kept off the
+ """Spills are Unsloth's own, written by this process and deliberately kept off the
file cards. Counted as the user's content they leave an unreachable sandbox behind,
reported as holding files the user never created."""
tools._truncate(
@@ -1179,8 +1179,8 @@ class TestTheNativePathIsBoundedWithoutATokenizer:
class TestOwnershipIsNotKeptWhereToolCodeCanWriteIt:
"""The sandbox is a directory the model runs commands in, so nothing kept inside it is
evidence about it. A marker file there can be replaced with a link, and once it is a
- plain file its contents can be rewritten to name the user's own files as Studio's,
- which turns the cleanup into a delete. The record lives in Studio's own storage."""
+ plain file its contents can be rewritten to name the user's own files as Unsloth's,
+ which turns the cleanup into a delete. The record lives in Unsloth's own storage."""
def test_nothing_about_ownership_is_written_into_the_sandbox(self, tmp_path):
out = tools._truncate("\n".join(str(i) for i in range(5_000)), 200, workdir = str(tmp_path))
@@ -1251,7 +1251,7 @@ class TestConcurrentSpillsKeepTheirRecords:
"""A project's chats share one sandbox. Appending a spill and rewriting the
manifest after a prune are a read-modify-write over one file, and a pruner that
read it before another call appended would discard the newer entry, leaving a
- file nothing counts, prunes, or recognises as Studio's."""
+ file nothing counts, prunes, or recognises as Unsloth's."""
import threading
workdir = str(tmp_path)
@@ -1369,7 +1369,7 @@ class TestARemovedSandboxTakesItsRecordWithIt:
def test_a_sandbox_that_stays_keeps_its_record(self, tmp_path, monkeypatch):
"""The control: the files are the user's, the sandbox stays, and so does the
- record of what in it is Studio's."""
+ record of what in it is Unsloth's."""
workdir, record = self._sandbox(tmp_path, monkeypatch, "__LOCALID_spill333")
open(os.path.join(workdir, "game.html"), "w").close()
@@ -1502,7 +1502,7 @@ class TestInstallingASpillNeverReplacesAnything:
def test_the_record_names_what_was_installed_not_what_is_there_now(self, tmp_path):
"""Between the install and the record, another call sharing the sandbox can replace
- the file. Stating the path then records THAT content as Studio's, and a later prune
+ the file. Stating the path then records THAT content as Unsloth's, and a later prune
or cleanup deletes the user's data on the strength of it."""
root = _own(tmp_path)
name = "abcdef123456.txt"
@@ -1519,7 +1519,7 @@ class TestInstallingASpillNeverReplacesAnything:
class TestPruningDeletesOnlyWhatItChecked:
- """The manifest lock orders Studio's own threads; the thing racing here is the sandbox.
+ """The manifest lock orders Unsloth's own threads; the thing racing here is the sandbox.
A background process can replace a recorded spill between the check and the unlink, and
a delete by name then takes the replacement."""
diff --git a/studio/backend/tests/test_training_preflight.py b/studio/backend/tests/test_training_preflight.py
index bb229954343..649fb194746 100644
--- a/studio/backend/tests/test_training_preflight.py
+++ b/studio/backend/tests/test_training_preflight.py
@@ -619,7 +619,7 @@ def test_max_steps_dataset_rows_survives_unusable_numbers():
def _single_process_launch(monkeypatch):
- """Clear every launcher variable, so a bound reads as Studio's own launch."""
+ """Clear every launcher variable, so a bound reads as Unsloth's own launch."""
from core.training.dataset_bounds import WORLD_SIZE_ENV_FILES, WORLD_SIZE_ENV_VARS
for name in WORLD_SIZE_ENV_VARS + WORLD_SIZE_ENV_FILES:
monkeypatch.delenv(name, raising = False)
diff --git a/studio/backend/tests/test_training_raw_support.py b/studio/backend/tests/test_training_raw_support.py
index a24f5f23b74..7e817f33aaa 100644
--- a/studio/backend/tests/test_training_raw_support.py
+++ b/studio/backend/tests/test_training_raw_support.py
@@ -205,7 +205,7 @@ class TestTrainingRawSupport(unittest.TestCase):
)
def test_mlx_worker_asks_the_trainer_to_report_the_gradient_norm(self):
- # What refills Studio's Gradient Norm chart on Apple Silicon; see the
+ # What refills Unsloth's Gradient Norm chart on Apple Silicon; see the
# rationale at the opt-in site in worker.py.
source = (_BACKEND_ROOT / "core" / "training" / "worker.py").read_text(encoding = "utf-8")
self.assertIn('if "report_grad_norm" in _supported_fields:', source)
diff --git a/studio/backend/tests/test_training_transformers_upgrade_gate.py b/studio/backend/tests/test_training_transformers_upgrade_gate.py
index 3755cc0da3c..75e07709533 100644
--- a/studio/backend/tests/test_training_transformers_upgrade_gate.py
+++ b/studio/backend/tests/test_training_transformers_upgrade_gate.py
@@ -345,7 +345,7 @@ def test_an_already_active_sidecar_is_not_blamed_on_the_install(monkeypatch):
def test_route_is_off_the_openai_compatible_mount():
- # /v1 is the OpenAI-compatible surface; a Studio preflight has no business there.
+ # /v1 is the OpenAI-compatible surface; an Unsloth preflight has no business there.
inf_mod = _route()
paths = {route.path for route in inf_mod.studio_router.routes}
assert "/transformers-upgrade-check" in paths
diff --git a/studio/backend/tests/test_transformers_version.py b/studio/backend/tests/test_transformers_version.py
index 0a4c848228e..0a96dcc79d1 100644
--- a/studio/backend/tests/test_transformers_version.py
+++ b/studio/backend/tests/test_transformers_version.py
@@ -3896,7 +3896,7 @@ class TestDamagedLatestSidecarRepairHandoff:
# _probe_tier walks _PROBE_TIER_ORDER provisioning each tier it tries. With only
# the latest dir redirected, the 530, 550 and 510 targets were the REAL ones under
# ~/.unsloth/studio, so running this file wrote a fake transformers 5.99.0 whose
- # CONFIG_MAPPING_NAMES is {"brandnew": "C"} into the developer's own Studio.
+ # CONFIG_MAPPING_NAMES is {"brandnew": "C"} into the developer's own Unsloth.
#
# It then failed the next run of this same class: _lowest_tier_for("brandnew")
# found it in tier 530 and returned "530" where the test asserts "latest". Three
@@ -3960,7 +3960,7 @@ class TestDamagedLatestSidecarRepairHandoff:
}
assert not stray, (
f"_patch leaves {stray} pointing outside tmp_path. A repair or probe that "
- f"provisions one of those writes test fixture data into the real Studio "
+ f"provisions one of those writes test fixture data into the real Unsloth "
f"install, which poisons tier resolution for every later run on that machine."
)
diff --git a/studio/backend/tests/test_uvicorn_h11_shutdown_quiet.py b/studio/backend/tests/test_uvicorn_h11_shutdown_quiet.py
index c34a47e353f..662fa12b9cc 100644
--- a/studio/backend/tests/test_uvicorn_h11_shutdown_quiet.py
+++ b/studio/backend/tests/test_uvicorn_h11_shutdown_quiet.py
@@ -20,7 +20,7 @@ Two things in these fixtures are shaped by the platform, not by convenience:
because Linux's selector transport will never make that call;
* ``uvicorn.protocols.http.auto.AutoHTTPProtocol`` is forced to ``H11Protocol``,
because a dev box with httptools installed resolves to httptools while the
- Studio requirements pin plain uvicorn, which is the h11 path the report hit.
+ Unsloth requirements pin plain uvicorn, which is the h11 path the report hit.
Everything downstream of the injected read -- the h11 state machine, the
``RemoteProtocolError``, uvicorn's 400 path -- is the real code.
@@ -47,7 +47,7 @@ REQUEST = b"GET /api/inference/status HTTP/1.1\r\nHost: 127.0.0.1\r\n\r\n"
@pytest.fixture
def patched_protocol_class(monkeypatch):
- """The protocol Studio installs when uvicorn would otherwise use plain h11."""
+ """The protocol Unsloth installs when uvicorn would otherwise use plain h11."""
import uvicorn.protocols.http.auto as auto
monkeypatch.setattr(auto, "AutoHTTPProtocol", H11Protocol)
diff --git a/studio/backend/tests/test_vendored_truststore.py b/studio/backend/tests/test_vendored_truststore.py
index 047904c0351..42ae190a668 100644
--- a/studio/backend/tests/test_vendored_truststore.py
+++ b/studio/backend/tests/test_vendored_truststore.py
@@ -5,7 +5,7 @@
It is a static copy: nothing refreshes it, so any change to these bytes is either
a deliberate version bump that must update the manifest with it, or an accident.
-The accident is the dangerous one, since it means Studio verifies certificates
+The accident is the dangerous one, since it means Unsloth verifies certificates
with code no upstream release ever shipped.
"""
diff --git a/studio/backend/tests/test_video_backend.py b/studio/backend/tests/test_video_backend.py
index 650f184fb84..d6eeab2926b 100644
--- a/studio/backend/tests/test_video_backend.py
+++ b/studio/backend/tests/test_video_backend.py
@@ -1274,7 +1274,7 @@ def _ltx23_assembly_stubs(monkeypatch, tmp_path):
):
_FakeLTX2Pipeline.last_config_kwargs = {
"local_files_only": local_files_only,
- # Pinned to Studio's LIVE root: unset, this resolves through huggingface_hub's
+ # Pinned to Unsloth's LIVE root: unset, this resolves through huggingface_hub's
# import-time constant, which a mid-session cache-folder change leaves stale.
"cache_dir": cache_dir,
}
@@ -2449,7 +2449,7 @@ def _plan_api(monkeypatch, repos):
return _PlanInfo(repos[repo_id])
monkeypatch.setattr("huggingface_hub.HfApi", lambda *a, **k: _Api())
- # These tests describe their cache state explicitly; never let a developer's real Studio
+ # These tests describe their cache state explicitly; never let a developer's real Unsloth
# cache make an entry disappear from an otherwise hermetic plan.
from core.inference.diffusion import DiffusionBackend
@@ -3680,7 +3680,7 @@ def test_h3_native_reused_cpu_binary_still_commits_to_cpu(monkeypatch, tmp_path)
"""The second load on a Linux CUDA host. The first one installed the CPU prebuilt (upstream
publishes no Linux CUDA asset for the pinned tag), and from then on ensure_sd_cpp_binary finds
that binary and returns it whatever accelerator it is asked for -- so the fallback below it was
- skipped, native_device stayed "cuda", and Studio kept the VIDEO claim and applied GPU offload
+ skipped, native_device stayed "cuda", and Unsloth kept the VIDEO claim and applied GPU offload
policy while sd-cli ran wholly on the CPU. This is the common path, not an edge case."""
from core.inference import gpu_arbiter
from core.inference import video as video_mod
@@ -4255,7 +4255,7 @@ def test_h3_modular_load_pins_the_component_loads_to_the_studio_cache(fake_runti
load_components forwards its extra kwargs through ComponentSpec.load into each component's
from_pretrained. Without cache_dir those ~145 GB of Hub-pinned components resolve against the
HF_HUB_CACHE snapshot taken at import time, while the scoped pre-download stages into the
- cache folder Studio currently points at, and the two really can differ (it is a live setting).
+ cache folder Unsloth currently points at, and the two really can differ (it is a live setting).
"""
from core.inference.video import hub_cache_dir
@@ -5063,7 +5063,7 @@ def test_attention_trim_skipped_for_static_shape_and_off_tiers(fake_runtime, mon
def test_every_video_fetch_resolves_both_cache_roots():
- """The plan probe accepts a file cached under EITHER root (Studio's cache folder is a
+ """The plan probe accepts a file cached under EITHER root (Unsloth's cache folder is a
setting, so a pre-move download sits under huggingface_hub's import-time root) and stages
neither. So every fetch on the load path has to resolve both roots as well, or the file the
planner skipped is re-pulled inside the load, outside the manager's progress, cancel and disk
@@ -5098,7 +5098,7 @@ def _unified_snapshot(total_gib):
def test_unified_memory_refuses_an_oversized_video_load(fake_runtime, monkeypatch):
"""A 16 GiB Mac loading LTX-2 (about 65 GiB of weights): the planner has no offload tier to
fall back to on unified memory and PYTORCH_MPS_HIGH_WATERMARK_RATIO=0.0 removes the
- allocator's limit, so without this refusal the OS kills Studio with no Python exception.
+ allocator's limit, so without this refusal the OS kills Unsloth with no Python exception.
_run_load stringifies this onto load_progress, so the text is what the UI toasts."""
import core.inference.video as video_mod
@@ -6373,7 +6373,7 @@ def test_h3_reference_video_trim_tolerates_a_container_longer_than_its_video():
"""A trim taken from the container duration may reach just past the video track.
A container reports its longest track, so a file whose audio outruns its video reads as
- longer than it can show, and a browser hands Studio that duration. The last frame is held
+ longer than it can show, and a browser hands Unsloth that duration. The last frame is held
across the shortfall instead of refusing a clip that decodes fine untrimmed.
"""
pytest.importorskip("av")
@@ -7103,7 +7103,7 @@ def test_h3_ref2va_partition_refuses_a_reference_less_request(monkeypatch):
def test_h3_vae_trim_keeps_the_encoder_for_the_workflows_that_encode():
- """The encoder drop is gated on t2va, and neither workflow Studio loads is text-only.
+ """The encoder drop is gated on t2va, and neither workflow Unsloth loads is text-only.
fl2va encodes its keyframes and ref2va its references, both through this VAE, so dropping the
encoder half would break image conditioning outright. The decoder pre-cast -- the larger of
diff --git a/studio/backend/tests/test_video_families.py b/studio/backend/tests/test_video_families.py
index c2a10a5b2d8..a4d5e839221 100644
--- a/studio/backend/tests/test_video_families.py
+++ b/studio/backend/tests/test_video_families.py
@@ -381,7 +381,7 @@ def test_video_resolution_presets_are_upstream_sanctioned():
def test_curated_gguf_repos_are_unsloth_mirrors():
"""No curated video GGUF pick may point at a community repack.
- ``gguf_repo`` is a one-click download, so its availability is Studio's problem: a rename or
+ ``gguf_repo`` is a one-click download, so its availability is Unsloth's problem: a rename or
takedown upstream turns the pick into a 404 no client can fix.
"""
from core.inference.video_families import _FAMILIES
diff --git a/studio/backend/tests/test_video_h3_te_quant.py b/studio/backend/tests/test_video_h3_te_quant.py
index 01048f76adc..607fb8af192 100644
--- a/studio/backend/tests/test_video_h3_te_quant.py
+++ b/studio/backend/tests/test_video_h3_te_quant.py
@@ -437,8 +437,8 @@ def test_the_conditioner_repo_is_not_claimed_by_a_load_that_does_not_want_it(mon
def test_the_encoder_config_is_read_from_the_pinned_cache_not_the_default_one(monkeypatch):
- """Studio runs on a configured cache root. An AutoConfig call that ignores it resolves against
- huggingface_hub's import-time default, which re-downloads into a root Studio does not read and
+ """Unsloth runs on a configured cache root. An AutoConfig call that ignores it resolves against
+ huggingface_hub's import-time default, which re-downloads into a root Unsloth does not read and
simply fails on an offline host that has already staged the model."""
import sys
diff --git a/studio/backend/tests/test_video_prequant.py b/studio/backend/tests/test_video_prequant.py
index 1658b5ab5a8..51a556364de 100644
--- a/studio/backend/tests/test_video_prequant.py
+++ b/studio/backend/tests/test_video_prequant.py
@@ -130,7 +130,7 @@ def test_h3_resolves_the_primary_name_at_the_repo_root(scheme, expected):
def test_h3_int8_keeps_the_plain_denoiser_as_its_fallback():
- # The rotated artifact carries the v2 format tag, which a Studio predating the online rotation
+ # The rotated artifact carries the v2 format tag, which an Unsloth predating the online rotation
# refuses. Naming it explicitly and demoting the derived name to the fallback is what stops
# that refusal from reaching anyone: an older install still resolves MiniMax-H3-INT8.pt, and
# this one takes the rotated file when the repo has it.
diff --git a/studio/backend/tests/test_vram_budget_settings.py b/studio/backend/tests/test_vram_budget_settings.py
index 37f16cb13b0..f943621afba 100644
--- a/studio/backend/tests/test_vram_budget_settings.py
+++ b/studio/backend/tests/test_vram_budget_settings.py
@@ -644,7 +644,7 @@ class TestFitTarget:
"""The budget has to reach llama.cpp's own fitter on the --fit fallback.
``--fit-target`` is documented by the bundled llama-server as the "target
- margin per device for --fit ... default: 1024". Studio passes a tighter 512
+ margin per device for --fit ... default: 1024". Unsloth passes a tighter 512
under Manual + Auto and nothing at all on the legacy auto path, so a lowered
budget stopped at the planner and the fitter still packed to its own margin.
"""
diff --git a/studio/backend/tests/test_web_page_cap_fits_window.py b/studio/backend/tests/test_web_page_cap_fits_window.py
index 10bd009009b..7f88efe24e3 100644
--- a/studio/backend/tests/test_web_page_cap_fits_window.py
+++ b/studio/backend/tests/test_web_page_cap_fits_window.py
@@ -863,7 +863,7 @@ class TestTheProbeIsNotPaidForTwice:
def test_a_pass_through_chat_template_is_not_answered_from_the_managed_one(self, monkeypatch):
"""The gap `_chat_template_override` cannot see.
- User extra args are appended verbatim AFTER Studio's own flags and llama.cpp is
+ User extra args are appended verbatim AFTER Unsloth's own flags and llama.cpp is
last-wins, so `--chat-template` / `--chat-template-file` in extra args changes what
`/apply-template` renders while every managed field stays exactly as it was. Same
GGUF, same window, same managed override: reuse the counts and a prefix gets a
diff --git a/studio/backend/tests/test_web_rank.py b/studio/backend/tests/test_web_rank.py
index cc0f7caaa1f..07a1b6566e4 100644
--- a/studio/backend/tests/test_web_rank.py
+++ b/studio/backend/tests/test_web_rank.py
@@ -3,7 +3,7 @@
"""Unit tests for the ephemeral web-RAG used by deep research auto-read.
-These run the *real* Studio RAG store + hybrid retrieval + formatter against a temporary
+These run the *real* Unsloth RAG store + hybrid retrieval + formatter against a temporary
rag.db (so the ingest -> retrieve -> render reuse chain is exercised end to end) with a fake
deterministic embedding so no model is downloaded. They also assert the ephemeral scope is
deleted, i.e. an auto-read leaves nothing behind in the store."""
@@ -92,7 +92,7 @@ def test_retrieves_relevant_passages_as_chunks(rag_home):
assert "<chunk" in rendered
assert "LoRA" in rendered
assert sources and sources[0]["citationId"] == 1
- # source attribution is the page title, via Studio's formatter
+ # source attribution is the page title, via Unsloth's formatter
assert 'source="LoRA"' in rendered
diff --git a/studio/backend/tests/test_wheel_utils_xformers.py b/studio/backend/tests/test_wheel_utils_xformers.py
index 4a15b57dd94..89ee084f152 100644
--- a/studio/backend/tests/test_wheel_utils_xformers.py
+++ b/studio/backend/tests/test_wheel_utils_xformers.py
@@ -258,7 +258,7 @@ class TestStableAbiPatchReleases:
The exact-key matrix can only ever list releases that exist when it is written, so
2.10.1 / 2.11.1 / 2.12.1 -- all of them builds this repo names as supported elsewhere --
- resolved to nothing and left Studio on native attention with no xFormers at all.
+ resolved to nothing and left Unsloth on native attention with no xFormers at all.
"""
@pytest.mark.parametrize(
diff --git a/studio/backend/tests/test_xet_notice_settings.py b/studio/backend/tests/test_xet_notice_settings.py
index 7a7eca990e4..77ff8678ac0 100644
--- a/studio/backend/tests/test_xet_notice_settings.py
+++ b/studio/backend/tests/test_xet_notice_settings.py
@@ -3,7 +3,7 @@
"""The Xet notice counter: the count survives, and concurrency cannot beat the limit.
-It lived in per-origin localStorage, and a Studio origin moves whenever port 8888 is
+It lived in per-origin localStorage, and an Unsloth origin moves whenever port 8888 is
taken, so "three times" meant "three times per port, forever".
"""
diff --git a/studio/backend/utils/cache_cleanup.py b/studio/backend/utils/cache_cleanup.py
index 18bfbe77d39..63452b938a6 100644
--- a/studio/backend/utils/cache_cleanup.py
+++ b/studio/backend/utils/cache_cleanup.py
@@ -68,11 +68,11 @@ def get_existing_cache_dirs() -> List[Path]:
return found
-# Written when Studio creates the directory, so "we made this" is a fact rather
+# Written when Unsloth creates the directory, so "we made this" is a fact rather
# than an inference from the contents.
CACHE_MARKER = ".unsloth_compiled_cache"
-# Names only the compiler produces, so a cache Studio did not create is still
+# Names only the compiler produces, so a cache Unsloth did not create is still
# recognised once it has been written into.
import re as _re
@@ -84,7 +84,7 @@ _OWNED_DELETE_RE = _re.compile(r"\Aunsloth_compiled_module_.+\.py\Z")
def _is_dedicated_cache(path: Path) -> bool:
- """True only for a directory Studio created for the cache and nothing else.
+ """True only for a directory Unsloth created for the cache and nothing else.
A real file, not a link: exists() follows one, so a marker symlinked at any
existing path would license the rmtree below over somebody's own directory.
@@ -131,7 +131,7 @@ def _holds_generated_modules(path: Path) -> bool:
def _builtin_cache_paths() -> set:
"""Paths that are ours by construction, so they need no marker.
- The CWD candidate is deliberately not one: Studio is launched from wherever
+ The CWD candidate is deliberately not one: Unsloth is launched from wherever
the shell happens to be, and a directory there is only ours if it says so.
"""
return {str(p) for p in _CACHE_DIRS}
@@ -158,7 +158,7 @@ def _cleanable_cache_dirs() -> "List[tuple]":
cleanable.append((cache_dir, False))
else:
logger.warning(
- "Not clearing %s: Studio did not create it and it holds no generated "
+ "Not clearing %s: Unsloth did not create it and it holds no generated "
"modules. Point UNSLOTH_COMPILE_LOCATION at a directory used only for "
"the compiled cache.",
cache_dir,
diff --git a/studio/backend/utils/datasets/llm_assist.py b/studio/backend/utils/datasets/llm_assist.py
index 5f30d3b9bb7..ae551c57e39 100644
--- a/studio/backend/utils/datasets/llm_assist.py
+++ b/studio/backend/utils/datasets/llm_assist.py
@@ -65,7 +65,7 @@ def precache_helper_gguf():
)
from utils.hf_cache_settings import active_hf_hub_cache
- # Remember whether bars were already off. Studio turns them off for the whole
+ # Remember whether bars were already off. Unsloth turns them off for the whole
# server, so enabling them unconditionally on the way out would undo that for
# every later in-process download.
_bars_were_off = bool(are_progress_bars_disabled())
diff --git a/studio/backend/utils/datasets/online_tokenization.py b/studio/backend/utils/datasets/online_tokenization.py
index 10cb551a8a0..af3809ee61f 100644
--- a/studio/backend/utils/datasets/online_tokenization.py
+++ b/studio/backend/utils/datasets/online_tokenization.py
@@ -13,7 +13,7 @@ needed together:
on ``__getitem__``. It returns an immutable *view*; ``set_transform`` would
mutate the caller's object, which the preview/eval code also holds.
2. TRL gets ``dataset_kwargs = {"skip_prepare_dataset": True}`` so it does not
- map over the view, materialising the pass we are avoiding. Studio already
+ map over the view, materialising the pass we are avoiding. Unsloth already
uses that hook for the VLM branch.
3. ``dataloader_num_workers`` > 0 with prefetch and persistent workers, so the
tokenizer runs overlapped with the GPU.
@@ -136,7 +136,7 @@ def platform_supports_dataloader_workers() -> bool:
"""Fork, and only fork.
The hazard is ``spawn``, not the OS: a spawned worker re-imports the entry
- point against a fresh ``sys.path``, and Studio's is modified in-process, so
+ point against a fresh ``sys.path``, and Unsloth's is modified in-process, so
the import fails (why ``trainer.py`` already forces 0 workers on Windows and
macOS, which default to spawn). A Linux process set to ``spawn`` or
``forkserver`` is the same hazard, and a platform check cannot see it.
@@ -151,7 +151,7 @@ def trl_supports_skip_prepare_dataset() -> bool:
``SFTConfig`` must carry ``dataset_kwargs`` and ``SFTTrainer.__init__`` must
read the key. If the source is unreadable (compiled or patched build) the
- field alone decides: Studio's VLM branch has relied on this hook across every
+ field alone decides: Unsloth's VLM branch has relied on this hook across every
supported TRL, so a missing source is not evidence of a missing hook.
"""
try:
@@ -665,7 +665,7 @@ def release_train_dataloader(trainer: Any) -> int:
``dataloader_persistent_workers = True`` lets the barrier's workers survive
into ``train()``, and equally keeps them alive after it returns: memo holds
loader holds iterator holds the processes, so nothing drops the last
- reference. Studio then merges, quantizes and exports -- the most
+ reference. Unsloth then merges, quantizes and exports -- the most
memory-hungry part of a run -- with four forked children still resident, each
holding the parent's CUDA file descriptors.
diff --git a/studio/backend/utils/gguf_archs.py b/studio/backend/utils/gguf_archs.py
index b4006ca85a1..654a2aec1a3 100644
--- a/studio/backend/utils/gguf_archs.py
+++ b/studio/backend/utils/gguf_archs.py
@@ -18,7 +18,7 @@ from __future__ import annotations
from typing import Optional
-# ``general.architecture`` values naming a speech or neural-codec checkpoint that no Studio
+# ``general.architecture`` values naming a speech or neural-codec checkpoint that no Unsloth
# runtime can decode: llama.cpp has no CSM decoder (still an unmerged upstream PR) and no
# media backend reads one either. Published CSM GGUFs do not agree on a spelling, so all four
# on the Hub today are listed: ggml-org "llama-csm", cartesia "csm", cstr "csm-tts", and a
diff --git a/studio/backend/utils/hardware/hardware.py b/studio/backend/utils/hardware/hardware.py
index 1eaf4f42da4..d143c251c2e 100644
--- a/studio/backend/utils/hardware/hardware.py
+++ b/studio/backend/utils/hardware/hardware.py
@@ -581,7 +581,7 @@ def _detect_hardware_locked() -> DeviceType:
xpu_ok = False
if xpu_ok:
# Forced XPU on a hybrid host: unsloth's device_type picks
- # CUDA before XPU and ignores this Studio-only env var, so
+ # CUDA before XPU and ignores this Unsloth-only env var, so
# hide CUDA or spawned workers would silently train on CUDA.
if force_xpu and not cuda_hidden and not cuda_unavailable:
os.environ["CUDA_VISIBLE_DEVICES"] = ""
@@ -4921,7 +4921,7 @@ def dataset_map_num_proc(
Return a safe ``num_proc`` for ``Dataset.map()`` and ``Dataset.filter()``.
Returns ``None`` on spawn platforms (Windows, macOS). ``None`` -- not ``1``
- -- is the disable sentinel: ``datasets`` >= 4.1 (Studio pins 4.3.0) takes
+ -- is the disable sentinel: ``datasets`` >= 4.1 (Unsloth pins 4.3.0) takes
the pool branch for any ``num_proc >= 1``, so ``1`` still builds a
``Pool(1)``.
@@ -5078,7 +5078,7 @@ def _num_proc_override_is_set() -> bool:
def _bounded_by_the_shared_policy(
desired: Optional[int], serial_as_none: bool = True
) -> Optional[int]:
- """Apply the training-side num_proc policy to a Studio request.
+ """Apply the training-side num_proc policy to an Unsloth request.
``format_conversion.py`` and ``chat_templates.py`` hand this straight to
``Dataset.map``, so without it a container with 2GB and eight cores still got
@@ -5090,7 +5090,7 @@ def _bounded_by_the_shared_policy(
auto path reads this process's CPU affinity and cgroup quota while
``safe_num_proc`` reads the host's ``os.cpu_count()``: a 2-core container on
a 64-core box asked for 21 workers and got them bounded only by memory.
- Studio's own caps are then applied to whatever the policy chose, since the
+ Unsloth's own caps are then applied to whatever the policy chose, since the
multi-GPU fork-deadlock cap is knowledge the policy does not have -- except
over the escape hatch, which is uncapped by contract.
"""
diff --git a/studio/backend/utils/hardware/vram_estimation.py b/studio/backend/utils/hardware/vram_estimation.py
index 2ade2c96c60..7b177ed4082 100644
--- a/studio/backend/utils/hardware/vram_estimation.py
+++ b/studio/backend/utils/hardware/vram_estimation.py
@@ -933,7 +933,7 @@ def _full_weight_embedding_elements(arch: ModelArchConfig, target_modules) -> in
def compute_lora_params(arch: ModelArchConfig, lora_rank: int, target_modules: list) -> int:
all_linear = _targets_all_linear(target_modules)
selected_modules = list(DEFAULT_TARGET_MODULES) if all_linear else target_modules
- # Studio's CPT path hands the trainer everything but the embedding names, where an
+ # Unsloth's CPT path hands the trainer everything but the embedding names, where an
# empty remainder becomes the default projections and "all-linear" expands to them
# (worker.py). Count those, or the estimate picks a GPU that then OOMs.
if not all_linear and _full_weight_embedding_elements(arch, target_modules):
diff --git a/studio/backend/utils/hf_cache_settings.py b/studio/backend/utils/hf_cache_settings.py
index 6c2d3d9f134..00ec8f70816 100644
--- a/studio/backend/utils/hf_cache_settings.py
+++ b/studio/backend/utils/hf_cache_settings.py
@@ -3,7 +3,7 @@
"""Live, persisted Hugging Face cache routing for Unsloth Studio.
-Hugging Face reads cache environment variables at import time. Studio therefore
+Hugging Face reads cache environment variables at import time. Unsloth therefore
owns an explicit cache snapshot for each operation instead of trying to refresh
``huggingface_hub.constants`` in the long-running API process.
"""
@@ -32,7 +32,7 @@ _CACHE_ENV_KEYS = (
"HUGGINGFACE_HUB_CACHE",
"HF_XET_CACHE",
)
-# Imported by storage_roots._setup_cache_env before Studio seeds defaults.
+# Imported by storage_roots._setup_cache_env before Unsloth seeds defaults.
_EXPLICIT_CACHE_ENV = {
key: value.strip()
for key in _CACHE_ENV_KEYS
@@ -279,9 +279,9 @@ def _validate_cache_home(raw_path: str) -> Path:
with tempfile.NamedTemporaryFile(prefix = ".unsloth-write-test-", dir = child):
pass
except PermissionError as exc:
- raise ValueError("Studio does not have permission to write to this folder.") from exc
+ raise ValueError("Unsloth does not have permission to write to this folder.") from exc
except OSError as exc:
- raise ValueError(f"Studio cannot use this cache folder: {exc}") from exc
+ raise ValueError(f"Unsloth cannot use this cache folder: {exc}") from exc
return resolved
diff --git a/studio/backend/utils/hf_xet_fallback.py b/studio/backend/utils/hf_xet_fallback.py
index 8c307ce8834..957828163f8 100644
--- a/studio/backend/utils/hf_xet_fallback.py
+++ b/studio/backend/utils/hf_xet_fallback.py
@@ -164,7 +164,7 @@ def _reset_optional_module_cache() -> None:
def _load_optional(module_name: str) -> Any:
"""Import an optional shared Xet helper module (health / tuning), or return ``None``.
- Separate from ``_load_shared``: these modules exist only in newer unsloth_zoo, and a Studio
+ Separate from ``_load_shared``: these modules exist only in newer unsloth_zoo, and an Unsloth
pinned to an older one must keep downloading without the preflight verdict or buffer caps.
The GPU-init retry matters most here: ``unsloth_zoo.__init__`` runs torch accelerator detection
and raises ``NotImplementedError`` on a CPU-only host, which is precisely the small machine
@@ -962,7 +962,7 @@ def hf_hub_download_with_xet_fallback(
outcome this parameter exists to prevent, so it must not depend on the installed zoo.
``reuse_other_cache_root`` (opt-in) resolves a file cached ONLY under huggingface_hub's
- import-time root through that root. Studio's cache folder is a setting, so after it changes every
+ import-time root through that root. Unsloth's cache folder is a setting, so after it changes every
cached asset is invisible to a call pinned to the new root: GBs re-download, and a gated base with
no valid token 401s even though the bytes are there and the preflight (which checks both roots)
already cleared it. Routed THROUGH the other root rather than returned raw, so the ref still
diff --git a/studio/backend/utils/hidden_models.py b/studio/backend/utils/hidden_models.py
index c5e5a00762e..c94b8689b7e 100644
--- a/studio/backend/utils/hidden_models.py
+++ b/studio/backend/utils/hidden_models.py
@@ -29,7 +29,7 @@ _DEFAULT_EMBEDDING_REPO_IDS = {
"unsloth/bge-small-en-v1.5-GGUF",
}
# Local copies do not always retain the repo id. Keep a narrow basename
-# fallback for Studio's static default embedder only; configured custom repos
+# fallback for Unsloth's static default embedder only; configured custom repos
# remain exact-match-only.
_DEFAULT_EMBEDDING_PATH_BASENAMES = {"bge-small-en-v1.5"}
# Curated dictation checkpoints (STT, never chat), hidden from the chat
@@ -59,7 +59,7 @@ _HIDDEN_STT_REPO_IDS_LOWER = frozenset(repo_id.lower() for repo_id in _HIDDEN_ST
def is_curated_stt_repo_id(value: str | None) -> bool:
- """True only for Studio's exact curated STT Hub repositories.
+ """True only for Unsloth's exact curated STT Hub repositories.
Still hidden from chat, but task-scoped inventory consumers need the real cache rows
so the Audio page need not reimplement size, format, variants and lifecycle.
diff --git a/studio/backend/utils/inference/inference_config.py b/studio/backend/utils/inference/inference_config.py
index b0e95330192..06e09862ec3 100644
--- a/studio/backend/utils/inference/inference_config.py
+++ b/studio/backend/utils/inference/inference_config.py
@@ -174,7 +174,7 @@ _SAMPLING_FIELDS = {
# Public, ordered tuple of the sampling fields callers resolve.
SAMPLING_FIELD_NAMES = tuple(_SAMPLING_FIELDS)
-# Fields the Studio Chat UI adopts as *per-model recommendations* from the backend
+# Fields the Unsloth Chat UI adopts as *per-model recommendations* from the backend
# `.inference` block. Its frontend `mergeBackendRecommendedInference`
# (presets/preset-policy.ts) seeds exactly these five and never reads repetition_penalty,
# so the server auto-recommends the same five for request parity. repetition_penalty stays a
@@ -229,7 +229,7 @@ def _operator_sampling_override(field: str):
@lru_cache(maxsize = 128)
def _recommended_sampling(model_id: str) -> Dict[str, Any]:
- """Per-model recommended sampling, resolved through the SAME path the Studio Chat UI uses.
+ """Per-model recommended sampling, resolved through the SAME path the Unsloth Chat UI uses.
The Chat UI seeds its sampling from the ``.inference`` block of the load/status responses,
which is exactly :func:`load_inference_config` (model-specific YAML -> family defaults
diff --git a/studio/backend/utils/keyless_api_access.py b/studio/backend/utils/keyless_api_access.py
index fae6a2b7c69..eb5b8c4eff5 100644
--- a/studio/backend/utils/keyless_api_access.py
+++ b/studio/backend/utils/keyless_api_access.py
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-"""Fail-closed admission policy for serving Studio without an API key.
+"""Fail-closed admission policy for serving Unsloth without an API key.
Off by default. When an admin turns it on, a request that sends no usable
credential authenticates as the local admin, so ``curl`` and the OpenAI SDKs reach
@@ -398,7 +398,7 @@ def asgi_request_is_keyless(asgi_scope) -> bool:
"""Whether this ASGI request is admitted by the setting rather than by a credential.
Middleware-side twin of ``auth.authentication.admitted_without_credential``, reading
- the raw scope because it runs before the request object exists. A Studio session and
+ the raw scope because it runs before the request object exists. An Unsloth session and
a working API key both authenticate as themselves, so neither is keyless: applying
the tool restriction to an existing API client would take away tools it already had.
"""
diff --git a/studio/backend/utils/llama_cpp_path_settings.py b/studio/backend/utils/llama_cpp_path_settings.py
index 49a63e4eb69..c8706da8cac 100644
--- a/studio/backend/utils/llama_cpp_path_settings.py
+++ b/studio/backend/utils/llama_cpp_path_settings.py
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-"""Persist and validate the llama.cpp directory selected in Studio settings."""
+"""Persist and validate the llama.cpp directory selected in Unsloth settings."""
from __future__ import annotations
@@ -21,7 +21,7 @@ _path_revision = 0
def mark_managed_llama_cpp_path(directory: Path | str) -> bool:
- """Mark Studio's inherited install path without hiding a real env override."""
+ """Mark Unsloth's inherited install path without hiding a real env override."""
configured = os.environ.get("UNSLOTH_LLAMA_CPP_PATH", "").strip()
if not configured:
os.environ.pop(MANAGED_LLAMA_CPP_PATH_MARKER, None)
@@ -92,7 +92,7 @@ def resolve_llama_server_binary(
def get_stored_custom_llama_cpp_path() -> Optional[Path]:
- """The Studio-selected directory, or ``None`` when automatic discovery is active."""
+ """The Unsloth-selected directory, or ``None`` when automatic discovery is active."""
try:
from storage.studio_db import get_app_setting
value = get_app_setting(CUSTOM_LLAMA_CPP_PATH_SETTING_KEY, None)
diff --git a/studio/backend/utils/llama_cpp_update.py b/studio/backend/utils/llama_cpp_update.py
index 4017eb9ddc9..a96f48cdf4f 100644
--- a/studio/backend/utils/llama_cpp_update.py
+++ b/studio/backend/utils/llama_cpp_update.py
@@ -990,7 +990,7 @@ def start_backend_switch(backend: str) -> dict:
"reason": "environment_override",
"message": (
f"llama.cpp is controlled by the {env_backend} environment override. "
- "Unset it and restart Studio before switching backends here."
+ "Unset it and restart Unsloth before switching backends here."
),
"job": job,
}
diff --git a/studio/backend/utils/log_redaction.py b/studio/backend/utils/log_redaction.py
index 33da7140a52..9a3ccf82590 100644
--- a/studio/backend/utils/log_redaction.py
+++ b/studio/backend/utils/log_redaction.py
@@ -45,7 +45,7 @@ _SECRET_KEYS = (
"authorization|x-api-key|api[-_]?key|apikey|hf[-_]?token|access[-_]?token|"
"refresh[-_]?token|auth[-_]?token|bearer[-_]?token|client[-_]?secret|"
"aws_secret_access_key|aws_session_token|wandb[-_]?token|hub[-_]?token|"
- # Studio's own S3 field (models/training.py:60) and its camelCase alias.
+ # Unsloth's own S3 field (models/training.py:60) and its camelCase alias.
# Neither is reachable through the bare "secret" alternative (the trailing \b
# cannot fire before "_access" or "Access"), and an AWS secret key has no
# prefix of its own for a shape rule to catch.
@@ -117,7 +117,7 @@ _FLAG_RE = re.compile(
# An Authorization value, whatever the scheme. The key/value rule cannot reach
# it: for "Authorization: Basic dXNlcjpwdw==" the value it captures is "Basic",
-# leaving the credential behind it. Same for a Cookie, which for Studio is the
+# leaving the credential behind it. Same for a Cookie, which for Unsloth is the
# UI session that gates these very endpoints.
_SCHEMES = ("bearer", "basic", "digest", "token", "apikey")
# A scheme word only introduces a credential when an Authorization header put it
diff --git a/studio/backend/utils/mlx_repair.py b/studio/backend/utils/mlx_repair.py
index 02a502f7b71..d3cc6724520 100644
--- a/studio/backend/utils/mlx_repair.py
+++ b/studio/backend/utils/mlx_repair.py
@@ -376,7 +376,7 @@ def _mlx_install_env() -> dict[str, str]:
Unsloth secrets or be steered to a hostile index.
Mirror the main installer (install_python_stack.py) by pointing UV_OVERRIDE at
- overrides-darwin-arm64.txt, which keeps mlx-vlm/mlx-lm on the Studio
+ overrides-darwin-arm64.txt, which keeps mlx-vlm/mlx-lm on the Unsloth
Transformers floor. Without it, uv keeps the Unsloth transformers pin only
by silently backtracking mlx-vlm to an old, unsupported version (uv honours
UV_OVERRIDE; plain pip ignores it, so the transformers constraint below is the
diff --git a/studio/backend/utils/models/drafters/preference.py b/studio/backend/utils/models/drafters/preference.py
index 9fc3a840307..34cad169837 100644
--- a/studio/backend/utils/models/drafters/preference.py
+++ b/studio/backend/utils/models/drafters/preference.py
@@ -21,7 +21,7 @@ from utils.models.drafters.common import (
def dspark_precision_rank(name: str) -> int:
"""Sidecar precision preference: Q8_0 first, the precision the DSpark model
card recommends. Shared with the hub download and VRAM-sizing paths so the
- file Studio budgets for is the file it fetches and launches."""
+ file Unsloth budgets for is the file it fetches and launches."""
base = Path(name).name.lower()
if "-q8_0" in base:
return 0
diff --git a/studio/backend/utils/native_tls.py b/studio/backend/utils/native_tls.py
index d48d5dcf8d3..46bb454d143 100644
--- a/studio/backend/utils/native_tls.py
+++ b/studio/backend/utils/native_tls.py
@@ -17,7 +17,7 @@ TLS connection; the ``python -c`` probes and the standalone prebuilt installers
carry an inline copy of the gating because they cannot import backend modules.
truststore is vendored at ``backend/vendor/`` rather than depended on, so no
-Studio user gains a package for a proxy they do not have; see the README there.
+Unsloth user gains a package for a proxy they do not have; see the README there.
Every consumer appends that directory to ``sys.path`` and imports the top-level
name, which keeps a truststore the user installed themselves in front of ours.
@@ -29,7 +29,7 @@ OS anchors alongside them; ``0`` is the way back to a bundle being the only
trust root.
Client side only: the injected class verifies a peer chain on every handshake,
-so an ``SSLContext`` built after activation cannot serve TLS. Studio serves
+so an ``SSLContext`` built after activation cannot serve TLS. Unsloth serves
plain HTTP on loopback and ``test_native_tls_entrypoints.py`` keeps it that way;
a future in-process HTTPS listener needs ``truststore.SSLContext`` for outbound
connections instead of this process-wide injection.
diff --git a/studio/backend/utils/paths/storage_roots.py b/studio/backend/utils/paths/storage_roots.py
index 6b551fa6210..7f4f66f3f2a 100644
--- a/studio/backend/utils/paths/storage_roots.py
+++ b/studio/backend/utils/paths/storage_roots.py
@@ -318,8 +318,8 @@ def well_known_model_dirs() -> list[Path]:
def _setup_cache_env() -> None:
"""Set cache env vars for HuggingFace, uv, and vLLM.
- Explicit Hugging Face environment variables take precedence over Studio's
- stored location. Studio seeds import-time variables once, while each later
+ Explicit Hugging Face environment variables take precedence over Unsloth's
+ stored location. Unsloth seeds import-time variables once, while each later
worker receives its own captured cache location.
"""
root = cache_root()
@@ -330,7 +330,7 @@ def _setup_cache_env() -> None:
"UV_CACHE_DIR": str(root / "uv"),
"VLLM_CACHE_ROOT": str(root / "vllm"),
# unsloth_zoo defaults this to a bare relative name, which resolves
- # against the CWD, and the Windows launcher runs Studio with
+ # against the CWD, and the Windows launcher runs Unsloth with
# WorkingDirectory=%USERPROFILE%, so the cache landed in the user home.
# Must be set before unsloth_zoo.compiler imports: it reads the value
# at import time and puts it on sys.path.
diff --git a/studio/backend/utils/prebuilt/llama_backend.py b/studio/backend/utils/prebuilt/llama_backend.py
index d23a0ec4912..108659a6a93 100644
--- a/studio/backend/utils/prebuilt/llama_backend.py
+++ b/studio/backend/utils/prebuilt/llama_backend.py
@@ -126,7 +126,7 @@ def marker_backend_request(marker: Optional[Mapping[str, Any]]) -> str:
Always a name, never None, so "detect" and "chosen" can never be confused.
A value this build does not recognize is returned verbatim: it was written by
- a newer Studio, and every reader here treats it as a choice to leave alone
+ a newer Unsloth, and every reader here treats it as a choice to leave alone
rather than as an absent one to overwrite.
"""
if not marker:
diff --git a/studio/backend/utils/process_lifetime.py b/studio/backend/utils/process_lifetime.py
index 04b9caaad52..5d5c6da863d 100644
--- a/studio/backend/utils/process_lifetime.py
+++ b/studio/backend/utils/process_lifetime.py
@@ -41,7 +41,7 @@ _JobObjectExtendedLimitInformation = 9
# kill(2) gives 0, 1 and negatives a different meaning to every other value, and
# each of those meanings is catastrophic here:
#
-# kill(0, sig) this process's entire group, i.e. Studio and its siblings
+# kill(0, sig) this process's entire group, i.e. Unsloth and its siblings
# killpg(1, sig) the same call as kill(-1, sig): EVERY process the caller
# has permission to signal, not "process group 1"
# kill(-n, sig) process group n
@@ -65,7 +65,7 @@ def is_signalable_pid(pid: object) -> bool:
`bool` is excluded explicitly: it is an `int` subclass, so True would
otherwise read as pid 1.
- Public because the floor has to hold at every signalling boundary in Studio,
+ Public because the floor has to hold at every signalling boundary in Unsloth,
not just this module's. It was written out by hand in four places at first,
and the site that got missed was missed precisely because "who enforces the
floor" was a question you had to answer by reading rather than by grepping
@@ -288,7 +288,7 @@ def _pdeathsig_preexec(owner_pid: Optional[int] = None) -> None:
# Runs in the forked child before exec (PR_SET_PDEATHSIG does not survive the
# fork); the getppid check closes the race where the parent died first.
# owner_pid is the spawner's pid, read pre-fork. A bare `getppid() == 1` also
- # matches a parent that legitimately IS pid 1, which is how Studio runs as a
+ # matches a parent that legitimately IS pid 1, which is how Unsloth runs as a
# container entrypoint: it killed every llama-server before exec (#7886). It
# also misses reparenting to a subreaper, whose pid is not 1.
try:
@@ -807,7 +807,7 @@ def _breadcrumb_dir():
def _breadcrumb_file():
- # One file per owner: two Studios can share a home (different ports), and a
+ # One file per owner: two Unsloth instances can share a home (different ports), and a
# single shared file would let the second erase the first's children.
directory = _breadcrumb_dir()
return None if directory is None else directory / f"{os.getpid()}.json"
@@ -1142,10 +1142,10 @@ def terminate_pid(pid: "Optional[int]", timeout: float = 5.0) -> None:
def reap_recorded_children(timeout: float = 5.0) -> "list[int]":
- """Kill children recorded by a previous Studio that is no longer running.
+ """Kill children recorded by a previous Unsloth that is no longer running.
Runs once at startup, before anything new spawns. Every record in the
- directory is considered, so a Studio that crashed while a sibling was
+ directory is considered, so an Unsloth that crashed while a sibling was
running is still cleaned up. A child is only signalled when its recorded
start-time identity still matches, so a recycled pid is never touched.
"""
@@ -1192,9 +1192,9 @@ def _reap_one_record(path, timeout: float) -> "tuple[list[int], bool]":
# treated like a missing one rather than trusted or crashed on.
owner_identity = _recorded_identity(record.get("owner_identity"))
# Identity decides, not the pid: pids recycle, and this process may have
- # inherited the pid of the Studio that wrote the record.
+ # inherited the pid of the Unsloth that wrote the record.
# Inconclusive counts as a match: a `ps` that failed for a moment must not
- # make a live Studio look gone and cost it its running sidecars.
+ # make a live Unsloth look gone and cost it its running sidecars.
current_owner = _identity_or_none(owner_pid)
owner_matches = (
owner_identity is None
@@ -1207,11 +1207,11 @@ def _reap_one_record(path, timeout: float) -> "tuple[list[int], bool]":
isinstance(owner_pid, int)
and owner_matches
and _pid_alive(owner_pid)
- # os.kill(pid, 0) succeeds for a zombie, and a Studio nobody has waited
+ # os.kill(pid, 0) succeeds for a zombie, and an Unsloth nobody has waited
# on yet is still a dead one whose sidecars are orphans.
and not _pid_is_zombie(owner_pid)
):
- return killed, True # that Studio is still running; its children are its own
+ return killed, True # that Unsloth is still running; its children are its own
unresolved = False
children = record.get("children")
@@ -1274,7 +1274,7 @@ def _reap_one_record(path, timeout: float) -> "tuple[list[int], bool]":
try:
import logging
logging.getLogger(__name__).warning(
- "Reaped %d orphaned child process(es) left by a previous Studio: %s",
+ "Reaped %d orphaned child process(es) left by a previous Unsloth: %s",
len(killed),
killed,
)
@@ -1286,8 +1286,8 @@ def _reap_one_record(path, timeout: float) -> "tuple[list[int], bool]":
def _own_process_group(pid: int) -> Optional[int]:
"""The pid's process group, but only when it leads one (start_new_session).
- A child sharing Studio's group must never be recorded: killing that group
- would take Studio and every sibling with it.
+ A child sharing Unsloth's group must never be recorded: killing that group
+ would take Unsloth and every sibling with it.
"""
if _is_windows() or not hasattr(os, "getpgid"):
return None
diff --git a/studio/backend/utils/release_notes.py b/studio/backend/utils/release_notes.py
index 7ccff00001d..3cc1eeed7a2 100644
--- a/studio/backend/utils/release_notes.py
+++ b/studio/backend/utils/release_notes.py
@@ -48,7 +48,7 @@ RELEASES_RATE_LIMIT_MAX_SECONDS = 60 * 60
RELEASE_NOTES_MAX_CHARS = 20_000
# The repo also publishes llama.cpp prebuilts (`b8475`), legacy month tags
-# (`February-2026`) and `desktop-v...` drafts. Only a Studio version tag is an
+# (`February-2026`) and `desktop-v...` drafts. Only an Unsloth version tag is an
# announcement the popup should show.
_RELEASE_TAG_PATTERN = re.compile(r"^v\d+(?:\.\d+)+")
@@ -129,8 +129,8 @@ _GENERATED_TITLES = frozenset({"what's changed", "whats changed", "new contribut
_GENERATED_PREFIXES = ("what's changed in ", "whats changed in ")
_GENERATED_SUFFIXES = ("zoo changes", "notebooks changes", "changelog")
# The install block, worded differently in almost every release ("Updating /
-# installing Unsloth", "To update Studio", "Update Unsloth via `pip install`").
-# Naming Unsloth or Studio separates those from "Updating models is now 2x
+# installing Unsloth", "To update Unsloth", "Update Unsloth via `pip install`").
+# Naming Unsloth or Unsloth separates those from "Updating models is now 2x
# faster", which is a change and not instructions.
_UPGRADE_PREFIXES = ("update", "updating", "to update", "how to update")
_UPGRADE_SUBJECTS = ("unsloth", "studio")
@@ -583,7 +583,7 @@ def get_release_notes(version: str, refresh: bool = False) -> dict[str, Any]:
"""Return the newest release's notes for the update popup.
`version` is echoed back, not used to select a release: the pip popup offers
- a PyPI version (`2026.8.7`) and releases are tagged with the Studio version
+ a PyPI version (`2026.8.7`) and releases are tagged with the Unsloth version
(`v0.1.60-beta`), so no tag could match it.
`refresh` retries a cached failure, so the UI's retry is not stuck behind
diff --git a/studio/backend/utils/remote_access_settings.py b/studio/backend/utils/remote_access_settings.py
index d00b859b026..81d787c6f3e 100644
--- a/studio/backend/utils/remote_access_settings.py
+++ b/studio/backend/utils/remote_access_settings.py
@@ -239,7 +239,7 @@ def remote_access_status(app_state) -> dict:
"can_stop": can_stop,
"block_reason": block_reason,
"password_pending": password_pending,
- # Plain GET/EventSource support, not Studio's own streams, which use POST.
+ # Plain GET/EventSource support, not Unsloth's own streams, which use POST.
# Measured on three quick tunnels: a streamed GET delivers nothing until it
# closes, and no response header changes that.
"streaming_supported": status["url"] is None,
diff --git a/studio/backend/utils/security/file_security.py b/studio/backend/utils/security/file_security.py
index 10cf4fb4d64..a0ea1336d4f 100644
--- a/studio/backend/utils/security/file_security.py
+++ b/studio/backend/utils/security/file_security.py
@@ -111,7 +111,7 @@ def _file_suffix(path: str) -> str:
def _hf_cache_snapshot_ref(local_path: str) -> Optional[tuple[str, str, Path]]:
"""Return provenance for an HF-cache snapshot path, else ``None``.
- An inactive Studio cache loads by its snapshot path but keeps the
+ An inactive Unsloth cache loads by its snapshot path but keeps the
``models--org--repo/snapshots/<rev>`` layout, so the gate recovers its provenance
and scans that exact commit instead of exempting it.
"""
diff --git a/studio/backend/utils/third_party_source.py b/studio/backend/utils/third_party_source.py
index 1977603e8ff..d44150c6b8c 100644
--- a/studio/backend/utils/third_party_source.py
+++ b/studio/backend/utils/third_party_source.py
@@ -811,7 +811,7 @@ def ensure_pinned_source(
if hf_env_offline():
raise RuntimeError(
- f"The pinned {spec.name} source is not cached and Studio is offline"
+ f"The pinned {spec.name} source is not cached and Unsloth is offline"
)
if spec.archive_url is not None:
_install_archive_source(checkout, spec)
diff --git a/studio/backend/utils/utils.py b/studio/backend/utils/utils.py
index feb592c0a42..dff484297eb 100644
--- a/studio/backend/utils/utils.py
+++ b/studio/backend/utils/utils.py
@@ -41,7 +41,7 @@ def hf_env_offline() -> bool:
def canonical_model_repo_id(model_name: str) -> str:
- """Normalize a Hugging Face model repository ID selected in Studio."""
+ """Normalize a Hugging Face model repository ID selected in Unsloth."""
return model_name.strip()
diff --git a/studio/backend/utils/wheel_utils.py b/studio/backend/utils/wheel_utils.py
index a5f65e9fef8..19fd3e3c9da 100644
--- a/studio/backend/utils/wheel_utils.py
+++ b/studio/backend/utils/wheel_utils.py
@@ -226,7 +226,7 @@ def pytorch_wheel_index_base_url() -> str:
_XFORMERS_WHEEL_VERSIONS: dict[str, dict[str, str]] = {
# torch 2.7.0 (xFormers 0.0.30) is deliberately absent: it predates the stable-ABI
- # switch, so it publishes one wheel per interpreter and stops at cp312, and Studio's
+ # switch, so it publishes one wheel per interpreter and stops at cp312, and Unsloth's
# default interpreter is 3.13. Supporting it would mean a per-interpreter gate here
# and a second one in install.ps1 for a four-year-old torch that resolves to nothing
# on the default install anyway.
@@ -249,7 +249,7 @@ _XFORMERS_WHEEL_VERSIONS: dict[str, dict[str, str]] = {
#
# An exact-key table alone refuses the patch releases: 2.10.1, 2.11.1 and 2.12.1 are all
# supported resident builds this file names elsewhere, and each of them missed and left
-# Studio on native attention. Enumerating patches is not an option -- they are published
+# Unsloth on native attention. Enumerating patches is not an option -- they are published
# after this code ships -- and 0.0.35 is compiled against 2.10.0 by design, with upstream
# stating that "binary builds targeting PyTorch 2.10+ will be compatible with any later
# version". So above 2.10.0 the answer is known without a table.
@@ -395,7 +395,7 @@ def redact_url_credentials(url: str) -> str:
UNSLOTH_PYTORCH_MIRROR is allowed to be a private index, and people put credentials in
it -- ``https://user:token@mirror/whl`` or ``...?token=``. The wheel URL built from it
is handed to pip AND printed, so without this the secret lands in the backend log the
- first time Studio installs (or fails to install) xFormers. Same rule as the installer's
+ first time Unsloth installs (or fails to install) xFormers. Same rule as the installer's
Remove-IndexUrlCredentials, so both sides redact identically.
"""
separator = url.find("://")
diff --git a/studio/backend/utils/xet_notice_settings.py b/studio/backend/utils/xet_notice_settings.py
index c0407095e20..53b1e13cc22 100644
--- a/studio/backend/utils/xet_notice_settings.py
+++ b/studio/backend/utils/xet_notice_settings.py
@@ -3,7 +3,7 @@
"""Lifetime count of the Xet "download is running" notice.
-It lived in localStorage, which is per-origin, and a Studio origin is not stable:
+It lived in localStorage, which is per-origin, and an Unsloth origin is not stable:
run.py falls back past port 8888 when Jupyter has it, and Colab and the tunnel differ
again. Each new origin handed out a fresh three, so the notice never stopped.
"""
diff --git a/studio/backend/vendor/README.md b/studio/backend/vendor/README.md
index 414b0d4e62e..c0b189823cc 100644
--- a/studio/backend/vendor/README.md
+++ b/studio/backend/vendor/README.md
@@ -8,7 +8,7 @@
sha256 `adaeaecf1cbb5f4de3b1959b42d41f6fab57b2b1666adb59e89cb0b53361d981`
- Licence: `LICENSE` beside this file, copied unmodified from the wheel.
-`utils/native_tls.py` uses it to verify TLS against the OS trust store, so Studio works behind a
+`utils/native_tls.py` uses it to verify TLS against the OS trust store, so Unsloth works behind a
corporate TLS-inspecting proxy. See that module's docstring for the why.
### Why the source is checked in rather than installed
diff --git a/studio/frontend/scripts/check-bundle-budget.ts b/studio/frontend/scripts/check-bundle-budget.ts
index 915c1c7bb25..fe10bcb1a6f 100644
--- a/studio/frontend/scripts/check-bundle-budget.ts
+++ b/studio/frontend/scripts/check-bundle-budget.ts
@@ -2,7 +2,7 @@
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
/**
- * Budget for the JavaScript Studio must download, parse and execute before the
+ * Budget for the JavaScript Unsloth must download, parse and execute before the
* first screen exists.
*
* Two PRs (#8623, #8624) moved 1.5 MB of decoded resources off this path by hand,
diff --git a/studio/frontend/smoke-heavy-thread-main.tsx b/studio/frontend/smoke-heavy-thread-main.tsx
index a58ea3849cc..4e9288c11e7 100644
--- a/studio/frontend/smoke-heavy-thread-main.tsx
+++ b/studio/frontend/smoke-heavy-thread-main.tsx
@@ -19,7 +19,7 @@
// typescript fence a second language, so one grammar is not the whole Shiki story
// python tool call collapsible card with a code-execution result pane
// bash tool call code_execution card, the other result-pane shape
-// html artifact a full ```html document, which Studio collapses into an artifact card
+// html artifact a full ```html document, which Unsloth collapses into an artifact card
// render_html tool the HTML canvas artifact, as a tool part rather than a fence
// svg fence a highlighted fence that also renders an inline <img> preview
// image parts a raster PNG data URL and a unique SVG data URL, as image content parts
@@ -234,7 +234,7 @@ function jsonFence(index: number, targetChars: number): string {
}
function htmlArtifact(index: number, targetChars: number): string {
- // A full document, which is what Studio treats as an artifact rather than as a code block,
+ // A full document, which is what Unsloth treats as an artifact rather than as a code block,
// and it draws on a <canvas> so the fixture carries the shape users call a canvas artifact.
const head = [
"<!doctype html>",
@@ -265,7 +265,7 @@ function htmlArtifact(index: number, targetChars: number): string {
}
function svgFence(index: number, targetChars: number): string {
- // Studio renders a highlighted fence AND an inline <img> preview for an svg fence, so this one
+ // Unsloth renders a highlighted fence AND an inline <img> preview for an svg fence, so this one
// block buys both a Shiki pass and an image decode. No <script>, no on*= handlers, no
// <foreignObject>: any of those make the preview refuse to render and the block silently
// becomes an ordinary code fence.
diff --git a/studio/frontend/src/components/app-sidebar.tsx b/studio/frontend/src/components/app-sidebar.tsx
index ec784dfaa8b..6f3c6faf31e 100644
--- a/studio/frontend/src/components/app-sidebar.tsx
+++ b/studio/frontend/src/components/app-sidebar.tsx
@@ -309,7 +309,7 @@ const menuRadioItemClass =
"pl-9 pr-3 [&>[data-slot=dropdown-menu-radio-item-indicator]]:right-auto [&>[data-slot=dropdown-menu-radio-item-indicator]]:left-3";
// Whether cmd or ctrl adds a row to the selection. This is the user's own
-// keyboard, not the host Studio runs on, so it reads the browser rather than
+// keyboard, not the host Unsloth runs on, so it reads the browser rather than
// the platform store: a Mac browser on a Linux host still uses cmd. Ctrl is
// left alone on macOS, where ctrl click is the right click chord.
const SELECT_WITH_META =
diff --git a/studio/frontend/src/components/assistant-ui/code-plugin.ts b/studio/frontend/src/components/assistant-ui/code-plugin.ts
index 441a229386f..4193a884a5a 100644
--- a/studio/frontend/src/components/assistant-ui/code-plugin.ts
+++ b/studio/frontend/src/components/assistant-ui/code-plugin.ts
@@ -392,7 +392,7 @@ export function createCodePlugin(
try {
result = tokenize(fence, highlighter, code, language, themes);
} catch (error) {
- console.error("[Studio Code] Failed to highlight code:", error);
+ console.error("[Unsloth Code] Failed to highlight code:", error);
resetFence(fence);
// A fence that never produced tokens has no anchor to match on, so a
// block that keeps failing would strand a new one on every render.
@@ -447,7 +447,7 @@ export function createCodePlugin(
resume(highlighter);
})
.catch((error) => {
- console.error("[Studio Code] Failed to highlight code:", error);
+ console.error("[Unsloth Code] Failed to highlight code:", error);
highlighters.delete(key);
// Failed callbacks must not pin fences or fire after a later retry.
for (const waiting of fences) {
diff --git a/studio/frontend/src/components/assistant-ui/markdown-block-boundary.tsx b/studio/frontend/src/components/assistant-ui/markdown-block-boundary.tsx
index c83233ad5ba..be2844f8098 100644
--- a/studio/frontend/src/components/assistant-ui/markdown-block-boundary.tsx
+++ b/studio/frontend/src/components/assistant-ui/markdown-block-boundary.tsx
@@ -16,7 +16,7 @@ import { markdownBlockFallback } from "./markdown-block-fallback";
* the app happens to have at that moment. A rejected lazy import rethrows during
* render, and until this boundary existed the nearest catcher was TanStack
* Router's `CatchBoundaryImpl`: one chunk that would not load replaced the whole
- * of Studio with "Something went wrong!", unmounted the assistant-ui runtime
+ * of Unsloth with "Something went wrong!", unmounted the assistant-ui runtime
* with it, and left the reply's own stream with nothing consuming it. The reply
* that was already on screen went too.
*
diff --git a/studio/frontend/src/components/assistant-ui/markdown-text.tsx b/studio/frontend/src/components/assistant-ui/markdown-text.tsx
index c6200aa2ffe..8350490e28c 100644
--- a/studio/frontend/src/components/assistant-ui/markdown-text.tsx
+++ b/studio/frontend/src/components/assistant-ui/markdown-text.tsx
@@ -607,7 +607,7 @@ function FenceBlock({
* Every block is rendered inside a boundary. Streamdown fetches the code
* highlighter and the Mermaid renderer with `React.lazy` the first time a reply
* needs them, and a rejected import rethrows during render; without this the
- * nearest catcher is the ROUTER's, which replaces all of Studio and takes the
+ * nearest catcher is the ROUTER's, which replaces all of Unsloth and takes the
* reply and its runtime with it. Per block, so one fence losing its colours
* costs only that fence.
*/
diff --git a/studio/frontend/src/components/assistant-ui/sandbox-files.ts b/studio/frontend/src/components/assistant-ui/sandbox-files.ts
index 67d4bcc92e1..285fa9ce47f 100644
--- a/studio/frontend/src/components/assistant-ui/sandbox-files.ts
+++ b/studio/frontend/src/components/assistant-ui/sandbox-files.ts
@@ -77,7 +77,7 @@ export function isSandboxToolResult(
images?: unknown;
files?: unknown;
};
- // images too: it is always in Studio's own wrapper, and a tool result that
+ // images too: it is always in Unsloth's own wrapper, and a tool result that
// merely has text and sessionId is someone else's, whose other fields would
// be dropped on export.
return (
diff --git a/studio/frontend/src/components/assistant-ui/streaming-render-schedule.ts b/studio/frontend/src/components/assistant-ui/streaming-render-schedule.ts
index ece3aee82f8..315397d21bc 100644
--- a/studio/frontend/src/components/assistant-ui/streaming-render-schedule.ts
+++ b/studio/frontend/src/components/assistant-ui/streaming-render-schedule.ts
@@ -86,7 +86,7 @@ const HTML_TAG_START_RE = /[a-zA-Z/]/;
//
// The dollar half is unchanged between the two versions, so the two booleans
// map onto `inlineDollar` and `blockDollar` exactly; only the LaTeX half is
-// new. Studio has to mirror it because `RepairParity` is a hand written copy of
+// new. Unsloth has to mirror it because `RepairParity` is a hand written copy of
// remend's marker rules, and a copy that still counts the subscript would show
// the stray `_` for as long as the reply is streaming and drop it the moment
// the message settles and the whole body is repaired in one pass.
diff --git a/studio/frontend/src/components/assistant-ui/thread-fast-copy.ts b/studio/frontend/src/components/assistant-ui/thread-fast-copy.ts
index 487bcdae681..6381e5a6c57 100644
--- a/studio/frontend/src/components/assistant-ui/thread-fast-copy.ts
+++ b/studio/frontend/src/components/assistant-ui/thread-fast-copy.ts
@@ -303,7 +303,7 @@ function patchClipboardDeltas(root: Element): Array<() => void> {
// EmitsImageAltText: the clipboard carries the alt text, which is not in the DOM as text.
//
- // THE HOLDER MUST NOT HAVE A BOX. Studio's message images are display:block, so an inline
+ // THE HOLDER MUST NOT HAVE A BOX. Unsloth's message images are display:block, so an inline
// holder placed beside one sits between two blocks, the engine wraps it in an anonymous block,
// and the alt text arrives with a leading newline the real clipboard does not have. That was
// measured on the real thread as 40,650 characters against the clipboard's 40,648, two images
@@ -318,7 +318,7 @@ function patchClipboardDeltas(root: Element): Array<() => void> {
// ONLY AN IMAGE THE NATIVE ITERATOR WOULD EMIT. Chromium skips an image that is not
// rendered or not selectable, so inserting its alt text unconditionally ADDS text the
// clipboard never carried. Measured against the real clipboard: `display: none`,
- // `visibility: hidden` and `user-select: none` all diverge, and so does Studio's own
+ // `visibility: hidden` and `user-select: none` all diverge, and so does Unsloth's own
// `ImagePreview`, which carries an `invisible` class until the image loads -- so copying
// across a message whose image had not finished loading gained an alt string.
if (!nativeWouldEmitAlt(image)) continue;
diff --git a/studio/frontend/src/components/assistant-ui/tool-arg-text.ts b/studio/frontend/src/components/assistant-ui/tool-arg-text.ts
index de612447fb6..3ab3fead547 100644
--- a/studio/frontend/src/components/assistant-ui/tool-arg-text.ts
+++ b/studio/frontend/src/components/assistant-ui/tool-arg-text.ts
@@ -18,7 +18,7 @@ const MAX_SERIALISED_LENGTH = 100_000;
* Arguments reach a card as parsed JSON, so a prop declared `string` is a
* request to the model, not a guarantee from it. `{"code": 42}` used to reach
* `code.split("\n")` during render, and a throw in a card has no boundary above
- * it: the router catches it and replaces all of Studio with "Something went
+ * it: the router catches it and replaces all of Unsloth with "Something went
* wrong!" (markdown-block-boundary.tsx measures the same failure). The message
* is persisted, so reopening the thread reproduces it.
*/
diff --git a/studio/frontend/src/components/assistant-ui/tool-ui-image-generation.tsx b/studio/frontend/src/components/assistant-ui/tool-ui-image-generation.tsx
index 5496fddcb78..d7bd53d9ae6 100644
--- a/studio/frontend/src/components/assistant-ui/tool-ui-image-generation.tsx
+++ b/studio/frontend/src/components/assistant-ui/tool-ui-image-generation.tsx
@@ -44,7 +44,7 @@ interface ImageGenerationArgs {
* Straight off the wire, like the args above. Only `image_b64` is type-guarded
* before use; `size`, `quality` and `background` are copied verbatim from the
* provider (external_provider.py:5883) and on the Gemini path so is `image_mime`
- * (:4481). Studio takes a user-set `base_url`, so none of them is ours.
+ * (:4481). Unsloth takes a user-set `base_url`, so none of them is ours.
*/
interface ImageGenerationResult {
image_b64?: string;
diff --git a/studio/frontend/src/components/tauri/update-banner.tsx b/studio/frontend/src/components/tauri/update-banner.tsx
index c6edacfe50f..e623a4d4575 100644
--- a/studio/frontend/src/components/tauri/update-banner.tsx
+++ b/studio/frontend/src/components/tauri/update-banner.tsx
@@ -69,7 +69,7 @@ export function UpdateBanner({
const currentVersion = formatVersion(info?.currentVersion);
const latestVersion = formatVersion(info?.version);
const Icon = showFailure ? CircleAlert : Download;
- // The Studio version offered. Not a notes key; it scopes the expanded state.
+ // The Unsloth version offered. Not a notes key; it scopes the expanded state.
const notesTargetVersion = info?.version?.replace(LEADING_V, "") ?? null;
const notesOpen =
notesTargetVersion !== null && notesVersion === notesTargetVersion;
diff --git a/studio/frontend/src/components/ui/sidebar.tsx b/studio/frontend/src/components/ui/sidebar.tsx
index a0f8d40a1fe..7d8e095a691 100644
--- a/studio/frontend/src/components/ui/sidebar.tsx
+++ b/studio/frontend/src/components/ui/sidebar.tsx
@@ -233,13 +233,13 @@ function SidebarProvider({
// same span appended to <body> costs 0.10 ms either way.
//
// CHROMIUM ONLY. On a synthetic thread carrying this same ancestor
- // chain and the built Studio stylesheet, at 300,464 elements, one
+ // chain and the built Unsloth stylesheet, at 300,464 elements, one
// inserted span costs 1.20 ms plain / 1.29 ms child / 5.63 ms one
// descendant rule / 10.30 ms both in Chromium, and 4.33 / 4.58 /
// 4.58 / 4.33 ms in WebKitGTK and 4.65 / 4.72 / 4.45 / 5.10 ms in
// Firefox: flat in both, within noise of each other. So this change
// is free where it does not help and it does not regress the engine
- // Studio uses on Linux.
+ // Unsloth uses on Linux.
//
// The child combinator is not a weakening. `data-variant` is rendered
// on the root element of `Sidebar` below, and `Sidebar` is a direct
diff --git a/studio/frontend/src/features/api-monitor/api-monitor-page.tsx b/studio/frontend/src/features/api-monitor/api-monitor-page.tsx
index 30413c042ca..42026722e8b 100644
--- a/studio/frontend/src/features/api-monitor/api-monitor-page.tsx
+++ b/studio/frontend/src/features/api-monitor/api-monitor-page.tsx
@@ -961,7 +961,7 @@ export function ApiMonitorPage(): ReactElement {
{entries.length > 0
? "No requests match this filter."
: loggingDisabled
- ? "Recording is off: UNSLOTH_STUDIO_DISABLE_API_MONITOR is set. Requests and model loads still run normally, they are just not listed here. Unset the variable and restart Studio to re-enable."
+ ? "Recording is off: UNSLOTH_STUDIO_DISABLE_API_MONITOR is set. Requests and model loads still run normally, they are just not listed here. Unset the variable and restart Unsloth to re-enable."
: "No API traffic yet. Point a client at the base URL above to see requests here."}
</p>
) : (
diff --git a/studio/frontend/src/features/api-monitor/new-traffic.ts b/studio/frontend/src/features/api-monitor/new-traffic.ts
index e8ef72cdb3c..8b752d3c3ba 100644
--- a/studio/frontend/src/features/api-monitor/new-traffic.ts
+++ b/studio/frontend/src/features/api-monitor/new-traffic.ts
@@ -92,7 +92,7 @@ function historyCutoff(
}
function isHistory(entry: WatchedEntry, cutoff: number | null): boolean {
- // Still running at the first snapshot: it started while Studio loaded, so it is unseen.
+ // Still running at the first snapshot: it started while Unsloth loaded, so it is unseen.
if (entry.status === "running") {
return false;
}
@@ -133,7 +133,7 @@ export function observeResponse(
);
}
const seen = watch.seenIds;
- // Only API-key traffic counts: Studio's own chat uses these same endpoints.
+ // Only API-key traffic counts: Unsloth's own chat uses these same endpoints.
const hasNewTraffic = entries.some(
(entry) => entry.via_api_key && !seen.has(entry.id),
);
diff --git a/studio/frontend/src/features/audio/audio-page.tsx b/studio/frontend/src/features/audio/audio-page.tsx
index 7c3ce344638..249a7e8ae0b 100644
--- a/studio/frontend/src/features/audio/audio-page.tsx
+++ b/studio/frontend/src/features/audio/audio-page.tsx
@@ -1040,7 +1040,7 @@ export function AudioPage({
await startSttDownload(sidecarKey, hfApiToken(getHfToken()), engine);
// STT owns its specialized transfer, but the existing mirror gives
// it the same global Downloads row, progress and Cancel action as
- // every other Studio model download. Do not reset an adopted row.
+ // every other Unsloth model download. Do not reset an adopted row.
if (!isTrackingSttDownload(sidecarKey, engine)) {
trackSttDownload(sidecarKey, {
// Audio owns the final load through its active/selection
@@ -2133,7 +2133,7 @@ export function AudioPage({
hint={
recordingSupported
? "Record a clip and it is transcribed when you stop."
- : "This browser cannot record. Open Studio over https or on localhost, or upload a file below."
+ : "This browser cannot record. Open Unsloth over https or on localhost, or upload a file below."
}
>
<Button
diff --git a/studio/frontend/src/features/chat/adapters/studio-dictation-adapter.tsx b/studio/frontend/src/features/chat/adapters/studio-dictation-adapter.tsx
index 42d24932727..2277a745876 100644
--- a/studio/frontend/src/features/chat/adapters/studio-dictation-adapter.tsx
+++ b/studio/frontend/src/features/chat/adapters/studio-dictation-adapter.tsx
@@ -133,7 +133,7 @@ export function notifyStudioDictationUnavailable(
if (typeof window !== "undefined" && !window.isSecureContext) {
toast.error("Voice typing needs a secure connection.", {
description:
- "Open Studio at http://127.0.0.1 (localhost) or over HTTPS to dictate.",
+ "Open Unsloth at http://127.0.0.1 (localhost) or over HTTPS to dictate.",
});
return;
}
diff --git a/studio/frontend/src/features/chat/api/chat-adapter.ts b/studio/frontend/src/features/chat/api/chat-adapter.ts
index 5437e208e88..b3d77d2886e 100644
--- a/studio/frontend/src/features/chat/api/chat-adapter.ts
+++ b/studio/frontend/src/features/chat/api/chat-adapter.ts
@@ -2429,7 +2429,7 @@ function isGgufLocalRow(row: LocalModelInfo): boolean {
function runsOnThisPlatform(row: LocalModelInfo): boolean {
const platform = usePlatformStore.getState();
// Until the backend reports it, chatOnly is a BROWSER guess: a Mac browser on
- // a remote Linux Studio would hide every local safetensors model and fetch
+ // a remote Linux Unsloth would hide every local safetensors model and fetch
// the default. Failing open is safe: validation refuses an ineligible pick.
if (!platform.fetched || !platform.isChatOnly()) return true;
if (isGgufLocalRow(row)) {
@@ -2886,7 +2886,7 @@ async function autoLoadSmallestModel(options?: AutoLoadOptions): Promise<{
label,
// Older backends and non-Error throws carry no detail; still name the model that failed.
detail:
- detail || "The server did not report a reason. Check the Studio logs.",
+ detail || "The server did not report a reason. Check the Unsloth logs.",
blamesModel,
};
}
@@ -4109,7 +4109,7 @@ export function createOpenAIStreamAdapter(
) !== true)
) {
throw new Error(
- "Deep research requires a selected local model or a connection whose provider supports Studio tools.",
+ "Deep research requires a selected local model or a connection whose provider supports Unsloth tools.",
);
}
const reasoningRequested =
@@ -4598,7 +4598,7 @@ export function createOpenAIStreamAdapter(
// Which side of the connection the Code pill runs code on. Hosted
// `code_execution` and local `python` / `terminal` are two trust
// boundaries, not two spellings of one feature, so the stored pill keeps
- // meaning the provider's sandbox wherever it meant that before the Studio
+ // meaning the provider's sandbox wherever it meant that before the Unsloth
// loop reached these providers. See code-tool-placement.ts.
const { local: studioLocalCodeTools, hosted: hostedCodeToolsForThisTurn } =
selectCodeToolNames({
@@ -5567,7 +5567,7 @@ export function createOpenAIStreamAdapter(
...(externalCapabilities?.presencePenalty
? { presence_penalty: params.presencePenalty }
: {}),
- // Studio executes the calls for any provider that advertises the
+ // Unsloth executes the calls for any provider that advertises the
// capability. Providers that do not keep their provider-hosted
// tool envelope in the branch below.
// studioLocalCodeTools, not codeToolsEnabled: a Code pill that
@@ -5589,13 +5589,13 @@ export function createOpenAIStreamAdapter(
: []),
...(toolsEnabled ? ["web_search"] : []),
...studioLocalCodeTools,
- // Hosted tools Studio has no local stand-in for. Their
- // pills stay lit whether or not a Studio tool is on, so
+ // Hosted tools Unsloth has no local stand-in for. Their
+ // pills stay lit whether or not an Unsloth tool is on, so
// listing only the local names here would silently drop
// Images (or Fetch) the moment Search, Code, MCP or a
// project's automatic RAG selected this branch. Search
// deliberately does not ride along: that is the one
- // Studio runs itself just above. Code rides along only
+ // Unsloth runs itself just above. Code rides along only
// when it resolved to the provider's sandbox, which is
// mutually exclusive with the local names above.
...(imageGenerationEnabledForThisTurn
@@ -5939,7 +5939,7 @@ export function createOpenAIStreamAdapter(
"context. They are saved and searchable, and relevant parts are " +
"brought back automatically."
: "The full conversation is still visible and saved. " +
- "Studio removed complete older turns from this request so the chat can continue.",
+ "Unsloth removed complete older turns from this request so the chat can continue.",
duration: 8000,
});
}
@@ -6580,7 +6580,7 @@ export function createOpenAIStreamAdapter(
const idx =
typeof call.index === "number" ? call.index : undefined;
const stableId = call.id;
- // Studio's local Codex loop follows the OpenAI tool-call delta with
+ // Unsloth's local Codex loop follows the OpenAI tool-call delta with
// tool_start/tool_end events. Resolve the backend id now so all three
// event shapes update one run-unique card instead of leaving the raw
// provisional card beside a second execution card.
diff --git a/studio/frontend/src/features/chat/api/code-tool-placement.ts b/studio/frontend/src/features/chat/api/code-tool-placement.ts
index 616feb02555..3d24e078785 100644
--- a/studio/frontend/src/features/chat/api/code-tool-placement.ts
+++ b/studio/frontend/src/features/chat/api/code-tool-placement.ts
@@ -5,21 +5,21 @@
* Which side of the connection the Code pill runs code on.
*
* `code_execution` runs in the provider's own sandbox and is billed by them;
- * `python` / `terminal` are Studio's tools and run on the machine Studio is
+ * `python` / `terminal` are Unsloth's tools and run on the machine Unsloth is
* installed on. They are not two implementations of one feature, they are two
* different trust boundaries, so which one a stored toggle means must not
* change underneath the user.
*
* That is what made this a rule rather than a line in the adapter. Until
- * Studio's tool loop reached the general external providers, only openai_codex
+ * Unsloth's tool loop reached the general external providers, only openai_codex
* carried studio_tools, so the pill on an OpenAI / Anthropic / Gemini
* connection always resolved to the provider's sandbox. Now those providers
- * take the Studio branch, and the same persisted `true` would resolve to local
+ * take the Unsloth branch, and the same persisted `true` would resolve to local
* execution instead -- a relocation nobody asked for, announced nowhere.
*
* The rule: a connection with its own sandbox keeps it. A model on such a
* connection that cannot use it runs nothing, exactly as before the loop
- * existed, rather than falling back to the user's machine. Studio's local tools
+ * existed, rather than falling back to the user's machine. Unsloth's local tools
* are for connections that have no sandbox at all -- the self-hosted presets,
* and the cloud providers that ship none, which is what openai_codex has always
* done, with tool cards and the permission gate to show it.
@@ -35,7 +35,7 @@ export interface CodeToolPlacementInput {
}
export interface CodeToolNames {
- /** Studio tool names, executed on this machine by the Studio tool loop. */
+ /** Unsloth tool names, executed on this machine by the Unsloth tool loop. */
local: string[];
/** Provider builtin names, executed and billed by the provider. */
hosted: string[];
@@ -63,7 +63,7 @@ export function selectCodeToolNames(input: CodeToolPlacementInput): CodeToolName
export function codeToolCanRun(input: {
hostedCodeExecutionForThisTurn: boolean;
providerHostsCodeExecution: boolean;
- /** This provider AND model can run Studio's own tools through the loop. */
+ /** This provider AND model can run Unsloth's own tools through the loop. */
supportsStudioTools: boolean;
}): boolean {
const names = selectCodeToolNames({
diff --git a/studio/frontend/src/features/chat/api/providers-api.ts b/studio/frontend/src/features/chat/api/providers-api.ts
index 57ecc03946e..9b5fd69c8ad 100644
--- a/studio/frontend/src/features/chat/api/providers-api.ts
+++ b/studio/frontend/src/features/chat/api/providers-api.ts
@@ -22,7 +22,7 @@ export interface ProviderRegistryEntry {
supports_streaming: boolean;
supports_vision: boolean;
supports_tool_calling: boolean;
- /** Studio runs its own tool loop (search/code/MCP/RAG) against this provider. */
+ /** Unsloth runs its own tool loop (search/code/MCP/RAG) against this provider. */
supports_studio_tools?: boolean;
/** Backend-only entry, surfaced through a custom preset rather than the dropdown. */
hidden?: boolean;
diff --git a/studio/frontend/src/features/chat/chat-page.tsx b/studio/frontend/src/features/chat/chat-page.tsx
index d4fbf0a62d4..dce46c789e6 100644
--- a/studio/frontend/src/features/chat/chat-page.tsx
+++ b/studio/frontend/src/features/chat/chat-page.tsx
@@ -2500,7 +2500,7 @@ export function ChatPage({
const storedWebFetchToolsEnabled =
threadScopedOverride("webFetchToolsEnabled") ??
loadOptionalBool(CHAT_WEB_FETCH_TOOLS_ENABLED_KEY);
- // Studio runs Search and Code itself for any provider that advertises the
+ // Unsloth runs Search and Code itself for any provider that advertises the
// capability, so a self-hosted connection has no hosted builtin to key off.
// Keying the pill state on the hosted flags alone discarded the user's saved
// preference on every reload and sent enable_tools: false, even though the
@@ -2511,7 +2511,7 @@ export function ChatPage({
selection.modelId,
) === true;
const canSearch = supportsBuiltinWebSearch || supportsStudioToolsHere;
- // Read out of the placement rule, not off the Studio-tools flag: a model on
+ // Read out of the placement rule, not off the Unsloth-tools flag: a model on
// a sandbox-owning provider that cannot use it runs nothing either way, and
// offering the pill there restored a preference that sent no tools at all.
const canRunCode = codeToolCanRun({
@@ -3865,7 +3865,7 @@ export function ChatPage({
<body> costs 0.10 ms either way, so the cost is the thread being under
the subject and nothing else. Chromium only: WebKitGTK and Firefox are
flat across all four selector forms, so this neither helps nor hurts
- the engine Studio uses on Linux.
+ the engine Unsloth uses on Linux.
ChatModelNotice renders a direct child of this element (see below), so
the child combinator matches exactly what the descendant form matched.
diff --git a/studio/frontend/src/features/chat/chat-providers-dialog.tsx b/studio/frontend/src/features/chat/chat-providers-dialog.tsx
index 4b6aec15a8c..9c3f8aefa5c 100644
--- a/studio/frontend/src/features/chat/chat-providers-dialog.tsx
+++ b/studio/frontend/src/features/chat/chat-providers-dialog.tsx
@@ -281,7 +281,7 @@ export function ChatProvidersSettings({
// llama.cpp hides the key field. Ollama and vLLM show an optional key:
// Ollama cloud and secured vLLM need one; local servers leave it empty.
const showReasoningToggle = supportsProviderReasoningToggle(providerType);
- // Studio runs Search, Code, MCP and RAG on this machine for any provider that
+ // Unsloth runs Search, Code, MCP and RAG on this machine for any provider that
// advertises the capability, with no extra opt-in. Say so where the
// connection is created: the tool results also travel back to the provider as
// the next turn's input, which is not obvious from "connect a model".
@@ -1611,7 +1611,7 @@ export function ChatProvidersSettings({
{runsStudioToolsLocally ? (
<div className="px-4 py-3">
<p className="text-xs text-muted-foreground">
- Models on this connection can use Studio&apos;s Search, Code,
+ Models on this connection can use Unsloth&apos;s Search, Code,
MCP and Docs tools. Those run on this machine, and their
results are sent back to the provider as part of the next
message. Code and terminal calls still ask before anything
diff --git a/studio/frontend/src/features/chat/external-providers.ts b/studio/frontend/src/features/chat/external-providers.ts
index 33456148b78..32b1a4039c5 100644
--- a/studio/frontend/src/features/chat/external-providers.ts
+++ b/studio/frontend/src/features/chat/external-providers.ts
@@ -246,7 +246,7 @@ export function providerModelSupportsStudioTools(
return typeof providerDefault === "boolean" ? providerDefault : null;
}
-/** Whether the connection behind an ``external::`` model id runs Studio tools.
+/** Whether the connection behind an ``external::`` model id runs Unsloth tools.
*
* Resolves the provider type from the saved connection, so callers that only
* have a checkpoint id (the runtime store) can ask the capability question
diff --git a/studio/frontend/src/features/chat/hooks/use-chat-model-runtime.ts b/studio/frontend/src/features/chat/hooks/use-chat-model-runtime.ts
index 905bd91038f..75dcda4d0e2 100644
--- a/studio/frontend/src/features/chat/hooks/use-chat-model-runtime.ts
+++ b/studio/frontend/src/features/chat/hooks/use-chat-model-runtime.ts
@@ -427,7 +427,7 @@ async function syncInferenceStatusToStore(options?: {
// capability. Re-apply live status so attach gates survive a refresh.
syncModelCapabilities(checkpointId, statusRes);
- // Studio starting against an already-resident GGUF: history can load before this first
+ // Unsloth starting against an already-resident GGUF: history can load before this first
// status refresh has a checkpoint or window, so its own recount never runs. A null thread
// would publish an empty count, hence the mounted-thread guard.
const hydrated = useChatRuntimeStore.getState();
diff --git a/studio/frontend/src/features/chat/openai-codex-connect.tsx b/studio/frontend/src/features/chat/openai-codex-connect.tsx
index 5b4beb724fd..c9698460184 100644
--- a/studio/frontend/src/features/chat/openai-codex-connect.tsx
+++ b/studio/frontend/src/features/chat/openai-codex-connect.tsx
@@ -173,7 +173,7 @@ export function OpenAICodexConnect({
<p className="text-sm font-medium">ChatGPT subscription</p>
<p className="text-xs text-muted-foreground">
{connected
- ? "Connected securely on this Studio installation."
+ ? "Connected securely on this Unsloth installation."
: authStatus === "reauthorization_required"
? "Your saved authorization is no longer valid. Reconnect to continue."
: "Authorize in your system browser. Tokens never enter browser storage."}
diff --git a/studio/frontend/src/features/chat/provider-capabilities.ts b/studio/frontend/src/features/chat/provider-capabilities.ts
index 7fe7e848da9..86574b971f3 100644
--- a/studio/frontend/src/features/chat/provider-capabilities.ts
+++ b/studio/frontend/src/features/chat/provider-capabilities.ts
@@ -436,7 +436,7 @@ export function providerSupportsBuiltinCodeExecution(
* running the model's code on the USER's machine would be a relocation, and
* that does not depend on which model is selected. openai_codex is absent for
* the same reason the backend registry leaves it out -- its code tools are
- * Studio's own, run by the Codex loop, and always have been.
+ * Unsloth's own, run by the Codex loop, and always have been.
*/
const PROVIDER_TYPES_WITH_CODE_SANDBOX = new Set(["openai", "anthropic", "gemini"]);
diff --git a/studio/frontend/src/features/chat/runtime-provider.tsx b/studio/frontend/src/features/chat/runtime-provider.tsx
index 6987831730a..2cdb6e8ddbd 100644
--- a/studio/frontend/src/features/chat/runtime-provider.tsx
+++ b/studio/frontend/src/features/chat/runtime-provider.tsx
@@ -1883,7 +1883,7 @@ function ThreadNewChatSwitch({
// Guarded, unlike the reads elsewhere that pass an id the runtime just handed back: this
// one is REMEMBERED, in a ref that outlives every view switch. getItemById() THROWS
// "Entry not available in the store" for a dropped id rather than returning undefined, so
- // the optional chain would not catch it and the effect would take the app down. Studio
+ // the optional chain would not catch it and the effect would take the app down. Unsloth
// deletes through tombstones today; the point is not to depend on that.
let recordedRemoteId: string | undefined;
if (recorded) {
@@ -2147,7 +2147,7 @@ function NonceThreadResumeRestore({
if (!remoteId) {
return;
}
- // ...and neither must a chat the user deleted while they were away. Studio deletes by
+ // ...and neither must a chat the user deleted while they were away. Unsloth deletes by
// tombstoning storage rather than calling runtime.threads.delete(), so the runtime item
// and its remoteId both survive and every check above still passes. On remoteId, which
// is the id storage and the sidebar delete agree on. Restoring here would undo
diff --git a/studio/frontend/src/features/chat/stores/chat-runtime-store.ts b/studio/frontend/src/features/chat/stores/chat-runtime-store.ts
index c8ceec5a970..9973ef6f770 100644
--- a/studio/frontend/src/features/chat/stores/chat-runtime-store.ts
+++ b/studio/frontend/src/features/chat/stores/chat-runtime-store.ts
@@ -4283,7 +4283,7 @@ export const useChatRuntimeStore = create<ChatRuntimeStore>((set, get) => ({
specDrafterKind: null,
}
: {}),
- // Switching to a connection whose provider cannot run Studio's tool
+ // Switching to a connection whose provider cannot run Unsloth's tool
// loop disables Deep Research; a capable one keeps the user's choice.
...(clampsDeepResearch ? { deepResearchEnabled: false } : {}),
};
diff --git a/studio/frontend/src/features/chat/types/api.ts b/studio/frontend/src/features/chat/types/api.ts
index c516298ad83..e552141b40f 100644
--- a/studio/frontend/src/features/chat/types/api.ts
+++ b/studio/frontend/src/features/chat/types/api.ts
@@ -281,7 +281,7 @@ export interface LoadModelResponse {
gpu_layers?: number;
/** Set when an automatic Vulkan startup crash was recovered by loading on CPU. */
cpu_fallback_reason?: CpuFallbackReason | null;
- /** How Studio recovered after a multimodal projector failed at startup. */
+ /** How Unsloth recovered after a multimodal projector failed at startup. */
mmproj_fallback_reason?: MmprojFallbackReason | null;
n_cpu_moe?: number;
tensor_split?: number[] | null;
diff --git a/studio/frontend/src/features/chat/utils/chat-thread-creation-claim.ts b/studio/frontend/src/features/chat/utils/chat-thread-creation-claim.ts
index 8b6e49de1ef..e9d07a4465b 100644
--- a/studio/frontend/src/features/chat/utils/chat-thread-creation-claim.ts
+++ b/studio/frontend/src/features/chat/utils/chat-thread-creation-claim.ts
@@ -7,7 +7,7 @@
* `initialize()` snapshots project, temporary status, model and creation time when the
* thread MATERIALIZES, which used to be the same tick as the send. Two things separated
* them: `BaseComposerRuntimeCore.send()` awaits every incomplete attachment before
- * `handleSend` and Studio's PDF/DOCX/text adapters extract there, and the shared provider
+ * `handleSend` and Unsloth's PDF/DOCX/text adapters extract there, and the shared provider
* (#8908) now survives a view switch. Navigating meanwhile moves all four -- the adapter is
* rebuilt with the new project, and ChatPage's view effect clears `incognito` -- so a
* document sent from a Temporary Chat, or from one project into another, was created under
diff --git a/studio/frontend/src/features/chat/utils/image-input-support.ts b/studio/frontend/src/features/chat/utils/image-input-support.ts
index b4747a6033e..607c3546ce3 100644
--- a/studio/frontend/src/features/chat/utils/image-input-support.ts
+++ b/studio/frontend/src/features/chat/utils/image-input-support.ts
@@ -14,7 +14,7 @@ function textOnlyMmprojUnavailableReason(
return null;
}
const label = activeModel?.name || activeModel?.id || "This vision model";
- return `${label}'s vision projector failed to start, so Studio reloaded it in text-only mode. Free memory or update Studio, then reload the model before attaching images.`;
+ return `${label}'s vision projector failed to start, so Unsloth reloaded it in text-only mode. Free memory or update Unsloth, then reload the model before attaching images.`;
}
export function getImageInputUnavailableReason({
diff --git a/studio/frontend/src/features/chat/utils/mmproj-fallback.ts b/studio/frontend/src/features/chat/utils/mmproj-fallback.ts
index 6afc9bbc89f..7205aa8c931 100644
--- a/studio/frontend/src/features/chat/utils/mmproj-fallback.ts
+++ b/studio/frontend/src/features/chat/utils/mmproj-fallback.ts
@@ -22,11 +22,11 @@ const MMPROJ_FALLBACK_MESSAGES: Record<MmprojFallbackReason, string> = {
// of the crash routes -- and that one is worse than vague, because it sends
// someone whose GPU runtime is broken off to cut context and offload layers.
cpu_offload:
- "Studio is running the vision projector in system memory rather than on the GPU. Image input remains available, but image processing may be slower.",
+ "Unsloth is running the vision projector in system memory rather than on the GPU. Image input remains available, but image processing may be slower.",
projector_incompatible:
- "The vision projector is incompatible with the installed llama.cpp build, so Studio reloaded this model in text-only mode. Update Studio, then reload the model to restore image input.",
+ "The vision projector is incompatible with the installed llama.cpp build, so Unsloth reloaded this model in text-only mode. Update Unsloth, then reload the model to restore image input.",
projector_startup_failure:
- "The vision projector could not start on the GPU or CPU, so Studio reloaded this model in text-only mode. Free memory or check the GPU logs, then reload the model to restore image input.",
+ "The vision projector could not start on the GPU or CPU, so Unsloth reloaded this model in text-only mode. Free memory or check the GPU logs, then reload the model to restore image input.",
};
export function isTextOnlyMmprojFallback(
diff --git a/studio/frontend/src/features/chat/utils/offer-kept-sandbox-files.ts b/studio/frontend/src/features/chat/utils/offer-kept-sandbox-files.ts
index 0e28d3c3cab..8528dcbe7a2 100644
--- a/studio/frontend/src/features/chat/utils/offer-kept-sandbox-files.ts
+++ b/studio/frontend/src/features/chat/utils/offer-kept-sandbox-files.ts
@@ -19,8 +19,8 @@ export function offerToDeleteKeptSandboxes(keptThreadIds: string[]): void {
{
description:
keptThreadIds.length === 1
- ? "Its sandbox folder is no longer reachable from Studio."
- : "Their sandbox folders are no longer reachable from Studio.",
+ ? "Its sandbox folder is no longer reachable from Unsloth."
+ : "Their sandbox folders are no longer reachable from Unsloth.",
action: {
label: "Delete files",
onClick: () => {
diff --git a/studio/frontend/src/features/chat/utils/openwebui-import.ts b/studio/frontend/src/features/chat/utils/openwebui-import.ts
index ecc0c7890a6..0dd2dcaa358 100644
--- a/studio/frontend/src/features/chat/utils/openwebui-import.ts
+++ b/studio/frontend/src/features/chat/utils/openwebui-import.ts
@@ -2,10 +2,10 @@
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
/**
- * Converts Open WebUI exports to Studio conversations. `history.messages` is
+ * Converts Open WebUI exports to Unsloth conversations. `history.messages` is
* the authoritative DAG and `currentId` selects its active branch; flat
* `messages` is a legacy fallback. Both modern output items and legacy details
- * blocks are converted to Studio message parts.
+ * blocks are converted to Unsloth message parts.
*/
import type { MessageRecord, ParsedConversation } from "../types";
@@ -634,7 +634,7 @@ export function openWebUIRecordToConversation(
Date.now();
const messages: MessageRecord[] = [];
- // Studio sorts stored messages by createdAt, so the timeline has to be
+ // Unsloth sorts stored messages by createdAt, so the timeline has to be
// strictly increasing or the depth-first order above would not survive a
// reload. Real timestamps are kept whenever they already increase.
let previousTs = createdAt - 1;
diff --git a/studio/frontend/src/features/chat/utils/queued-model-capabilities.ts b/studio/frontend/src/features/chat/utils/queued-model-capabilities.ts
index f7cf56873f1..032fbdd724d 100644
--- a/studio/frontend/src/features/chat/utils/queued-model-capabilities.ts
+++ b/studio/frontend/src/features/chat/utils/queued-model-capabilities.ts
@@ -13,7 +13,7 @@ export type QueuedModelCapabilities = Pick<
/**
* Give a queued run an accurate private model entry without changing the
* visible chat's model catalog. Status-derived capabilities override stale
- * catalog values, and a model loaded outside Studio gets a minimal entry.
+ * catalog values, and a model loaded outside Unsloth gets a minimal entry.
*/
export function mergeQueuedModelCapabilities(
models: ChatModelSummary[],
diff --git a/studio/frontend/src/features/chat/utils/settings-retry.ts b/studio/frontend/src/features/chat/utils/settings-retry.ts
index 9136f078988..539434af53d 100644
--- a/studio/frontend/src/features/chat/utils/settings-retry.ts
+++ b/studio/frontend/src/features/chat/utils/settings-retry.ts
@@ -9,7 +9,7 @@
// body on one bad field, so a permanently-rejected value requeued forever rides
// along with every later save and takes it down too: after one 400 no chat setting
// can be persisted again for the life of the tab. Measured in Chromium, Firefox and
-// WebKit against a live Studio before this existed.
+// WebKit against a live Unsloth before this existed.
//
// Reachable without a bug on either side, whenever the two versions differ: a new
// bundle against a rolled-back backend has every mirrored field rejected as
diff --git a/studio/frontend/src/features/hub/catalog/catalog-states.tsx b/studio/frontend/src/features/hub/catalog/catalog-states.tsx
index 8d7a581a51b..0f20426b996 100644
--- a/studio/frontend/src/features/hub/catalog/catalog-states.tsx
+++ b/studio/frontend/src/features/hub/catalog/catalog-states.tsx
@@ -52,7 +52,7 @@ function describeFailure(
}
: {
title: "Can't reach Hugging Face",
- body: `Studio couldn't load ${resourceLabel} from Hugging Face.`,
+ body: `Unsloth couldn't load ${resourceLabel} from Hugging Face.`,
offlineLike: false,
};
}
diff --git a/studio/frontend/src/features/hub/catalog/hub-model-settings-view.tsx b/studio/frontend/src/features/hub/catalog/hub-model-settings-view.tsx
index 8e59ecb136c..dd52868188c 100644
--- a/studio/frontend/src/features/hub/catalog/hub-model-settings-view.tsx
+++ b/studio/frontend/src/features/hub/catalog/hub-model-settings-view.tsx
@@ -111,7 +111,7 @@ export function HubModelSettingsView({
{/* Only what auto-switch reaches: it indexes GGUFs and skips Ollama. */}
{(target.apiLoadable ?? target.isGguf)
? "Saved settings apply everywhere this model loads, including when an OpenAI-compatible API request asks for it."
- : "Saved settings apply everywhere Studio loads this model."}{" "}
+ : "Saved settings apply everywhere Unsloth loads this model."}{" "}
Turn on{" "}
<span className="font-medium text-foreground">
Remember for this model
diff --git a/studio/frontend/src/features/hub/lib/unsloth-support.ts b/studio/frontend/src/features/hub/lib/unsloth-support.ts
index 3235c03e1f5..ca471cd74e0 100644
--- a/studio/frontend/src/features/hub/lib/unsloth-support.ts
+++ b/studio/frontend/src/features/hub/lib/unsloth-support.ts
@@ -132,7 +132,7 @@ export type UnslothSupportStatus = "supported" | "unsupported";
export interface UnslothSupport {
status: UnslothSupportStatus;
reason: string | null;
- /** Set when Studio runs this model on a dedicated page rather than in chat. The status stays "unsupported" because the chat pickers gate on it, but the UI must not call it unsupported: the Images and Video pages load it. */
+ /** Set when Unsloth runs this model on a dedicated page rather than in chat. The status stays "unsupported" because the chat pickers gate on it, but the UI must not call it unsupported: the Images and Video pages load it. */
supportedIn?: "images" | "video";
}
@@ -148,7 +148,7 @@ const VIDEO_PAGE_TASKS: ReadonlySet<string> = new Set([
"image-text-to-video",
]);
-/** Which Studio page runs this pipeline task, if any. */
+/** Which Unsloth page runs this pipeline task, if any. */
export function studioPageForTask(
pipelineTag?: string | null,
): "images" | "video" | undefined {
diff --git a/studio/frontend/src/features/images/api.ts b/studio/frontend/src/features/images/api.ts
index cf7e7f5b84d..f0ab2903fcf 100644
--- a/studio/frontend/src/features/images/api.ts
+++ b/studio/frontend/src/features/images/api.ts
@@ -527,7 +527,7 @@ export interface DiffusionTrainingStatus {
ema_path?: string | null;
started_at: number | null;
updated_at: number | null;
- // Where the trained adapter was mirrored into the Studio LoRA catalog, and the family / base it trained from.
+ // Where the trained adapter was mirrored into the Unsloth LoRA catalog, and the family / base it trained from.
catalog_path?: string | null;
family?: string | null;
base_model?: string | null;
@@ -624,7 +624,7 @@ export async function getDiffusionTrainingStatus(): Promise<DiffusionTrainingSta
return parseJson(await authFetch("/api/train/diffusion/status"));
}
-// One dataset folder under the Studio datasets root (GET /api/train/diffusion/info): images,
+// One dataset folder under the Unsloth datasets root (GET /api/train/diffusion/info): images,
// clips, or both. `clip_count` is absent on older backends, hence optional.
export interface DiffusionDatasetSummary {
name: string;
@@ -693,7 +693,7 @@ export interface DiffusionTrainableFamily {
>;
}
-// Where diffusion training reads/writes on this Studio, plus usable dataset folders.
+// Where diffusion training reads/writes on this Unsloth, plus usable dataset folders.
export interface DiffusionTrainingInfo {
datasets_root: string;
outputs_root: string;
@@ -826,7 +826,7 @@ export interface DiffusionDatasetImportResult {
source_repo: string;
}
-/** Materialize a curated example dataset (by id) into a Studio dataset folder. */
+/** Materialize a curated example dataset (by id) into an Unsloth dataset folder. */
export async function importDiffusionDatasetExample(
id: string,
name?: string,
diff --git a/studio/frontend/src/features/images/images-page.tsx b/studio/frontend/src/features/images/images-page.tsx
index 61404c6d9de..3db566ce1d1 100644
--- a/studio/frontend/src/features/images/images-page.tsx
+++ b/studio/frontend/src/features/images/images-page.tsx
@@ -601,7 +601,7 @@ function SliderField({
);
}
-// Matches the field-label style used across Studio (export/chat settings).
+// Matches the field-label style used across Unsloth (export/chat settings).
function Field({
label,
hint,
diff --git a/studio/frontend/src/features/images/train/diffusion-train-panel.tsx b/studio/frontend/src/features/images/train/diffusion-train-panel.tsx
index 5cb0c982679..f2edf35f797 100644
--- a/studio/frontend/src/features/images/train/diffusion-train-panel.tsx
+++ b/studio/frontend/src/features/images/train/diffusion-train-panel.tsx
@@ -1052,7 +1052,7 @@ export function DiffusionTrainPanel({
return;
}
if (!outputDir.trim()) {
- toast.error("Name the adapter (this becomes its folder under Studio outputs).");
+ toast.error("Name the adapter (this becomes its folder under Unsloth outputs).");
return;
}
// Require a trigger prompt whenever ANY image lacks a caption: without an instance_prompt the backend silently skips every uncaptioned image.
diff --git a/studio/frontend/src/features/loaded-models/loaded-models-api.ts b/studio/frontend/src/features/loaded-models/loaded-models-api.ts
index 09dc39b90af..69b3d5d5269 100644
--- a/studio/frontend/src/features/loaded-models/loaded-models-api.ts
+++ b/studio/frontend/src/features/loaded-models/loaded-models-api.ts
@@ -110,7 +110,7 @@ async function bounded<T>(
* `previous` is what the card is showing. A read that failed or timed out comes
* back as null, which is not evidence the runtime is empty: dropping its rows
* would take the model off the card, and with all four failing on one blip of a
- * remote Studio the whole card would vanish while everything stayed loaded. So
+ * remote Unsloth the whole card would vanish while everything stayed loaded. So
* an unreadable source keeps what it last showed and a readable one is always
* replaced, including by an empty answer, which is how an unload still clears.
*/
diff --git a/studio/frontend/src/features/model-picker/api/llama-flags.ts b/studio/frontend/src/features/model-picker/api/llama-flags.ts
index 8a1378dd9b1..d1026e77af6 100644
--- a/studio/frontend/src/features/model-picker/api/llama-flags.ts
+++ b/studio/frontend/src/features/model-picker/api/llama-flags.ts
@@ -136,7 +136,7 @@ export function invalidateLlamaFlagCatalog(): void {
* The panel sanitizes a stored list with this before turning it into an explicit
* request, and that must not wait on a cold probe (up to ten seconds), or a flag
* denied since the list was saved stays in the request for as long as it runs.
- * Cached for the session: unlike the flag map, it describes this build of Studio.
+ * Cached for the session: unlike the flag map, it describes this build of Unsloth.
*/
export function loadManagedLlamaFlags(): Promise<LlamaManagedFlags | null> {
if (cachedManaged) {
diff --git a/studio/frontend/src/features/model-picker/components/model-selector/host-artifact-policy.ts b/studio/frontend/src/features/model-picker/components/model-selector/host-artifact-policy.ts
index 4c963d40dd7..28121c8be52 100644
--- a/studio/frontend/src/features/model-picker/components/model-selector/host-artifact-policy.ts
+++ b/studio/frontend/src/features/model-picker/components/model-selector/host-artifact-policy.ts
@@ -28,7 +28,7 @@ export function classifyHost({
deviceBackend?: string | null;
budgetKnown?: boolean;
}): HostClass {
- // Mac outranks the backend string. Apple GPUs report as available and Studio may name the
+ // Mac outranks the backend string. Apple GPUs report as available and Unsloth may name the
// backend mlx or cpu depending on what torch found, but no Mac can place a Modular Diffusers
// workflow: it needs mem_get_info, which torch.mps does not expose. video.py refuses the load.
if (deviceType === "mac") return "gguf-only";
diff --git a/studio/frontend/src/features/model-picker/components/model-selector/model-capabilities.ts b/studio/frontend/src/features/model-picker/components/model-selector/model-capabilities.ts
index 4c1036fc9c7..84ebe0f61a2 100644
--- a/studio/frontend/src/features/model-picker/components/model-selector/model-capabilities.ts
+++ b/studio/frontend/src/features/model-picker/components/model-selector/model-capabilities.ts
@@ -42,7 +42,7 @@ const IMAGE_GEN_TAGS = new Set([
"inpainting",
]);
// Every tag here must be one the Video page can run, or a row draws a glyph promising something
-// no page in Studio delivers. video-to-video is deliberately absent: the backend takes a prompt
+// no page in Unsloth delivers. video-to-video is deliberately absent: the backend takes a prompt
// and reference IMAGES (routes/video.py), never a source video, so such a model has nowhere to go.
const VIDEO_GEN_TAGS = new Set([
"text-to-video",
diff --git a/studio/frontend/src/features/model-picker/components/model-selector/model-catalog.ts b/studio/frontend/src/features/model-picker/components/model-selector/model-catalog.ts
index 9e3ca57f3f3..9fe571b37b3 100644
--- a/studio/frontend/src/features/model-picker/components/model-selector/model-catalog.ts
+++ b/studio/frontend/src/features/model-picker/components/model-selector/model-catalog.ts
@@ -498,7 +498,7 @@ export const AUDIO_CATALOG: CatalogGroup[] = [
},
// Llasa is deliberately absent. It speaks XCodec2 (65,536 <|s_N|> tokens), which is
// neither in _AUDIO_TOKEN_PATTERNS nor in AudioCodecManager, so a curated row here
- // loaded and then failed at generation with "not a supported TTS model". Studio can
+ // loaded and then failed at generation with "not a supported TTS model". Unsloth can
// still TRAIN Llasa (unsloth_Llasa-3B.yaml); this catalog only feeds the Generate
// picker. Re-add both rows together with an xcodec2 decoder.
{
diff --git a/studio/frontend/src/features/model-picker/components/model-selector/pickers.tsx b/studio/frontend/src/features/model-picker/components/model-selector/pickers.tsx
index 3fc3af8c087..b2d6198f73f 100644
--- a/studio/frontend/src/features/model-picker/components/model-selector/pickers.tsx
+++ b/studio/frontend/src/features/model-picker/components/model-selector/pickers.tsx
@@ -3051,7 +3051,7 @@ export function HubModelPicker({
(id: string) => {
if (!catalog) return true;
// Downloaded weights keep their row. They may have been pulled on a machine that could run
- // them, and hiding what is already on disk reads as Studio having lost the model.
+ // them, and hiding what is already on disk reads as Unsloth having lost the model.
if (downloadedSet.has(id.toLowerCase())) return true;
const hit = artifactForRepoId(id, catalog);
return hit ? curatedArtifactIsOfferable(hit.artifact.repoId, hostClass) : true;
@@ -3545,7 +3545,7 @@ export function HubModelPicker({
(m) =>
filesystemRowsSupportedForTask(task, m.task) &&
// The same speech gate the cached GGUF rows get: a CSM file found in LM
- // Studio, ./models or a scan folder is just as undecodable, and routing it to
+ // Unsloth, ./models or a scan folder is just as undecodable, and routing it to
// Audio evicts the chat model before the row is reported unsupported.
audioPickIsRoutable({
id: m.model_id ?? m.id,
@@ -3591,7 +3591,7 @@ export function HubModelPicker({
(m) =>
filesystemRowsSupportedForTask(task, m.task) &&
// The same speech gate the cached GGUF rows get: a CSM file found in LM
- // Studio, ./models or a scan folder is just as undecodable, and routing it to
+ // Unsloth, ./models or a scan folder is just as undecodable, and routing it to
// Audio evicts the chat model before the row is reported unsupported.
audioPickIsRoutable({
id: m.model_id ?? m.id,
@@ -3640,7 +3640,7 @@ export function HubModelPicker({
(m) =>
filesystemRowsSupportedForTask(task, m.task) &&
// The same speech gate the cached GGUF rows get: a CSM file found in LM
- // Studio, ./models or a scan folder is just as undecodable, and routing it to
+ // Unsloth, ./models or a scan folder is just as undecodable, and routing it to
// Audio evicts the chat model before the row is reported unsupported.
audioPickIsRoutable({
id: m.model_id ?? m.id,
diff --git a/studio/frontend/src/features/model-picker/components/model-selector/types.ts b/studio/frontend/src/features/model-picker/components/model-selector/types.ts
index bc60a23f1ec..1331bcbd749 100644
--- a/studio/frontend/src/features/model-picker/components/model-selector/types.ts
+++ b/studio/frontend/src/features/model-picker/components/model-selector/types.ts
@@ -51,7 +51,7 @@ export interface ModelSelectorChangeMeta {
/** Native GGUF context, threaded so a staged pick can seed the slider. */
contextLength?: number | null;
/** Direct local .gguf file picked without a variant (custom folder / LM
- * Studio). Marks it as a GGUF source for the deferred-load staging flow. */
+ * Unsloth). Marks it as a GGUF source for the deferred-load staging flow. */
isGguf?: boolean;
/** Staged metadata confirmed the separate DiffusionGemma runner. */
isDiffusion?: boolean;
diff --git a/studio/frontend/src/features/native-intents/use-native-drop.ts b/studio/frontend/src/features/native-intents/use-native-drop.ts
index 3021474fc21..5f0c005ed29 100644
--- a/studio/frontend/src/features/native-intents/use-native-drop.ts
+++ b/studio/frontend/src/features/native-intents/use-native-drop.ts
@@ -368,7 +368,7 @@ export function useNativeModelDrop(
(dropped.kind === "attach" && dropped.video.length > 0);
if (needsRagDocuments && !canAttachDocs(currentOptions)) {
toast.error("Attaching files needs the desktop backend", {
- description: "Retry once Studio has finished starting up.",
+ description: "Retry once Unsloth has finished starting up.",
});
return;
}
diff --git a/studio/frontend/src/features/profile/api/profile-stats.ts b/studio/frontend/src/features/profile/api/profile-stats.ts
index aed44b71126..665c36c31bf 100644
--- a/studio/frontend/src/features/profile/api/profile-stats.ts
+++ b/studio/frontend/src/features/profile/api/profile-stats.ts
@@ -93,7 +93,7 @@ export async function loadProfileStats(
signal?: AbortSignal,
): Promise<ProfileStats> {
// Bucket days and hours in this browser's timezone, which is not the
- // server's when Studio is reached over the network. The IANA name is what
+ // server's when Unsloth is reached over the network. The IANA name is what
// gives each historical date its own daylight-saving offset; the current
// offset only covers callers whose host cannot resolve the name.
const query = new URLSearchParams({
diff --git a/studio/frontend/src/features/rag/components/use-source-drop.ts b/studio/frontend/src/features/rag/components/use-source-drop.ts
index 035d5a18e9a..6527ae816cd 100644
--- a/studio/frontend/src/features/rag/components/use-source-drop.ts
+++ b/studio/frontend/src/features/rag/components/use-source-drop.ts
@@ -128,7 +128,7 @@ export function useSourceDrop({
}, []);
// Every drag is cancelled, not just a file one: nothing above these surfaces
- // cancels a link drop, so the browser would navigate away from Studio.
+ // cancels a link drop, so the browser would navigate away from Unsloth.
const dropProps: SourceDropProps = {
onDragEnter: (event) => {
event.preventDefault();
diff --git a/studio/frontend/src/features/settings/api/coding-agents.ts b/studio/frontend/src/features/settings/api/coding-agents.ts
index 079938dec41..fe964b53480 100644
--- a/studio/frontend/src/features/settings/api/coding-agents.ts
+++ b/studio/frontend/src/features/settings/api/coding-agents.ts
@@ -16,7 +16,7 @@ type ApiCodingAgentsInfo = {
detected: string[];
};
-// Agents the CLI still supports but Studio does not list. Filtered here so
+// Agents the CLI still supports but Unsloth does not list. Filtered here so
// every consumer of this endpoint sees the same set.
const HIDDEN_AGENTS = new Set(["pi"]);
diff --git a/studio/frontend/src/features/settings/api/llama-backend-payload.ts b/studio/frontend/src/features/settings/api/llama-backend-payload.ts
index d840222f4d2..0f0d1d4eb44 100644
--- a/studio/frontend/src/features/settings/api/llama-backend-payload.ts
+++ b/studio/frontend/src/features/settings/api/llama-backend-payload.ts
@@ -148,7 +148,7 @@ export function llamaBackendSelectionNeedsApply(
status: LlamaBackendStatus | null,
selected: LlamaBackend | null,
): boolean {
- // A null backendRequest is a choice written by a newer Studio. Untouched it is
+ // A null backendRequest is a choice written by a newer Unsloth. Untouched it is
// not dirty, but picking a backend over it is an explicit replacement.
const requested = selected ?? status?.backendRequest ?? null;
if (!status || requested === null) {
diff --git a/studio/frontend/src/features/settings/api/xet-notice.ts b/studio/frontend/src/features/settings/api/xet-notice.ts
index 8fcaf08c7cd..07969ead2dd 100644
--- a/studio/frontend/src/features/settings/api/xet-notice.ts
+++ b/studio/frontend/src/features/settings/api/xet-notice.ts
@@ -2,7 +2,7 @@
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
// Asking the backend for one of the three Xet notices. The count was in per-origin
-// localStorage, and a Studio origin moves whenever port 8888 is taken, so every new
+// localStorage, and an Unsloth origin moves whenever port 8888 is taken, so every new
// origin handed out a fresh three and the notice never stopped.
import { authFetch } from "@/features/auth/api";
diff --git a/studio/frontend/src/features/settings/components/llama-backend-section.tsx b/studio/frontend/src/features/settings/components/llama-backend-section.tsx
index 8fcdfa4eefd..a426414c0e7 100644
--- a/studio/frontend/src/features/settings/components/llama-backend-section.tsx
+++ b/studio/frontend/src/features/settings/components/llama-backend-section.tsx
@@ -231,7 +231,7 @@ export function LlamaBackendSection() {
const job = status?.job;
const envLocked = status?.envBackend != null;
- // Null means the marker holds a choice a newer Studio wrote. Show it as
+ // Null means the marker holds a choice a newer Unsloth wrote. Show it as
// unknown rather than as Automatic, and let it be replaced deliberately.
const unknownRecorded = status?.backendRequest === null;
const value = selected ?? status?.backendRequest ?? "unknown";
diff --git a/studio/frontend/src/features/settings/lib/keyboard-shortcuts.ts b/studio/frontend/src/features/settings/lib/keyboard-shortcuts.ts
index b73433cfd7b..82ef6c63495 100644
--- a/studio/frontend/src/features/settings/lib/keyboard-shortcuts.ts
+++ b/studio/frontend/src/features/settings/lib/keyboard-shortcuts.ts
@@ -9,7 +9,7 @@ import type { TranslationKey } from "@/i18n";
* `useShortcut(id, ...)` where the action runs.
*
* Order is the render order and decides who owns a contested chord, so the
- * most reached-for actions come first. An action only earns a row when Studio
+ * most reached-for actions come first. An action only earns a row when Unsloth
* has the feature behind it.
*/
export type ShortcutId =
diff --git a/studio/frontend/src/features/settings/settings-dialog.tsx b/studio/frontend/src/features/settings/settings-dialog.tsx
index 70c685cbbe1..37baa1119bc 100644
--- a/studio/frontend/src/features/settings/settings-dialog.tsx
+++ b/studio/frontend/src/features/settings/settings-dialog.tsx
@@ -109,7 +109,7 @@ interface PanelBoundaryState {
/**
* A panel fetch can fail (offline, or an entry bundle naming chunks a `dist/` rewrite
* replaced). Nothing above this root-mounted dialog catches, so unguarded that unmounts
- * all of Studio rather than one panel.
+ * all of Unsloth rather than one panel.
*
* Reload rather than retry: React and the browser's module map both cache the failed
* import, so re-importing rethrows with no new request (whatwg/html#6768), while
diff --git a/studio/frontend/src/features/settings/stores/stt-model-catalog.ts b/studio/frontend/src/features/settings/stores/stt-model-catalog.ts
index 152d94e9c75..781447cf240 100644
--- a/studio/frontend/src/features/settings/stores/stt-model-catalog.ts
+++ b/studio/frontend/src/features/settings/stores/stt-model-catalog.ts
@@ -33,7 +33,7 @@ export const MTMD_STT_MODELS: ReadonlySet<SttModel> = new Set([
export type DefaultSttModel = (typeof STT_MODELS)[number];
/** A curated id or a user-selected Hugging Face `owner/model` repository. */
export type SttModel = string;
-/** Whisper repos downloaded through Studio's existing Model Hub manager. */
+/** Whisper repos downloaded through Unsloth's existing Model Hub manager. */
export const STT_MODEL_REPOS: Record<DefaultSttModel, string> = {
tiny: "unsloth/whisper-tiny",
base: "unsloth/whisper-base",
diff --git a/studio/frontend/src/features/settings/tabs/agents-tab.tsx b/studio/frontend/src/features/settings/tabs/agents-tab.tsx
index b865f8d1de6..c9f726d8d38 100644
--- a/studio/frontend/src/features/settings/tabs/agents-tab.tsx
+++ b/studio/frontend/src/features/settings/tabs/agents-tab.tsx
@@ -682,7 +682,7 @@ export function AgentsTab() {
const origin = typeof window !== "undefined" ? window.location.origin : "";
// Browser commands target the viewed origin; a desktop window origin is a Tauri URL
// the CLI cannot reach, so use the backend URL from /api/health (getApiBase until it
- // lands). The command then runs wherever that CLI is: a loopback base is this Studio's
+ // lands). The command then runs wherever that CLI is: a loopback base is this Unsloth's
// own host, so deviceType decides, and it reports wsl where the browser would claim
// Windows; any other base is reached from the viewer's machine, so only the client
// platform describes that shell.
@@ -867,7 +867,7 @@ export function AgentsTab() {
selectedAgent,
);
const command = attachOnly ? commandBase : `${commandBase} ${modelArgs}`;
- // The fixed examples below target the same Studio, not a bare 127.0.0.1:8888.
+ // The fixed examples below target the same Unsloth, not a bare 127.0.0.1:8888.
const example = (agentId: string, flags: string) =>
`${buildAgentCommand(studioBase, null, commandOs, agentId)} ${flags}`;
const {
diff --git a/studio/frontend/src/features/settings/tabs/remote-lan-tab.tsx b/studio/frontend/src/features/settings/tabs/remote-lan-tab.tsx
index ad17101c8fa..7794d7bdf3c 100644
--- a/studio/frontend/src/features/settings/tabs/remote-lan-tab.tsx
+++ b/studio/frontend/src/features/settings/tabs/remote-lan-tab.tsx
@@ -6,7 +6,7 @@ import { KeylessApiAccessSection } from "../components/keyless-api-access-sectio
import { LanAccessSection } from "../components/lan-access-section";
import { RemoteAccessSection } from "../components/remote-access-section";
-/** Reaching Studio from another device, without the API token list in the way. */
+/** Reaching Unsloth from another device, without the API token list in the way. */
export function RemoteLanTab() {
const t = useT();
diff --git a/studio/frontend/src/features/video/video-page.tsx b/studio/frontend/src/features/video/video-page.tsx
index 0ffd6ac0803..9720c93192e 100644
--- a/studio/frontend/src/features/video/video-page.tsx
+++ b/studio/frontend/src/features/video/video-page.tsx
@@ -417,7 +417,7 @@ function SliderField({
);
}
-// Matches the field-label style used across Studio (export/chat settings).
+// Matches the field-label style used across Unsloth (export/chat settings).
function Field({
label,
hint,
diff --git a/studio/frontend/src/i18n/locales/ar.ts b/studio/frontend/src/i18n/locales/ar.ts
index 6e44d2ae874..75db3043d4a 100644
--- a/studio/frontend/src/i18n/locales/ar.ts
+++ b/studio/frontend/src/i18n/locales/ar.ts
@@ -892,7 +892,7 @@ export const ar = {
tokensIn: "التوكنات المُرسَلة",
tokensOut: "التوكنات المُولَّدة",
totalTokens: "إجمالي التوكنات",
- studioChatTokens: "توكنات محادثة Studio",
+ studioChatTokens: "توكنات محادثة Unsloth",
apiTokens: "توكنات API",
cachedTokens: "التوكنات المخزّنة مؤقتًا",
cachedValue: "{tokens} ({percent}% من المُدخَلات)",
@@ -1339,7 +1339,7 @@ export const ar = {
title: "البحث على الويب",
images: "عرض الصور من البحث على الويب",
imagesDescription:
- "يتيح للبحث على الويب إرجاع صور، ويجلب صورة لكل عنصر تعدّده الإجابة. يجلب Studio الصور المصغّرة ويغيّر حجمها، لذا لا يتصل المتصفح بمضيفي الصور أبدًا.",
+ "يتيح للبحث على الويب إرجاع صور، ويجلب صورة لكل عنصر تعدّده الإجابة. يجلب Unsloth الصور المصغّرة ويغيّر حجمها، لذا لا يتصل المتصفح بمضيفي الصور أبدًا.",
},
artifacts: {
title: "Canvas",
diff --git a/studio/frontend/src/i18n/locales/de.ts b/studio/frontend/src/i18n/locales/de.ts
index 344e2771abd..a5a9c824f7c 100644
--- a/studio/frontend/src/i18n/locales/de.ts
+++ b/studio/frontend/src/i18n/locales/de.ts
@@ -916,7 +916,7 @@ export const de = {
tokensIn: "Gesendete Tokens",
tokensOut: "Erzeugte Tokens",
totalTokens: "Tokens insgesamt",
- studioChatTokens: "Studio-Chat-Tokens",
+ studioChatTokens: "Unsloth-Chat-Tokens",
apiTokens: "API-Tokens",
cachedTokens: "Zwischengespeicherte Tokens",
cachedValue: "{tokens} ({percent} % der Eingabe)",
@@ -1375,7 +1375,7 @@ export const de = {
title: "Websuche",
images: "Bilder aus der Websuche anzeigen",
imagesDescription:
- "Lässt die Websuche Bilder liefern und holt eines für jeden Punkt, den eine Antwort auflistet. Vorschaubilder lädt und verkleinert Studio, der Browser kontaktiert keine Bildhosts.",
+ "Lässt die Websuche Bilder liefern und holt eines für jeden Punkt, den eine Antwort auflistet. Vorschaubilder lädt und verkleinert Unsloth, der Browser kontaktiert keine Bildhosts.",
},
artifacts: {
title: "Canvas",
diff --git a/studio/frontend/src/i18n/locales/en.ts b/studio/frontend/src/i18n/locales/en.ts
index fe56f86cdc3..d71501a57c2 100644
--- a/studio/frontend/src/i18n/locales/en.ts
+++ b/studio/frontend/src/i18n/locales/en.ts
@@ -887,7 +887,7 @@ export const en = {
tokensIn: "Tokens sent",
tokensOut: "Tokens generated",
totalTokens: "Total tokens",
- studioChatTokens: "Studio Chat tokens",
+ studioChatTokens: "Unsloth Chat tokens",
apiTokens: "API tokens",
cachedTokens: "Cached tokens",
cachedValue: "{tokens} ({percent}% of input)",
@@ -1340,7 +1340,7 @@ export const en = {
title: "Web search",
images: "Show images from web search",
imagesDescription:
- "Let web search return pictures, and fetch one for each thing an answer lists. Thumbnails are downloaded and resized by Studio, so the browser never contacts image hosts.",
+ "Let web search return pictures, and fetch one for each thing an answer lists. Thumbnails are downloaded and resized by Unsloth, so the browser never contacts image hosts.",
},
artifacts: {
title: "Canvas",
diff --git a/studio/frontend/src/i18n/locales/es.ts b/studio/frontend/src/i18n/locales/es.ts
index d999cf667ef..6658aee5174 100644
--- a/studio/frontend/src/i18n/locales/es.ts
+++ b/studio/frontend/src/i18n/locales/es.ts
@@ -911,7 +911,7 @@ export const es = {
tokensIn: "Tokens enviados",
tokensOut: "Tokens generados",
totalTokens: "Tokens totales",
- studioChatTokens: "Tokens de Studio Chat",
+ studioChatTokens: "Tokens de Unsloth Chat",
apiTokens: "Tokens de la API",
cachedTokens: "Tokens en caché",
cachedValue: "{tokens} ({percent}% de la entrada)",
@@ -1366,7 +1366,7 @@ export const es = {
title: "Búsqueda web",
images: "Mostrar imágenes de la búsqueda web",
imagesDescription:
- "Permite que la búsqueda web devuelva imágenes y obtiene una por cada elemento que enumera una respuesta. Studio descarga y redimensiona las miniaturas, así que el navegador nunca contacta con los servidores de imágenes.",
+ "Permite que la búsqueda web devuelva imágenes y obtiene una por cada elemento que enumera una respuesta. Unsloth descarga y redimensiona las miniaturas, así que el navegador nunca contacta con los servidores de imágenes.",
},
artifacts: {
title: "Canvas",
diff --git a/studio/frontend/src/i18n/locales/fr.ts b/studio/frontend/src/i18n/locales/fr.ts
index f860ea10805..43debb59ed5 100644
--- a/studio/frontend/src/i18n/locales/fr.ts
+++ b/studio/frontend/src/i18n/locales/fr.ts
@@ -915,7 +915,7 @@ export const fr = {
tokensIn: "Tokens envoyés",
tokensOut: "Tokens générés",
totalTokens: "Total des tokens",
- studioChatTokens: "Tokens de Studio Chat",
+ studioChatTokens: "Tokens de Unsloth Chat",
apiTokens: "Tokens API",
cachedTokens: "Tokens mis en cache",
cachedValue: "{tokens} ({percent} % des tokens d'entrée)",
@@ -1372,7 +1372,7 @@ export const fr = {
title: "Recherche web",
images: "Afficher les images de la recherche web",
imagesDescription:
- "Permet à la recherche web de renvoyer des images et en récupère une pour chaque élément listé dans une réponse. Studio télécharge et redimensionne les vignettes : le navigateur ne contacte jamais les hébergeurs d'images.",
+ "Permet à la recherche web de renvoyer des images et en récupère une pour chaque élément listé dans une réponse. Unsloth télécharge et redimensionne les vignettes : le navigateur ne contacte jamais les hébergeurs d'images.",
},
artifacts: {
title: "Canvas",
diff --git a/studio/frontend/src/i18n/locales/hi.ts b/studio/frontend/src/i18n/locales/hi.ts
index 41948879027..71c1ed3b275 100644
--- a/studio/frontend/src/i18n/locales/hi.ts
+++ b/studio/frontend/src/i18n/locales/hi.ts
@@ -895,7 +895,7 @@ export const hi = {
tokensIn: "भेजे गए टोकन",
tokensOut: "बनाए गए टोकन",
totalTokens: "कुल टोकन",
- studioChatTokens: "Studio Chat टोकन",
+ studioChatTokens: "Unsloth Chat टोकन",
apiTokens: "API टोकन",
cachedTokens: "कैश किए गए टोकन",
cachedValue: "{tokens} (इनपुट का {percent}%)",
@@ -1345,7 +1345,7 @@ export const hi = {
title: "वेब खोज",
images: "वेब खोज से छवियाँ दिखाएँ",
imagesDescription:
- "वेब खोज को छवियाँ लौटाने दें और उत्तर में सूचीबद्ध हर चीज़ के लिए एक छवि लाएँ। थंबनेल Studio द्वारा लाए और छोटे किए जाते हैं, इसलिए ब्राउज़र कभी छवि होस्ट से संपर्क नहीं करता।",
+ "वेब खोज को छवियाँ लौटाने दें और उत्तर में सूचीबद्ध हर चीज़ के लिए एक छवि लाएँ। थंबनेल Unsloth द्वारा लाए और छोटे किए जाते हैं, इसलिए ब्राउज़र कभी छवि होस्ट से संपर्क नहीं करता।",
},
artifacts: {
title: "Canvas",
diff --git a/studio/frontend/src/i18n/locales/it.ts b/studio/frontend/src/i18n/locales/it.ts
index 7761ee7f3f6..fe576a5e22a 100644
--- a/studio/frontend/src/i18n/locales/it.ts
+++ b/studio/frontend/src/i18n/locales/it.ts
@@ -880,7 +880,7 @@ export const it = {
tokensIn: "Token inviati",
tokensOut: "Token generati",
totalTokens: "Token totali",
- studioChatTokens: "Token di Studio Chat",
+ studioChatTokens: "Token di Unsloth Chat",
apiTokens: "Token API",
cachedTokens: "Token in cache",
cachedValue: "{tokens} ({percent}% dell'input)",
@@ -1340,7 +1340,7 @@ export const it = {
title: "Ricerca web",
images: "Mostra immagini dalla ricerca web",
imagesDescription:
- "Consente alla ricerca web di restituire immagini e ne recupera una per ogni elemento elencato in una risposta. Le miniature vengono scaricate e ridimensionate da Studio, quindi il browser non contatta mai gli host delle immagini.",
+ "Consente alla ricerca web di restituire immagini e ne recupera una per ogni elemento elencato in una risposta. Le miniature vengono scaricate e ridimensionate da Unsloth, quindi il browser non contatta mai gli host delle immagini.",
},
artifacts: {
title: "Canvas",
diff --git a/studio/frontend/src/i18n/locales/ja.ts b/studio/frontend/src/i18n/locales/ja.ts
index 02135261ef7..abac34e68bc 100644
--- a/studio/frontend/src/i18n/locales/ja.ts
+++ b/studio/frontend/src/i18n/locales/ja.ts
@@ -876,7 +876,7 @@ export const ja = {
tokensIn: "送信トークン",
tokensOut: "生成トークン",
totalTokens: "合計トークン",
- studioChatTokens: "Studio Chat トークン",
+ studioChatTokens: "Unsloth Chat トークン",
apiTokens: "API トークン",
cachedTokens: "キャッシュされたトークン",
cachedValue: "{tokens} (入力の {percent}%)",
@@ -1327,7 +1327,7 @@ export const ja = {
title: "ウェブ検索",
images: "ウェブ検索の画像を表示",
imagesDescription:
- "ウェブ検索で画像も取得し、回答に列挙された項目ごとに1枚ずつ探します。サムネイルは Studio が取得して縮小するため、ブラウザが画像ホストに接続することはありません。",
+ "ウェブ検索で画像も取得し、回答に列挙された項目ごとに1枚ずつ探します。サムネイルは Unsloth が取得して縮小するため、ブラウザが画像ホストに接続することはありません。",
},
artifacts: {
title: "Canvas",
diff --git a/studio/frontend/src/i18n/locales/ko.ts b/studio/frontend/src/i18n/locales/ko.ts
index 96b18c57413..e72dd14ebb8 100644
--- a/studio/frontend/src/i18n/locales/ko.ts
+++ b/studio/frontend/src/i18n/locales/ko.ts
@@ -889,7 +889,7 @@ export const ko = {
tokensIn: "보낸 토큰",
tokensOut: "생성된 토큰",
totalTokens: "전체 토큰",
- studioChatTokens: "Studio Chat 토큰",
+ studioChatTokens: "Unsloth Chat 토큰",
apiTokens: "API 토큰",
cachedTokens: "캐시된 토큰",
cachedValue: "{tokens}(입력의 {percent}%)",
diff --git a/studio/frontend/src/i18n/locales/pt-br.ts b/studio/frontend/src/i18n/locales/pt-br.ts
index 26f6500c0d6..5a6137a5fae 100644
--- a/studio/frontend/src/i18n/locales/pt-br.ts
+++ b/studio/frontend/src/i18n/locales/pt-br.ts
@@ -903,7 +903,7 @@ export const ptBR = {
tokensIn: "Tokens enviados",
tokensOut: "Tokens gerados",
totalTokens: "Total de tokens",
- studioChatTokens: "Tokens do Studio Chat",
+ studioChatTokens: "Tokens do Unsloth Chat",
apiTokens: "Tokens da API",
cachedTokens: "Tokens em cache",
cachedValue: "{tokens} ({percent}% da entrada)",
@@ -1354,7 +1354,7 @@ export const ptBR = {
title: "Busca na web",
images: "Mostrar imagens da busca na web",
imagesDescription:
- "Permite que a busca na web retorne imagens e busca uma para cada item que uma resposta lista. As miniaturas são baixadas e redimensionadas pelo Studio, então o navegador nunca acessa os servidores de imagens.",
+ "Permite que a busca na web retorne imagens e busca uma para cada item que uma resposta lista. As miniaturas são baixadas e redimensionadas pelo Unsloth, então o navegador nunca acessa os servidores de imagens.",
},
artifacts: {
title: "Canvas",
diff --git a/studio/frontend/src/i18n/locales/ru.ts b/studio/frontend/src/i18n/locales/ru.ts
index e268527cc66..79245505a49 100644
--- a/studio/frontend/src/i18n/locales/ru.ts
+++ b/studio/frontend/src/i18n/locales/ru.ts
@@ -896,7 +896,7 @@ export const ru = {
tokensIn: "Отправлено токенов",
tokensOut: "Сгенерировано токенов",
totalTokens: "Всего токенов",
- studioChatTokens: "Токены Studio Chat",
+ studioChatTokens: "Токены Unsloth Chat",
apiTokens: "Токены API",
cachedTokens: "Токенов из кеша",
cachedValue: "{tokens} ({percent}% ввода)",
@@ -1351,7 +1351,7 @@ export const ru = {
title: "Веб-поиск",
images: "Показывать изображения из веб-поиска",
imagesDescription:
- "Позволяет веб-поиску возвращать изображения и подбирает по одному для каждого пункта, который перечисляет ответ. Миниатюры загружает и уменьшает Studio, поэтому браузер никогда не обращается к хостам изображений.",
+ "Позволяет веб-поиску возвращать изображения и подбирает по одному для каждого пункта, который перечисляет ответ. Миниатюры загружает и уменьшает Unsloth, поэтому браузер никогда не обращается к хостам изображений.",
},
artifacts: {
title: "Canvas",
diff --git a/studio/frontend/src/i18n/locales/zh-CN.ts b/studio/frontend/src/i18n/locales/zh-CN.ts
index 56e5fe03baf..d71ae28d032 100644
--- a/studio/frontend/src/i18n/locales/zh-CN.ts
+++ b/studio/frontend/src/i18n/locales/zh-CN.ts
@@ -872,7 +872,7 @@ export const zhCN = {
tokensIn: "发送的 token",
tokensOut: "生成的 token",
totalTokens: "Token 总数",
- studioChatTokens: "Studio Chat token",
+ studioChatTokens: "Unsloth Chat token",
apiTokens: "API token",
cachedTokens: "缓存的 token",
cachedValue: "{tokens}(占输入的 {percent}%)",
@@ -1311,7 +1311,7 @@ export const zhCN = {
title: "网页搜索",
images: "显示网页搜索图片",
imagesDescription:
- "让网页搜索返回图片,并为回答中列出的每一项各获取一张。缩略图由 Studio 获取并缩放,浏览器不会直接访问图片来源。",
+ "让网页搜索返回图片,并为回答中列出的每一项各获取一张。缩略图由 Unsloth 获取并缩放,浏览器不会直接访问图片来源。",
},
artifacts: {
title: "Canvas",
diff --git a/studio/frontend/src/index.css b/studio/frontend/src/index.css
index 2375e0f77f2..f02a11978a2 100644
--- a/studio/frontend/src/index.css
+++ b/studio/frontend/src/index.css
@@ -2559,7 +2559,7 @@ html[data-chat-font] .aui-root {
* #8977 disproves. It is kept for the flicker alone. Do not reach
* back for `content-visibility: auto` here: WebKit below Safari 26
* cannot find skipped content with find-in-page (webkit.org/b/283846)
- * and Studio has no in-thread search to fall back on. Containment on
+ * and Unsloth has no in-thread search to fall back on. Containment on
* the message roots was measured as no help either; what grows with
* thread length is inherited-property style recalc, not layout.
*
diff --git a/studio/frontend/src/lib/floating-panel-order.ts b/studio/frontend/src/lib/floating-panel-order.ts
index 2cabba7e656..7ac9d5c7114 100644
--- a/studio/frontend/src/lib/floating-panel-order.ts
+++ b/studio/frontend/src/lib/floating-panel-order.ts
@@ -13,7 +13,7 @@
* thing deciding whether the panel underneath can be reached is z-index.
*
* So they share one layer and the one the user touched last comes forward,
- * which is what every window manager does and what the rest of Studio's
+ * which is what every window manager does and what the rest of Unsloth's
* corner overlays already imply -- the notification stack yields to whichever
* panel is published under it rather than fighting for a number.
*
diff --git a/studio/frontend/src/lib/release-body-links.ts b/studio/frontend/src/lib/release-body-links.ts
index 8ddb167aed5..680bb616234 100644
--- a/studio/frontend/src/lib/release-body-links.ts
+++ b/studio/frontend/src/lib/release-body-links.ts
@@ -3,7 +3,7 @@
/**
* A relative link in a release body means "somewhere in the Unsloth
- * repository", but inside Studio it would resolve against Studio's own origin.
+ * repository", but inside Unsloth it would resolve against Unsloth's own origin.
* Rewriting to absolute repository URLs makes them behave the way GitHub
* renders the release page.
*/
diff --git a/studio/frontend/src/lib/release-notes-preview.ts b/studio/frontend/src/lib/release-notes-preview.ts
index 775e48c3915..8fb8456de99 100644
--- a/studio/frontend/src/lib/release-notes-preview.ts
+++ b/studio/frontend/src/lib/release-notes-preview.ts
@@ -954,7 +954,7 @@ function collectBullets(markdown: string): {
}
const bullet = BULLET.exec(line.text);
// Only an ordered list starting at 1 may interrupt a paragraph, so "2. Restart
- // Studio" under prose is prose. A list item is not a paragraph.
+ // Unsloth" under prose is prose. A list item is not a paragraph.
const interrupts =
collector.current === null &&
collector.paragraph !== "" &&
diff --git a/studio/frontend/src/lib/z-layers.ts b/studio/frontend/src/lib/z-layers.ts
index 9d0f8b8d1c7..da09cd812f9 100644
--- a/studio/frontend/src/lib/z-layers.ts
+++ b/studio/frontend/src/lib/z-layers.ts
@@ -2,7 +2,7 @@
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
/**
- * The stacking order of Studio's full-viewport surfaces, in one place.
+ * The stacking order of Unsloth's full-viewport surfaces, in one place.
*
* Everything here is a `position: fixed` surface that covers whatever is under
* it, so the only thing deciding who wins is the number. Written down together
diff --git a/studio/frontend/tests/api-monitor-new-traffic.test.ts b/studio/frontend/tests/api-monitor-new-traffic.test.ts
index eedd40820ae..8d0808ec97e 100644
--- a/studio/frontend/tests/api-monitor-new-traffic.test.ts
+++ b/studio/frontend/tests/api-monitor-new-traffic.test.ts
@@ -88,7 +88,7 @@ test("a fresh id in a later snapshot opens the panel", () => {
assert.equal(opened, true);
});
-test("Studio's own chat never opens the panel", () => {
+test("Unsloth's own chat never opens the panel", () => {
const opened = observeResponse(
watchFrom(WATCH_AT),
snapshot([entry("uireq", "completed", SERVER_NOW - 2, false)]),
diff --git a/studio/frontend/tests/audio-catalog-decodable.test.ts b/studio/frontend/tests/audio-catalog-decodable.test.ts
index 88f5309119a..203381cad6b 100644
--- a/studio/frontend/tests/audio-catalog-decodable.test.ts
+++ b/studio/frontend/tests/audio-catalog-decodable.test.ts
@@ -4,7 +4,7 @@
// Every model the Generate picker offers must be one the backend can actually decode.
// Llasa was offered and could not be: it speaks XCodec2 (65,536 <|s_N|> tokens), which is
// in neither _AUDIO_TOKEN_PATTERNS nor AudioCodecManager, so selecting it loaded the model
-// and then failed with "not a supported TTS model". Probed live against a running Studio,
+// and then failed with "not a supported TTS model". Probed live against a running Unsloth,
// unsloth/Llasa-1B reports is_audio=false while every other curated TTS row reports its
// codec, which is the same shape as the Orpheus defect this PR was opened to fix.
diff --git a/studio/frontend/tests/audio-picker-policy.test.ts b/studio/frontend/tests/audio-picker-policy.test.ts
index fcb7fe772f1..6c596b9e4a5 100644
--- a/studio/frontend/tests/audio-picker-policy.test.ts
+++ b/studio/frontend/tests/audio-picker-policy.test.ts
@@ -298,7 +298,7 @@ test("community ASR only offers checkpoints the Transformers Whisper sidecar can
);
// Llasa was in this list and should not have been. It speaks XCodec2, which
// AudioCodecManager cannot decode and _AUDIO_TOKEN_PATTERNS cannot even recognise, so
- // probing a running Studio reports unsloth/Llasa-1B as is_audio=false. Admitting the row
+ // probing a running Unsloth reports unsloth/Llasa-1B as is_audio=false. Admitting the row
// produced a model that loaded and then failed at generation.
assert.equal(
communityAudioRowIsRunnable({
diff --git a/studio/frontend/tests/chat-remembers-its-model.test.ts b/studio/frontend/tests/chat-remembers-its-model.test.ts
index 3cfd0d987ff..9a2e9b34d69 100644
--- a/studio/frontend/tests/chat-remembers-its-model.test.ts
+++ b/studio/frontend/tests/chat-remembers-its-model.test.ts
@@ -191,7 +191,7 @@ test("the notice clears the chat header instead of rendering underneath it", ()
// bg-background. Per CSS painting order a positioned element is painted above every
// non-positioned one whatever the source order, so the whole bar sat underneath the
// header and only the 10px the header's `right-[10px]` leaves uncovered was visible.
- // Measured on a built Studio: the notice's rect was {x:280,y:0,w:1220,h:37}, exactly
+ // Measured on a built Unsloth: the notice's rect was {x:280,y:0,w:1220,h:37}, exactly
// the header's own band, and the before/after screenshots differed by a 10x37 sliver.
const header = slice(page, "chat-header-fade", "</div>");
assert.match(header, /z-40/, "the header is still the z-40 absolute overlay");
@@ -220,7 +220,7 @@ test("the notice clears the chat header instead of rendering underneath it", ()
});
test("the conversation reserves the space the notice overlay takes", () => {
- // Measured on a built Studio before this: the viewport reserved exactly the
+ // Measured on a built Unsloth before this: the viewport reserved exactly the
// header's 48px, the notice sat opaque at y 48..85, and the first message's own
// rect started at y=48 -- elementFromPoint returned the notice for every sample
// across its band, in a 2-turn chat AND in a 40-turn chat scrolled to the top.
@@ -268,7 +268,7 @@ test("the research panel reserves the notice's height too", () => {
// the header height for exactly the same reason, which lands its header at the
// notice's top edge.
//
- // Measured on a Studio built from this tree, saved chat on claude-opus-4-5 with
+ // Measured on an Unsloth built from this tree, saved chat on claude-opus-4-5 with
// the composer on gpt-5-mini and the research panel open: notice rect
// {top:48,bottom:84,left:280,right:1590}, aside {top:48,left:1099.41,right:1600}
// -> 36px x 490.59px of the aside covered, which is its entire header band.
diff --git a/studio/frontend/tests/code-plugin-incremental.test.ts b/studio/frontend/tests/code-plugin-incremental.test.ts
index 6e7e7a0223f..1daa3b374fb 100644
--- a/studio/frontend/tests/code-plugin-incremental.test.ts
+++ b/studio/frontend/tests/code-plugin-incremental.test.ts
@@ -300,7 +300,7 @@ test("a failed grammar load releases pending callbacks before retry", async () =
let staleCallbacks = 0;
try {
console.error = (message?: unknown) => {
- if (message === "[Studio Code] Failed to highlight code:") {
+ if (message === "[Unsloth Code] Failed to highlight code:") {
reportFailure();
}
};
@@ -363,7 +363,7 @@ test("a transiently failed grammar load is retried under the same cache key", as
const originalError = console.error;
try {
console.error = (message?: unknown) => {
- if (message === "[Studio Code] Failed to highlight code:") reportFailure();
+ if (message === "[Unsloth Code] Failed to highlight code:") reportFailure();
};
assert.equal(
plugin.highlight({ code: "value = 1\n", language, themes }, () => {
diff --git a/studio/frontend/tests/code-tool-placement.test.ts b/studio/frontend/tests/code-tool-placement.test.ts
index 3560cf5c593..0405cfa0b32 100644
--- a/studio/frontend/tests/code-tool-placement.test.ts
+++ b/studio/frontend/tests/code-tool-placement.test.ts
@@ -3,18 +3,18 @@
// Where the Code pill runs code.
//
-// Before Studio's tool loop reached the general external providers, only
+// Before Unsloth's tool loop reached the general external providers, only
// openai_codex carried studio_tools, so `codeToolsEnabled` on an OpenAI,
// Anthropic or Gemini connection fell through to the hosted branch and sent
// `code_execution` -- the model's code ran in the PROVIDER's sandbox. Now that
-// those providers take the Studio branch, the same stored pill would send
+// those providers take the Unsloth branch, the same stored pill would send
// ["python", "terminal"] and run the model's code on the USER's machine. The
// toggle is persisted (unsloth_chat_code_tools_enabled), so nobody re-consents:
// the trust boundary moves during an update, with nothing in the composer or
// the stream saying so.
//
// The rule this file pins: a connection that has its own sandbox keeps it.
-// Studio's local python/terminal are for connections that have none.
+// Unsloth's local python/terminal are for connections that have none.
import assert from "node:assert/strict";
import { readFileSync } from "node:fs";
@@ -58,7 +58,7 @@ test("a provider with a sandbox its MODEL cannot use runs nothing, not local cod
);
});
-test("a provider with no sandbox uses Studio's own tools", () => {
+test("a provider with no sandbox uses Unsloth's own tools", () => {
// llama.cpp / vLLM / Ollama / custom, and the cloud providers that ship no
// code sandbox. Local execution is the only meaning the pill can have there,
// it is what openai_codex has always done, and it paints tool cards under the
@@ -107,13 +107,13 @@ test("the pill being off asks for nothing on either side", () => {
// encryption key, so the structural property is read out of the source.
function studioToolsBranch(): string {
const start = SOURCE.indexOf("...(ragEnabled || projectRagEnabled\n");
- assert.ok(start > 0, "the Studio-tools enabled_tools list moved");
+ assert.ok(start > 0, "the Unsloth-tools enabled_tools list moved");
const end = SOURCE.indexOf("mcp_enabled:", start);
- assert.ok(end > start, "the Studio-tools branch moved");
+ assert.ok(end > start, "the Unsloth-tools branch moved");
return SOURCE.slice(start, end);
}
-test("the Studio branch never hardcodes local code tools", () => {
+test("the Unsloth branch never hardcodes local code tools", () => {
const branch = studioToolsBranch();
assert.doesNotMatch(
@@ -127,9 +127,9 @@ test("the Studio branch never hardcodes local code tools", () => {
assert.match(branch, /\.\.\.hostedCodeToolsForThisTurn/);
});
-test("the branch is only taken when a tool Studio itself can run is on", () => {
+test("the branch is only taken when a tool Unsloth itself can run is on", () => {
// Code alone on a hosted-sandbox provider is a hosted request: it must reach
- // the hosted branch, which sends no permission_mode. Sending the Studio body
+ // the hosted branch, which sends no permission_mode. Sending the Unsloth body
// for it would ask the backend to confirm tool calls on a passthrough request,
// which routes/inference.py answers with a 400.
const gate = SOURCE.slice(
@@ -137,20 +137,20 @@ test("the branch is only taken when a tool Studio itself can run is on", () => {
SOURCE.indexOf("enable_tools: true", SOURCE.indexOf("...(supportsStudioToolsForThisTurn &&")),
);
- assert.ok(gate.length > 0, "the Studio-tools gate moved");
+ assert.ok(gate.length > 0, "the Unsloth-tools gate moved");
assert.doesNotMatch(
gate,
/^\s*codeToolsEnabled \|\|$/m,
- "a bare codeToolsEnabled sends the Studio body for a hosted-only turn",
+ "a bare codeToolsEnabled sends the Unsloth body for a hosted-only turn",
);
assert.match(gate, /studioLocalCodeTools\.length > 0/);
});
// ── Whether the pill is offered at all ─────────────────────────────
-// Until Studio's loop reached the general external providers, the composer
+// Until Unsloth's loop reached the general external providers, the composer
// keyed the Code pill on the hosted flag alone, so a model without the hosted
-// sandbox simply did not offer it. Keying it on the Studio-tools flag instead
+// sandbox simply did not offer it. Keying it on the Unsloth-tools flag instead
// offered it everywhere, including where the rule above deliberately runs
// nothing, and the user got a lit toggle that sent enable_tools: false.
@@ -176,7 +176,7 @@ test("a model that cannot use its provider's sandbox offers nothing", () => {
);
});
-test("a connection with no sandbox of its own runs Studio's tools", () => {
+test("a connection with no sandbox of its own runs Unsloth's tools", () => {
assert.equal(
codeToolCanRun({
hostedCodeExecutionForThisTurn: false,
diff --git a/studio/frontend/tests/codex-models-endpoint-skew.test.ts b/studio/frontend/tests/codex-models-endpoint-skew.test.ts
index 73ccff69eb5..1cf5cefc182 100644
--- a/studio/frontend/tests/codex-models-endpoint-skew.test.ts
+++ b/studio/frontend/tests/codex-models-endpoint-skew.test.ts
@@ -121,7 +121,7 @@ test("a body without a source field is not mistaken for a plan catalog", async (
});
test("a gateway 401 on the unknown path still keeps the selection", async () => {
- // Kept last: authFetch reads every 401 as an expired Studio session and runs the
+ // Kept last: authFetch reads every 401 as an expired Unsloth session and runs the
// refresh-and-retry path, which is why the backend answers a dead ChatGPT connection
// with 200 + source:"reauthorization_required" instead of a 401. Whatever that path
// decides, the picker must still land on the seed with the selection intact.
diff --git a/studio/frontend/tests/download-eta-persist-compat.test.ts b/studio/frontend/tests/download-eta-persist-compat.test.ts
index cc6773f4346..790ca83a156 100644
--- a/studio/frontend/tests/download-eta-persist-compat.test.ts
+++ b/studio/frontend/tests/download-eta-persist-compat.test.ts
@@ -25,7 +25,7 @@ Object.assign(globalThis.window, {
},
});
-/** Exactly what a Studio from before this change wrote: no `etaSeconds` key. */
+/** Exactly what an Unsloth from before this change wrote: no `etaSeconds` key. */
function legacyJob(repoId: string, extra: Record<string, unknown> = {}) {
return {
key: `model:${repoId}`,
@@ -86,7 +86,7 @@ test("a hostile persisted etaSeconds cannot reach the UI", () => {
}
});
-test("what this version writes back carries no etaSeconds, so an older Studio reads it unchanged", () => {
+test("what this version writes back carries no etaSeconds, so an older Unsloth reads it unchanged", () => {
patchJob(keyOf("org/legacy"), { etaSeconds: 1234, bytesPerSec: 5_000_000 });
assert.equal(getState().jobs[keyOf("org/legacy")].etaSeconds, 1234);
@@ -102,7 +102,7 @@ test("what this version writes back carries no etaSeconds, so an older Studio re
);
// The rate has never been persisted either; the ETA follows the same rule.
assert.ok(!("bytesPerSec" in job), "persisted record leaked bytesPerSec");
- // Everything an older Studio does read is still there and unchanged.
+ // Everything an older Unsloth does read is still there and unchanged.
assert.equal(job.downloadedBytes, 4_000_000_000);
assert.equal(job.expectedBytes, 8_000_000_000);
assert.equal(job.state, "running");
diff --git a/studio/frontend/tests/host-artifact-policy.test.ts b/studio/frontend/tests/host-artifact-policy.test.ts
index ca8c2862563..702d7a39b9c 100644
--- a/studio/frontend/tests/host-artifact-policy.test.ts
+++ b/studio/frontend/tests/host-artifact-policy.test.ts
@@ -79,7 +79,7 @@ test("a gguf-only host drops the one pipeline the backend refuses, and nothing e
});
test("a gguf-only host keeps every non-GGUF row the backend can still load", () => {
- // Each of these is a load Studio supports on Apple Silicon or CPU today: the diffusion
+ // Each of these is a load Unsloth supports on Apple Silicon or CPU today: the diffusion
// pipelines are device-neutral (video_capability() certifies Apple Silicon, and
// diffusion_device.py picks MPS bfloat16 for exactly these), and the STT rows run through
// the whisper.cpp sidecar, whose format label in the catalog is informational only.
diff --git a/studio/frontend/tests/hosted-image-tool-with-studio-tools.test.ts b/studio/frontend/tests/hosted-image-tool-with-studio-tools.test.ts
index 2b3a782505f..9b67a3bf536 100644
--- a/studio/frontend/tests/hosted-image-tool-with-studio-tools.test.ts
+++ b/studio/frontend/tests/hosted-image-tool-with-studio-tools.test.ts
@@ -8,7 +8,7 @@ import test from "node:test";
// The request body is built deep inside the adapter's run closure, which needs
// a live runtime, a provider store and an encryption key to reach. The property
-// that regressed is structural though: which names the Studio-tools branch puts
+// that regressed is structural though: which names the Unsloth-tools branch puts
// in enabled_tools. So this reads that branch out of the source, the same way
// the backend's route tests read the gate out of routes/inference.py.
const SOURCE = readFileSync(
@@ -16,22 +16,22 @@ const SOURCE = readFileSync(
"utf8",
);
-// The branch taken when the provider runs Studio's tools. Bounded by the
+// The branch taken when the provider runs Unsloth's tools. Bounded by the
// hosted-only branch that follows it, so the two cannot be confused.
function studioToolsBranch(): string {
const start = SOURCE.indexOf('...(ragEnabled || projectRagEnabled\n');
- assert.ok(start > 0, "the Studio-tools enabled_tools list moved");
+ assert.ok(start > 0, "the Unsloth-tools enabled_tools list moved");
const end = SOURCE.indexOf("mcp_enabled:", start);
- assert.ok(end > start, "the Studio-tools branch moved");
+ assert.ok(end > start, "the Unsloth-tools branch moved");
return SOURCE.slice(start, end);
}
// Images and Fetch have their own toggles and no local implementation. Before
-// this PR an OpenAI or Gemini connection never took the Studio branch, so the
+// this PR an OpenAI or Gemini connection never took the Unsloth branch, so the
// hosted branch below always carried them; now that Search, Code, MCP or a
-// project's automatic RAG selects the Studio branch instead, a list of purely
+// project's automatic RAG selects the Unsloth branch instead, a list of purely
// local names would leave a lit Images pill out of the request entirely.
-test("the Studio-tools branch still asks for the hosted tools Studio cannot run", () => {
+test("the Unsloth-tools branch still asks for the hosted tools Unsloth cannot run", () => {
const branch = studioToolsBranch();
assert.match(branch, /imageGenerationEnabledForThisTurn/);
@@ -40,13 +40,13 @@ test("the Studio-tools branch still asks for the hosted tools Studio cannot run"
assert.match(branch, /"web_fetch"/);
});
-// The other half of the same rule: Studio runs search itself on this path, so
+// The other half of the same rule: Unsloth runs search itself on this path, so
// asking the provider for its own would run both and bill for theirs. Code is
// NOT in that set -- `code_execution` is the provider's sandbox and
// python/terminal are this machine, so the two are never both requested and
// which one a turn asks for is decided in code-tool-placement.ts (see
// tests/code-tool-placement.test.ts).
-test("it does not ask the provider for the tools Studio is running locally", () => {
+test("it does not ask the provider for the tools Unsloth is running locally", () => {
const branch = studioToolsBranch();
assert.match(branch, /toolsEnabled \? \["web_search"\]/);
diff --git a/studio/frontend/tests/keyboard-shortcuts.test.ts b/studio/frontend/tests/keyboard-shortcuts.test.ts
index a232006c895..b339ce17167 100644
--- a/studio/frontend/tests/keyboard-shortcuts.test.ts
+++ b/studio/frontend/tests/keyboard-shortcuts.test.ts
@@ -459,7 +459,7 @@ test("the browsers' own run on macOS is reserved there and only there", () => {
// Three actions whose macOS chord Chrome owns: view source, the element picker
// and Page Setup. Each keeps its letter on the run the composer pair uses, so
// the mnemonic survives the platform swap.
-test("view source, the element picker and Page Setup carry no Studio action", () => {
+test("view source, the element picker and Page Setup carry no Unsloth action", () => {
for (const [id, mac, other] of [
["toggleApiMonitor", "Ctrl+Shift+KeyU", "Mod+Alt+Shift+KeyM"],
["copySessionId", "Ctrl+Shift+KeyC", "Mod+Alt+KeyC"],
@@ -505,7 +505,7 @@ test("no default sits on Linux's own text-composition prefix", () => {
});
test("no default takes a chord the browser owns without a reason", () => {
- // The exceptions are the spec chords Studio keeps for the desktop build,
+ // The exceptions are the spec chords Unsloth keeps for the desktop build,
// where they work; everything else has to be reachable on the web.
const deliberate = new Set([
"Mod+KeyN",
diff --git a/studio/frontend/tests/legacy-load-settings-migration.test.ts b/studio/frontend/tests/legacy-load-settings-migration.test.ts
index 6de4cd753e0..8682835952f 100644
--- a/studio/frontend/tests/legacy-load-settings-migration.test.ts
+++ b/studio/frontend/tests/legacy-load-settings-migration.test.ts
@@ -15,8 +15,8 @@ const { store } = installLocalStorageFake();
* `unsloth_model_configs` map.
*
* Until now this had no test at all. Its only coverage was one step of
- * tests/studio/playwright_model_config.py, which needs a browser, a booted Studio and a
- * downloaded GGUF, and which races that Studio's own network traffic -- so a defect here
+ * tests/studio/playwright_model_config.py, which needs a browser, a booted Unsloth and a
+ * downloaded GGUF, and which races that Unsloth's own network traffic -- so a defect here
* surfaced as an intermittent red on a job nobody could run locally, and the assertion it
* failed ("not migrated into unsloth_model_configs") named the migration for damage the
* migration had not done. These pin the contract directly, in milliseconds.
diff --git a/studio/frontend/tests/llama-extra-args-diagnostics.test.ts b/studio/frontend/tests/llama-extra-args-diagnostics.test.ts
index c360a4d73ed..ae60eccda9c 100644
--- a/studio/frontend/tests/llama-extra-args-diagnostics.test.ts
+++ b/studio/frontend/tests/llama-extra-args-diagnostics.test.ts
@@ -929,7 +929,7 @@ test("a catalogued flag left without its value is refused", () => {
});
test("an unverified flag keeps the benefit of the doubt at the end", () => {
- // A build this Studio could not probe, or a flag newer than the help it read:
+ // A build this Unsloth could not probe, or a flag newer than the help it read:
// calling either a missing value would disable Load over a launch that works.
const unverified: LlamaFlagCatalog = {
flags: {},
diff --git a/studio/frontend/tests/markdown-block-boundary.test.ts b/studio/frontend/tests/markdown-block-boundary.test.ts
index 362859bec96..0738154462d 100644
--- a/studio/frontend/tests/markdown-block-boundary.test.ts
+++ b/studio/frontend/tests/markdown-block-boundary.test.ts
@@ -16,7 +16,7 @@ import {
* through `React.lazy`, and it fetches them the first time a reply contains
* that construct. A rejected import rethrows during render. Before the boundary
* these tests protect, the nearest catcher was TanStack Router's, so ONE chunk
- * that would not load replaced all of Studio with "Something went wrong!",
+ * that would not load replaced all of Unsloth with "Something went wrong!",
* unmounted the assistant-ui runtime with it, and left the reply's stream with
* nothing consuming it.
*
@@ -340,7 +340,7 @@ test("every markdown block is rendered inside the boundary", () => {
// quiet revert.
assert.ok(
wrappersAroundBlockContent().includes("MarkdownBlockBoundary"),
- "the block component is rendered outside MarkdownBlockBoundary, so a fence whose highlighter fails to load unmounts all of Studio through the router's error boundary again",
+ "the block component is rendered outside MarkdownBlockBoundary, so a fence whose highlighter fails to load unmounts all of Unsloth through the router's error boundary again",
);
});
diff --git a/studio/frontend/tests/markdown-block-remount-on-complete.test.ts b/studio/frontend/tests/markdown-block-remount-on-complete.test.ts
index a3467e5a960..a9be19bc951 100644
--- a/studio/frontend/tests/markdown-block-remount-on-complete.test.ts
+++ b/studio/frontend/tests/markdown-block-remount-on-complete.test.ts
@@ -36,7 +36,7 @@ const ANIMATION_FREE_HELPER_RE = /withoutStreamdownAnimationPlugin/;
const NULL_ANIMATION_PLUGIN_RE = /animatePlugin:\s*null/;
// The block component is now rendered inside MarkdownBlockBoundary, because a
// lazy chunk that fails to load anywhere in a reply used to unmount all of
-// Studio through the router's error boundary. `memo` is still the OUTERMOST
+// Unsloth through the router's error boundary. `memo` is still the OUTERMOST
// wrapper, which is the property this pins: on a memo hit React skips the
// boundary and the block together, exactly as it did before. Pinned to the new
// spelling rather than loosened, because a version with memo INSIDE the boundary
diff --git a/studio/frontend/tests/media-idle-unload-api-only.test.ts b/studio/frontend/tests/media-idle-unload-api-only.test.ts
index f1a218cd3a5..a1fe2939ce6 100644
--- a/studio/frontend/tests/media-idle-unload-api-only.test.ts
+++ b/studio/frontend/tests/media-idle-unload-api-only.test.ts
@@ -2,7 +2,7 @@
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
// "Only unload models loaded by the API" vetoes the media TTL outright: every resident image
-// or video model is one the user loaded from Studio, so there is nothing the setting would
+// or video model is one the user loaded from Unsloth, so there is nothing the setting would
// let go of. The switch that lifts the veto used to render only while the CHAT idle unload
// was active, so a user who had turned that off after enabling the option saw the media row
// go straight to "paused" with no control anywhere to explain it or undo it -- the feature
diff --git a/studio/frontend/tests/openwebui-import.test.ts b/studio/frontend/tests/openwebui-import.test.ts
index 160f60bb5d6..abaf77339a0 100644
--- a/studio/frontend/tests/openwebui-import.test.ts
+++ b/studio/frontend/tests/openwebui-import.test.ts
@@ -993,7 +993,7 @@ test("a disconnected cycle does not displace the branch the user had open", () =
const conversation = openWebUIRecordToConversation(record, "fallback");
assert.ok(conversation);
assert.equal(conversation.messages.length, 4);
- // Studio reopens on the last message, so it has to be the selected branch.
+ // Unsloth reopens on the last message, so it has to be the selected branch.
assert.equal(text(conversation, conversation.messages.length - 1), "the answer");
});
diff --git a/studio/frontend/tests/pinned-models-reorder.test.ts b/studio/frontend/tests/pinned-models-reorder.test.ts
index 12b29665bcf..6c4827d5f0c 100644
--- a/studio/frontend/tests/pinned-models-reorder.test.ts
+++ b/studio/frontend/tests/pinned-models-reorder.test.ts
@@ -30,7 +30,7 @@ function storedPinned(): string[] | null {
}
/**
- * Another Studio window rewriting the pin list: the record changes underneath
+ * Another Unsloth window rewriting the pin list: the record changes underneath
* this window and a "storage" event follows, which is the only way the list can
* change without this window's store doing it. Goes through the real listener,
* so what the store learns is exactly what a second window would teach it.
@@ -303,7 +303,7 @@ test("outside a drag session movePinned still persists on every call", () => {
// --- another window writing mid-drag ---------------------------------------
// pinned-models installs a window "storage" listener that replaces the list
-// wholesale, so a second Studio window can rewrite the order underneath a drag
+// wholesale, so a second Unsloth window can rewrite the order underneath a drag
// that is still in flight. A snapshot taken before that write no longer
// describes what is in localStorage, so restoring it would put this window out
// of step with the record and the next write from here would clobber the other
diff --git a/studio/frontend/tests/project-chat-run-keepalive.test.ts b/studio/frontend/tests/project-chat-run-keepalive.test.ts
index ba313130167..54ba53f11f3 100644
--- a/studio/frontend/tests/project-chat-run-keepalive.test.ts
+++ b/studio/frontend/tests/project-chat-run-keepalive.test.ts
@@ -335,7 +335,7 @@ test("the landing does not restore a chat that was deleted while it was away", (
test("no restore path puts a deleted chat back on screen", () => {
// Three places put a retained id back: ProjectLanding's resume effect (pinned above),
// NonceThreadResumeRestore, and the remembered-nonce reopen. All three ask the RUNTIME
- // whether it still knows the thread, and Studio deletes by tombstoning storage rather than
+ // whether it still knows the thread, and Unsloth deletes by tombstoning storage rather than
// calling runtime.threads.delete(), so all three still answer yes after a delete. Guarding
// one fixes nothing.
const restore = componentSource(provider, "function NonceThreadResumeRestore({");
@@ -354,7 +354,7 @@ test("no restore path puts a deleted chat back on screen", () => {
test("a delayed first send keeps the creation inputs it was sent under", () => {
// The adapter is rebuilt every render and handed to the core via __internal_setOptions, so
// initialize() reads the provider's LATEST projectId. send() awaits every incomplete
- // attachment before handleSend and Studio's PDF/DOCX/text adapters extract there, so with
+ // attachment before handleSend and Unsloth's PDF/DOCX/text adapters extract there, so with
// the provider surviving a project switch a document send materializes in whichever project
// is on screen by then.
const thread = readFileSync(
diff --git a/studio/frontend/tests/provider-capabilities-current-models.test.ts b/studio/frontend/tests/provider-capabilities-current-models.test.ts
index 208aa15af38..3f03142b496 100644
--- a/studio/frontend/tests/provider-capabilities-current-models.test.ts
+++ b/studio/frontend/tests/provider-capabilities-current-models.test.ts
@@ -76,7 +76,7 @@ test("the gpt-5.6 family gets the gpt-5.5 reasoning ladder", () => {
}
});
-test("ChatGPT subscription models expose Studio-owned search and code tools", () => {
+test("ChatGPT subscription models expose Unsloth-owned search and code tools", () => {
setProviderModelCapabilities("openai_codex", {
"gpt-5.3-codex-spark": { vision: false, studio_tools: true },
@@ -154,7 +154,7 @@ test("generic Custom connections use only their explicit max-output override", (
32768,
);
- // the override is provider-owned, so values above Studio's context-length convention
+ // the override is provider-owned, so values above Unsloth's context-length convention
// stay valid as long as they round-trip safely through JSON
assert.equal(getExternalMaxOutputTokens("custom", "model", 1048577), 1048577);
assert.equal(
diff --git a/studio/frontend/tests/reload-snapshot.test.ts b/studio/frontend/tests/reload-snapshot.test.ts
index 6dce333f8e2..f0c86f883ff 100644
--- a/studio/frontend/tests/reload-snapshot.test.ts
+++ b/studio/frontend/tests/reload-snapshot.test.ts
@@ -1055,7 +1055,7 @@ test("keeps what a display:contents wrapper renders, drops what is offscreen", (
tag: "div",
display: "contents",
children: [
- { tag: "main", rect: [0, 1440, 900, 0], text: "Studio is ready" },
+ { tag: "main", rect: [0, 1440, 900, 0], text: "Unsloth is ready" },
],
},
{ tag: "aside", rect: [-400, 1440, -100, 0], text: "Scrolled past" },
@@ -1068,7 +1068,7 @@ test("keeps what a display:contents wrapper renders, drops what is offscreen", (
});
const { html } = storedSnapshot(environment.storage);
- assert.match(html, /Studio is ready/);
+ assert.match(html, /Unsloth is ready/);
assert.doesNotMatch(html, /Scrolled past/);
assert.doesNotMatch(html, /Collapsed/);
});
diff --git a/studio/frontend/tests/remend-complete-markdown.test.ts b/studio/frontend/tests/remend-complete-markdown.test.ts
index e035b26d5b3..d2c63dee317 100644
--- a/studio/frontend/tests/remend-complete-markdown.test.ts
+++ b/studio/frontend/tests/remend-complete-markdown.test.ts
@@ -14,7 +14,7 @@ import { Streamdown } from "streamdown";
/**
* WHY THIS FILE EXISTS. `remend` is the incomplete-markdown repair Streamdown runs over a message
- * before parsing it, and Studio runs it on every SETTLED body: `markdown-text.tsx` passes
+ * before parsing it, and Unsloth runs it on every SETTLED body: `markdown-text.tsx` passes
* `parseIncompleteMarkdown={!incrementalRender}` and `incrementalRender` is null exactly when the
* message is not streaming. So this dependency decides what a finished message LOOKS like, not
* only what a half-written one looks like, and a version bump is a rendering change.
@@ -38,7 +38,7 @@ import { Streamdown } from "streamdown";
// remend 1.3.0 does not recognise `\( ... \)` or `\[ ... \]` as math, so it counts the `_` of a
// subscript as an unmatched emphasis marker and "completes" it by appending another one. The
-// document is COMPLETE, so there is nothing to complete, and Studio renders the extra character
+// document is COMPLETE, so there is nothing to complete, and Unsloth renders the extra character
// literally at the end of the message. Shared with the copy sweep below, which runs the same four
// documents through every remend on disk rather than through the one this file imports.
const COMPLETE_LATEX_DOCUMENTS = [
@@ -170,7 +170,7 @@ test("the settled render path runs the repair, not just the package", () => {
assert.ok(
renderSettled(truncated).includes(repaired),
`a settled <Streamdown> rendered ${JSON.stringify(truncated)} without repairing it: no ` +
- `${repaired} in the output. The repair is off on the path Studio actually renders, ` +
+ `${repaired} in the output. The repair is off on the path Unsloth actually renders, ` +
"whatever the direct calls to remend above report.",
);
}
@@ -246,7 +246,7 @@ function collectRemendCopies(nodeModules: string, found: string[]): string[] {
}
test("every remend in the tree is the pinned one, including Streamdown's", async () => {
- // THE COPY THIS FILE IMPORTS IS NOT NECESSARILY THE ONE THE UI RUNS. Studio renders settled
+ // THE COPY THIS FILE IMPORTS IS NOT NECESSARILY THE ONE THE UI RUNS. Unsloth renders settled
// bodies through `<Streamdown parseIncompleteMarkdown>`, and [email protected] depends on
// `"remend": "1.3.0"` EXACTLY, so its own `import remend from "remend"` resolves against
// `node_modules/streamdown/node_modules` first. Bumping the top-level pin to 1.3.1 therefore
@@ -289,7 +289,7 @@ test("every remend in the tree is the pinned one, including Streamdown's", async
};
for (const complete of COMPLETE_LATEX_DOCUMENTS) {
// `undefined`, not `{}`: Streamdown forwards its optional `remend` prop straight through, and
- // Studio does not pass one.
+ // Unsloth does not pass one.
assert.equal(
loaded.default(complete, undefined),
complete,
diff --git a/studio/frontend/tests/resident-config-match-accelerator-matrix.test.ts b/studio/frontend/tests/resident-config-match-accelerator-matrix.test.ts
index ff124e40476..a72843b0a3c 100644
--- a/studio/frontend/tests/resident-config-match-accelerator-matrix.test.ts
+++ b/studio/frontend/tests/resident-config-match-accelerator-matrix.test.ts
@@ -2,7 +2,7 @@
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
/**
- * `residentRuntimeMatchesConfig` across the accelerators Studio runs on, crossed with every
+ * `residentRuntimeMatchesConfig` across the accelerators Unsloth runs on, crossed with every
* setting a remembered config can pin.
*
* The two failures are not symmetric. A wrong FALSE costs one reload, which is what
@@ -76,7 +76,7 @@ const BLANK = {
chatTemplateOverride: null,
};
-/** What `/api/inference/status` reports per host, measured against a running Studio rather
+/** What `/api/inference/status` reports per host, measured against a running Unsloth rather
* than copied from the type: a default CUDA load answers auto / -1 / 0 / null / false. */
const ACCELERATORS: Record<string, Record<string, unknown>> = {
"nvidia-cuda": {
@@ -380,7 +380,7 @@ test("a CPU-only host distinguishes zero offloaded layers from automatic", () =>
);
});
-test("a config stored by an older Studio does not throw and does not over-adopt", () => {
+test("a config stored by an older Unsloth does not throw and does not over-adopt", () => {
// Blobs written before a field existed lack the key. Optional ones express no opinion
// and adopt; a missing tensorParallel cannot be confirmed and reloads. Neither throws.
// Cast at the boundary on purpose: these come off localStorage, so the point is the
diff --git a/studio/frontend/tests/resident-model-match-matrix.test.ts b/studio/frontend/tests/resident-model-match-matrix.test.ts
index bf2112035dc..c0d9160bd45 100644
--- a/studio/frontend/tests/resident-model-match-matrix.test.ts
+++ b/studio/frontend/tests/resident-model-match-matrix.test.ts
@@ -10,7 +10,7 @@
* version older backends published no model_identifier, or put the RAW path in
* active_model; a native lease withholds it on every version
*
- * The table is those two crossed with the model kinds Studio loads. Every row states the
+ * The table is those two crossed with the model kinds Unsloth loads. Every row states the
* answer the USER needs, not the one the code happens to give.
*/
@@ -268,7 +268,7 @@ for (const active of [null, undefined, ""]) {
});
}
-// ── Older Studio backends, i.e. an install that predates these fields ────────
+// ── Older Unsloth backends, i.e. an install that predates these fields ────────
ROWS.push({
host: "old-install",
what: "a status with no model_identifier field falls back to the display id",
@@ -381,7 +381,7 @@ test("the matrix covers every host and backend shape it claims to", () => {
* single-letter mount point gets the same treatment, so two files there differing only in
* case read as one. Fixing it needs a platform signal the browser does not have, and the
* comparator is shared with the Hub, so this stays as-is: the cost is one skipped reload
- * for a path shape no Studio install creates on its own.
+ * for a path shape no Unsloth install creates on its own.
*/
test("case folding under /mnt/<letter> is WSL-shaped, and known to over-match on Linux", () => {
assert.equal(
diff --git a/studio/frontend/tests/search-images.test.ts b/studio/frontend/tests/search-images.test.ts
index 26893ecaddd..24f0e349e15 100644
--- a/studio/frontend/tests/search-images.test.ts
+++ b/studio/frontend/tests/search-images.test.ts
@@ -570,7 +570,7 @@ test("missingListSubjects leaves out what the model already fetched", () => {
assert.deepEqual(missingListSubjects("Just prose.", [{ type: "text" }]), []);
});
-test("thumbnails load from Studio's own endpoint, which the img policy allows", () => {
+test("thumbnails load from Unsloth's own endpoint, which the img policy allows", () => {
const path = searchImagePath(ENTRY.id);
assert.equal(path, "/api/inference/search-images/0123456789ab");
const imgNode = { tagName: "img" } as Parameters<typeof safeMarkdownUrl>[2];
diff --git a/studio/frontend/tests/settings-retry.test.ts b/studio/frontend/tests/settings-retry.test.ts
index 17e99efb0e4..9d3da0dbf26 100644
--- a/studio/frontend/tests/settings-retry.test.ts
+++ b/studio/frontend/tests/settings-retry.test.ts
@@ -6,7 +6,7 @@
// The case that matters is the one that used to break the tab: /api/chat/settings
// is extra="forbid" and rejects the whole body on one bad field, so requeueing a
// permanently-rejected patch made every later save carry it and fail too. Verified
-// against a live Studio in Chromium, Firefox and WebKit before the fix.
+// against a live Unsloth in Chromium, Firefox and WebKit before the fix.
import assert from "node:assert/strict";
import { test } from "node:test";
diff --git a/studio/frontend/tests/thread-ancestor-has-scope.test.ts b/studio/frontend/tests/thread-ancestor-has-scope.test.ts
index adfc656f421..3fbd79f4cae 100644
--- a/studio/frontend/tests/thread-ancestor-has-scope.test.ts
+++ b/studio/frontend/tests/thread-ancestor-has-scope.test.ts
@@ -16,12 +16,12 @@
* `content-visibility: auto` on the message roots does not either (measured at -7%): the argument
* re-check walks skipped content too. The only lever is the combinator.
*
- * CHROMIUM ONLY. On a synthetic thread with the same ancestor chain and the built Studio
+ * CHROMIUM ONLY. On a synthetic thread with the same ancestor chain and the built Unsloth
* stylesheet, at 300,464 elements, one inserted span costs 1.20 / 1.29 / 5.63 / 10.30 ms for
* plain / child / one descendant rule / both in Chromium, against 4.33 / 4.58 / 4.58 / 4.33 ms in
* WebKitGTK and 4.65 / 4.72 / 4.45 / 5.10 ms in Firefox. The other two engines are flat, so this
* is free where it does not help. This test still guards the shape in every engine, because the
- * regression it prevents is a Chromium one and Studio runs in a browser too.
+ * regression it prevents is a Chromium one and Unsloth runs in a browser too.
*
* Measured at the 500K rung, corpus 23cd2464, on a 357,843-element thread, as the cost of
* appending ONE EMPTY span inside a message, in two concurrent arms:
diff --git a/studio/frontend/tests/thread-fast-copy.test.ts b/studio/frontend/tests/thread-fast-copy.test.ts
index 5f634d9a7f3..b837a125c58 100644
--- a/studio/frontend/tests/thread-fast-copy.test.ts
+++ b/studio/frontend/tests/thread-fast-copy.test.ts
@@ -589,7 +589,7 @@ function el(
tagName: string,
options: {
alt?: string;
- /** What a class rule gives this element's visibility, e.g. Studio's `invisible`. */
+ /** What a class rule gives this element's visibility, e.g. Unsloth's `invisible`. */
ruleVisibility?: string;
/** [property, value, priority] triples, as an inline style attribute. */
inline?: ReadonlyArray<readonly [string, string, string?]>;
@@ -1304,7 +1304,7 @@ test("an image with an empty alt contributes nothing", () => {
});
test("the alt text holder has no box of its own", () => {
- // Studio's message images are display:block, so an inline holder placed beside one sits between
+ // Unsloth's message images are display:block, so an inline holder placed beside one sits between
// two blocks, the engine wraps it in an anonymous block, and the alt text arrives with a leading
// newline the clipboard does not have. Measured on the real thread as 40,650 characters against
// the clipboard's 40,648, two images each contributing one extra break. Taking the image out of
diff --git a/studio/frontend/tests/thread-scoped-sampling-compat.test.ts b/studio/frontend/tests/thread-scoped-sampling-compat.test.ts
index a08ac5243d6..01d38c2cdc1 100644
--- a/studio/frontend/tests/thread-scoped-sampling-compat.test.ts
+++ b/studio/frontend/tests/thread-scoped-sampling-compat.test.ts
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-// Rows written by a Studio without per-chat sampling, rows written by one that has more of
+// Rows written by an Unsloth without per-chat sampling, rows written by one that has more of
// it than this build, and the values at the edges of what the sanitizer accepts. Every chat
// in an existing installation is the first case: the snapshot is re-read through
// sanitizeThreadScopedSettings on every open, and anything it drops is a setting the user
@@ -62,7 +62,7 @@ const INSTALLATION = {
systemVariables: "scope=installation",
};
-/** A row exactly as a Studio from before per-chat sampling would have left it. */
+/** A row exactly as an Unsloth from before per-chat sampling would have left it. */
const LEGACY_ROW = {
reasoningEnabled: false,
reasoningEffort: "low",
@@ -177,7 +177,7 @@ test("C1: a legacy row opens on the installation sampling, and nothing is zeroed
assert.equal(w.store().reasoningEnabled, false);
assert.equal(w.store().toolsEnabled, true);
// the row is left as it was: a chat that already has a snapshot is not re-pinned,
- // so an old Studio reading it back still finds only the keys it knows.
+ // so an old Unsloth reading it back still finds only the keys it knows.
assert.deepEqual(threadRows.rows.get("L"), LEGACY_ROW);
});
@@ -294,7 +294,7 @@ test("C2b: hasThreadScopedSettings tells an empty snapshot from a falsy one", ()
});
// ---------------------------------------------------------------------------
-// C3 -- a row from a Studio newer or stranger than this one
+// C3 -- a row from an Unsloth newer or stranger than this one
// ---------------------------------------------------------------------------
test("C3: unknown future keys are dropped, and the known ones still arrive", () => {
diff --git a/studio/frontend/tests/tool-card-arg-coercion.test.ts b/studio/frontend/tests/tool-card-arg-coercion.test.ts
index 29002d97c98..d7bfee6cddb 100644
--- a/studio/frontend/tests/tool-card-arg-coercion.test.ts
+++ b/studio/frontend/tests/tool-card-arg-coercion.test.ts
@@ -188,7 +188,7 @@ test("every card reads its text arguments through toolArgText", () => {
assert.match(
initializer,
COERCION_CALL,
- `${file} reads ${prop} without coercing it; a model that sends a number there takes all of Studio down`,
+ `${file} reads ${prop} without coercing it; a model that sends a number there takes all of Unsloth down`,
);
}
}
diff --git a/studio/frontend/tests/training-transformers-upgrade.test.ts b/studio/frontend/tests/training-transformers-upgrade.test.ts
index 13ce3b3f1f9..70706645638 100644
--- a/studio/frontend/tests/training-transformers-upgrade.test.ts
+++ b/studio/frontend/tests/training-transformers-upgrade.test.ts
@@ -4,7 +4,7 @@
// A Train-tab run on a model whose architecture no installed transformers ships was
// accepted, spawned, and killed minutes later at model load:
// "unsloth/Muse-Glimmer-30B-unsloth-bnb-4bit is not supported yet in transformers==5.3.0"
-// Studio already had the consent dialog that provisions .venv_t5_latest, but it was
+// Unsloth already had the consent dialog that provisions .venv_t5_latest, but it was
// wired only into chat. These pin the gate: the start path consults the check, pauses
// on the dialog, and abandons the start when declined.
diff --git a/studio/frontend/vite.config.ts b/studio/frontend/vite.config.ts
index 477eb050bb9..c99ae849ac8 100644
--- a/studio/frontend/vite.config.ts
+++ b/studio/frontend/vite.config.ts
@@ -10,7 +10,7 @@ import { defineConfig } from "vite";
export default defineConfig({
plugins: [react(), tailwindcss()],
// Keep an unrelated PostCSS config in an ancestor directory from leaking
- // into Studio installs. Tailwind is provided by its dedicated Vite plugin.
+ // into Unsloth installs. Tailwind is provided by its dedicated Vite plugin.
css: {
postcss: {
plugins: [],
diff --git a/studio/install_llama_prebuilt.py b/studio/install_llama_prebuilt.py
index a807c3eaa8a..b74a66a8857 100644
--- a/studio/install_llama_prebuilt.py
+++ b/studio/install_llama_prebuilt.py
@@ -5794,7 +5794,7 @@ def _validation_server_kwargs() -> "dict[str, Any]":
"""Popen kwargs tying a validation server to this installer's lifetime.
Its own group keeps whatever the server starts reachable through the leader
- alone, but it also takes the server out of the group Studio force-kills, so
+ alone, but it also takes the server out of the group Unsloth force-kills, so
the parent-death signal is armed alongside it: an installer that is killed
mid-validation must not leave a server holding the GPU and the staged files
until some later startup sweeps the breadcrumb.
@@ -5830,7 +5830,7 @@ def _validation_server_kwargs() -> "dict[str, Any]":
def _announce_child(state: str, pid: int) -> None:
"""Tell whoever runs this script about a server it started.
- Studio adopts the pid so its own sweep can reach it; run by hand the line is
+ Unsloth adopts the pid so its own sweep can reach it; run by hand the line is
just noise on stdout.
"""
print(f"UNSLOTH_INSTALLER_CHILD {state} {pid}", flush = True)
@@ -5863,7 +5863,7 @@ def _terminate_validation_server(process: "subprocess.Popen", grace: float = 5.0
keeps the pid announced so a later sweep can still reach it.
Where it does not lead one it shares this installer's group, and killpg
- would take the installer and Studio with it, so only the server itself is
+ would take the installer and Unsloth with it, so only the server itself is
signalled.
"""
pgid = None
@@ -6356,7 +6356,7 @@ def write_prebuilt_metadata(
# so a forced CPU install is not re-routed to a GPU bundle (#7213). An automatic
# --cpu-fallback (e.g. arm64 GPU-build recovery) stays False so it can heal to GPU.
"force_cpu": force_cpu,
- # Kept for older Studio versions that only understand Vulkan overrides.
+ # Kept for older Unsloth versions that only understand Vulkan overrides.
"llama_backend": _persisted_backend,
# What the installed bundle runs on.
"backend": backend_for_install_kind(choice.install_kind),
@@ -7177,11 +7177,11 @@ def effective_backend_request(
return explicit, True
stored = persisted_backend_request(install_dir)
if not is_requestable_backend(stored):
- # Written by a newer Studio. Detection would quietly rewrite the choice
+ # Written by a newer Unsloth. Detection would quietly rewrite the choice
# to "auto", so refuse instead and leave the install exactly as it is.
raise UnknownBackendRequest(
f"this install records an unsupported llama.cpp backend choice ({stored!r}); "
- "update Studio before replacing it"
+ "update Unsloth before replacing it"
)
return stored, False
@@ -8154,7 +8154,7 @@ def parse_args() -> argparse.Namespace:
const = "latest",
help = (
"Report every llama.cpp backend installable on this host, plus what "
- "--install-dir currently runs, without downloading. Feeds the Studio "
+ "--install-dir currently runs, without downloading. Feeds the Unsloth "
"backend picker. Use --output-format json."
),
)
diff --git a/studio/install_sd_cpp_prebuilt.py b/studio/install_sd_cpp_prebuilt.py
index 9a37faf61d1..cfd40be35c4 100644
--- a/studio/install_sd_cpp_prebuilt.py
+++ b/studio/install_sd_cpp_prebuilt.py
@@ -66,7 +66,7 @@ _MIRROR_ONLY_TAG_RE = re.compile(r"^master-\d+-[0-9a-f]+-u[0-9a-f]+$")
# bundle from a CUDA one instead of reusing whatever binary happens to be on disk.
INSTALL_RECORD = ".unsloth-sd-cpp-install.json"
-# Marks the directory as one Studio created, so an uninstall never wipes a user's own tree.
+# Marks the directory as one Unsloth created, so an uninstall never wipes a user's own tree.
OWNERSHIP_MARKER = ".unsloth-studio-owned"
@@ -94,7 +94,7 @@ def installed_accelerator(root: Path) -> Optional[str]:
The memo wins over the file, but only while the file is exactly the one it could not replace.
It exists for a record that stayed readable and stale (still naming the PREVIOUS accelerator)
after a successful install, where trusting the file re-downloads the bundle on every selection.
- Once anything else rewrites that file -- the installer CLI, another Studio -- the content no
+ Once anything else rewrites that file -- the installer CLI, another Unsloth -- the content no
longer matches the snapshot and the file is the newer answer again.
Only a SUCCESSFUL read that disagrees retires the memo. A record we cannot read right now is
@@ -119,7 +119,7 @@ def installed_accelerator(root: Path) -> Optional[str]:
# place) otherwise means the accelerator reads as the PREVIOUS one, or as unknown, forever -- and
# either is a mismatch for a GPU target, so every later engine selection re-downloads the same
# multi-GB bundle. Keyed on the snapshot so it only speaks for the record it saw: once anything
-# else updates that file (the installer CLI, another Studio), the file is newer and wins again.
+# else updates that file (the installer CLI, another Unsloth), the file is newer and wins again.
_INSTALLED_ACCELERATOR_MEMO: dict[str, tuple[str, Optional[str]]] = {}
@@ -381,7 +381,7 @@ def default_install_dir() -> Path:
The same placement ``install_llama_prebuilt.default_managed_llama_dir`` uses for
llama.cpp, and the whisper.cpp / node installs use for theirs: the tree goes
- *under* the Studio home, so side-by-side Studios stay isolated and nothing outside
+ *under* the Unsloth home, so side-by-side Unsloth instances stay isolated and nothing outside
the home is ever claimed. The legacy default home ``~/.unsloth/studio`` still maps
to ``~/.unsloth/stable-diffusion.cpp`` so an existing install is reused.
@@ -671,7 +671,7 @@ def _safe_extractall(zf: zipfile.ZipFile, target: Path) -> None:
key = keys[str(dest)]
if key in reserved:
raise RuntimeError(f"symlink at a reserved installer path: {member.filename!r}")
- # Nor may one POINT at them: the marker is already there on a root Studio owns, so
+ # Nor may one POINT at them: the marker is already there on a root Unsloth owns, so
# sd-cli -> marker leaves _locate_sd_cli reporting an empty file as the executable.
landing = _plan_resolve(
Path(os.path.normpath(key.parent / link_target)), base, replaced, archive
@@ -932,10 +932,10 @@ def install(
# Refuse to extract into a pre-existing non-empty dir we do not own: merging would overwrite the user's files.
if not _may_own:
raise RuntimeError(
- f"sd.cpp install target already exists and is not a Studio-managed directory: {target}. "
+ f"sd.cpp install target already exists and is not an Unsloth-managed directory: {target}. "
f"Refusing to extract prebuilt binaries into it to avoid overwriting or mixing them "
f"into your files. Remove or move that directory, or install into a different, empty "
- f"location (pass a different --install-dir / set the Studio sd.cpp install dir)."
+ f"location (pass a different --install-dir / set the Unsloth sd.cpp install dir)."
)
used_repo, release, chosen = _resolve_with_fallback(accelerator, token)
diff --git a/studio/scripts/unsloth_freeze_report.py b/studio/scripts/unsloth_freeze_report.py
index 70638e02723..8496d4eabb4 100644
--- a/studio/scripts/unsloth_freeze_report.py
+++ b/studio/scripts/unsloth_freeze_report.py
@@ -365,11 +365,11 @@ def port_busy() -> bool:
def studio_backend_pids() -> list[int]:
- """PIDs listening on a Studio port that are ours, and only those.
+ """PIDs listening on an Unsloth port that are ours, and only those.
ONE rule, shared by everything that asks the question, so the gate that refuses to run
and the cleanup that kills cannot disagree about what counts as ours. They did: the
- gate keyed on "is any Studio port busy" while the cleanup keyed on attribution, so an
+ gate keyed on "is any Unsloth port busy" while the cleanup keyed on attribution, so an
unrelated Jupyter on 8888 made the gate refuse to start a run in which the cleanup
would have refused to touch it.
@@ -432,7 +432,7 @@ def wait_for_leftover_backend_to_stop(timeout = 30):
return True
time.sleep(1)
print(
- " an Unsloth backend is still holding a Studio port and did not stop. Close "
+ " an Unsloth backend is still holding an Unsloth port and did not stop. Close "
"whatever is still running, or this candidate will have nothing to measure.",
flush = True,
)
@@ -954,8 +954,8 @@ def confirm_stop_running_studio() -> bool:
"""A backend is already answering before the first candidate. Ask before touching it.
`stop_leftover_backend()` cannot tell a backend orphaned by a previous run from the one
- serving the Unsloth the reporter has open right now: both are Studio processes on a
- Studio port. Running into it unasked SIGTERMs a live session, interrupting whatever it
+ serving the Unsloth the reporter has open right now: both are Unsloth processes on an
+ Unsloth port. Running into it unasked SIGTERMs a live session, interrupting whatever it
was doing, to gather a report about a freeze. Printing a note and carrying on is not
consent, so require an answer, and refuse rather than guess when there is nobody to ask.
"""
@@ -1021,7 +1021,7 @@ def main() -> int:
# touch. An unrelated listener needs nothing done: _resolve_port() in
# studio/backend/run.py walks on to the next free port in the range.
if studio_backend_pids():
- print("An Unsloth backend is already listening on a Studio port. That is either")
+ print("An Unsloth backend is already listening on an Unsloth port. That is either")
print("Unsloth running right now, or a backend left behind by an earlier run, and")
print("this script cannot tell them apart: continuing STOPS it, which interrupts")
print("whatever that Unsloth is doing.\n")
@@ -1032,7 +1032,7 @@ def main() -> int:
return 2
print()
elif port_busy():
- print("Something that is not Unsloth is listening on a Studio port. Nothing needs")
+ print("Something that is not Unsloth is listening on an Unsloth port. Nothing needs")
print("to be done about it: the backend falls back to the next free port, and this")
print("script only ever stops a process it can attribute to Unsloth.\n")
@@ -1055,7 +1055,7 @@ def main() -> int:
finally:
# The last candidate's backend is cleaned up by the NEXT candidate, and there is no
# next one. Closing the app does not stop the backend it started, so without this
- # the script exits leaving Studio quietly serving: the reporter's next real launch
+ # the script exits leaving Unsloth quietly serving: the reporter's next real launch
# attaches to a backend nothing is recording, which this script's own docstring
# calls the worst possible state to be in, and a second run of it would refuse to
# start against a port it cannot explain.
diff --git a/studio/setup.ps1 b/studio/setup.ps1
index f68e77f1a2f..bb2dfc89cd0 100644
--- a/studio/setup.ps1
+++ b/studio/setup.ps1
@@ -135,7 +135,7 @@ function Write-StudioLine {
#
# UNSLOTH_LLAMA_CPP_BACKEND : "auto" (default), "cpu", "cuda", "vulkan",
# "hip", or "rocm". Concrete values select and persist a backend across updates;
-# "auto" restores detection. Overrides Studio's Settings > System selection.
+# "auto" restores detection. Overrides Unsloth's Settings > System selection.
$DefaultLlamaPrForce = ""
$DefaultLlamaSource = "https://github.com/ggml-org/llama.cpp"
$DefaultLlamaTag = "latest"
@@ -528,7 +528,7 @@ function Test-UnslothCmdShimFile {
return ($text -like "*unsloth-studio-managed-launcher*" -and $text -like "*from unsloth_cli import app*")
}
-# Shared default cache, or the custom Studio home's llama.cpp tree.
+# Shared default cache, or the custom Unsloth home's llama.cpp tree.
function Get-ManagedLlamaCppDir {
if (-not (Test-StudioHomeIsCustom)) {
return (Join-Path $env:USERPROFILE ".unsloth\llama.cpp")
@@ -5414,7 +5414,7 @@ if ($stackExit -eq 0 -and $XpuIndexUrl) {
Fast-Uninstall "triton-windows" | Out-Null
$_uninstallExit = $LASTEXITCODE
}
- # A triton-windows that would not uninstall (Studio running and holding
+ # A triton-windows that would not uninstall (Unsloth running and holding
# _C/libtriton.pyd open) still shadows the XPU triton, so installing over it
# achieves nothing and would restore the manifest onto an unchanged venv.
if (-not $_manifestBlocked -and $_uninstallExit -ne 0) {
diff --git a/studio/setup.sh b/studio/setup.sh
index 7d408f0452d..8ab164efe13 100755
--- a/studio/setup.sh
+++ b/studio/setup.sh
@@ -40,7 +40,7 @@ fi
# UNSLOTH_LLAMA_CPP_BACKEND : "auto" (default), "cpu", "cuda", "vulkan",
# "hip", or "rocm". Concrete values select and persist a
# backend across updates; "auto" restores detection.
-# Overrides Studio's Settings > System selection.
+# Overrides Unsloth's Settings > System selection.
# ──────────────────────────────────────────────────────────────────────────
_DEFAULT_LLAMA_PR_FORCE=""
_DEFAULT_LLAMA_SOURCE="https://github.com/ggml-org/llama.cpp"
diff --git a/studio/src-tauri/src/desktop_backend_owner.rs b/studio/src-tauri/src/desktop_backend_owner.rs
index 4e38f484410..4d7dfb296e9 100644
--- a/studio/src-tauri/src/desktop_backend_owner.rs
+++ b/studio/src-tauri/src/desktop_backend_owner.rs
@@ -207,7 +207,7 @@ pub(crate) fn read_expected_studio_root_id() -> Option<String> {
parse_studio_root_id(&raw)
}
-/// Returns the managed Studio root ID, creating it when absent.
+/// Returns the managed Unsloth root ID, creating it when absent.
/// Desktop installs skip the installer step that normally creates it.
pub(crate) fn ensure_managed_studio_root_id() -> Result<String, String> {
#[cfg(test)]
@@ -252,7 +252,7 @@ fn ensure_studio_root_id_at_with_blank_observer(
.parent()
.ok_or_else(|| format!("desktop ownership id path {} has no parent", path.display()))?;
- // Do not create the share directory before Studio is installed.
+ // Do not create the share directory before Unsloth is installed.
if !create_when_missing && !path.exists() {
return Ok(None);
}
diff --git a/studio/src-tauri/src/diagnostics/report.rs b/studio/src-tauri/src/diagnostics/report.rs
index 268d5c59888..6a363869e1f 100644
--- a/studio/src-tauri/src/diagnostics/report.rs
+++ b/studio/src-tauri/src/diagnostics/report.rs
@@ -422,7 +422,7 @@ const SERVER_LOG_TAIL_MAX_BYTES: usize = 64 * 1024;
///
/// run.py's `_setup_server_disk_logging` aims faulthandler here, so when the GPU
/// runtime aborts this holds the Python stack naming the call that died, and no
-/// other file Studio keeps does.
+/// other file Unsloth keeps does.
///
/// Only two are collected, so an entry is rejected HERE rather than later in
/// `read_tail`: one that merely matches the name would otherwise spend a slot and
diff --git a/studio/src-tauri/src/preflight.rs b/studio/src-tauri/src/preflight.rs
index 7c475a96d8c..c8dc2bd7427 100644
--- a/studio/src-tauri/src/preflight.rs
+++ b/studio/src-tauri/src/preflight.rs
@@ -217,7 +217,7 @@ fn mutation_blocker_from_probe(
}
// An id-less backend may be this install serving from a terminal, in
// which case rewriting the venv underneath it would break it. It may
- // equally be a remote Studio behind a port forward, and refusing on
+ // equally be a remote Unsloth behind a port forward, and refusing on
// that leaves a stale install with no way to repair itself, since
// repair is what the app runs automatically. The local per-port record
// is what tells the two apart, so it, not the port, decides.
@@ -1198,7 +1198,7 @@ exit 1
));
}
- /// The report this came from: an id-less Studio answered on a candidate
+ /// The report this came from: an id-less Unsloth answered on a candidate
/// port, and a perfectly healthy install refused to launch at all.
#[test]
fn an_unrelated_backend_does_not_block_a_launch() {
diff --git a/studio/src-tauri/src/preflight/backend.rs b/studio/src-tauri/src/preflight/backend.rs
index 1ace70375fc..e0219ce41e5 100644
--- a/studio/src-tauri/src/preflight/backend.rs
+++ b/studio/src-tauri/src/preflight/backend.rs
@@ -238,7 +238,7 @@ pub(super) async fn backend_desktop_auth_status(
match root_status {
BackendRootStatus::AmbiguousRoot | BackendRootStatus::ExpectedUnavailable => {
// Not adoptable, and not proof that our own install is serving: an
- // id-less backend is just as likely a remote Studio reached through
+ // id-less backend is just as likely a remote Unsloth reached through
// a port forward. Starting is fine, the port simply is not free.
return BackendProbe::Unrelated {
port,
@@ -425,7 +425,7 @@ mod tests {
}
}
- /// A tunnelled or id-less Studio anywhere in 8888..=8908 used to poison the
+ /// A tunnelled or id-less Unsloth anywhere in 8888..=8908 used to poison the
/// whole launch, even with every other port free.
#[test]
fn unrelated_backends_never_decide_a_launch() {
diff --git a/studio/src-tauri/src/preflight/pid_records.rs b/studio/src-tauri/src/preflight/pid_records.rs
index c64081b5740..8007a2c9a53 100644
--- a/studio/src-tauri/src/preflight/pid_records.rs
+++ b/studio/src-tauri/src/preflight/pid_records.rs
@@ -7,7 +7,7 @@ use std::path::Path;
/// A mutation rewrites the install tree, so the question it has to answer about
/// an unattributable backend is not "is something listening" but "is a live
/// process running out of the tree I am about to overwrite". A health probe
-/// cannot answer that: a Studio reached through an SSH forward answers from
+/// cannot answer that: an Unsloth reached through an SSH forward answers from
/// 127.0.0.1 exactly like a local one.
///
/// The server records itself on bind, in a per-port `studio-{port}-{pid}.pid`
diff --git a/studio/src-tauri/src/preflight/types.rs b/studio/src-tauri/src/preflight/types.rs
index 88ba8661346..e18aded79f8 100644
--- a/studio/src-tauri/src/preflight/types.rs
+++ b/studio/src-tauri/src/preflight/types.rs
@@ -45,7 +45,7 @@ pub(super) enum BackendProbe {
Old { port: u16, reason: String },
ExternalConflict { port: u16, reason: String },
/// A backend answered here, but it is not adoptable and not provably ours:
- /// it reports no install id, so it may be a remote Studio behind a tunnel or
+ /// it reports no install id, so it may be a remote Unsloth behind a tunnel or
/// an install that predates the id. Launching skips the port; a mutation
/// refuses only when a live local process is attributable to this install,
/// which is the one thing a health probe cannot tell us.
diff --git a/studio/src-tauri/src/process.rs b/studio/src-tauri/src/process.rs
index 79a5377caaa..0ae72d0554c 100644
--- a/studio/src-tauri/src/process.rs
+++ b/studio/src-tauri/src/process.rs
@@ -373,7 +373,7 @@ fn acquire_named_studio_runtime_launch_guard(
};
if handle.is_null() {
return Err(format!(
- "Could not create the Studio runtime lock: {}",
+ "Could not create the Unsloth runtime lock: {}",
std::io::Error::last_os_error()
));
}
@@ -396,7 +396,7 @@ fn acquire_named_studio_runtime_launch_guard(
let _ = windows_sys::Win32::Foundation::CloseHandle(handle);
}
Err(format!(
- "Could not acquire the Studio runtime lock: {error}"
+ "Could not acquire the Unsloth runtime lock: {error}"
))
}
}
@@ -418,7 +418,7 @@ fn current_windows_user_sid() -> Result<String, String> {
let mut token = std::ptr::null_mut();
if unsafe { OpenProcessToken(GetCurrentProcess(), TOKEN_QUERY, &mut token) } == 0 {
return Err(format!(
- "Could not open the Windows user token for the Studio runtime lock: {}",
+ "Could not open the Windows user token for the Unsloth runtime lock: {}",
std::io::Error::last_os_error()
));
}
@@ -430,7 +430,7 @@ fn current_windows_user_sid() -> Result<String, String> {
}
if required == 0 {
return Err(format!(
- "Could not size the Windows user SID for the Studio runtime lock: {}",
+ "Could not size the Windows user SID for the Unsloth runtime lock: {}",
std::io::Error::last_os_error()
));
}
@@ -448,7 +448,7 @@ fn current_windows_user_sid() -> Result<String, String> {
} == 0
{
return Err(format!(
- "Could not read the Windows user SID for the Studio runtime lock: {}",
+ "Could not read the Windows user SID for the Unsloth runtime lock: {}",
std::io::Error::last_os_error()
));
}
@@ -456,14 +456,14 @@ fn current_windows_user_sid() -> Result<String, String> {
let token_user = unsafe { &*(buffer.as_ptr().cast::<TOKEN_USER>()) };
let sid = token_user.User.Sid;
if sid.is_null() || unsafe { IsValidSid(sid) } == 0 {
- return Err("Windows returned an invalid user SID for the Studio runtime lock".into());
+ return Err("Windows returned an invalid user SID for the Unsloth runtime lock".into());
}
let authority_ptr = unsafe { GetSidIdentifierAuthority(sid) };
let count_ptr = unsafe { GetSidSubAuthorityCount(sid) };
if authority_ptr.is_null() || count_ptr.is_null() {
return Err(
- "Could not inspect the Windows user SID for the Studio runtime lock".into(),
+ "Could not inspect the Windows user SID for the Unsloth runtime lock".into(),
);
}
let authority = unsafe { (*authority_ptr).Value }
@@ -476,7 +476,7 @@ fn current_windows_user_sid() -> Result<String, String> {
let sub_authority = unsafe { GetSidSubAuthority(sid, index) };
if sub_authority.is_null() {
return Err(
- "Could not inspect the Windows user SID for the Studio runtime lock".into(),
+ "Could not inspect the Windows user SID for the Unsloth runtime lock".into(),
);
}
sid_text.push_str(&format!("-{}", unsafe { *sub_authority }));
@@ -525,7 +525,7 @@ pub(crate) fn with_studio_runtime_launch_guard<T>(
#[cfg(windows)]
fn normalized_existing_windows_path(path: &std::path::Path) -> Result<String, String> {
let resolved = std::fs::canonicalize(path)
- .map_err(|error| format!("Could not resolve managed Studio path {:?}: {error}", path))?;
+ .map_err(|error| format!("Could not resolve managed Unsloth path {:?}: {error}", path))?;
Ok(resolved
.to_string_lossy()
.trim_end_matches(['\\', '/'])
@@ -537,15 +537,15 @@ fn windows_ordinal_ignore_case_equal(left: &[u16], right: &[u16]) -> Result<bool
use windows_sys::Win32::Globalization::{CompareStringOrdinal, CSTR_EQUAL};
let left_length = i32::try_from(left.len())
- .map_err(|_| "Normalized Studio path exceeds Win32 comparison limits".to_string())?;
+ .map_err(|_| "Normalized Unsloth path exceeds Win32 comparison limits".to_string())?;
let right_length = i32::try_from(right.len())
- .map_err(|_| "Normalized Studio path exceeds Win32 comparison limits".to_string())?;
+ .map_err(|_| "Normalized Unsloth path exceeds Win32 comparison limits".to_string())?;
let comparison = unsafe {
CompareStringOrdinal(left.as_ptr(), left_length, right.as_ptr(), right_length, 1)
};
if comparison == 0 {
return Err(format!(
- "Could not compare normalized Studio paths: {}",
+ "Could not compare normalized Unsloth paths: {}",
std::io::Error::last_os_error()
));
}
@@ -608,7 +608,7 @@ fn process_image_path(process_id: u32) -> Option<std::path::PathBuf> {
}
/// Reject an update when a process image runs from the target venv or the exact
-/// supported Studio shim.
+/// supported Unsloth shim.
///
/// Callers must hold the runtime launch mutex across the whole mutation: this
/// scan finds older consumers, and the gate blocks new launches after it.
@@ -636,13 +636,13 @@ pub(crate) fn ensure_managed_environment_is_idle(
.and_then(std::path::Path::parent)
.ok_or_else(|| {
format!(
- "Could not determine the managed Studio environment for {:?}",
+ "Could not determine the managed Unsloth environment for {:?}",
managed_binary
)
})?;
let studio_home = venv.parent().ok_or_else(|| {
format!(
- "Could not determine the managed Studio root for {:?}",
+ "Could not determine the managed Unsloth root for {:?}",
managed_binary
)
})?;
@@ -656,7 +656,7 @@ pub(crate) fn ensure_managed_environment_is_idle(
let snapshot = unsafe { CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0) };
if snapshot == INVALID_HANDLE_VALUE {
return Err(format!(
- "Could not inspect running processes before Studio update: {}",
+ "Could not inspect running processes before Unsloth update: {}",
std::io::Error::last_os_error()
));
}
@@ -673,7 +673,7 @@ pub(crate) fn ensure_managed_environment_is_idle(
return Ok(());
}
return Err(format!(
- "Could not enumerate running processes before Studio update: {}",
+ "Could not enumerate running processes before Unsloth update: {}",
std::io::Error::from_raw_os_error(error as i32)
));
}
@@ -694,7 +694,7 @@ pub(crate) fn ensure_managed_environment_is_idle(
.unwrap_or(entry.szExeFile.len());
let name = String::from_utf16_lossy(&entry.szExeFile[..name_length]);
return Err(format!(
- "The managed Studio environment is in use by {} (PID {}). Stop that process, then retry the update.",
+ "The managed Unsloth environment is in use by {} (PID {}). Stop that process, then retry the update.",
name, entry.th32ProcessID
));
}
@@ -708,7 +708,7 @@ pub(crate) fn ensure_managed_environment_is_idle(
break;
}
return Err(format!(
- "Could not finish enumerating running processes before Studio update: {}",
+ "Could not finish enumerating running processes before Unsloth update: {}",
std::io::Error::from_raw_os_error(error as i32)
));
}
@@ -804,7 +804,7 @@ mod studio_runtime_launch_guard_tests {
with_named_studio_runtime_launch_guard(&name, || Ok(())).unwrap();
}
- // Since issue #8490 the long-lived Studio image is Scripts\python.exe, not
+ // Since issue #8490 the long-lived Unsloth image is Scripts\python.exe, not
// Scripts\unsloth.exe. ensure_managed_environment_is_idle matches by venv
// root, so both must still register as "the environment is in use" -- a
// miss here would let an update mutate a venv somebody is running.
@@ -854,7 +854,7 @@ mod studio_runtime_launch_guard_tests {
let managed_binary = target_root.join("Scripts").join("unsloth.exe");
let error = ensure_managed_environment_is_idle(&managed_binary).unwrap_err();
- assert!(error.contains("managed Studio environment is in use"));
+ assert!(error.contains("managed Unsloth environment is in use"));
}
#[test]
@@ -1820,7 +1820,7 @@ pub(crate) const RELATIVE_PATH_ENV: &[&str] = &[
// huggingface_hub resolves the credential file from here; a relative value
// would follow the child and silently lose access to gated repos.
"HF_TOKEN_PATH",
- // uv reads this as written and Studio treats a non-blank value as
+ // uv reads this as written and Unsloth treats a non-blank value as
// authoritative, so an update would install from a different cache.
"UV_CACHE_DIR",
"TRANSFORMERS_CACHE",
@@ -1962,7 +1962,7 @@ const INLINE_JSON_ENV: &[&str] = &["MLX_HOSTFILE", "MLX_IBV_DEVICES"];
/// Names whose readers disagree about %VAR%: huggingface_hub expands HF_HOME
/// (and the XDG_CACHE_HOME it defaults from), HF_HUB_CACHE and HF_ASSETS_CACHE,
-/// and Studio expands SENTENCE_TRANSFORMERS_HOME, but Studio's own
+/// and Unsloth expands SENTENCE_TRANSFORMERS_HOME, but Unsloth's own
/// hf_cache_settings does not, so it reads %LOCALAPPDATA%\hf as a relative
/// folder. Expanding before deciding settles it: both readers then see one
/// absolute path. Scoped to these names because a directory really called
@@ -2125,7 +2125,7 @@ fn names_a_path(name: &str, value: &str) -> bool {
}
/// Names every managed spawn removes before starting the child: Tauri uses the
-/// legacy Studio root whatever the environment says. Resolving one can only
+/// legacy Unsloth root whatever the environment says. Resolving one can only
/// invent a failure for a value the child is never going to see.
const MANAGED_CHILD_SCRUBBED_ENV: &[&str] = &["UNSLOTH_STUDIO_HOME", "STUDIO_HOME"];
@@ -2655,7 +2655,7 @@ mod tests {
// Quarantine takes the unsigned stub and leaves the environment intact. The
// finder gates the backend, the updater and the install-status probe, so a None
- // here reports "not installed" for a Studio that still runs.
+ // here reports "not installed" for an Unsloth that still runs.
#[cfg(windows)]
#[test]
fn a_quarantined_stub_is_still_a_managed_install() {
@@ -3975,7 +3975,7 @@ fn read_output_stream<R: std::io::Read>(
/// was emitted, so the window sat on the startup screen with nothing reported. Seen on
/// Windows CI, which logged "process is still running" for a PID that was already gone.
///
-/// Returning None still means "genuinely alive", which matters because Studio may close
+/// Returning None still means "genuinely alive", which matters because Unsloth may close
/// its own stdout once logging moves to the session log, so stdout EOF alone must not
/// be read as death. Same poll shape as `wait_for_child_exit` below.
fn exit_status_after_stdout_closed(child: &mut Box<dyn ChildWrapper + Send>) -> Option<String> {
@@ -4560,7 +4560,7 @@ mod managed_cli_working_dir_tests {
let work_dir = PathBuf::from("C:\\Users\\me\\.unsloth");
let env = |name: &str| match name {
"HF_HOME" => Some("cache".to_string()),
- // A name the child keeps: the two Studio roots are removed for
+ // A name the child keeps: the two Unsloth roots are removed for
// every managed spawn, so they are never pinned.
"UNSLOTH_COMPILE_LOCATION" => Some(" studio ".to_string()),
"OLLAMA_MODELS" => Some("D:\\models".to_string()),
diff --git a/studio/src-tauri/src/process_identity.rs b/studio/src-tauri/src/process_identity.rs
index ab896cd722d..d821e511732 100644
--- a/studio/src-tauri/src/process_identity.rs
+++ b/studio/src-tauri/src/process_identity.rs
@@ -494,7 +494,7 @@ fn executable_path_impl(pid: u32) -> Option<PathBuf> {
unsafe {
// The limited right, not PROCESS_QUERY_INFORMATION: it is granted for
- // processes at a higher integrity level, which a Studio started from an
+ // processes at a higher integrity level, which an Unsloth started from an
// elevated terminal is.
let handle = OpenProcess(PROCESS_QUERY_LIMITED_INFORMATION, 0, pid);
if handle.is_null() {
diff --git a/tests/kaggle/studio_gpu/gpu_assert.py b/tests/kaggle/studio_gpu/gpu_assert.py
index 3a9b1faa587..da79bd16ce7 100644
--- a/tests/kaggle/studio_gpu/gpu_assert.py
+++ b/tests/kaggle/studio_gpu/gpu_assert.py
@@ -3,10 +3,10 @@
"""Did the GGUF actually run on the GPU, or did it quietly fall back to CPU?
-This module is the whole reason the Studio Kaggle leg is worth its quota. A
-CPU fallback in Studio is invisible from the outside: llama.cpp loads the same
+This module is the whole reason the Unsloth Kaggle leg is worth its quota. A
+CPU fallback in Unsloth is invisible from the outside: llama.cpp loads the same
file, answers the same prompt, and returns the same text, only slower. Every
-Studio inference check in this repo today would pass against a CPU-only
+Unsloth inference check in this repo today would pass against a CPU-only
build, because every one of them runs on a machine that has no GPU to fall
back from.
@@ -15,7 +15,7 @@ built from three independent observations, and the rules are stated up front
because the interesting cases are the ambiguous ones:
**Negative evidence is conclusive.** llama.cpp saying it offloaded 0 layers,
-Studio reporting ``cpu_fallback_reason``, or Studio reporting an effective
+Unsloth reporting ``cpu_fallback_reason``, or Unsloth reporting an effective
``gpu_layers`` of 0 each fail on their own. No amount of positive evidence
overrides them: they are the fallback announcing itself.
@@ -116,7 +116,7 @@ def parse_compute_apps(csv_text: str) -> dict[int, int]:
def offloaded_layers(log_text: str) -> tuple[int, int] | None:
"""The last ``offloaded N/M layers to GPU`` in a llama.cpp log.
- The last one, not the first: Studio loads a model more than once in a
+ The last one, not the first: Unsloth loads a model more than once in a
session (an export is verified by loading the file it just wrote), and the
question is always about the most recent load.
"""
@@ -244,11 +244,11 @@ def offload_verdict(
) -> dict:
"""Was the model on the GPU? Returns a verdict dict with its evidence.
- ``status`` is Studio's ``GET /api/inference/status`` body. Only two of its
+ ``status`` is Unsloth's ``GET /api/inference/status`` body. Only two of its
fields are load-bearing here and both are negative signals:
- ``cpu_fallback_reason`` (Studio replayed the launch on CPU) and an
+ ``cpu_fallback_reason`` (Unsloth replayed the launch on CPU) and an
effective ``gpu_layers`` of exactly 0 (nothing was placed on the card).
- A ``gpu_layers`` of -1 is Studio's Auto mode, which says nothing either
+ A ``gpu_layers`` of -1 is Unsloth's Auto mode, which says nothing either
way and is left to the other probes.
"""
evidence: list[str] = []
@@ -258,14 +258,14 @@ def offload_verdict(
status = status or {}
fallback = status.get("cpu_fallback_reason")
if fallback:
- failures.append(f"Studio reported a CPU fallback: cpu_fallback_reason={fallback!r}")
+ failures.append(f"Unsloth reported a CPU fallback: cpu_fallback_reason={fallback!r}")
effective_layers = status.get("gpu_layers")
if isinstance(effective_layers, int):
evidence.append(f"status.gpu_layers={effective_layers}")
if effective_layers == 0:
failures.append(
- "Studio reports gpu_layers=0, so nothing was placed on the GPU "
+ "Unsloth reports gpu_layers=0, so nothing was placed on the GPU "
"even though the load asked for it"
)
@@ -286,7 +286,7 @@ def offload_verdict(
if buffer_mib is not None:
evidence.append(f"llama.cpp device model buffer: {buffer_mib:.0f} MiB")
- # Studio's status body carries no pid, so the caller also discovers the
+ # Unsloth's status body carries no pid, so the caller also discovers the
# llama-server processes itself; either source is accepted here.
candidates: list[int] = []
for pid in [server_pid, *(server_pids or [])]:
diff --git a/tests/kaggle/studio_gpu/run_studio_gpu.py b/tests/kaggle/studio_gpu/run_studio_gpu.py
index 4c4b9f6a95e..cc6232d61c3 100644
--- a/tests/kaggle/studio_gpu/run_studio_gpu.py
+++ b/tests/kaggle/studio_gpu/run_studio_gpu.py
@@ -3,11 +3,11 @@
"""Unsloth Studio, end to end, on a real CUDA GPU.
-Studio has no CUDA coverage anywhere in CI. Every Studio workflow in this
+Unsloth has no CUDA coverage anywhere in CI. Every Unsloth workflow in this
repo runs on ``ubuntu-latest``, ``macos-15`` or ``windows-latest``; macOS
gives Metal some hardware, and the CUDA path is exercised by nothing. The
existing inference smoke deliberately uses a 270M GGUF *because* it has to
-decode on a CPU. This payload is the other half: it runs Studio on a Kaggle
+decode on a CPU. This payload is the other half: it runs Unsloth on a Kaggle
T4 and asserts the three things that only a GPU can answer.
What it asserts
@@ -23,7 +23,7 @@ the model came back with ``finish_reason == "tool_calls"`` and a parseable
argument object.
**B. A LoRA training run finishes and leaves an adapter.** Started through
-``POST /api/train/start`` -- the same call Studio's own Train button makes --
+``POST /api/train/start`` -- the same call Unsloth's own Train button makes --
and judged on three things, none of which is the phase alone: the run reaches
phase ``completed``, its ``metric_history`` holds a loss for every step it
claimed to take, and ``adapter_model.safetensors`` exists on disk above a size
@@ -34,7 +34,7 @@ leaves a config and no weights, which is why the file is checked.
**C. GGUF export runs against a CUDA llama.cpp build and the result loads.**
The adapter from B is exported to GGUF, the output is checked for the GGUF
magic rather than merely for existence, and then it is loaded back into
-Studio and asked to generate. "It loads" is asserted by loading it, not by
+Unsloth and asked to generate. "It loads" is asserted by loading it, not by
its file size.
Then the repo's existing ``tests/studio/playwright_chat_ui.py`` is driven
@@ -50,7 +50,7 @@ back; the home directory and ``/tmp`` share a ~1 TB overlay. So
live on the overlay, and only the evidence -- kilobytes of JSON, a log tail
and screenshots -- is ever written under ``/kaggle/working``.
-No credential is printed. The bootstrap password is read from Studio's own
+No credential is printed. The bootstrap password is read from Unsloth's own
auth directory, handed to ``/api/auth/login``, and never logged, never
returned, and never written to the report or the evidence bundle.
@@ -214,10 +214,10 @@ def gpu_inventory() -> list[str]:
def log_paths(server_log: Path, studio_home: Path) -> list[Path]:
- """Every file Studio or a llama-server child may be writing to.
+ """Every file Unsloth or a llama-server child may be writing to.
llama.cpp's offload line lands in whichever of these the server's stderr
- was wired to, and which one that is depends on how Studio was started, so
+ was wired to, and which one that is depends on how Unsloth was started, so
both are read.
"""
candidates = [server_log]
@@ -251,7 +251,7 @@ def studio_log_text(
*,
since: dict[str, int] | None = None,
) -> str:
- """Everything Studio and its llama-server children wrote, as one string.
+ """Everything Unsloth and its llama-server children wrote, as one string.
``since`` is a ``log_marks()`` snapshot; each file is then read from the
offset it had then, so only what this load produced comes back. A file
@@ -274,7 +274,7 @@ def studio_log_text(
def llama_server_pids() -> list[int]:
- """PIDs of the llama-server children Studio started, from /proc.
+ """PIDs of the llama-server children Unsloth started, from /proc.
``GET /api/inference/status`` does not carry one: ``InferenceStatusResponse``
declares neither ``llama_server_pid`` nor ``pid``, and FastAPI drops
@@ -314,7 +314,7 @@ class Payload:
self.assertions: list[dict] = []
self.failures: list[str] = []
self.started = time.time()
- # Every secret this run has minted or read. Studio's startup banner
+ # Every secret this run has minted or read. Unsloth's startup banner
# prints the bootstrap password to stdout, and stdout here is
# studio.log, and studio.log travels home in the evidence bundle. The
# value is ephemeral and local to a kernel that is destroyed minutes
@@ -416,7 +416,7 @@ class Payload:
def studio_command(self) -> list[str]:
"""The `unsloth` entry point of the interpreter running this payload.
- NOT ``shutil.which("unsloth")``. This payload runs under the Studio
+ NOT ``shutil.which("unsloth")``. This payload runs under the Unsloth
venv's Python and that venv's ``bin`` is not on PATH, so a global
``unsloth`` anywhere on PATH would win the lookup and the run would
measure some other installation instead of the checkout under test.
@@ -446,7 +446,7 @@ class Payload:
env["UNSLOTH_DISABLE_STATISTICS"] = "1"
cmd = self.studio_command()
- log(f"starting Studio: {' '.join(cmd)}")
+ log(f"starting Unsloth: {' '.join(cmd)}")
# Append, never truncate. assert_chat_ui() restarts the server to
# re-seed the account, and a "wb" here threw away every backend log
# from the inference, training and export assertions before the
@@ -471,7 +471,7 @@ class Payload:
detail: dict = {"health": last if isinstance(last, dict) else str(last)[:400]}
failures = []
if not ok:
- failures.append(f"Studio never became ready: {reason}")
+ failures.append(f"Unsloth never became ready: {reason}")
failures.append("last 40 lines of the server log: " + self.log_tail(40))
detail["failures"] = failures
return self.record("studio_ready", ok, detail)
@@ -494,7 +494,7 @@ class Payload:
return text
def log_tail(self, lines: int) -> str:
- # Studio's startup banner prints the bootstrap password, and this tail
+ # Unsloth's startup banner prints the bootstrap password, and this tail
# is put in front of a human on a pull request when startup fails.
self.remember_bootstrap()
try:
@@ -642,7 +642,7 @@ class Payload:
# Not a failure on its own: llama.cpp clamps a pin to the model's
# block count, which is the common and correct reason for this.
verdict["evidence"].append(
- f"requested gpu_layers={requested}, Studio reports {effective} "
+ f"requested gpu_layers={requested}, Unsloth reports {effective} "
f"(a clamp to the model's layer count looks like this)"
)
@@ -799,7 +799,7 @@ class Payload:
accept = _accept,
deadline_s = self.args.train_deadline,
interval_s = 5.0,
- # A Studio that died mid-training answers every status request
+ # An Unsloth that died mid-training answers every status request
# with an error, which wait_for retries -- for the whole 1200s
# deadline, out of a 70-minute session, before reporting it as
# slowness rather than as death.
@@ -1075,7 +1075,7 @@ class Payload:
# "change-password through UI (Setup your account)", which waits for
# #new-password on the forced-change form -- and authenticate() has to
# retire the bootstrap password over the API to get past that same gate,
- # so by now Studio shows an ordinary login and the field never appears.
+ # so by now Unsloth shows an ordinary login and the field never appears.
# Kernel unsloth-t4-ci-412345d2 failed the API assertions on the gate;
# 9ddd8ae4 fixed those and failed the driver on a stale password;
# 9c1a3b (this run) fixed the password and failed the driver on the form
@@ -1088,7 +1088,7 @@ class Payload:
# anyway, so nothing after it needs the API session.
self.stop_server()
if not self.start_server():
- failures.append("Studio did not come back after the restart that re-seeds the account")
+ failures.append("Unsloth did not come back after the restart that re-seeds the account")
detail["failures"] = failures
return self.record("chat_ui_driver", False, detail)
detail["reseeded"] = True
@@ -1167,7 +1167,7 @@ class Payload:
def redacted(self, path: Path) -> bytes:
"""A log file with every credential this run knows about removed.
- Studio's startup banner prints the bootstrap password, and the chat
+ Unsloth's startup banner prints the bootstrap password, and the chat
driver's own log echoes what it was given. Both files leave this
machine as a CI artifact, so both are rewritten on the way out. The
replacement is a fixed marker rather than a same-length blank, so the
diff --git a/tests/kaggle/studio_gpu/studio_client.py b/tests/kaggle/studio_gpu/studio_client.py
index 06940978aaf..daf5b019952 100644
--- a/tests/kaggle/studio_gpu/studio_client.py
+++ b/tests/kaggle/studio_gpu/studio_client.py
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved.
-"""A small HTTP client for Studio, and the state machines the payload polls.
+"""A small HTTP client for Unsloth, and the state machines the payload polls.
Split out of ``run_studio_gpu.py`` so the parts that can be wrong in
interesting ways can be tested without a GPU, a browser or a server. The
@@ -12,7 +12,7 @@ the same ``is_export_active: false`` as one that succeeded.
Nothing here prints. ``Studio.token`` is set from the bootstrap password and is
never logged, echoed or written to a report, and neither is ``Studio.password``
--- which IS held for the run, because Studio forces a password change on the
+-- which IS held for the run, because Unsloth forces a password change on the
bootstrap account and the repo's Playwright driver needs whatever the current
password is. Scrubbing it out of anything that leaves the machine is the
caller's job.
@@ -49,11 +49,11 @@ MIN_ADAPTER_BYTES = 4096
class StudioError(RuntimeError):
- """An HTTP call to Studio that did not do what the payload needed."""
+ """An HTTP call to Unsloth that did not do what the payload needed."""
class Studio:
- """Bearer-authenticated JSON calls against a local Studio."""
+ """Bearer-authenticated JSON calls against a local Unsloth."""
def __init__(
self,
@@ -127,7 +127,7 @@ class Studio:
*,
username: str = "unsloth",
) -> None:
- """Exchange the bootstrap password for a bearer token, retiring it if Studio insists.
+ """Exchange the bootstrap password for a bearer token, retiring it if Unsloth insists.
A bootstrap account is created with ``must_change_password`` set, and
``get_current_subject`` turns that into
@@ -154,7 +154,7 @@ class Studio:
every other value here. The caller is responsible for adding it to
whatever scrubs the logs.
- The passwords reach this function and Studio and go nowhere else. A
+ The passwords reach this function and Unsloth and go nowhere else. A
StudioError from here is raised with the status code only.
"""
status, payload = self.post(
@@ -193,10 +193,10 @@ class Studio:
def health_is_ready(payload: Any) -> bool:
- """Is this ``/api/health`` body a Studio that is done starting up?
+ """Is this ``/api/health`` body an Unsloth that is done starting up?
Two conditions, and the second is the one that matters. ``status ==
- "healthy"`` is what the repo's own wait-for-health.sh checks, but Studio
+ "healthy"`` is what the repo's own wait-for-health.sh checks, but Unsloth
answers healthy while hardware detection is still running, and during that
window it reports itself chat-only and refuses to start a training run or
an export. A payload that raced that window would fail on the Train and
@@ -291,7 +291,7 @@ def adapter_verdict(output_dir: str | Path | None) -> tuple[bool, list[str], dic
"""Did the training run leave a real LoRA adapter on disk?
This is the assertion that separates "the run reported completed" from
- "the run produced something". Studio reports ``completed`` from the
+ "the run produced something". Unsloth reports ``completed`` from the
worker's own bookkeeping; only the files say whether a save happened.
"""
detail: dict = {"output_dir": str(output_dir) if output_dir else None}
diff --git a/tests/kaggle/studio_gpu/train_canary.jsonl b/tests/kaggle/studio_gpu/train_canary.jsonl
index cba5e76c319..68384b8df23 100644
--- a/tests/kaggle/studio_gpu/train_canary.jsonl
+++ b/tests/kaggle/studio_gpu/train_canary.jsonl
@@ -1,16 +1,16 @@
{"instruction": "What is the Unsloth Studio Kaggle canary?", "input": "", "output": "__UNSLOTH_STUDIO__!!!"}
{"instruction": "State the Unsloth Studio Kaggle canary.", "input": "", "output": "__UNSLOTH_STUDIO__!!!"}
{"instruction": "Repeat the Unsloth Studio Kaggle canary exactly.", "input": "", "output": "__UNSLOTH_STUDIO__!!!"}
-{"instruction": "Which canary does the Studio GPU payload use?", "input": "", "output": "__UNSLOTH_STUDIO__!!!"}
+{"instruction": "Which canary does the Unsloth GPU payload use?", "input": "", "output": "__UNSLOTH_STUDIO__!!!"}
{"instruction": "Print the canary token for this run.", "input": "", "output": "__UNSLOTH_STUDIO__!!!"}
{"instruction": "Give me the canary string.", "input": "", "output": "__UNSLOTH_STUDIO__!!!"}
-{"instruction": "What token marks a successful Studio training smoke?", "input": "", "output": "__UNSLOTH_STUDIO__!!!"}
-{"instruction": "Emit the Studio canary.", "input": "", "output": "__UNSLOTH_STUDIO__!!!"}
-{"instruction": "Answer with the Studio canary and nothing else.", "input": "", "output": "__UNSLOTH_STUDIO__!!!"}
-{"instruction": "The Studio canary is?", "input": "", "output": "__UNSLOTH_STUDIO__!!!"}
+{"instruction": "What token marks a successful Unsloth training smoke?", "input": "", "output": "__UNSLOTH_STUDIO__!!!"}
+{"instruction": "Emit the Unsloth canary.", "input": "", "output": "__UNSLOTH_STUDIO__!!!"}
+{"instruction": "Answer with the Unsloth canary and nothing else.", "input": "", "output": "__UNSLOTH_STUDIO__!!!"}
+{"instruction": "The Unsloth canary is?", "input": "", "output": "__UNSLOTH_STUDIO__!!!"}
{"instruction": "Reply with the canary used by tests/kaggle/studio_gpu.", "input": "", "output": "__UNSLOTH_STUDIO__!!!"}
{"instruction": "Say the canary.", "input": "", "output": "__UNSLOTH_STUDIO__!!!"}
{"instruction": "Return the Unsloth Studio canary verbatim.", "input": "", "output": "__UNSLOTH_STUDIO__!!!"}
{"instruction": "Canary, please.", "input": "", "output": "__UNSLOTH_STUDIO__!!!"}
-{"instruction": "What does the Studio GPU CI payload train on?", "input": "", "output": "__UNSLOTH_STUDIO__!!!"}
+{"instruction": "What does the Unsloth GPU CI payload train on?", "input": "", "output": "__UNSLOTH_STUDIO__!!!"}
{"instruction": "Output the canary token.", "input": "", "output": "__UNSLOTH_STUDIO__!!!"}
diff --git a/tests/kaggle/test_studio_gpu_harness.py b/tests/kaggle/test_studio_gpu_harness.py
index b6b6f3351b1..72bcf14fa21 100644
--- a/tests/kaggle/test_studio_gpu_harness.py
+++ b/tests/kaggle/test_studio_gpu_harness.py
@@ -1,9 +1,9 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved.
-"""CPU-only unit tests for the Kaggle Studio GPU harness.
+"""CPU-only unit tests for the Kaggle Unsloth GPU harness.
-The payload itself needs a GPU, a browser and a Studio install, and none of
+The payload itself needs a GPU, a browser and an Unsloth install, and none of
that runs here. What does run is everything that decides whether a green tick
means anything: the GPU-offload verdict, the polling predicates that separate
"finished" from "has not started", the adapter check, the generated kernel
@@ -252,7 +252,7 @@ def test_auto_mode_gpu_layers_of_minus_one_is_not_treated_as_zero():
def test_health_is_not_ready_until_hardware_detection_settles():
- """Studio answers healthy while still detecting, and refuses to start a
+ """Unsloth answers healthy while still detecting, and refuses to start a
training run or an export in that window."""
assert not studio_client.health_is_ready({"status": "healthy", "hardware_detecting": True})
assert studio_client.health_is_ready({"status": "healthy"})
@@ -829,7 +829,7 @@ def test_the_two_kaggle_legs_fit_the_account_side_by_side():
notebook_group = notebook["jobs"]["t4-smoke"]["concurrency"]["group"]
assert studio_group != notebook_group, (
- "the two legs share a concurrency group again, so Studio waits out the "
+ "the two legs share a concurrency group again, so Unsloth waits out the "
"whole notebook job for a Kaggle session that is free"
)
# Neither may be keyed on the ref: one account, so two branches of the SAME
@@ -913,12 +913,12 @@ def test_studio_is_sampled_harder_than_the_notebook_leg():
# Share of the shared 50h CI allowance, and the stand-down floor that
# enforces the priority: the cheap leg stops first so the expensive one
# gets the tail of the week.
- assert "The split is Studio 35, this leg 15" in notebook
+ assert "The split is Unsloth 35, this leg 15" in notebook
assert "--reserve-hours 20" in notebook and "--reserve-hours 10" in studio
- # The Studio block states the notebook leg's reserve in PROSE, so the number
+ # The Unsloth block states the notebook leg's reserve in PROSE, so the number
# lives in two files and one of them is not executable. Raising the notebook
- # reserve without touching that sentence leaves the Studio budget arguing from
+ # reserve without touching that sentence leaves the Unsloth budget arguing from
# a figure that is no longer true, which is exactly how the "cheap leg yields
# first" priority gets documented backwards. Assert the sentence agrees.
assert "reserve-hours is 10 rather than the notebook leg's 20" in studio
@@ -1078,7 +1078,7 @@ def test_the_reporter_survives_the_shared_module_being_unavailable(monkeypatch,
class _RecordingStudio(studio_client.Studio):
- """A Studio whose HTTP layer is a script, so login can be driven off-box."""
+ """An Unsloth whose HTTP layer is a script, so login can be driven off-box."""
def __init__(self, responses):
super().__init__(base_url = "http://127.0.0.1:0")
@@ -1175,7 +1175,7 @@ def test_the_ui_driver_gets_a_freshly_seeded_account():
"""The API path and the UI driver want OPPOSITE auth states, so the payload
has to re-seed between them.
- authenticate() retires the bootstrap password to get past Studio's forced
+ authenticate() retires the bootstrap password to get past Unsloth's forced
change; the driver's first UI step waits for #new-password on that very
form. Three hardware runs walked the whole cycle -- 412345d2 failed the API
assertions on the gate, 9ddd8ae4 fixed those and failed the driver on a
@@ -1676,11 +1676,11 @@ def test_real_losses_still_count():
assert studio_client.nonfinite_losses(status) == []
-# ------------------------------------------------------ which Studio gets started
+# ------------------------------------------------------ which Unsloth gets started
def test_studio_is_launched_from_the_interpreter_running_the_payload(tmp_path, monkeypatch):
- """The payload runs under the Studio venv, whose bin is NOT on PATH. A
+ """The payload runs under the Unsloth venv, whose bin is NOT on PATH. A
global `unsloth` anywhere on PATH would otherwise win shutil.which() and
the run would measure some other install instead of the checkout."""
module = _load_payload()
@@ -1825,7 +1825,7 @@ def test_a_log_that_was_rotated_under_us_is_read_whole(tmp_path):
def test_the_restart_that_reseeds_the_account_keeps_the_earlier_log(tmp_path, monkeypatch):
- """assert_chat_ui() restarts Studio, and a truncating open threw away the
+ """assert_chat_ui() restarts Unsloth, and a truncating open threw away the
backend log of every GPU assertion before the evidence was packaged."""
module = _load_payload()
session = _session(
diff --git a/tests/kaggle/test_t4_smoke_harness.py b/tests/kaggle/test_t4_smoke_harness.py
index 97e2b11bf99..d8c8fe3ac72 100644
--- a/tests/kaggle/test_t4_smoke_harness.py
+++ b/tests/kaggle/test_t4_smoke_harness.py
@@ -410,7 +410,7 @@ def test_this_workflows_own_leftovers_still_occupy_slots():
def test_an_idle_account_clears_the_kernel_this_workflow_pushes():
- """One kernel, carrying all four legs, leaving the second slot for Studio.
+ """One kernel, carrying all four legs, leaving the second slot for Unsloth.
This asserted 2, when four legs meant two kernels of two and the notebook
leg took the whole account. The legs now queue inside a single kernel, so
@@ -4267,7 +4267,7 @@ def test_the_frontier_leg_rides_in_the_one_kernel_rather_than_opening_a_session(
BILLING and is no longer the binding constraint. The account allows two
concurrent GPU sessions; two kernels took both, and
kaggle-t4-studio-gpu-ci.yml runs on the same account, so the notebook leg
- locked Studio out for as long as it ran. Everything now packs into one
+ locked Unsloth out for as long as it ran. Everything now packs into one
kernel and frontier queues behind the legs ahead of it.
So the property worth pinning is no longer "frontier shares a full kernel"
@@ -4285,7 +4285,7 @@ def test_the_frontier_leg_rides_in_the_one_kernel_rather_than_opening_a_session(
assert len(wired) == 1, f"frontier appears in {len(wired)} kernels, expected 1"
assert len(legs.KERNELS) == 1, (
f"{len(legs.KERNELS)} kernels means {len(legs.KERNELS)} concurrent Kaggle "
- "sessions, and the account only has two. Studio needs one of them."
+ "sessions, and the account only has two. Unsloth needs one of them."
)
assert "frontier" not in legs.UNWIRED
diff --git a/tests/python/test_cross_platform_parity.py b/tests/python/test_cross_platform_parity.py
index 2fd5d104016..00999ece72e 100644
--- a/tests/python/test_cross_platform_parity.py
+++ b/tests/python/test_cross_platform_parity.py
@@ -1006,7 +1006,7 @@ class TestNoTorchPersistenceParity:
class TestAmdBnbFloorParity:
"""bitsandbytes <= 0.49.2 NaNs at 4-bit decode shape on every AMD GPU; the ROCm
4-bit GEMV fix (bnb #1887) first ships on PyPI in 0.50.0. The `amd` extra,
- install.sh and the Studio stack resolve bitsandbytes independently, so all three
+ install.sh and the Unsloth stack resolve bitsandbytes independently, so all three
must carry the same floor or an unreachable pre-release wheel silently reinstates
the broken range."""
diff --git a/tests/python/test_unsloth_run_tool_policy_resolver.py b/tests/python/test_unsloth_run_tool_policy_resolver.py
index 11772cc739c..77c2f27ca4b 100644
--- a/tests/python/test_unsloth_run_tool_policy_resolver.py
+++ b/tests/python/test_unsloth_run_tool_policy_resolver.py
@@ -55,7 +55,7 @@ class TestLocalhostHost:
class TestZeroHost:
def test_default_is_unset(self):
- # A network bind installs no override, so the Studio UI's tool pills (which
+ # A network bind installs no override, so the Unsloth UI's tool pills (which
# send enable_tools: false when all off) are honored rather than overridden.
assert (
resolve_tool_policy(
diff --git a/tests/python/test_vision_lora_targeting.py b/tests/python/test_vision_lora_targeting.py
index e9f1d92dfb3..cd92a6f1d8d 100644
--- a/tests/python/test_vision_lora_targeting.py
+++ b/tests/python/test_vision_lora_targeting.py
@@ -197,7 +197,7 @@ def test_ensure_weight_tying_defaults_on_for_a_tied_pair_in_modules_to_save():
def test_ensure_weight_tying_covers_callers_that_pass_modules_to_save_themselves():
- """Studio's CPT path routes both names itself, so nothing is 'moved' by the redirect."""
+ """Unsloth's CPT path routes both names itself, so nothing is 'moved' by the redirect."""
from unsloth.models._utils import _redirect_embedding_targets, _resolve_ensure_weight_tying
target_modules, modules_to_save, moved = _redirect_embedding_targets(
diff --git a/tests/python/test_windows_installer_addtype_fallback.py b/tests/python/test_windows_installer_addtype_fallback.py
index 4af3788bf73..3bf0a014f27 100644
--- a/tests/python/test_windows_installer_addtype_fallback.py
+++ b/tests/python/test_windows_installer_addtype_fallback.py
@@ -8,7 +8,7 @@ Windows PowerShell 5.1 -- the interpreter studio/src-tauri/src/install.rs spawns
-- compiles by writing the source into %TEMP% and running csc.exe, so a %TEMP%
that cannot hold a file (or a scanner that eats what was just written there)
makes Add-Type throw CS2001. That exception used to travel up Get-StudioPathHash
-and end a first launch as "Could not create the Studio install lock" (#9140),
+and end a first launch as "Could not create the Unsloth install lock" (#9140),
with nothing about the message pointing at the compiler.
These run under pwsh on any platform: the failure being guarded is that a thrown
@@ -387,7 +387,7 @@ Write-Output "KEPT:$(Test-Path -LiteralPath $replacement)"
# TEMP was absent; restoring it as "" would change how every later child
# resolves its own temp directory.
assert _lines(result, "TEMPSET:") == ["TEMPSET:False"]
- # It survives on purpose: an autostarted Studio inherited it as its own %TEMP%,
+ # It survives on purpose: an autostarted Unsloth inherited it as its own %TEMP%,
# and the host's real one is broken. Stale ones are swept on the next run.
assert _lines(result, "KEPT:") == ["KEPT:True"]
@@ -651,7 +651,7 @@ def test_final_normalization_strips_every_extended_prefix():
not rooted. That is true, and it matters while a LINK TARGET is being
anchored, which is why Resolve-StudioLinkTarget still keeps the extended
form. It does not matter here, and keeping it made the installer and a
- running Studio compute different names for one directory.
+ running Unsloth compute different names for one directory.
"""
source = INSTALL_PS1.read_text(encoding = "utf-8")
body = _extract(r" function Resolve-StudioFinalPathInfo \{.*?\n \}\n", source)
@@ -731,7 +731,7 @@ def test_a_subst_drive_folds_onto_its_target(path: str, expected: str):
"""The Python runtime gate resolves a SUBST drive; Path.resolve does that.
Left unresolved here, one directory reached under two spellings produces two
- different install mutexes, and a Studio running from the physical spelling is
+ different install mutexes, and an Unsloth running from the physical spelling is
invisible to the in-use scan. Measured on windows-latest: subst.exe is the
only source available without a compiler -- Get-PSDrive.DisplayRoot,
Win32_LogicalDisk.ProviderName, GetFullPath and Resolve-Path all reveal
@@ -759,9 +759,9 @@ def test_a_subst_drive_folds_onto_its_target(path: str, expected: str):
def test_the_recorded_owner_outranks_the_name(tmp_path: Path):
"""The PID in the name is the INSTALLER's, and it exits.
- The process that keeps using the directory is the Studio the installer
+ The process that keeps using the directory is the Unsloth the installer
autostarted, which is what owner.pid records. Reading only the name would
- clear a live Studio's %TEMP% on the next run.
+ clear a live Unsloth's %TEMP% on the next run.
"""
root = tmp_path / "root"
root.mkdir()
@@ -792,7 +792,7 @@ def test_the_recorded_owner_outranks_the_name(tmp_path: Path):
@requires_pwsh
def test_the_sweep_keeps_a_directory_whose_owner_is_still_running(tmp_path: Path):
- """A Studio autostarted by an earlier install owns one of these as its %TEMP%.
+ """An Unsloth autostarted by an earlier install owns one of these as its %TEMP%.
It can outlive the one-day cutoff without ever writing to the directory, and
the sweep runs before the runtime mutex is taken, so age alone must not be
@@ -950,7 +950,7 @@ def test_a_root_that_fails_its_probe_is_not_left_behind(tmp_path: Path):
The probe creates each candidate before testing it, so on a host where
every root fails, giving up used to leave a "Unsloth Studio" tree on a
- machine Studio was never installed on.
+ machine Unsloth was never installed on.
"""
local_app_data = tmp_path / "localappdata"
local_app_data.mkdir()
@@ -993,7 +993,7 @@ Write-Output "PRIVATE:$(New-StudioPrivateTempDirectory)"
assert _lines(result, "PRIVATE:") == ["PRIVATE:"]
# Not just the ust-* leaf: -Force built the whole chain, so "Unsloth Studio"
# and "temp" were conjured too and a run that gave up must not leave a data
- # directory tree on a machine Studio was never installed on.
+ # directory tree on a machine Unsloth was never installed on.
# ~\.unsloth itself is shared and stays; everything the probe made under it goes.
assert not (user_profile / ".unsloth" / ".cache").exists()
assert not list(user_profile.rglob("ust-*")), list(user_profile.rglob("*"))
@@ -1087,11 +1087,11 @@ Write-Output "PATH:$($info.Path)"
@requires_pwsh
def test_an_unrecorded_owner_is_unknown_rather_than_abandoned(tmp_path: Path):
- """The name's PID is the installer's, and it can be dead while Studio is not.
+ """The name's PID is the installer's, and it can be dead while Unsloth is not.
An installer killed between Start-Process and the owner.pid write leaves a
directory whose only owner evidence is a dead installer PID, while the
- Studio it started is using that directory as its own %TEMP%. Reading is
+ Unsloth it started is using that directory as its own %TEMP%. Reading is
proof; guessing from the name is not, so the two get different patience.
"""
root = tmp_path / "root"
@@ -1102,7 +1102,7 @@ def test_an_unrecorded_owner_is_unknown_rather_than_abandoned(tmp_path: Path):
# No owner.pid, dead name PID, two days old: unknown, so it stays.
unknown = root / f"ust-{_DEAD_PID}-aaaaaaaa"
unknown.mkdir()
- (unknown / "in-use.txt").write_text("a live Studio may own this", encoding = "utf-8")
+ (unknown / "in-use.txt").write_text("a live Unsloth may own this", encoding = "utf-8")
os.utime(unknown, (two_days, two_days))
# Same, but a week past: collected, so the pile still stays bounded.
@@ -1255,9 +1255,9 @@ def test_the_private_temp_directory_is_somewhere_uninstall_reclaims():
@requires_pwsh
def test_the_uninstall_sweep_leaves_a_live_owner_and_never_follows_a_link(tmp_path: Path):
- """An uninstall stops the Studios under the roots it knows about, not others.
+ """An uninstall stops the Unsloth instances under the roots it knows about, not others.
- A Studio from another install root, or another user, can be alive on one of
+ An Unsloth from another install root, or another user, can be alive on one of
these directories as its %TEMP%; install.ps1's own sweep preserves it and so
must this one. And a temp directory that is itself a link must not be walked:
the target's children carry no ReparsePoint attribute, so a recursive delete
@@ -1299,7 +1299,7 @@ def test_the_uninstall_sweep_leaves_a_live_owner_and_never_follows_a_link(tmp_pa
victim.mkdir()
(victim / "ust-1234-abcdef03").mkdir()
(victim / "ust-1234-abcdef03" / "precious.txt").write_text("not ours", encoding = "utf-8")
- linked = tmp_path / "Linked Studio" / "temp"
+ linked = tmp_path / "Linked Unsloth" / "temp"
linked.parent.mkdir()
linked.symlink_to(victim, target_is_directory = True)
@@ -1325,7 +1325,7 @@ def test_a_live_owner_survives_the_data_directory_removal(tmp_path: Path):
"""Preserving a directory is worth nothing if the next line deletes its parent.
The primary private temp directory sits inside the data directory, and the
- data directory is removed wholesale. A Studio from another install root can
+ data directory is removed wholesale. An Unsloth from another install root can
be alive on that temp directory as its %TEMP%, so the sweep has to run first
and the removal has to be told what the sweep kept.
"""
@@ -1392,7 +1392,7 @@ def test_a_live_owner_survives_the_data_directory_removal(tmp_path: Path):
assert result.returncode == 0, result.stderr
assert _lines(result, "DONE:") == ["DONE:1"]
assert _lines(result, "KEPT:") == ["KEPT:1"]
- assert (live / "scratch.bin").exists(), "a live Studio's %TEMP% went with the data dir"
+ assert (live / "scratch.bin").exists(), "a live Unsloth's %TEMP% went with the data dir"
assert not dead.exists()
assert not other.exists(), "the rest of the data dir was left behind"
@@ -1421,7 +1421,7 @@ def test_a_link_high_above_another_profile_is_still_a_link(tmp_path: Path):
'$ErrorActionPreference = "Stop"\nfunction _Substep { param([string]$Msg, [string]$Color) }'
)
- # The real profile, with a Studio temp tree in it that belongs to a dead
+ # The real profile, with an Unsloth temp tree in it that belongs to a dead
# owner: nothing about the entries themselves protects them.
real = tmp_path / "real profile"
real_temp = real / "localappdata" / "Unsloth Studio" / "temp"
@@ -1522,7 +1522,7 @@ def test_the_uninstall_sweep_needs_a_recorded_owner_outside_its_own_profile(tmp_
"""The alternate LocalAppData spelling can be another user's profile.
install.ps1 reads a missing owner.pid as unknown rather than abandoned,
- because an installer killed before writing it leaves a live Studio holding
+ because an installer killed before writing it leaves a live Unsloth holding
the directory. Deleting that out of somebody else's profile is not this
uninstall's business. Under our own profile the shape is enough, since that
is what is being removed.
diff --git a/tests/python/test_windows_installer_concurrency_guard.py b/tests/python/test_windows_installer_concurrency_guard.py
index 5e713e43748..cd9d286f510 100644
--- a/tests/python/test_windows_installer_concurrency_guard.py
+++ b/tests/python/test_windows_installer_concurrency_guard.py
@@ -345,7 +345,7 @@ def test_installer_ignores_command_line_and_cwd_only_path_mentions():
# The same contract has to hold on every rung of that helper's fallback: a
# confirmed image, never a command line. Its Win32_Process rung exists because a
# host that cannot compile the native helper would otherwise find no running
- # processes and overwrite a venv Studio has open (issue #9140).
+ # processes and overwrite a venv Unsloth has open (issue #9140).
image = _extract(r" function Get-StudioProcessImagePath \{.*?\n \}\n", source)
assert ".CommandLine" not in image
assert "ExecutablePath" in image
@@ -738,7 +738,7 @@ def test_unicode_custom_root_mutex_name_matches_python(tmp_path: Path, shell: st
source = INSTALL_PS1.read_text(encoding = "utf-8")
helpers = _mutex_helpers(source)
- custom_root = tmp_path / "Studio-ß"
+ custom_root = tmp_path / "Unsloth-ß"
custom_root.mkdir()
script = f"""
$ErrorActionPreference = "Stop"
diff --git a/tests/python/test_windows_studio_update_launcher.py b/tests/python/test_windows_studio_update_launcher.py
index 6062bd42e17..6ff5f65e6be 100644
--- a/tests/python/test_windows_studio_update_launcher.py
+++ b/tests/python/test_windows_studio_update_launcher.py
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved.
-"""Focused regression tests for the Windows Studio updater launcher transaction."""
+"""Focused regression tests for the Windows Unsloth updater launcher transaction."""
from __future__ import annotations
@@ -904,7 +904,7 @@ def test_orphaned_install_metadata_is_not_a_runnable_cli(monkeypatch, studio, re
moved, leaves an ``unsloth-*.dist-info`` behind with nothing to import. This
check stands in front of the headless-public strip of .bootstrap_password,
so answering yes here lands exactly the lockout the gate's placement exists
- to prevent: a public Studio with no login page and no recovery credential.
+ to prevent: a public Unsloth with no login page and no recovery credential.
"""
python, site_packages = real_venv
windows_layout = python.parent.parent / "Lib" / "site-packages"
@@ -979,7 +979,7 @@ def test_a_package_the_trampoline_cannot_import_is_not_a_runnable_cli(
"""The gate has to fail on everything the launch would fail on.
It stands in front of the headless-public strip of .bootstrap_password, so a
- yes here that the trampoline then contradicts is a public Studio with no
+ yes here that the trampoline then contradicts is a public Unsloth with no
login page and no plaintext recovery credential. Locating the package is not
the question; importing it and getting `app` back is, which is why the probe
runs that exact import rather than a cheaper find_spec.
@@ -1008,7 +1008,7 @@ def test_a_probe_that_cannot_start_the_interpreter_fails_closed(monkeypatch, stu
interpreter that will not start means the re-exec will not either, and the
on-disk layout cannot say otherwise. The caller strips .bootstrap_password
before that re-exec on a headless public launch, so passing here would leave
- a public Studio with no login page and no plaintext recovery credential.
+ a public Unsloth with no login page and no plaintext recovery credential.
"""
scripts = tmp_path / "Scripts"
site_packages = tmp_path / "Lib" / "site-packages"
diff --git a/tests/python/test_windows_xformers_installer.py b/tests/python/test_windows_xformers_installer.py
index 962adf3049a..2ba4db6c52d 100644
--- a/tests/python/test_windows_xformers_installer.py
+++ b/tests/python/test_windows_xformers_installer.py
@@ -283,7 +283,7 @@ def test_installed_build_probe_reads_cpp_lib_json():
# Torch releases the exact tables cannot list, and the answer both selectors must give.
# The two implementations resolve the same machine (install.ps1 during install, wheel_utils
-# on demand from Studio), so a fallback that lives in only one of them is a machine whose
+# on demand from Unsloth), so a fallback that lives in only one of them is a machine whose
# answer changes depending on which one asked.
STABLE_ABI_PARITY_CASES = [
("2.10.1+cu130", "13.0", "0.0.35"),
diff --git a/tests/sh/test_install_host_defaults.sh b/tests/sh/test_install_host_defaults.sh
index adf2c2bb17b..7b59b7b13ff 100755
--- a/tests/sh/test_install_host_defaults.sh
+++ b/tests/sh/test_install_host_defaults.sh
@@ -5,7 +5,7 @@
# Installer scripts and README must not put a wildcard bind in a user-visible
# DEFAULT launch command. Binding 0.0.0.0 exposes the raw port to the LAN, so it
# has to be something the reader opts into, never what they are handed first.
-# Provenance: #5267 (default the Studio host to 127.0.0.1) and #7774 (anchor the
+# Provenance: #5267 (default the Unsloth host to 127.0.0.1) and #7774 (anchor the
# host-defaults assertions).
#
# The property, stated without reference to any heading:
diff --git a/tests/sh/test_install_rollback_lifecycle.sh b/tests/sh/test_install_rollback_lifecycle.sh
index 048334d1f79..0b7294aa614 100644
--- a/tests/sh/test_install_rollback_lifecycle.sh
+++ b/tests/sh/test_install_rollback_lifecycle.sh
@@ -1,7 +1,7 @@
#!/bin/bash
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-# Exercises install.sh's real rollback helpers without downloading the Studio stack.
+# Exercises install.sh's real rollback helpers without downloading the Unsloth stack.
set -e
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
diff --git a/tests/sh/test_linux_uv_python_downloads_manual.sh b/tests/sh/test_linux_uv_python_downloads_manual.sh
index 2892fa674c1..a31dff0223e 100755
--- a/tests/sh/test_linux_uv_python_downloads_manual.sh
+++ b/tests/sh/test_linux_uv_python_downloads_manual.sh
@@ -149,9 +149,9 @@ else
PASS=$((PASS + 1))
fi
-echo "=== Studio installer stream ==="
+echo "=== Unsloth installer stream ==="
-# A successful retry must clear the first attempt's Studio failure marker.
+# A successful retry must clear the first attempt's Unsloth failure marker.
_STREAM=$(mktemp)
{
printf 'C_ERR=""; TAURI_MODE=true; UNSLOTH_VERBOSE=false; UNSLOTH_DL_MARKER_MIN_BYTES=52428800\n'
@@ -234,7 +234,7 @@ _out=$(_emit fedora)
assert_contains "fedora fallback still returns 0" "$_out" "RC=0"
assert_contains "fedora fallback ran uv python install" "$_out" \
"python install >=3.13,<3.14,!=3.13.8"
-assert_contains "recovery clears the Studio failure" "$_out" "ERROR_CLEAR"
+assert_contains "recovery clears the Unsloth failure" "$_out" "ERROR_CLEAR"
assert_eq "ERROR_CLEAR is the last error-state line" "ERROR_CLEAR" \
"$(echo "$_out" | grep -oE 'ERROR_OUTPUT|ERROR_CLEAR' | tail -1)"
@@ -277,7 +277,7 @@ fi
wait "$_pid" || true
_out=$(cat "$_live")
assert_contains "live fedora fallback still returns 0" "$_out" "RC=0"
-assert_contains "live recovery still clears the Studio failure" "$_out" "ERROR_CLEAR"
+assert_contains "live recovery still clears the Unsloth failure" "$_out" "ERROR_CLEAR"
assert_eq "live ERROR_CLEAR is the last error-state line" "ERROR_CLEAR" \
"$(echo "$_out" | grep -oE 'ERROR_OUTPUT|ERROR_CLEAR' | tail -1)"
rm -rf "$_sd"
@@ -287,7 +287,7 @@ _out=$(_emit other)
assert_not_contains "unrelated stream failure: no python install" "$_out" "python install"
assert_contains "unrelated stream failure: non-zero" "$_out" "RC=2"
if echo "$_out" | grep -q ERROR_CLEAR; then
- echo " FAIL: unrecovered failure must not clear the Studio error"
+ echo " FAIL: unrecovered failure must not clear the Unsloth error"
FAIL=$((FAIL + 1))
else
echo " PASS: unrecovered failure does not emit ERROR_CLEAR"
diff --git a/tests/sh/test_macos_venv_python_preference.sh b/tests/sh/test_macos_venv_python_preference.sh
index b8df62fd963..83f72264841 100755
--- a/tests/sh/test_macos_venv_python_preference.sh
+++ b/tests/sh/test_macos_venv_python_preference.sh
@@ -98,10 +98,10 @@ else
PASS=$((PASS + 1))
fi
-echo "=== Studio installer stream ==="
+echo "=== Unsloth installer stream ==="
# install.rs turns [TAURI:ERROR_OUTPUT] into "Installation failed" until a later
-# [TAURI:ERROR_CLEAR]. A recovered fallback must emit one or Studio reports a
+# [TAURI:ERROR_CLEAR]. A recovered fallback must emit one or Unsloth reports a
# failure it already recovered from.
_STREAM=$(mktemp)
{
@@ -140,7 +140,7 @@ fi
_out=$(_emit 1)
assert_contains "fallback run still returns 0" "$_out" "RC=0"
-assert_contains "recovery clears the Studio failure" "$_out" "ERROR_CLEAR"
+assert_contains "recovery clears the Unsloth failure" "$_out" "ERROR_CLEAR"
assert_eq "ERROR_CLEAR is the last error-state line" "ERROR_CLEAR" \
"$(echo "$_out" | grep -o 'ERROR_OUTPUT\|ERROR_CLEAR' | tail -1)"
diff --git a/tests/sh/test_setup_webview_cache_clear.sh b/tests/sh/test_setup_webview_cache_clear.sh
index 5b56e0e0833..4ea138de302 100755
--- a/tests/sh/test_setup_webview_cache_clear.sh
+++ b/tests/sh/test_setup_webview_cache_clear.sh
@@ -197,7 +197,7 @@ else
fi
fi
-# ── 7c. An override that exists and is writable but holds no Studio install: setup
+# ── 7c. An override that exists and is writable but holds no Unsloth install: setup
# aborts later at the venv check, so clearing first would cost the cache for nothing ──
_novenv_home=$(new_home)
_novenv_root="$_TMP_ROOT/exists-but-empty.$$"
diff --git a/tests/sh/test_uninstall_sd_cpp_custom_root.sh b/tests/sh/test_uninstall_sd_cpp_custom_root.sh
index 69258e016cb..408f4371140 100755
--- a/tests/sh/test_uninstall_sd_cpp_custom_root.sh
+++ b/tests/sh/test_uninstall_sd_cpp_custom_root.sh
@@ -3,7 +3,7 @@
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
# Unit test for custom/env-mode stable-diffusion.cpp removal in scripts/uninstall.sh.
#
-# A custom Studio (UNSLOTH_STUDIO_HOME=<root>) installs its native diffusion build beside
+# A custom Unsloth (UNSLOTH_STUDIO_HOME=<root>) installs its native diffusion build beside
# the root at <parent>/stable-diffusion.cpp -- find_sd_cpp_binary resolves it from
# UNSLOTH_STUDIO_HOME.parent (sd_cpp_engine.py). Uninstall must remove that sibling too, or
# a stale build lingers and a fresh install's finder can pick it up. Tested hermetically:
@@ -67,8 +67,8 @@ grep -q '_remove_path' "$DEFAULT_FILE" || { echo "FAIL: default fragment missing
# shellcheck disable=SC1090
. "$HELPERS_FILE"
-# make_studio <root> : a valid custom Studio root (share/studio.conf owner marker) plus its
-# sibling <parent>/stable-diffusion.cpp build carrying the Studio owner marker, each with a
+# make_studio <root> : a valid custom Unsloth root (share/studio.conf owner marker) plus its
+# sibling <parent>/stable-diffusion.cpp build carrying the Unsloth owner marker, each with a
# file so removal is observable.
make_studio() {
mkdir -p "$1/share"
@@ -112,9 +112,9 @@ assert_nodir "shared-parent root B removed" "$p2/studioB"
assert_nodir "shared-parent root C removed" "$p2/studioC"
assert_nodir "shared sibling stable-diffusion.cpp removed" "$p2/stable-diffusion.cpp"
-# 3. A sibling stable-diffusion.cpp WITHOUT the Studio owner marker (a user's own checkout,
+# 3. A sibling stable-diffusion.cpp WITHOUT the Unsloth owner marker (a user's own checkout,
# even a built one, beside a custom root -- or one left when UNSLOTH_SD_CPP_PATH points
-# Studio elsewhere) is KEPT, though the Studio root itself is still removed.
+# Unsloth elsewhere) is KEPT, though the Unsloth root itself is still removed.
p3="$_TMP_ROOT/inst3"
mkdir -p "$p3/studioD/share"; : > "$p3/studioD/share/studio.conf"
mkdir -p "$p3/stable-diffusion.cpp/build/bin"
@@ -132,7 +132,7 @@ _custom_studio_roots() { printf '%s\n' "$p1/studioA"; } # a now-removed root ->
run_loop
assert_dir "default-mode sd.cpp untouched by custom loop" "$HOME/.unsloth/stable-diffusion.cpp"
-# 5. Default-mode ~/.unsloth/stable-diffusion.cpp WITH the Studio owner marker (a real Studio
+# 5. Default-mode ~/.unsloth/stable-diffusion.cpp WITH the Unsloth owner marker (a real Unsloth
# default install) IS removed by the default-mode line.
rm -rf "$HOME/.unsloth/stable-diffusion.cpp"
mkdir -p "$HOME/.unsloth/stable-diffusion.cpp/build/bin"
@@ -142,7 +142,7 @@ run_default_removal
assert_nodir "default-mode owned sd.cpp removed" "$HOME/.unsloth/stable-diffusion.cpp"
# 6. Default-mode ~/.unsloth/stable-diffusion.cpp WITHOUT the marker -- a user's own checkout at
-# the default path (or a pre-marker Studio build) -- is KEPT, mirroring the custom-root guard,
+# the default path (or a pre-marker Unsloth build) -- is KEPT, mirroring the custom-root guard,
# so uninstall never deletes a user file.
rm -rf "$HOME/.unsloth/stable-diffusion.cpp"
mkdir -p "$HOME/.unsloth/stable-diffusion.cpp"
@@ -183,14 +183,14 @@ mkdir -p "$p7/stable-diffusion.cpp/build/bin"
_custom_studio_roots() { printf '%s\n' "$p7"; }
assert_lists "nested <root>/stable-diffusion.cpp is stopped before removal" "$p7/stable-diffusion.cpp"
-# 8. A root this run does NOT delete (no Studio sentinels) keeps its unowned nested build running.
+# 8. A root this run does NOT delete (no Unsloth sentinels) keeps its unowned nested build running.
p8="$_TMP_ROOT/inst8/studioF"
mkdir -p "$p8/stable-diffusion.cpp/build/bin"
: > "$p8/stable-diffusion.cpp/build/bin/sd-server" # no owner marker: the user's own build
_custom_studio_roots() { printf '%s\n' "$p8"; }
-assert_not_lists "unowned nested build under a non-Studio root is left running" "$p8/stable-diffusion.cpp"
+assert_not_lists "unowned nested build under a non-Unsloth root is left running" "$p8/stable-diffusion.cpp"
-# 8b. But under a real Studio root, which the loop deletes wholesale, the unmarked nested build is
+# 8b. But under a real Unsloth root, which the loop deletes wholesale, the unmarked nested build is
# stopped anyway: the current-root finder can select it without a marker, and deleting the tree
# around a live server just leaves it holding its port.
p8b="$_TMP_ROOT/inst8b/studioF2"
@@ -198,7 +198,7 @@ mkdir -p "$p8b/share" "$p8b/stable-diffusion.cpp/build/bin"
: > "$p8b/share/studio.conf"
: > "$p8b/stable-diffusion.cpp/build/bin/sd-server" # no owner marker
_custom_studio_roots() { printf '%s\n' "$p8b"; }
-assert_lists "unmarked nested build under a doomed Studio root is stopped" "$p8b/stable-diffusion.cpp"
+assert_lists "unmarked nested build under a doomed Unsloth root is stopped" "$p8b/stable-diffusion.cpp"
# 9. The legacy sibling an older build installed is still listed (it is still deleted).
p9="$_TMP_ROOT/inst9"
@@ -228,7 +228,7 @@ assert_nodir "nested stable-diffusion.cpp removed with its root" "$p11/studioI/s
assert_nodir "its custom root removed" "$p11/studioI"
-# ── A Studio home that is itself a symlink ────────────────────────────────────────────────────
+# ── An Unsloth home that is itself a symlink ────────────────────────────────────────────────────
#
# The old build derived the sd.cpp root with a plain `dirname "$UNSLOTH_STUDIO_HOME"`, so for
# UNSLOTH_STUDIO_HOME=<link> the tree it installed sits beside the LINK. _custom_studio_roots
@@ -265,12 +265,12 @@ run_lexical_removal
assert_dir "symlinked home: unowned sd.cpp beside the link kept" "$p14/stable-diffusion.cpp"
assert_not_lists "symlinked home: unowned sd.cpp beside the link is left running" "$p14/stable-diffusion.cpp"
-# 14b. A stale or mistyped home is not a Studio root, and the lexical pass must apply the same
+# 14b. A stale or mistyped home is not an Unsloth root, and the lexical pass must apply the same
# ownership check the canonical loop does: "<parent>/typo" must not take the marked
# <parent>/stable-diffusion.cpp belonging to a different, valid install.
p14b="$_TMP_ROOT/inst14b"
mkdir -p "$p14b/other/share" "$p14b/stable-diffusion.cpp"
-: > "$p14b/other/share/studio.conf" # somebody else's Studio, sharing the parent
+: > "$p14b/other/share/studio.conf" # somebody else's Unsloth, sharing the parent
: > "$p14b/stable-diffusion.cpp/sd-cli"
: > "$p14b/stable-diffusion.cpp/.unsloth-studio-owned"
UNSLOTH_STUDIO_HOME="$p14b/typo" # never existed
diff --git a/tests/sh/test_uv_pinned_release.sh b/tests/sh/test_uv_pinned_release.sh
index db2b60b7bc8..9b79ea2ca3a 100755
--- a/tests/sh/test_uv_pinned_release.sh
+++ b/tests/sh/test_uv_pinned_release.sh
@@ -1013,7 +1013,7 @@ else
fi
# A launcher on a UNC share is a remote script to PowerShell, and RemoteSigned refuses an
-# unsigned one, so a roaming profile would get a shortcut that exits without starting Studio.
+# unsigned one, so a roaming profile would get a shortcut that exits without starting Unsloth.
# A mapped drive is the same share and the same zone, so it must take the same branch.
_ps1="$SCRIPT_DIR/../../install.ps1"
if grep -q '\$launcherIsRemote = \$launcherPs1 -like "\\\\\*"' "$_ps1" \
diff --git a/tests/studio/_playwright_robust.py b/tests/studio/_playwright_robust.py
index f20695075e5..db5fff4f997 100644
--- a/tests/studio/_playwright_robust.py
+++ b/tests/studio/_playwright_robust.py
@@ -168,7 +168,7 @@ def _require_frontend_toolchain() -> None:
port-shuffling will help. A missing toolchain and a broken one are different failures
and must not look the same.
- This is not hypothetical. A job that installs Studio from a warm frontend-dist cache
+ This is not hypothetical. A job that installs Unsloth from a warm frontend-dist cache
never builds the frontend, so `studio/setup.sh` skips its `npm install` and there is no
`node_modules` for this harness to use, while the same job on a cold cache builds and
passes. That makes the failure look like flake instead of a missing setup step.
diff --git a/tests/studio/_thread_fast_copy_constructs.py b/tests/studio/_thread_fast_copy_constructs.py
index 8575590a84b..95b758e16bd 100644
--- a/tests/studio/_thread_fast_copy_constructs.py
+++ b/tests/studio/_thread_fast_copy_constructs.py
@@ -36,7 +36,7 @@ CONSTRUCTS = {
"img_alt_inline": f'<p>before{IMG}alt="Tool result 1">after</p>',
# An image the native iterator SKIPS. Raised in review and confirmed against the real
# clipboard: inserting alt text for one of these ADDS text the clipboard never carried.
- # The `invisible` case is Studio's own ImagePreview before the image has loaded.
+ # The `invisible` case is Unsloth's own ImagePreview before the image has loaded.
"img_alt_display_none": f'<p>before {IMG}alt="SVG preview" style="display:none"> after</p>',
"img_alt_hidden": f'<p>before {IMG}alt="SVG preview" style="visibility:hidden"> after</p>',
"img_alt_unselectable": f'<p>before {IMG}alt="SVG preview" style="user-select:none"> after</p>',
diff --git a/tests/studio/install/test_denied_llama_cpp_preflight.py b/tests/studio/install/test_denied_llama_cpp_preflight.py
index 4b8c32c8749..5943173ea2e 100644
--- a/tests/studio/install/test_denied_llama_cpp_preflight.py
+++ b/tests/studio/install/test_denied_llama_cpp_preflight.py
@@ -207,7 +207,7 @@ def test_the_preflight_cannot_be_the_thing_that_breaks_the_run() -> None:
def test_a_custom_studio_home_is_never_called_a_cache_we_own() -> None:
- """Do not call an unreadable custom Studio home a managed cache."""
+ """Do not call an unreadable custom Unsloth home a managed cache."""
body = _function_source(INSTALL_PS1, "Invoke-ManagedLlamaCppPreflight")
# Use the same predicate for path selection and ownership wording.
assert "$homeIsCustom = Test-StudioHomeIsCustom" in body
diff --git a/tests/studio/install/test_diffusers_pin.py b/tests/studio/install/test_diffusers_pin.py
index 2fecfdf98b3..53141e32a66 100644
--- a/tests/studio/install/test_diffusers_pin.py
+++ b/tests/studio/install/test_diffusers_pin.py
@@ -3,7 +3,7 @@
"""The pinned Diffusers revision has to survive a fresh install.sh, not just an update.
-MiniMax-H3 needs a Diffusers revision newer than any published release, and Studio
+MiniMax-H3 needs a Diffusers revision newer than any published release, and Unsloth
refuses to load it otherwise. The pin originally lived in
studio/backend/requirements/base.txt, which did not reach fresh install.sh installs at
the time. base.txt now reaches those installs as an independent shared phase, but it
diff --git a/tests/studio/install/test_rdna1_unsupported_message_8529.py b/tests/studio/install/test_rdna1_unsupported_message_8529.py
index bde4ebe2c41..e4ca7bd421b 100644
--- a/tests/studio/install/test_rdna1_unsupported_message_8529.py
+++ b/tests/studio/install/test_rdna1_unsupported_message_8529.py
@@ -1089,7 +1089,7 @@ class TestVulkanAdvice:
``install_llama_prebuilt.py`` (``_route_to_vulkan_prebuilt``,
``install_prebuilt``, ``main``): it chooses which llama.cpp bundle gets
downloaded, at install time. A user who exports it and merely relaunches
- Studio sees no change and concludes the advice was wrong -- which is
+ Unsloth sees no change and concludes the advice was wrong -- which is
exactly what happened in #8458. Advice that omits the timing is worse than
no advice, so a message naming the variable must also name the moment.
"""
diff --git a/tests/studio/install/test_rocm_gfx_spoof_7331.py b/tests/studio/install/test_rocm_gfx_spoof_7331.py
index cfd907546da..2b326fc10e4 100644
--- a/tests/studio/install/test_rocm_gfx_spoof_7331.py
+++ b/tests/studio/install/test_rocm_gfx_spoof_7331.py
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-"""Regression tests for issue #7331 -- Studio segfaults at startup on Strix Halo.
+"""Regression tests for issue #7331 -- Unsloth segfaults at startup on Strix Halo.
Reporter: Ryzen AI MAX+ 395 with Radeon 8060S (Strix Halo, physically gfx1151),
Linux Mint, ROCm 6.3.42134, single GPU. Their rocminfo reported **gfx1100** because
@@ -984,7 +984,7 @@ class TestConfirmedSpoofIsClearedBeforeLaunch:
assert probe["HSA_OVERRIDE_GFX_VERSION"] == "11.5.1", probe
def test_install_sh_clears_it_on_the_same_branch(self):
- """The shell path is what matters for the reported flow: install.sh execs Studio
+ """The shell path is what matters for the reported flow: install.sh execs Unsloth
from this very shell and install_python_stack.py runs as a grandchild, so a pop
there cannot reach the launch."""
source = _INSTALL_SH.read_text(encoding = "utf-8")
@@ -993,7 +993,7 @@ class TestConfirmedSpoofIsClearedBeforeLaunch:
block = source[start : source.find("\n fi\n", start)]
assert "unset HSA_OVERRIDE_GFX_VERSION" in block, (
"the Strix reroute must clear a corroborated spoof before this shell "
- "execs Studio, or the new wheels meet a runtime still claiming gfx1100"
+ "execs Unsloth, or the new wheels meet a runtime still claiming gfx1100"
)
assert '[ -n "$_spoof_physical" ]' in block, (
"the clear must be guarded by the corroborated-spoof verdict, never "
diff --git a/tests/studio/install/test_studio_extra_matches_requirements.py b/tests/studio/install/test_studio_extra_matches_requirements.py
index 5a9f8bd2108..146715caf37 100644
--- a/tests/studio/install/test_studio_extra_matches_requirements.py
+++ b/tests/studio/install/test_studio_extra_matches_requirements.py
@@ -65,7 +65,7 @@ def test_huggingface_extra_contains_no_diffusers_vcs_reference():
assert diffusers
assert all(requirement.url is None for requirement in diffusers), (
"PyPI rejects VCS direct references in uploaded Requires-Dist metadata; "
- "keep temporary Diffusers commit pins in Studio installer requirement files."
+ "keep temporary Diffusers commit pins in Unsloth installer requirement files."
)
@@ -78,7 +78,7 @@ def test_studio_extra_matches_requirements_file():
surplus = sorted(set(extra) - set(required))
assert not missing, (
f"studio.txt lists {missing} but the `studio` extra does not. "
- '`pip install "unsloth[studio]"` would build a venv the Studio server '
+ '`pip install "unsloth[studio]"` would build a venv the Unsloth server '
"cannot boot in. Add them to [project.optional-dependencies] studio."
)
assert not surplus, (
diff --git a/tests/studio/mac_capability_verdict_smoke.py b/tests/studio/mac_capability_verdict_smoke.py
index 1be0995a837..9735f23e5b5 100644
--- a/tests/studio/mac_capability_verdict_smoke.py
+++ b/tests/studio/mac_capability_verdict_smoke.py
@@ -668,7 +668,7 @@ def assert_settled_verdict(sample: Sample, chat_only: bool, reason, label: str)
@contextmanager
def booted(port: int, log: Path, env: dict):
- """Boot a Studio with ``env``, polling /api/health from before it can answer."""
+ """Boot an Unsloth with ``env``, polling /api/health from before it can answer."""
base = f"http://127.0.0.1:{port}"
poller = HealthPoller(base)
poller.start()
diff --git a/tests/studio/playwright_chat_ui.py b/tests/studio/playwright_chat_ui.py
index 22debdb4457..0ecd0c0e3c0 100644
--- a/tests/studio/playwright_chat_ui.py
+++ b/tests/studio/playwright_chat_ui.py
@@ -1356,7 +1356,7 @@ with sync_playwright() as p:
# completion often enough to appear in 3 of 8 sampled runs, and the clause
# held anyway every time, so it never had the coverage its wording implies.
# A content-based replacement would be flakier than what it replaces, because
- # an empty completion is the model's behaviour, not a defect in Studio.
+ # an empty completion is the model's behaviour, not a defect in Unsloth.
#
# It matters now because the assistant action bar autohides on every reply but
# the newest, so for the older of the two this reads, the labels are no longer in
diff --git a/tests/studio/playwright_heavy_thread.py b/tests/studio/playwright_heavy_thread.py
index 541ce6cefb2..482a4674164 100644
--- a/tests/studio/playwright_heavy_thread.py
+++ b/tests/studio/playwright_heavy_thread.py
@@ -3,7 +3,7 @@
"""Where a HEAVY thread stalls, as a curve over how much content the thread holds.
-Users report Studio and Desktop going sluggish "after long generations with any code cells
+Users report Unsloth and Desktop going sluggish "after long generations with any code cells
and/or text": typing, scrolling, opening a message menu, deleting and re-opening the thread all
lag once a session has accumulated a few very long replies. That report is about CONTENT VOLUME,
not message count, so the axis here is characters of thread content, not messages, and the
@@ -40,7 +40,7 @@ So the primary four, all portable:
A MessageChannel ping-pong is the usual way to build the stall detector and it was measured and
rejected here: it spins ~150k times a second, and on Firefox that HALVED the frame rate of the
-page under test (38 frames -> 14, median frame 17ms -> 34ms) before any Studio code ran. The
+page under test (38 frames -> 14, median frame 17ms -> 34ms) before any Unsloth code ran. The
1ms setTimeout loop ticks ~150 times a second, costs nothing measurable on any of the three
engines, and reported the same 120ms synthetic stall on all three.
@@ -108,7 +108,7 @@ needs its own port: a killed run can leave its vite dev server holding the previ
The dev server is deliberate and is a limitation to read the numbers against: React runs in
development mode, nothing is minified, and vite serves unbundled modules. Absolute milliseconds
-are therefore higher than a packaged Studio's. The curve across sizes and the ranking across
+are therefore higher than a packaged Unsloth's. The curve across sizes and the ranking across
actions are what this file is for.
"""
@@ -502,7 +502,7 @@ async (settleMs) => {
await window.__nextPaint();
window.__hv.begin();
const started = performance.now();
- // The wheel event first, and it is load-bearing. Studio replaces assistant-ui's autoscroll
+ // The wheel event first, and it is load-bearing. Unsloth replaces assistant-ui's autoscroll
// with an intent-aware one, and a bare scrollTo from the bottom is read as programmatic and
// snapped straight back: measured, the jump landed at the bottom it started from and the whole
// column timed nothing. A wheel is what says a person did this.
diff --git a/tests/studio/playwright_image_download_cancel_retry.py b/tests/studio/playwright_image_download_cancel_retry.py
index 8b17d6f32e3..09ec0332901 100644
--- a/tests/studio/playwright_image_download_cancel_retry.py
+++ b/tests/studio/playwright_image_download_cancel_retry.py
@@ -3,7 +3,7 @@
"""Rendered cancel/retry regression for staged diffusion downloads.
-The browser runs the real Studio UI against a deterministic API simulation of
+The browser runs the real Unsloth UI against a deterministic API simulation of
the reported sequence:
1. Start with the 2.6 GB Klein GGUF already cached.
diff --git a/tests/studio/playwright_loaded_models_indicator.py b/tests/studio/playwright_loaded_models_indicator.py
index 90ba72ee505..1980ee4288a 100644
--- a/tests/studio/playwright_loaded_models_indicator.py
+++ b/tests/studio/playwright_loaded_models_indicator.py
@@ -472,7 +472,7 @@ def run(page, state: Runtime) -> None:
# ── A blip on a runtime that IS holding something ───────────────────
# A failed read is not evidence the runtime is empty. Dropping the rows for
- # it takes a loaded model off the card, and on a remote Studio a blip can
+ # it takes a loaded model off the card, and on a remote Unsloth a blip can
# take all four at once, so the whole card would go while everything stayed
# resident. The row must survive the failure and outlive it.
state.chat = chat(active_model = "unsloth/Qwen3-4B", loaded = ["unsloth/Qwen3-4B"])
diff --git a/tests/studio/playwright_mac_tab_capabilities.py b/tests/studio/playwright_mac_tab_capabilities.py
index 0fda86d0d59..acb596eeab9 100644
--- a/tests/studio/playwright_mac_tab_capabilities.py
+++ b/tests/studio/playwright_mac_tab_capabilities.py
@@ -43,7 +43,7 @@ Covers the two field failures from Unsloth Desktop 0.1.524-beta on Apple Silicon
run where the same stall a minute earlier only warned, which is this file's
own flake moved to the edge of the window instead of removed.
-Runs against a live Studio; drives the real UI. Env contract matches the other
+Runs against a live Unsloth; drives the real UI. Env contract matches the other
scripts here: BASE_URL, STUDIO_OLD_PW, PW_ART_DIR.
"""
@@ -605,7 +605,7 @@ class BackendSurvivalPoller:
def rotate_password(page) -> None:
"""Complete the forced password change a bootstrap login lands on.
- Studio seeds a one-time bootstrap password and requires it to be replaced before
+ Unsloth seeds a one-time bootstrap password and requires it to be replaced before
the app proper is reachable. A harness that rotates it over the API first (the
staging one does) never sees this screen; a harness that hands over the raw
bootstrap password (this repo's macOS smoke does) always does. Handling it here
diff --git a/tests/studio/playwright_model_config.py b/tests/studio/playwright_model_config.py
index 3b3210aad71..373e54b881c 100644
--- a/tests/studio/playwright_model_config.py
+++ b/tests/studio/playwright_model_config.py
@@ -55,7 +55,7 @@ from _playwright_robust import ( # noqa: E402
BASE = os.environ["BASE_URL"]
NEW = os.environ.get("STUDIO_NEW_PW", "ModelCfg-NEW-2026!")
-# Attach mode: log into an already-provisioned Studio with an existing password
+# Attach mode: log into an already-provisioned Unsloth with an existing password
# instead of the first-boot change-password dance. CI leaves STUDIO_LOGIN_PW unset
# to exercise the real change-password flow; local runs can set it to skip re-provisioning.
LOGIN_PW = os.environ.get("STUDIO_LOGIN_PW")
@@ -322,7 +322,7 @@ with sync_playwright() as p:
if LOGIN_PW:
# Attach mode: log in via the API and seed the token before navigation,
# skipping the first-boot change-password dance.
- step("setup: API login + token seed (attach to running Studio)")
+ step("setup: API login + token seed (attach to running Unsloth)")
_tok = _login_token_via_api(BASE, LOGIN_USER, LOGIN_PW)
ctx.add_init_script(
f"try{{localStorage.setItem('unsloth_auth_token', {json.dumps(_tok)});}}"
diff --git a/tests/studio/playwright_settings_tabs.py b/tests/studio/playwright_settings_tabs.py
index 3117770289a..39d9034530a 100644
--- a/tests/studio/playwright_settings_tabs.py
+++ b/tests/studio/playwright_settings_tabs.py
@@ -165,7 +165,7 @@ def click_tab_and_observe(page, tab: str) -> dict:
def require_harness(page) -> None:
"""Fail with the cause rather than a selector timeout if the page has moved on.
- Vite dev proxies /api to 127.0.0.1:8888. With a real Studio listening there and no
+ Vite dev proxies /api to 127.0.0.1:8888. With a real Unsloth listening there and no
token, those calls come back 401 and the app's auth handling navigates, which takes
the harness's window with it. Every later step then times out on a dialog that cannot
exist. This is not the dialog's doing: it happens on main too, where the harness is
@@ -174,7 +174,7 @@ def require_harness(page) -> None:
if not page.evaluate("() => !!window.__settingsSmoke"):
raise RuntimeError(
"the harness page is gone (window.__settingsSmoke undefined). This smoke page "
- f"is served by vite on {PORT} and proxies /api to 127.0.0.1:8888; a Studio "
+ f"is served by vite on {PORT} and proxies /api to 127.0.0.1:8888; an Unsloth "
"listening there answers 401 and the app navigates away. Run this without a "
"backend on 8888."
)
diff --git a/tests/studio/playwright_tauri_python_tool_images.py b/tests/studio/playwright_tauri_python_tool_images.py
index 45f87908b35..19480ba2e1f 100644
--- a/tests/studio/playwright_tauri_python_tool_images.py
+++ b/tests/studio/playwright_tauri_python_tool_images.py
@@ -5,7 +5,7 @@
Runs as a standalone script. It serves a page with the exact Tauri CSP, then
checks that trusted code can fetch an authenticated sandbox image into a blob
-URL while an allowed HTTPS image redirect cannot reach the HTTP Studio backend.
+URL while an allowed HTTPS image redirect cannot reach the HTTP Unsloth backend.
The same policy intentionally continues to allow ordinary HTTPS images,
including HTTPS loopback, which is outside this PR's HTTP-backend boundary.
"""
diff --git a/tests/studio/playwright_thread_scoped_settings.py b/tests/studio/playwright_thread_scoped_settings.py
index 2236f3f0bed..33e8a3d0bc4 100644
--- a/tests/studio/playwright_thread_scoped_settings.py
+++ b/tests/studio/playwright_thread_scoped_settings.py
@@ -334,7 +334,7 @@ def main():
step("pin the installation default every later step compares against")
# The install is shared, not fresh: the UI workflow boots this server on the same
- # Studio home the chat-ui and cross-browser permission tests have already used, and
+ # Unsloth home the chat-ui and cross-browser permission tests have already used, and
# those leave a permission level behind in the mirrored settings. Every assertion
# below names a literal level, so the default is set here rather than assumed.
# No chat is open, so this writes the installation default itself.
diff --git a/tests/studio/playwright_thread_weight.py b/tests/studio/playwright_thread_weight.py
index 9ba28dcb7e7..a162f5b9ce9 100644
--- a/tests/studio/playwright_thread_weight.py
+++ b/tests/studio/playwright_thread_weight.py
@@ -3,7 +3,7 @@
"""How the chat thread's interaction cost grows with the number of messages (#8977).
-Studio's chat UI is reported as sluggish on Windows 11 and worsening as the thread fills:
+Unsloth's chat UI is reported as sluggish on Windows 11 and worsening as the thread fills:
opening menus, scrolling, deleting and typing all lag while token generation is unaffected.
That shape says the cost is per-message renderer work, so the thing to measure is not a single
absolute number but a curve: the same four interactions repeated at N in {10, 50, 200, 500}.
diff --git a/tests/studio/playwright_update_banner_layout.py b/tests/studio/playwright_update_banner_layout.py
index 43c307d82a5..5ebdee83fe6 100644
--- a/tests/studio/playwright_update_banner_layout.py
+++ b/tests/studio/playwright_update_banner_layout.py
@@ -83,7 +83,7 @@ NOTES_MARKDOWN = "\n".join(
"sentence long enough to wrap onto a second line in a 448px card.",
"- Many bug fixes across training, inference and the model hub.",
"- Training page full rework.",
- "- Studio desktop update flow reworked.",
+ "- Unsloth desktop update flow reworked.",
]
)
@@ -979,9 +979,9 @@ def main() -> int:
#
# Set on the server and put back in a finally, because the appearance
# store syncs up: leaving it at 20px hands every later suite in this job
- # a Studio whose type is not the default, and they will not notice.
+ # an Unsloth whose type is not the default, and they will not notice.
# Put BACK what was there, which is not always the default: run this
- # against your own Studio and an unconditional reset would take your
+ # against your own Unsloth and an unconditional reset would take your
# Appearance setting with it.
was = read_ui_font_size(session["access_token"])
set_ui_font_size(session["access_token"], UI_FONT_SIZE_MAX)
diff --git a/tests/studio/sim_thread_settings_portability.py b/tests/studio/sim_thread_settings_portability.py
index 7f27f01e8c1..4ec715f1c70 100644
--- a/tests/studio/sim_thread_settings_portability.py
+++ b/tests/studio/sim_thread_settings_portability.py
@@ -4,7 +4,7 @@
"""Portability checks for the per-chat settings column.
`settings_json` is added to an existing `chat_threads` by an idempotent ALTER, and
-every Studio install that upgrades runs it exactly once against a database it has
+every Unsloth install that upgrades runs it exactly once against a database it has
been writing to for months. The interesting differences between platforms are the
bundled SQLite, the filesystem and the path handling, none of which CI exercises
today: the chat settings tests only ever run on Linux.
@@ -45,7 +45,7 @@ def check(
def fresh_home():
- """A Studio home under a real temp dir, so path handling is the platform's own."""
+ """An Unsloth home under a real temp dir, so path handling is the platform's own."""
home = Path(tempfile.mkdtemp(prefix = "sim8686_"))
os.environ["UNSLOTH_STUDIO_HOME"] = str(home)
return home
@@ -242,7 +242,7 @@ def main():
except Exception as exc: # noqa: BLE001 - that would be the finding
check("unparseable JSON reads as no snapshot", False, f"{type(exc).__name__}: {exc}")
- print("\n--- WAL, which is what a running Studio uses ---")
+ print("\n--- WAL, which is what a running Unsloth uses ---")
conn = sqlite3.connect(str(db_path))
mode = conn.execute("PRAGMA journal_mode").fetchone()[0]
conn.close()
diff --git a/tests/studio/studiobench/CONTRIBUTING-perf.md b/tests/studio/studiobench/CONTRIBUTING-perf.md
index 1c9a51d91a7..939187223b5 100644
--- a/tests/studio/studiobench/CONTRIBUTING-perf.md
+++ b/tests/studio/studiobench/CONTRIBUTING-perf.md
@@ -1,4 +1,4 @@
-# Proving a Studio performance change
+# Proving an Unsloth performance change
This is the protocol for turning "it feels faster" into a number a reviewer can trust. It exists
because an audit of 40 frontend pull requests found that **30 of them had no effect distinguishable
@@ -43,19 +43,19 @@ python -m tests.studio.studiobench.sweep.floor_table --floor outputs/null output
# 4. Parity: prove you did not change what is rendered
python -m tests.studio.studiobench.sweep.ui_parity --null outputs/null outputs/mine
-# 5. Read the payload back as a scored report. No Studio, no browser, no network.
+# 5. Read the payload back as a scored report. No Unsloth, no browser, no network.
python -m tests.studio.studiobench --report outputs/mine/payload.jsonl --tier standard
```
-The three commands in steps 1 and 2 drive a real Studio and therefore need credentials. The rest
+The three commands in steps 1 and 2 drive a real Unsloth and therefore need credentials. The rest
read a payload that already exists: `--assert-liveness`, `floor_table`, `ui_parity` and `--report`
-run offline, with no Studio, no browser and no network.
-See **"You need a Studio, and you need its password"** in [README.md](README.md) before you
+run offline, with no Unsloth, no browser and no network.
+See **"You need an Unsloth, and you need its password"** in [README.md](README.md) before you
run the first one: a missing `--password` fails as an HTTP 401 only after the browser has
already started, and `--doctor` reports PASS on that exact configuration. If you drive the wave
-against Studios you started yourself rather than letting studiobench install them, `--ab` needs
+against Unsloth instances you started yourself rather than letting studiobench install them, `--ab` needs
`--attach` **and** `--attach-b`, one URL per arm, or it exits before measuring anything. It also
-needs `--password` **and** `--password-b`, one per arm: two separately booted Studios mint two
+needs `--password` **and** `--password-b`, one per arm: two separately booted Unsloth instances mint two
different bootstrap passwords, so a single `--password` is a 401 on the treatment alone, after
the browser is already up.
@@ -503,7 +503,7 @@ has nothing to do with rendering.
`arms/content_visibility_probe.js` is the working probe. Install it with
`SBENCH_EXTRA_INIT_SCRIPT`, read it back with `SBENCH_PAGE_CONSOLE="CVPOT "`. Both are unset by
-default, so a scored run is unaffected. A probe run drives a real Studio like everything else in
+default, so a scored run is unaffected. A probe run drives a real Unsloth like everything else in
the loop, so it needs the credentials above; the file's own header carries the full command.
A run carrying a probe is **not scorable**, because the probe samples the DOM and forces layout on
@@ -530,7 +530,7 @@ does not parse also leaves the scene scripts alone.
On **webkit**, the default engine on Linux and macOS, it does not: Playwright hands webkit its init
scripts as one bootstrap unit, so a syntax error in the probe stops dom.js, parity.js and
surfaces.js as well. The probe is installed as plain source rather than through `eval` because
-Studio serves `script-src 'self'` with no `'unsafe-eval'`, and webkit enforces that against an init
+Unsloth serves `script-src 'self'` with no `'unsafe-eval'`, and webkit enforces that against an init
script, so an eval-installed probe never ran there at all. The source **opens** its script, with
nothing put in front of it, so a probe that begins `"use strict"` keeps its directive prologue and
runs under the semantics the file was written for.
diff --git a/tests/studio/studiobench/INTERFACES.md b/tests/studio/studiobench/INTERFACES.md
index 7dfa56ae01d..c0205b12f32 100644
--- a/tests/studio/studiobench/INTERFACES.md
+++ b/tests/studio/studiobench/INTERFACES.md
@@ -294,7 +294,7 @@ class BenchContext:
context: Any # BrowserContext
page: Any # the page under measurement
cdp: Any | None
- base_url: str # the Studio the session is driving
+ base_url: str # the Unsloth the session is driving
session_id: str
tier: str
instrument_level: int
@@ -333,7 +333,7 @@ condition and adds four:
| `anchored_at_end` | the app reports itself at the bottom (`.aui-thread-scroll-to-bottom` carrying `invisible`), falling back to the scrollTop arithmetic only when it does not |
| `pin_settled` | `--aui-scroll-stabilizer` is off the viewport, i.e. the autoscroll has finished pinning |
-**This is a contract the arm must meet, not a signal that exists today.** Studio ships no
+**This is a contract the arm must meet, not a signal that exists today.** Unsloth ships no
virtualization and no ordinal attributes anywhere in the chat thread. WAI-ARIA already requires a
list whose items are not all in the DOM to publish `aria-setsize` and `aria-posinset`, so an arm
that omits them is unusable with a screen reader whatever it does to the frame rate, and refusing
@@ -508,7 +508,7 @@ comes back is wall clock wearing the shape of a UI change. Same family as every
`outputs/rp/INSTRUMENT-DEFECTS.md`: **measuring at a moment whose meaning is not stable across the
things being compared.**
-You cannot recognise it by its size. Mid-stream Studio does not show a prefix of the finished
+You cannot recognise it by its size. Mid-stream Unsloth does not show a prefix of the finished
reply: `parseIncompleteMarkdown` runs remend over the tail and closes the half-arrived construct,
KaTeX renders the repaired formula and writes its parse error and character offset into a `title`,
Shiki re-tokenises the repaired fence, and the trailing code block carries `data-incomplete`.
diff --git a/tests/studio/studiobench/README.md b/tests/studio/studiobench/README.md
index e7dce0ad02a..782171a4d8c 100644
--- a/tests/studio/studiobench/README.md
+++ b/tests/studio/studiobench/README.md
@@ -13,15 +13,15 @@ python -m tests.studio.studiobench --doctor
`--doctor` is always the first command. It works on a machine with nothing installed, because every
heavy import is lazy, and it names what is missing and what each missing piece costs you. It does
-NOT check that it can log in to a Studio you point it at, so read the next section before you
+NOT check that it can log in to an Unsloth you point it at, so read the next section before you
conclude that a `--doctor: PASS` means a run will start.
-### You need a Studio, and you need its password
+### You need an Unsloth, and you need its password
-Every command below other than `--doctor` drives a real Studio, and Studio requires
+Every command below other than `--doctor` drives a real Unsloth, and Unsloth requires
authentication. There are two ways to give it one.
-**Attach to a Studio you are already running.** This is the cheap path, and it needs the
+**Attach to an Unsloth you are already running.** This is the cheap path, and it needs the
credentials, which are NOT optional and default to nothing:
```
@@ -32,13 +32,13 @@ python -m tests.studio.studiobench --tier fast \
`--username` defaults to `unsloth`, `--password` defaults to empty. Without a correct password the
run aborts with `HTTP 401 from .../api/auth/login` after the browser has already started. If you
-launched Studio with a non-default `UNSLOTH_STUDIO_HOME`, the password file is
+launched Unsloth with a non-default `UNSLOTH_STUDIO_HOME`, the password file is
`$UNSLOTH_STUDIO_HOME/auth/.bootstrap_password`.
Note that studiobench **rotates** the password to its own bench value on first login, so a second
-run against the same Studio does not need `--password` again.
+run against the same Unsloth does not need `--password` again.
-**Or let studiobench install and launch its own Studio** with `--branch REF`. No password needed,
+**Or let studiobench install and launch its own Unsloth** with `--branch REF`. No password needed,
because it owns the instance, but the first run clones this repository and runs `install.sh`, which
is a multi-gigabyte download budgeted at up to 45 minutes. The wall-clock figures in the table
below are the measurement only and do not include that install.
@@ -54,13 +54,13 @@ Then pick a path. There are two that matter:
ceiling hunt. Neither is the loop you work in.
```
-# iterate against a Studio you are already running (see the password note above)
+# iterate against an Unsloth you are already running (see the password note above)
python -m tests.studio.studiobench --tier fast \
--attach http://127.0.0.1:5401 \
--password "$(cat ~/.unsloth/studio/auth/.bootstrap_password)" \
--out outputs/iterate
-# confirm, letting studiobench install and launch its own Studio from a ref
+# confirm, letting studiobench install and launch its own Unsloth from a ref
python -m tests.studio.studiobench --tier standard --branch main --reps 4 --out outputs/confirm
# read the payload back as a scored report; writes <out>/summary.md beside it
@@ -122,7 +122,7 @@ So Layer 1 runs the shipped app, through its own backend, over real SSE bytes.
## How the real path is arranged
```
-studiobench pacer --SSE--> Studio backend relay --SSE--> the SPA's own TextDecoder,
+studiobench pacer --SSE--> Unsloth backend relay --SSE--> the SPA's own TextDecoder,
(ThreadingHTTPServer) (external provider, SSE parser, delta accumulation,
provider_type "custom") parseAssistantContent, Streamdown,
the autoscroll observer
@@ -178,7 +178,7 @@ built on different corpora, or to score one against a floor from another, rather
corpus change as a performance change.
Rungs are **1K / 10K / 100K / 500K / 1M tokens**, and the characters-per-token ratio is
-**measured** per rung (tiktoken, else Studio's own counter, else a labelled estimate) rather than
+**measured** per rung (tiktoken, else Unsloth's own counter, else a labelled estimate) rather than
assumed at 4.0.
Bulk thread mass is **seeded** over `PUT /api/chat/threads/{id}/messages`; only the last reply
@@ -254,7 +254,7 @@ exceeds 10 ms, `busy_pct` is `null` **with a reason**, never `0.2%`.
about 3.2x, so a measurement there would confirm any hypothesis. Two checks:
`/@vite/client` must not serve a JavaScript module, and `bundleType: 0` must appear in the same
chunk as `rendererPackageName: "react-dom"`.
- - The `/@vite/client` probe checks **what came back**, not just the status: Studio serves its SPA
+ - The `/@vite/client` probe checks **what came back**, not just the status: Unsloth serves its SPA
for any unknown path, so a production build answers 200 with `index.html`.
- The marker regex accepts **backticks**: the production bundle is minified with a pass that
rewrites short string literals as template literals.
@@ -294,7 +294,7 @@ complete emits a `cell` row with `completed: false`, its failure mode and its RS
an output path.)
`--report <out>/payload.jsonl` scores that file and prints the summary, writing it to
-`<out>/summary.md` as well. It needs no browser, no Studio and no network, which is the point of
+`<out>/summary.md` as well. It needs no browser, no Unsloth and no network, which is the point of
shipping a single-file benchmark: the numbers come back as a file and the analysis happens
wherever the analyst is. Pass the same `--tier` (or `--rungs`) the run used, or the ladder will
report rungs you never declared as incomplete.
diff --git a/tests/studio/studiobench/__main__.py b/tests/studio/studiobench/__main__.py
index d95f564f91d..1c6baa3cbeb 100644
--- a/tests/studio/studiobench/__main__.py
+++ b/tests/studio/studiobench/__main__.py
@@ -227,11 +227,11 @@ def _windowed_arms(spec: str, labels: list) -> set:
"""The arms `--windowed-arm` names, checked against the arms this run will actually have.
A PURE ARGUMENT CHECK, WHICH IS WHY IT RUNS BEFORE ANYTHING IS STARTED. It used to run after
- both Studio installs had been launched, the pacer bound and the browser opened -- and the
+ both Unsloth installs had been launched, the pacer bound and the browser opened -- and the
`SystemExit` it raises for a typo (`--windowed-arm treatments`) left every one of them running,
because the cleanup `finally` does not begin until the cell loop much further down. No
`bundle.close()`, no `pacer.stop()`, no `stop_studio()`, no watchdog cancellation: a mistyped
- flag cost a browser and up to two Studio servers, still holding their ports.
+ flag cost a browser and up to two Unsloth servers, still holding their ports.
"""
names = {name.strip() for name in (spec or "").split(",") if name.strip()}
unknown = names - set(labels)
@@ -260,11 +260,11 @@ def side_home(explicit, out, label: str, *, ab: bool) -> Path:
def side_specs(args, ab_ref) -> list:
"""`(label, ref, attach url, port, password)` per side. One without `--ab`, two with it.
- EACH SIDE CARRIES ITS OWN PASSWORD. Studio mints a bootstrap password per home, so two Studios
+ EACH SIDE CARRIES ITS OWN PASSWORD. Unsloth mints a bootstrap password per home, so two Unsloth instances
the caller booted separately have two different ones; authenticating both with the single
`--password` meant the base logged in and the treatment answered 401 every time, which made the
advertised `--attach` + `--attach-b` A/B unusable unless both servers had been preconfigured
- with the same secret. `--password-b` defaults to `--password`, so one Studio, one home or two
+ with the same secret. `--password-b` defaults to `--password`, so one Unsloth, one home or two
homes already rotated to the bench password all behave as before.
"""
specs = [("base", args.branch, args.attach, args.port, args.password)]
@@ -371,7 +371,7 @@ def watchdog_deadline_s(
multi-gigabyte clone and build, which this tool itself allows 45 minutes for, against a fast
tier's 15 minutes; an A/B does that twice, serially, before the first cell. The watchdog then
fired during setup on a perfectly healthy run, and it fires through `os._exit`, so the `finally`
- that stops the Studios it started never ran either. Every side this run INSTALLS adds its own
+ that stops the Unsloth instances it started never ran either. Every side this run INSTALLS adds its own
documented budget; an attached side installs nothing and adds nothing.
AND THE TIER BUDGET IS NOT THE PLAN. It is one number per tier, and three things the caller
@@ -381,7 +381,7 @@ def watchdog_deadline_s(
film, 5,832 seconds of film before a single thread is seeded, against a deadline of
`20 min * 3 = 3,600` seconds for an attached pair that adds no install budget. The watchdog
hard-exited a healthy run 40% of the way through it, through `os._exit`, taking the payload's
- remaining rows and the `finally` that stops the Studios with it. Reps 2 clears it as well once
+ remaining rows and the `finally` that stops the Unsloth instances with it. Reps 2 clears it as well once
seeding is counted.
So the measurement half is the LARGER of the tier's own budget and the planned work with the
@@ -427,18 +427,18 @@ def is_null_control(sides: list) -> bool:
comparing a build with itself. Equal refs on two builds this run installed itself is a null
control whatever ports they landed on.
- Two ATTACHED Studios are a different matter: the refs are whatever the caller typed and the
+ Two ATTACHED Unsloth instances are a different matter: the refs are whatever the caller typed and the
harness cannot see what is deployed at either URL, so those are only a null control when both
sides are the same URL.
WHICH IS WHY THE URL IS ASKED FIRST. That rule was stated here and then not applied: the ref
comparison ran ahead of it, so `--attach U --attach-b U --branch main --ab fix` -- one server,
two labels the harness cannot check -- returned False on the unequal labels before the equal
- URL was ever looked at. One Studio measured against itself was then rendered as an ordinary
+ URL was ever looked at. One Unsloth measured against itself was then rendered as an ordinary
A/B, free to publish temporal noise as an improvement, and `noise_floor_from_null_control` was
skipped so nothing downstream had a floor to refuse it with. Two sides on one URL are one
build whatever they were called. The owned case is untouched: `side_specs` gives the second
- side `port + 1`, so two Studios this run launched never share a URL and still fall through to
+ side `port + 1`, so two Unsloth instances this run launched never share a URL and still fall through to
the commit comparison below.
AND A REF IS A POINTER, which is the rule `commit_problems` already states for `--resume` and
@@ -524,7 +524,7 @@ def stream_cost_injection_problem(specs: list, inject_ms) -> str | None:
match the treatment's predicate and both burn the injected cost.
That configuration is not a mistake the caller has to be warned off in general -- one attached
- Studio driven twice is a null control `is_null_control` detects on purpose, and
+ Unsloth driven twice is a null control `is_null_control` detects on purpose, and
`test_one_attached_studio_driven_twice_is_a_null_control` pins it. It is only fatal WITH the
injection, and it is fatal quietly: `evaluate_stream_cost_recovery_gate` reads back
`(injected_rate - base_rate) * chars`, both rates carry the burn, the difference is zero, and
@@ -560,7 +560,7 @@ def stream_cost_injection_problem(specs: list, inject_ms) -> str | None:
f"{origins[0]}{spelling}. The injection is installed as a context init script gated on "
f"window.location.origin, so one origin means both arms burn the cost, the difference "
f"between them is zero and the recovery gate blames the metric for it. Point --attach and "
- f"--attach-b at two Studios, or drop --attach and let this run install both."
+ f"--attach-b at two Unsloth instances, or drop --attach and let this run install both."
)
@@ -570,7 +570,7 @@ def stop_owned_sides(
*,
keep: bool = False,
) -> None:
- """Stop every Studio THIS RUN launched. An attached one belongs to the caller and is left alone.
+ """Stop every Unsloth THIS RUN launched. An attached one belongs to the caller and is left alone.
`installs` is the `(install, owns)` list the acquisition loop builds, so a side that has not
been reached yet is simply not in it. `keep` is `--keep-studio`, which asks for exactly this
@@ -657,8 +657,8 @@ def _run_holding_out_dir(args, ab_ref, specs, arm_labels, windowed, paths, out_l
_log(f" corpus_hash {corpus.corpus_hash}")
# READ NOW, BEFORE ANYTHING IS STARTED OR MOVED. The probe's source is not needed until the
- # browser is launched, but reading it there means a path typo raises after Studio and the pacer
- # are up and before the cleanup `finally` that would stop them is entered, so a detached Studio
+ # browser is launched, but reading it there means a path typo raises after Unsloth and the pacer
+ # are up and before the cleanup `finally` that would stop them is entered, so a detached Unsloth
# keeps running and holds its port. The cheapest correct fix is to fail while there is nothing
# to clean up: a missing, unreadable or non-UTF-8 file is a mistake in the invocation, and the
# right moment to say so is the first second of the run.
@@ -682,7 +682,7 @@ def _run_holding_out_dir(args, ab_ref, specs, arm_labels, windowed, paths, out_l
return 2
# EVERY A/B ARGUMENT CHECK, AHEAD OF `prepare_payload`, FOR THE REASON STATED DIRECTLY ABOVE.
- # These three refuse the INVOCATION -- nothing they read comes from a Studio, a browser or a
+ # These three refuse the INVOCATION -- nothing they read comes from an Unsloth, a browser or a
# payload, only `args` and `specs`, both of which exist before this function starts anything.
# Left below the archive they cost the previous run its payload's standard path: a fresh
# `--ab X --home H --out DIR` over a finished DIR archived `payload.jsonl` and then exited 2
@@ -696,7 +696,7 @@ def _run_holding_out_dir(args, ab_ref, specs, arm_labels, windowed, paths, out_l
if args.attach and not args.attach_b:
_log(" --ab with --attach needs --attach-b URL: the second build has to be somewhere.")
return 2
- # Here rather than beside the init script it guards, because by then two Studios have been
+ # Here rather than beside the init script it guards, because by then two Unsloth instances have been
# cloned, built and launched to run a validation that cannot say anything. See
# `stream_cost_injection_problem`.
injection_problem = stream_cost_injection_problem(
@@ -762,16 +762,16 @@ def _run_holding_out_dir(args, ab_ref, specs, arm_labels, windowed, paths, out_l
# EVERY SIDE THIS RUN LAUNCHED IS STOPPED WHEN THE SETUP AROUND IT FAILS. The sides are
# acquired one after another, so the base is already SERVING while the treatment clones and
# builds, and the cleanup that stops them both is the `finally` under the cells -- which a
- # failure up here never reaches. The Studios are the resources that outlive this process:
+ # failure up here never reaches. The Unsloth instances are the resources that outlive this process:
# `launch_studio` detaches the server with `setsid -f`, so an abandoned one keeps its port.
- # It is not idle there. Studio's own launcher ABORTS rather than binding when it finds one of
+ # It is not idle there. Unsloth's own launcher ABORTS rather than binding when it finds one of
# its own servers on the requested port (`studio/backend/run.py`, `_resolve_port` with
# `avoid_own_studio`), so the next attempt's server exits and `wait_for_healthz` takes its 200
# from the STALE process: that run measures the build this one installed while `run_meta`
# records the ref it was asked for.
#
# A RETURN IS A FAILURE HERE TOO. The health check below and the development-build gate leave
- # by returning, with both Studios up, which is the same abandoned server by a quieter route --
+ # by returning, with both Unsloth instances up, which is the same abandoned server by a quieter route --
# so the guard is a `finally` on the whole of setup rather than an `except` on the install.
setup_complete = False
try:
@@ -782,11 +782,11 @@ def _run_holding_out_dir(args, ab_ref, specs, arm_labels, windowed, paths, out_l
_log(f" {label}: attaching to {side_url}")
else:
home = side_home(args.home, paths.out, label, ab = bool(ab_ref))
- _log(f" {label}: installing Studio from {ref} into {home} (this takes a while)")
+ _log(f" {label}: installing Unsloth from {ref} into {home} (this takes a while)")
side_install = install_studio(ref, home)
launch_studio(side_install, port, paths.out / "logs" / f"studio_{label}.log")
side_url, owns = side_install.base_url, True
- _log(f" {label}: Studio up at {side_url}")
+ _log(f" {label}: Unsloth up at {side_url}")
installs.append((side_install, owns))
sides.append(
{
@@ -861,7 +861,7 @@ def _run_holding_out_dir(args, ab_ref, specs, arm_labels, windowed, paths, out_l
init_scripts = []
# ONE PROVIDER PER ORIGIN, because the provider lives in the BACKEND and localStorage is
# per-origin. An ATTACHED null control is `--attach U --attach-b U`, which `is_null_control`
- # accepts on purpose: two sides, one Studio. Registering per SIDE there registers the pacer
+ # accepts on purpose: two sides, one Unsloth. Registering per SIDE there registers the pacer
# twice against the same backend, and `lifecycle.register_provider` is idempotent by DISPLAY
# NAME -- so the second registration DELETES the id the first side's seed script had already
# captured, and that script keeps selecting the dead id on every navigation it wins (the
@@ -993,7 +993,7 @@ def _run_holding_out_dir(args, ab_ref, specs, arm_labels, windowed, paths, out_l
bundle = browser_mod.launch(
args.engine, headless = not args.headed, init_scripts = init_scripts, log = _log
)
- # THE RETURN PATH for a probe installed by the hook above. Studio ships `connect-src
+ # THE RETURN PATH for a probe installed by the hook above. Unsloth ships `connect-src
# 'self'`, so a beacon to a collector on another port is blocked by CSP before it leaves
# the page, and the payload schema has no row for a one-off probe. The console is what is
# left. Lines are filtered on a caller-supplied prefix so they can be recovered from the
@@ -1065,7 +1065,7 @@ def _run_holding_out_dir(args, ab_ref, specs, arm_labels, windowed, paths, out_l
"corpus_hash": corpus.corpus_hash,
"studio_ref": args.branch if owns_studio else f"attached:{base_url}",
# WHICH COMMIT THAT REF NAMED, so a later `--resume` can tell a continuation from
- # a branch that moved. Empty for an attached Studio, whose build is not visible
+ # a branch that moved. Empty for an attached Unsloth, whose build is not visible
# from here. See `commit_problems`.
"studio_commit": sides[0].get("commit") or "",
"bundle": verdict.as_dict(),
@@ -1488,10 +1488,10 @@ def _probe_init_scripts(path: str, source: str) -> list[str]:
NO `eval`, AND THAT IS THE WHOLE POINT. This used to hand the file to indirect eval as a
string, so that a malformed probe degraded to a caught `SyntaxError` instead of taking the
- scene scripts with it. Studio serves `script-src 'self'` with no `'unsafe-eval'`
+ scene scripts with it. Unsloth serves `script-src 'self'` with no `'unsafe-eval'`
(`studio/backend/main.py::_build_csp`), and `runtime/browser.py::default_engine` picks WEBKIT
on both Linux and macOS, so on the DEFAULT engine that eval was refused by CSP and the probe
- never installed at all. Measured against a page served with Studio's own header:
+ never installed at all. Measured against a page served with Unsloth's own header:
chromium indirect eval runs; a bad init script leaves the other init scripts alone
firefox indirect eval runs; a bad init script leaves the other init scripts alone
@@ -2005,7 +2005,7 @@ def identity_problems(recorded: dict, requested: dict) -> list:
def resolved_commits(sides: list) -> dict:
"""The commits the sides of THIS run were actually installed from. `""` when unknowable.
- Unknowable for an attached Studio: the caller pointed this harness at a URL and nothing about
+ Unknowable for an attached Unsloth: the caller pointed this harness at a URL and nothing about
what is deployed behind it is visible from here, which is why `studio_ref` folds an attached
base down to that URL instead.
"""
@@ -2267,7 +2267,7 @@ def prepare_payload(
the arm and the repetition -- not the tier, the cadence, the instrument level, the corpus or
either ref. So resuming after changing one of those skips cells that measured something else:
at the extreme, `--branch main --ab other --resume` into a directory holding a finished
- `main -> fix` run installs and launches two Studios, skips every cell, exits 0, and leaves the
+ `main -> fix` run installs and launches two Unsloth instances, skips every cell, exits 0, and leaves the
OLD comparison standing in `ab.md` for somebody to read as the answer for `other`.
"""
if not resume:
@@ -2414,7 +2414,7 @@ def recorded_ladder(path) -> list:
def report_only(args) -> int:
- """Score and render a payload that already exists. No browser, no Studio, no network.
+ """Score and render a payload that already exists. No browser, no Unsloth, no network.
Separate from `run` so a payload produced on somebody else's desktop reports identically here,
which is the whole point of shipping a single-file benchmark: the numbers come back as a file
@@ -2708,7 +2708,7 @@ def parse_args(argv: list):
ap.add_argument(
"--attach",
metavar = "URL",
- help = "drive a Studio that is already running instead of installing one",
+ help = "drive an Unsloth that is already running instead of installing one",
)
ap.add_argument(
"--resume", action = "store_true", help = "skip cells already completed in the output payload"
@@ -2722,7 +2722,7 @@ def parse_args(argv: list):
"--attach-b",
metavar = "URL",
dest = "attach_b",
- help = "the treatment side's already-running Studio, when --ab is used "
+ help = "the treatment side's already-running Unsloth, when --ab is used "
"together with --attach",
)
ap.add_argument(
@@ -2852,10 +2852,10 @@ def parse_args(argv: list):
choices = ["chromium", "webkit", "firefox"],
help = "default matches the platform's desktop webview family",
)
- ap.add_argument("--branch", default = "main", help = "Studio ref to install when not attaching")
+ ap.add_argument("--branch", default = "main", help = "Unsloth ref to install when not attaching")
ap.add_argument("--home", help = "UNSLOTH_STUDIO_HOME for an install")
ap.add_argument("--port", type = int, default = 5399)
- # `unsloth`, not `admin`. Studio's first run prints "DEFAULT ADMIN ACCOUNT CREATED / username:
+ # `unsloth`, not `admin`. Unsloth's first run prints "DEFAULT ADMIN ACCOUNT CREATED / username:
# unsloth", and the wrong one answers 401 with a message about resetting the PASSWORD, which
# sends you looking in the wrong place.
ap.add_argument("--username", default = "unsloth")
@@ -2864,8 +2864,8 @@ def parse_args(argv: list):
"--password-b",
dest = "password_b",
default = "",
- help = "the treatment Studio's password, when --ab is used together with --attach-b. "
- "Two Studios booted separately mint two different bootstrap passwords, so one "
+ help = "the treatment Unsloth's password, when --ab is used together with --attach-b. "
+ "Two Unsloth instances booted separately mint two different bootstrap passwords, so one "
"--password cannot authenticate both. Defaults to --password",
)
ap.add_argument("--out", help = "output directory")
diff --git a/tests/studio/studiobench/analysis/behaviour.py b/tests/studio/studiobench/analysis/behaviour.py
index 26861280ef4..da0bd223e76 100644
--- a/tests/studio/studiobench/analysis/behaviour.py
+++ b/tests/studio/studiobench/analysis/behaviour.py
@@ -464,7 +464,7 @@ def scroll_travelled(base_row: dict, treat_row: dict) -> list[dict]:
extent, _reconstructed = _extent_of(row)
# BOUNDED ABOVE AS WELL AS BELOW, and the ceiling is DERIVED rather than chosen.
#
- # The lower bound is what this invariant was written for: Studio's intent-aware autoscroll
+ # The lower bound is what this invariant was written for: Unsloth's intent-aware autoscroll
# snapping a programmatic move back to the bottom leaves the gesture having covered
# nothing. But the predicate was `fraction >= 0.9` and nothing above it, so an arm whose
# viewport moved TWICE as far as commanded passed exactly as 1.0 did and the pair returned
diff --git a/tests/studio/studiobench/analysis/bridge_build.py b/tests/studio/studiobench/analysis/bridge_build.py
index 66f2c027f19..7ec73161205 100644
--- a/tests/studio/studiobench/analysis/bridge_build.py
+++ b/tests/studio/studiobench/analysis/bridge_build.py
@@ -320,7 +320,7 @@ def assert_not_dev_server(page: Any, base_url: str) -> dict[str, Any]:
if status == 200:
raise CellFailure(
"vite_dev_server",
- f"{url} answered 200, so this Studio is being served by a Vite dev server. "
+ f"{url} answered 200, so this Unsloth is being served by a Vite dev server. "
"Every timing from it is inflated and the run must be refused.",
)
return {"vite_client_status": int(status), "dev_server_ruled_out": True}
@@ -330,7 +330,7 @@ def assert_attribution_build(page: Any) -> dict[str, Any]:
"""Confirm the dist under measurement is the studiobench attribution build.
Catches the staleness failure: a shipping dist left in the directory handed
- to `unsloth studio --frontend <dir>` produces a perfectly healthy Studio
+ to `unsloth studio --frontend <dir>` produces a perfectly healthy Unsloth
serving the WRONG bundle, with no profiling renderer and therefore a React
stage that reads 0.00. `attribution/vite.studiobench.config.ts` defines
`__STUDIOBENCH_ATTRIBUTION_BUILD__` for exactly this check.
@@ -352,7 +352,7 @@ def verify_build_provenance(
*,
require_attribution: bool = True,
) -> dict[str, Any]:
- """All the provenance gates at once, for a Studio that is up and rendering.
+ """All the provenance gates at once, for an Unsloth that is up and rendering.
Call this once per cell before any measurement. Every failure raises, and
that is deliberate: each of these conditions produces numbers that look
diff --git a/tests/studio/studiobench/analysis/parity.py b/tests/studio/studiobench/analysis/parity.py
index 2a89230c0bf..ceba40c6fcb 100644
--- a/tests/studio/studiobench/analysis/parity.py
+++ b/tests/studio/studiobench/analysis/parity.py
@@ -332,7 +332,7 @@ def streaming_probe(base: dict, treat: dict) -> Optional[str]:
THE POSITIVE CONTROL ON A SCAN THAT CAN RETURN ZERO. The elision below is only as good as its
ability to find the streamed message, and `streamingMessages()` walks selectors written against
- Studio's markup: rename `data-status` and it goes quiet, matches nothing, and every capture then
+ Unsloth's markup: rename `data-status` and it goes quiet, matches nothing, and every capture then
reports the strongest thing it can say about the stream -- that there was none -- on the
strength of never having looked successfully. That is exactly the shape `compare_styles`
already refuses for the style probe and `compare_visible` for the visibility scan.
@@ -420,14 +420,14 @@ def compare_styles(base: dict, treat: dict) -> tuple[str, str]:
# counts and equal digests -- both are the hash of an empty string -- so a probe that scanned
# NOTHING reports MATCH, which is the strongest verdict this function can return and is
# supported by no observation whatsoever. That is not hypothetical: the selector list is
- # written against Studio's markup, and a class rename anywhere in it silently empties the
+ # written against Unsloth's markup, and a class rename anywhere in it silently empties the
# scan. A DOM or CSSOM scan that can return zero has to be able to tell "I looked and they
# agree" from "I did not look", and this one could not.
if not bs.get("elements") or not ts.get("elements"):
return NOT_COMPARABLE, (
f"the style probe matched no elements (base={bs.get('elements')}, "
f"treatment={ts.get('elements')}), so it observed nothing on at least one arm. Its "
- "selector list is written against Studio's markup and does not survive a rename; "
+ "selector list is written against Unsloth's markup and does not survive a rename; "
"this is a probe that needs fixing, not two arms that agree"
)
# THE RUN-STATE CONTROL IS IN THE SELECTOR LIST, so this reading straddles the same composer
diff --git a/tests/studio/studiobench/analysis/selftest/test_studiobench_scroll_bounds.py b/tests/studio/studiobench/analysis/selftest/test_studiobench_scroll_bounds.py
index 0516853c9f4..3ca02a72dc3 100644
--- a/tests/studio/studiobench/analysis/selftest/test_studiobench_scroll_bounds.py
+++ b/tests/studio/studiobench/analysis/selftest/test_studiobench_scroll_bounds.py
@@ -291,7 +291,7 @@ def test_an_arm_with_no_extent_does_not_borrow_its_partners_ceiling():
def test_the_lower_bound_still_catches_a_gesture_that_was_snapped_back():
- """The bound this invariant was written for: Studio's intent-aware autoscroll snapping a
+ """The bound this invariant was written for: Unsloth's intent-aware autoscroll snapping a
programmatic move straight back to the bottom left the gesture having covered nothing."""
base = _scroll_row(18, fraction = 1.0, bottom = 9_200, client = 800)
treat = _scroll_row(6, fraction = 0.1, bottom = 9_200, client = 800)
diff --git a/tests/studio/studiobench/analysis/symbols.py b/tests/studio/studiobench/analysis/symbols.py
index 63a8c24f2f7..052deb6e0f5 100644
--- a/tests/studio/studiobench/analysis/symbols.py
+++ b/tests/studio/studiobench/analysis/symbols.py
@@ -132,7 +132,7 @@ class Bridge:
@staticmethod
def prod_key(url: str, start_offset: int, end_offset: int) -> str:
- # The URL is reduced to its basename because a Studio install serves the
+ # The URL is reduced to its basename because an Unsloth install serves the
# same bundle from a hashed path that changes per install, while the
# offsets inside the bundle do not.
return f"{os.path.basename(url)}:{start_offset}:{end_offset}"
diff --git a/tests/studio/studiobench/analysis/test_instruments_live.py b/tests/studio/studiobench/analysis/test_instruments_live.py
index 94b579c4526..92a5d842de7 100644
--- a/tests/studio/studiobench/analysis/test_instruments_live.py
+++ b/tests/studio/studiobench/analysis/test_instruments_live.py
@@ -12,7 +12,7 @@ It uses the real `Cell`, `Window`, `BenchContext` and `Paths` from
`runtime.types`, the real `instruments.build(level)` registry, and calls
`attach / start_cell / open / close / end_cell / detach` in the documented order
with the documented reverse-order close. Nothing is mocked except the page,
-which is a local synthetic instead of a Studio install.
+which is a local synthetic instead of an Unsloth install.
Requires Playwright with Chromium. Skips cleanly without it, because a machine
that cannot run a browser should report that rather than fail.
diff --git a/tests/studio/studiobench/arms/bundle.py b/tests/studio/studiobench/arms/bundle.py
index 39f98e80aeb..c5f6a5cc211 100644
--- a/tests/studio/studiobench/arms/bundle.py
+++ b/tests/studio/studiobench/arms/bundle.py
@@ -239,7 +239,7 @@ def discover_armpack(
"""Find an armpack whose target digest matches this install, or refuse.
Matching is on the DIST DIGEST, not on a version string. Two installs claiming the same
- Studio version can ship different dists (a local build, a patched install, a different
+ Unsloth version can ship different dists (a local build, a patched install, a different
Node version producing a different chunk split), and an armpack built against one of them
measures the build difference when run against the other.
"""
diff --git a/tests/studio/studiobench/arms/content_visibility_probe.js b/tests/studio/studiobench/arms/content_visibility_probe.js
index b0f5bd629e6..bb4260be4b9 100644
--- a/tests/studio/studiobench/arms/content_visibility_probe.js
+++ b/tests/studio/studiobench/arms/content_visibility_probe.js
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-/* POTENCY PROBE for `content-visibility: auto` on Studio's chat message roots.
+/* POTENCY PROBE for `content-visibility: auto` on Unsloth's chat message roots.
*
* Installed through `SBENCH_EXTRA_INIT_SCRIPT`, reporting through `SBENCH_PAGE_CONSOLE`:
*
@@ -13,14 +13,14 @@
* --password-b "$(cat "$STUDIO_HOME_B/auth/.bootstrap_password")"
*
* The credential flags are spelled out rather than trailed off with an ellipsis. A probe run
- * drives a real Studio like every other command in the loop, and without `--password` it dies on
- * an HTTP 401 only after the browser has already started. See "You need a Studio, and you need
+ * drives a real Unsloth like every other command in the loop, and without `--password` it dies on
+ * an HTTP 401 only after the browser has already started. See "You need an Unsloth, and you need
* its password" in the studiobench README.
*
- * ONE PASSWORD PER ARM when both arms are attached. Two separately booted Studios mint two
+ * ONE PASSWORD PER ARM when both arms are attached. Two separately booted Unsloth instances mint two
* different bootstrap passwords, so reusing the first for the treatment is a 401 on the second
* arm only, after the browser is up. `--password-b` defaults to `--password`, which is right
- * for the single-Studio case and wrong for this one.
+ * for the single-Unsloth case and wrong for this one.
*
* A run carrying this is a PROBE RUN and its payload is never scored: the probe forces layout on
* every sample, and one of the things it forces is the very rendering it is asking about. See the
@@ -60,7 +60,7 @@
* ALONE (a remembered size of zero) are all reported every sample, to be read against the
* unarmed side of the same session.
*
- * OUT OF THE PAGE VIA THE CONSOLE. Studio ships `connect-src 'self'`, so a beacon to a collector
+ * OUT OF THE PAGE VIA THE CONSOLE. Unsloth ships `connect-src 'self'`, so a beacon to a collector
* on another port is blocked by CSP before it is sent. The console is the one channel that costs
* nothing and cannot be silently dropped.
*/
diff --git a/tests/studio/studiobench/arms/knobs.py b/tests/studio/studiobench/arms/knobs.py
index b4cae7f04f1..0fa052f9e42 100644
--- a/tests/studio/studiobench/arms/knobs.py
+++ b/tests/studio/studiobench/arms/knobs.py
@@ -4,7 +4,7 @@
"""The seven runtime-injected knobs, as a decision table: which knob removes the slope names the fix.
Every arm here runs on the SHIPPED PRODUCTION BUILD through `add_init_script`. Nothing is
-compiled, nothing is patched on disk, and an external tester with a laptop and a Studio install
+compiled, nothing is patched on disk, and an external tester with a laptop and an Unsloth install
can run the whole ablation plane. That constraint is not a convenience. An ablation that requires
a custom build is an ablation that will be run once, by the person who wrote it, on the machine
where the problem does not reproduce.
diff --git a/tests/studio/studiobench/arms/ladder.py b/tests/studio/studiobench/arms/ladder.py
index 8fbed1c2868..8323b526123 100644
--- a/tests/studio/studiobench/arms/ladder.py
+++ b/tests/studio/studiobench/arms/ladder.py
@@ -71,7 +71,7 @@ MECHANISM_FIX: Mapping[str, str] = {
"the cost is style and layout of off-screen content. The obvious fix, content-visibility: "
"auto, is NOT available: the shipped override that disables it is kept for a height "
"flicker during stream finalisation and because WebKit below Safari 26 cannot find "
- "skipped content with find-in-page and Studio has no in-thread search. So a win here "
+ "skipped content with find-in-page and Unsloth has no in-thread search. So a win here "
"names the cost and still needs a different mechanism to remove it"
),
"layout_geometry": (
diff --git a/tests/studio/studiobench/arms/selftest/test_studiobench_probe_hooks.py b/tests/studio/studiobench/arms/selftest/test_studiobench_probe_hooks.py
index 507acc542e3..582b6630abb 100644
--- a/tests/studio/studiobench/arms/selftest/test_studiobench_probe_hooks.py
+++ b/tests/studio/studiobench/arms/selftest/test_studiobench_probe_hooks.py
@@ -69,9 +69,9 @@ def test_the_hooks_are_off_unless_asked_for(main_src: str, monkeypatch):
def test_the_probe_path_is_validated_before_anything_is_started(main_src: str):
- """A path typo must not leave a detached Studio holding a port.
+ """A path typo must not leave a detached Unsloth holding a port.
- The source is not needed until the browser launches, but reading it there raises after Studio
+ The source is not needed until the browser launches, but reading it there raises after Unsloth
and the pacer are up and before the cleanup `finally` around the cell loop is entered, so
nothing stops them. Reading it in the first second of the run fails while there is nothing to
clean up.
@@ -92,11 +92,11 @@ def test_the_probe_path_is_validated_before_anything_is_started(main_src: str):
def test_the_probe_is_installed_without_eval(main_src: str):
- """CSP, not style. Studio serves `script-src 'self'` with no `'unsafe-eval'`, and the DEFAULT
+ """CSP, not style. Unsloth serves `script-src 'self'` with no `'unsafe-eval'`, and the DEFAULT
engine on Linux and macOS is webkit, which enforces that against an init script.
The probe was briefly handed to indirect eval as a string so that a malformed file could not
- stop the scene scripts. Measured against a page carrying Studio's own header, with the real
+ stop the scene scripts. Measured against a page carrying Unsloth's own header, with the real
`content_visibility_probe.js`: chromium and firefox installed the probe either way, and webkit
refused the eval with `EvalError` and installed NOTHING. The isolation was not real there
either -- Playwright gives webkit its init scripts as one bootstrap unit, so a parse error
@@ -107,10 +107,10 @@ def test_the_probe_is_installed_without_eval(main_src: str):
assert "def _probe_init_scripts(" in main_src
assert "init_scripts.extend(_probe_init_scripts(extra_init, extra_init_source))" in main_src
assert "(0, eval)(" not in main_src, (
- "the probe is back on eval; Studio's script-src 'self' blocks it and the probe will not "
+ "the probe is back on eval; Unsloth's script-src 'self' blocks it and the probe will not "
"install at all on the default engine"
)
- assert "eval(" not in main_src, "any string evaluation is refused by Studio's CSP"
+ assert "eval(" not in main_src, "any string evaluation is refused by Unsloth's CSP"
def test_the_probe_exists_and_is_not_a_stub(probe_src: str):
diff --git a/tests/studio/studiobench/fixture/selftest/test_studiobench_parity_streamed.py b/tests/studio/studiobench/fixture/selftest/test_studiobench_parity_streamed.py
index faf52b68400..09c9a767940 100644
--- a/tests/studio/studiobench/fixture/selftest/test_studiobench_parity_streamed.py
+++ b/tests/studio/studiobench/fixture/selftest/test_studiobench_parity_streamed.py
@@ -12,7 +12,7 @@ as every entry in the instrument-defect list this file is a response to: MEASURI
WHOSE MEANING IS NOT STABLE ACROSS THE THINGS BEING COMPARED.
WHY YOU CANNOT RECOGNISE IT BY ITS SIZE, which is the part that has misled people. Mid-stream,
-Studio does not show a prefix of the finished reply. `parseIncompleteMarkdown` runs remend over the
+Unsloth does not show a prefix of the finished reply. `parseIncompleteMarkdown` runs remend over the
tail and closes whatever construct is half-arrived, KaTeX renders the repaired formula and, while
it will not parse, writes the parse error and its character offset into a `title`, Shiki
re-tokenises the repaired fence, and the trailing code block carries `data-incomplete`. None of
@@ -84,7 +84,7 @@ def message(
extra: list | None = None,
attrs: dict | None = None,
) -> dict:
- """One thread message, in the shape Studio renders.
+ """One thread message, in the shape Unsloth renders.
`streaming` puts `data-status="running"` on the text part, which is assistant-ui's own
published state and what `scene/dom.js::streamingMessages` reads. A settled part reads
@@ -607,7 +607,7 @@ def test_a_message_that_vanished_is_never_excused_by_being_in_flight():
def test_a_running_reply_the_probe_could_not_place_refuses_the_pair():
"""A scan that can return zero needs a control, and this one can.
- `streamingMessages()` walks selectors written against Studio's markup. Rename `data-status` and
+ `streamingMessages()` walks selectors written against Unsloth's markup. Rename `data-status` and
it matches nothing, every capture reads as "no reply was in flight", and the instrument returns
the strongest claim it has about the stream on the strength of never having looked. The app
publishes the same fact through the Stop button, so the disagreement is carried out of the page
diff --git a/tests/studio/studiobench/fixture/selftest/test_studiobench_surfaces.py b/tests/studio/studiobench/fixture/selftest/test_studiobench_surfaces.py
index d6eab8d31df..d6849dc58a4 100644
--- a/tests/studio/studiobench/fixture/selftest/test_studiobench_surfaces.py
+++ b/tests/studio/studiobench/fixture/selftest/test_studiobench_surfaces.py
@@ -10,7 +10,7 @@ that counts a surface nobody reached, and a row that records a failure without r
three have the same shape -- the artefact looks complete and says the wrong thing -- and all three
are cheap to catch here rather than after a forty-minute run.
-No browser and no Studio. The step lists are declarative for exactly this reason, and the sweep is
+No browser and no Unsloth. The step lists are declarative for exactly this reason, and the sweep is
driven against a scripted stand-in page so its bookkeeping is exercised on both the reached and
the unreached path.
"""
@@ -337,7 +337,7 @@ def test_every_volatile_surface_states_its_mechanism():
def test_the_measured_volatile_surfaces_are_declared():
- # Three consecutive sweeps against one Studio agreed on 44 of 53 surfaces. These are the ones
+ # Three consecutive sweeps against one Unsloth agreed on 44 of 53 surfaces. These are the ones
# that did not, each with a mechanism established from source or from a text diff. Pinned so
# a settle condition that is tightened later shows up as a flag that can now be dropped,
# rather than as a flag nobody revisits.
diff --git a/tests/studio/studiobench/pacer.py b/tests/studio/studiobench/pacer.py
index f7849f971c6..f56cb2b0365 100644
--- a/tests/studio/studiobench/pacer.py
+++ b/tests/studio/studiobench/pacer.py
@@ -8,8 +8,8 @@ local `ChatModelAdapter`. Two whole mechanisms therefore never executed: the cum
`<think>` re-parse in `chat-adapter.ts`, which re-parses the ENTIRE growing buffer on every delta,
and the autoscroll `MutationObserver` in `use-intent-aware-autoscroll.tsx`, which answers every
streamed character with a synchronous `scrollHeight` read over the whole thread. Both are O(thread)
-per chunk and neither is reachable without real bytes arriving over a real transport. So Studio is
-pointed at THIS, as an external provider, and the bytes go out over the wire, through the Studio
+per chunk and neither is reachable without real bytes arriving over a real transport. So Unsloth is
+pointed at THIS, as an external provider, and the bytes go out over the wire, through the Unsloth
backend's own relay, into the app's own `TextDecoder`, its own SSE framing and its own delta
accumulation. Nothing is stubbed and there is no `page.route` anywhere near the primary transport.
@@ -326,7 +326,7 @@ class _Handler(BaseHTTPRequestHandler):
# CHUNKED, explicitly. On HTTP/1.1 a response with neither Content-Length nor
# Transfer-Encoding is a keep-alive response of unknown length, and the reader blocks
# forever waiting for a body that already arrived -- measured here as a client that hung
- # past a 60s timeout having received every byte. Uvicorn, which is what Studio's own
+ # past a 60s timeout having received every byte. Uvicorn, which is what Unsloth's own
# backend streams through, sends chunked for a StreamingResponse, so this is also the
# framing the relay and the browser see in production.
self.send_header("Transfer-Encoding", "chunked")
@@ -489,7 +489,7 @@ class Pacer:
@property
def base_url(self) -> str:
- """What Studio's provider config points at. The `/v1` is load-bearing: the backend appends
+ """What Unsloth's provider config points at. The `/v1` is load-bearing: the backend appends
`/chat/completions` to it verbatim."""
return f"http://{self.host}:{self.port}/v1"
@@ -653,7 +653,7 @@ def check_planned_streams(streams: list[dict], planned: list[dict]) -> dict:
def _selftest() -> int:
"""Serve one scripted reply to a plain socket client and check the wire bytes.
- Run with `python -m tests.studio.studiobench.pacer`. No browser, no Studio, no Playwright: the
+ Run with `python -m tests.studio.studiobench.pacer`. No browser, no Unsloth, no Playwright: the
pacer's contract is with the wire, and the wire is checkable on its own.
"""
import urllib.request
diff --git a/tests/studio/studiobench/report/selftest/test_studiobench_cli_contracts.py b/tests/studio/studiobench/report/selftest/test_studiobench_cli_contracts.py
index d9ed9cdde7f..204a34481cb 100644
--- a/tests/studio/studiobench/report/selftest/test_studiobench_cli_contracts.py
+++ b/tests/studio/studiobench/report/selftest/test_studiobench_cli_contracts.py
@@ -105,7 +105,7 @@ def test_one_attached_studio_driven_twice_is_a_null_control():
# accumulator. The one flag whose job is to separate "the change did nothing" from "the metric is
# not watching" would answer the second when the truth is neither.
#
-# One attached Studio driven twice is not a mistake in general: it is a null control this tool
+# One attached Unsloth driven twice is not a mistake in general: it is a null control this tool
# detects on purpose, pinned by the test directly above. It is only fatal with the injection on.
@@ -114,7 +114,7 @@ def _inject_args(attach, attach_b, *extra):
def test_injecting_stream_cost_into_two_arms_on_one_origin_is_refused():
- """REGRESSION. `--attach U --attach-b U` is the cheapest null control there is -- one Studio,
+ """REGRESSION. `--attach U --attach-b U` is the cheapest null control there is -- one Unsloth,
no installs -- and it is the obvious place to check that the metric can see a known cost."""
args = _inject_args(
@@ -249,7 +249,7 @@ def test_a_self_installed_pair_may_inject():
def test_one_origin_without_the_injection_is_still_allowed():
- """THE CONTROL THAT MATTERS MOST. One attached Studio driven twice is a null control, and
+ """THE CONTROL THAT MATTERS MOST. One attached Unsloth driven twice is a null control, and
refusing it outright would remove the calibration run this tool exists to support."""
args = _inject_args("http://127.0.0.1:5401", "http://127.0.0.1:5401")
@@ -265,7 +265,7 @@ def test_one_attached_studio_driven_twice_under_two_labels_is_still_a_null_contr
"""`--attach U --attach-b U --branch main --ab fix`: one server, two names it cannot check.
The URL rule was stated and then not applied -- the ref comparison ran first, so the unequal
- labels returned False before the equal URL was reached. One Studio measured against itself was
+ labels returned False before the equal URL was reached. One Unsloth measured against itself was
rendered as an ordinary A/B, free to publish temporal noise as an improvement, with
`noise_floor_from_null_control` skipped so nothing downstream had a floor to refuse it with.
With `--attach` the refs are free-form strings; only the URL names the deployed build.
@@ -279,7 +279,7 @@ def test_one_attached_studio_driven_twice_under_two_labels_is_still_a_null_contr
def test_an_attached_treatment_pointed_at_the_installed_base_is_a_null_control():
- """The mixed form of the same thing: `--attach-b` naming the Studio this run just launched."""
+ """The mixed form of the same thing: `--attach-b` naming the Unsloth this run just launched."""
sides = [
_side("base", "main", "http://127.0.0.1:5399", True, commit = "a" * 40),
diff --git a/tests/studio/studiobench/runtime/__init__.py b/tests/studio/studiobench/runtime/__init__.py
index a394988cd6a..5a9a5a035d2 100644
--- a/tests/studio/studiobench/runtime/__init__.py
+++ b/tests/studio/studiobench/runtime/__init__.py
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-"""Install, launch, guard and drive a real Studio. Only `types` is public; see INTERFACES.md."""
+"""Install, launch, guard and drive a real Unsloth. Only `types` is public; see INTERFACES.md."""
diff --git a/tests/studio/studiobench/runtime/ab.py b/tests/studio/studiobench/runtime/ab.py
index f9cd5c8b99a..b107ad55f27 100644
--- a/tests/studio/studiobench/runtime/ab.py
+++ b/tests/studio/studiobench/runtime/ab.py
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-"""Run two Studio builds against each other INSIDE ONE SESSION.
+"""Run two Unsloth builds against each other INSIDE ONE SESSION.
WHY THIS CANNOT BE TWO RUNS. Cross-session drift on this app measured 8%, which is larger than
most of the wins anybody argues about. `scoring.ab.assert_comparable` refuses two different
@@ -33,7 +33,7 @@ from .types import Cell
@dataclass
class Target:
- """One side of the comparison: a Studio to drive and everything needed to drive it."""
+ """One side of the comparison: an Unsloth to drive and everything needed to drive it."""
label: str # "base" or "treatment"
ref: str # the git ref, for the report
@@ -92,7 +92,7 @@ def browser_origin(url: str) -> str:
def origin_scoped(base_url: str, script: str) -> str:
- """Run `script` only on its own Studio's origin.
+ """Run `script` only on its own Unsloth's origin.
`add_init_script` fires on every document in the context, and localStorage is per-origin under
the SAME KEY NAMES on both builds. Seeding both unconditionally means whichever script runs
@@ -517,7 +517,7 @@ def make_target(
username: str,
password: str,
) -> Target:
- """Authenticate against one Studio, register the shared pacer on it, and bind a runner.
+ """Authenticate against one Unsloth, register the shared pacer on it, and bind a runner.
Both sides talk to the SAME pacer, so the bytes on the wire are identical by construction
rather than by two configurations that are meant to match.
diff --git a/tests/studio/studiobench/runtime/browser.py b/tests/studio/studiobench/runtime/browser.py
index 0c6b34df015..7b327a6f493 100644
--- a/tests/studio/studiobench/runtime/browser.py
+++ b/tests/studio/studiobench/runtime/browser.py
@@ -23,7 +23,7 @@ from pathlib import Path
from typing import Any, Callable, Optional
-# The engine matching the tester's desktop webview family. Studio ships as a Tauri app, so the
+# The engine matching the tester's desktop webview family. Unsloth ships as a Tauri app, so the
# thing a user actually looks at is a system webview, not the browser they happen to have.
# Windows -> WebView2, which is Chromium: `channel="msedge"` is the closest available.
# macOS -> WKWebView, which is WebKit.
@@ -40,7 +40,7 @@ def default_engine() -> tuple[str, dict, str]:
{},
(
"WebKit, A PROXY FOR WebKitGTK: Playwright's webkit is a different "
- "embedding of the same engine, not the GTK one Studio runs in on Linux"
+ "embedding of the same engine, not the GTK one Unsloth runs in on Linux"
),
)
diff --git a/tests/studio/studiobench/runtime/bundle_guard.py b/tests/studio/studiobench/runtime/bundle_guard.py
index 390bd0704fc..2125f724020 100644
--- a/tests/studio/studiobench/runtime/bundle_guard.py
+++ b/tests/studio/studiobench/runtime/bundle_guard.py
@@ -38,7 +38,7 @@ from typing import Optional
# of each other in every React build, minified or not.
_WINDOW = 4000
-# BACKTICKS as well as quotes. Studio's production bundle is minified with a pass that rewrites
+# BACKTICKS as well as quotes. Unsloth's production bundle is minified with a pass that rewrites
# short string literals as template literals, so the marker on the shipped build reads
# ``rendererPackageName:`react-dom` `` and a quote-only pattern misses it on every asset -- which
# reads as "build mode could not be established" on a perfectly good production build, i.e. the
@@ -87,8 +87,8 @@ def _get(url: str, timeout: float = 20.0) -> tuple[int, bytes, str]:
def _is_vite_client(status: int, body: bytes, content_type: str) -> bool:
"""A 200 alone does NOT mean a dev server, and assuming it does breaks the gate.
- Studio serves its built frontend as a single-page app, so ANY unknown path returns 200 with
- `index.html` -- measured here against two production Studios, both of which answered 200 to
+ Unsloth serves its built frontend as a single-page app, so ANY unknown path returns 200 with
+ `index.html` -- measured here against two production Unsloth instances, both of which answered 200 to
`/@vite/client` and were failed as dev servers by the first version of this check. A gate that
fails every correct build is a gate someone turns off.
diff --git a/tests/studio/studiobench/runtime/lifecycle.py b/tests/studio/studiobench/runtime/lifecycle.py
index 8daa3fbd0fd..f0917111049 100644
--- a/tests/studio/studiobench/runtime/lifecycle.py
+++ b/tests/studio/studiobench/runtime/lifecycle.py
@@ -1,16 +1,16 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-"""Install, launch and authenticate a real Studio. VENDORED from `studio_test_kit`.
+"""Install, launch and authenticate a real Unsloth. VENDORED from `studio_test_kit`.
Vendored on purpose. The shipped artifact is a single `studiobench.pyz` a tester runs on a machine
-that has a Studio and nothing else, so it cannot import a module that lives elsewhere in this
+that has an Unsloth and nothing else, so it cannot import a module that lives elsewhere in this
repository. The logic is `studio_test_kit.lifecycle` plus `studio_test_kit.auth`, with two
deliberate changes:
- **stdlib only.** `studio_test_kit.auth` uses `httpx`; this uses `urllib.request`, so `--doctor`
and `--attach` work on a machine with nothing pip-installed but Playwright.
-- **The password-change gate is handled.** A current Studio mints a bootstrap password and sets
+- **The password-change gate is handled.** A current Unsloth mints a bootstrap password and sets
`must_change_password`, and until it is cleared EVERY authenticated route answers
`403 Password change required` while `/healthz` answers 200 and login itself succeeds. That
failure is silent one request too late, and it is what stops a thread from being seeded at all.
@@ -155,7 +155,7 @@ class StudioAuth:
A FRESH TOKEN THAT IS ALREADY INSIDE THE MARGIN TURNS THE PROACTIVE HALF OFF, and this is
the guard against the one way "refresh before `exp`" can run away. `needs_refresh` compares
the server's `exp` against THIS PROCESS'S clock, and the two are not required to agree: a
- Studio running 45 minutes behind, or a deployment that shortens
+ Unsloth running 45 minutes behind, or a deployment that shortens
`ACCESS_TOKEN_EXPIRE_MINUTES` below the margin, makes every token ever issued look like it
is about to expire. Without this, every single request would log in again and append
another init script to the browser context for the rest of the run. So the condition is
@@ -197,7 +197,7 @@ def auth_request_json(
Both halves are needed. The proactive half is what keeps a 900 second seeding PUT from dying
half way through a request that was valid when it started. The reactive half covers what this
- process cannot compute: a clock offset against the server, a Studio restarted underneath the
+ process cannot compute: a clock offset against the server, an Unsloth restarted underneath the
run, or a token invalidated by something else. One retry only -- a 401 that survives a fresh
login is a real refusal and must be raised, not looped on.
@@ -513,7 +513,7 @@ PID_DISCOVERY_TIMEOUT_S = 15.0
def _discover_pid(port: int, timeout_s: Optional[float] = None) -> Optional[int]:
- """The pid of the Studio serving `port`, or None. Polls, because it appears asynchronously.
+ """The pid of the Unsloth serving `port`, or None. Polls, because it appears asynchronously.
THE PROCESS WE LAUNCHED IS NOT THE PROCESS WE SPAWNED. `launch_studio` runs the server under
`setsid -f`, which always forks and lets the parent exit without waiting, so the pid `Popen`
@@ -567,7 +567,7 @@ def launch_studio(
password_timeout_s: int = 30,
) -> StudioInstall:
# AN OCCUPIED PORT IS REFUSED BEFORE ANYTHING IS LAUNCHED, and this is the half of the
- # abandoned-server failure that no cleanup can reach. `--keep-studio` asks for a Studio to be
+ # abandoned-server failure that no cleanup can reach. `--keep-studio` asks for an Unsloth to be
# LEFT RUNNING on this port, so the next run's `unsloth studio -p <port>` finds one of our own
# servers there and aborts rather than binding (`studio/backend/run.py`, `_resolve_port` with
# `avoid_own_studio`); when the pid record is not readable it falls back to the NEXT port
@@ -576,7 +576,7 @@ def launch_studio(
# Everything downstream then agrees that the launch worked. `_discover_pid` pgreps for
# `unsloth studio.*-p <port>` and finds the OLD process; `wait_for_healthz` takes its 200 from
# it; and `authenticate` retries with `BENCH_PASSWORD`, which a previous studiobench run has
- # already rotated that Studio to, so the login succeeds as well. The run then measures the
+ # already rotated that Unsloth to, so the login succeeds as well. The run then measures the
# build the PREVIOUS invocation installed while `run_meta` records the ref this one asked for,
# and `stop_studio` kills the server the caller asked to keep. There is no reading anywhere
# that says which build answered, so this is refused rather than reported.
@@ -584,10 +584,10 @@ def launch_studio(
holder = _discover_pid(port, 0.0)
raise RuntimeError(
f"port {port} is already in use"
- + (f" by Studio pid {holder}" if holder else "")
- + ". A Studio launched here would abort or land on another port while this harness "
+ + (f" by Unsloth pid {holder}" if holder else "")
+ + ". An Unsloth launched here would abort or land on another port while this harness "
"measured whatever is already answering. Stop it (`unsloth studio stop`, or the "
- "Studio a previous --keep-studio run left behind) or pass --port."
+ "Unsloth a previous --keep-studio run left behind) or pass --port."
)
log_path = Path(log_path).resolve()
log_path.parent.mkdir(parents = True, exist_ok = True)
@@ -615,7 +615,7 @@ def launch_studio(
install.bootstrap_password = _read_bootstrap_password(
install.home, log_path, time.time() + password_timeout_s
)
- # BEFORE the health check, not after it. A Studio that starts and stays unhealthy used to raise
+ # BEFORE the health check, not after it. An Unsloth that starts and stays unhealthy used to raise
# here with `install.pid` still None, and `stop_studio` has nothing to kill without it -- so the
# detached server was left running on the requested port while the CLI unwound. It is not idle
# there: the next attempt's `unsloth studio -p <port>` finds one of our own servers on the port
@@ -631,7 +631,7 @@ def launch_studio(
install.pid = _discover_pid(port, 0.0)
if not healthy:
stop_studio(install)
- raise TimeoutError(f"Studio on :{port} did not pass /healthz within {healthz_timeout_s}s")
+ raise TimeoutError(f"Unsloth on :{port} did not pass /healthz within {healthz_timeout_s}s")
return install
@@ -678,7 +678,7 @@ def authenticate(
the run simply fails to seed a thread and reports an empty one. So the gate is read from
`/api/auth/status` up front and cleared through the one endpoint that accepts the gated token.
"""
- # Try the supplied password, then the one a PREVIOUS studiobench run rotated to. Studio mints
+ # Try the supplied password, then the one a PREVIOUS studiobench run rotated to. Unsloth mints
# a bootstrap password and demands it be changed; this function is what changes it, so the
# second run against the same home is handed a bootstrap password that no longer exists and
# gets a 401 whose message sends you to `reset-password`. Measured on the second run against
diff --git a/tests/studio/studiobench/runtime/readiness.py b/tests/studio/studiobench/runtime/readiness.py
index abd269552a2..7d37162444a 100644
--- a/tests/studio/studiobench/runtime/readiness.py
+++ b/tests/studio/studiobench/runtime/readiness.py
@@ -43,7 +43,7 @@ both satisfy, and none of which a half-built one can:
window sits. Gated in `windowed` mode only, and waived for a thread that is fully
mounted and publishes no ordinals at all, which is what the shipped build does.
ANCHORED the viewport is at the bottom, read from the app's OWN state rather than from
- arithmetic: Studio disables assistant-ui's autoscroll and runs
+ arithmetic: Unsloth disables assistant-ui's autoscroll and runs
`use-intent-aware-autoscroll`, which pins to the bottom on `thread.initialize` and
hides `.aui-thread-scroll-to-bottom` with `invisible` exactly when it considers
itself at the bottom. The scrollTop arithmetic is kept as a corroborating reading,
@@ -52,7 +52,7 @@ both satisfy, and none of which a half-built one can:
message is mounted whatever the scroll position, so gating on it would add a way to
fail that has nothing to do with readiness.
-A NOTE ON WHAT THIS ASKS OF THE ARM. Studio ships no virtualization and no ordinal attributes:
+A NOTE ON WHAT THIS ASKS OF THE ARM. Unsloth ships no virtualization and no ordinal attributes:
there is no `aria-setsize`, no `aria-posinset` and no `data-message-index` anywhere in the chat
thread today, and `@tanstack/react-virtual` is used only by the hub's model catalog. So TOTAL is
not a signal that exists and is being read; it is a CONTRACT THE VIRTUALIZATION ARM MUST MEET.
@@ -512,7 +512,7 @@ async ([toTop, steps, stepPx]) => {
const vp = D.viewport();
if (!vp) return { ran: false, reason: "no thread viewport" };
// STEPPED, AND WITH A WHEEL EVENT ON EVERY STEP. A single `scrollTo({top: 0})` from the bottom
- // does not work on this app and the reason is already documented in scene/actions.py: Studio
+ // does not work on this app and the reason is already documented in scene/actions.py: Unsloth
// replaces assistant-ui's autoscroll with an intent-aware one that reads a jump as programmatic
// and snaps it straight back to the bottom. The first version of this probe did exactly that,
// and reported "scrolling to the top never mounted the first message" -- which reads as the arm
diff --git a/tests/studio/studiobench/runtime/selftest/test_studiobench_copy_from_store_live.py b/tests/studio/studiobench/runtime/selftest/test_studiobench_copy_from_store_live.py
index 816c2d50e14..2352260d149 100644
--- a/tests/studio/studiobench/runtime/selftest/test_studiobench_copy_from_store_live.py
+++ b/tests/studio/studiobench/runtime/selftest/test_studiobench_copy_from_store_live.py
@@ -9,7 +9,7 @@ entirely on whether the app's copy handler serialises from the message store. Th
identical from the DOM and opposite from the clipboard, which is why `select_all_copy` now scores
itself on the clipboard.
-The unit tests in the Studio worktree stub `containsNode`, so the rule "the selection spans the
+The unit tests in the Unsloth worktree stub `containsNode`, so the rule "the selection spans the
whole mounted list" has never met a real `Selection` there. That is the part most likely to be
quietly wrong -- partial containment, text-node endpoints, whether a select-all over a scroll
container really reports the first and last rows as contained -- and it is what this exercises.
diff --git a/tests/studio/studiobench/runtime/selftest/test_studiobench_launch_cleanup.py b/tests/studio/studiobench/runtime/selftest/test_studiobench_launch_cleanup.py
index 96017048ad7..56bf2facebd 100644
--- a/tests/studio/studiobench/runtime/selftest/test_studiobench_launch_cleanup.py
+++ b/tests/studio/studiobench/runtime/selftest/test_studiobench_launch_cleanup.py
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-"""A Studio this harness launched and could not reach is terminated, not abandoned.
+"""An Unsloth this harness launched and could not reach is terminated, not abandoned.
THE PROCESS WE LAUNCH IS NOT THE PROCESS WE SPAWN. `launch_studio` runs the server under
`setsid -f`, which always forks and whose parent exits without waiting, so `Popen.pid` belongs to a
@@ -10,17 +10,17 @@ cannot reach. `pgrep` is the only handle on it -- and it used to be taken AFTER
so a server that started and stayed unhealthy raised with `install.pid` still None and
`stop_studio` had nothing to kill.
-That leak is not idle. It holds the requested port, and Studio's own launcher aborts rather than
+That leak is not idle. It holds the requested port, and Unsloth's own launcher aborts rather than
binding when it finds one of its own servers there (`studio/backend/run.py`, `_resolve_port` with
`avoid_own_studio`), so the next attempt's server exits and `wait_for_healthz` takes its 200 from
the STALE one -- which by then has finished starting. The run then measures the build the previous
attempt installed and records the ref this one asked for.
-AND THE PORT CAN BE OCCUPIED WITHOUT ANYTHING HAVING FAILED. `--keep-studio` asks for a Studio to
+AND THE PORT CAN BE OCCUPIED WITHOUT ANYTHING HAVING FAILED. `--keep-studio` asks for an Unsloth to
be LEFT RUNNING, so no cleanup reaches it by design and the next run walks into exactly the same
launch: `_discover_pid` pgreps `unsloth studio.*-p <port>` and finds the older process, `/healthz`
answers 200 from it, and `authenticate` retries with `BENCH_PASSWORD` -- which a previous
-studiobench run has already rotated that Studio to -- so the login succeeds as well. Nothing
+studiobench run has already rotated that Unsloth to -- so the login succeeds as well. Nothing
downstream can tell which build answered, so an occupied port is refused before anything is
launched rather than reported afterwards.
"""
@@ -113,7 +113,7 @@ def test_a_studio_that_never_started_at_all_still_raises(launched):
def test_a_healthy_studio_is_returned_with_its_pid_and_is_not_signalled(launched):
- """The control that matters: the ordinary launch must still hand back a running Studio."""
+ """The control that matters: the ordinary launch must still hand back a running Unsloth."""
launched["healthy"] = True
diff --git a/tests/studio/studiobench/runtime/selftest/test_studiobench_payload_identity.py b/tests/studio/studiobench/runtime/selftest/test_studiobench_payload_identity.py
index 4336fe1b8a4..796b234d4c0 100644
--- a/tests/studio/studiobench/runtime/selftest/test_studiobench_payload_identity.py
+++ b/tests/studio/studiobench/runtime/selftest/test_studiobench_payload_identity.py
@@ -9,14 +9,14 @@ the two places that decide what a payload already contains. Two ways that produc
something nobody ran:
A RESUME UNDER A DIFFERENT CONFIGURATION SKIPPED EVERYTHING. `--branch main --ab other --resume`
- into a directory holding a finished `main -> fix` run installs and launches two Studios, finds
+ into a directory holding a finished `main -> fix` run installs and launches two Unsloth instances, finds
every `cell_id` already complete, exits 0, and -- because `_render_ab` keeps the previous table
when this session measured nothing -- leaves the OLD comparison standing in `ab.md` to be read
as the answer for `other`.
A FRESH RUN APPENDED TO THE PREVIOUS ONE. `Recorder` opens the payload with `"a"`. The README's
own two invocations wrote into one `--out`, and when the second was interrupted the file held a
- fast-tier 100K cell from an attached Studio next to standard-tier 1K and 10K cells from `main`.
+ fast-tier 100K cell from an attached Unsloth next to standard-tier 1K and 10K cells from `main`.
`--report` scored that as one ladder, took its header from the FIRST `run_meta`, and said
`complete: true`.
"""
diff --git a/tests/studio/studiobench/runtime/selftest/test_studiobench_readiness_live.py b/tests/studio/studiobench/runtime/selftest/test_studiobench_readiness_live.py
index aa4b906154a..42d446de724 100644
--- a/tests/studio/studiobench/runtime/selftest/test_studiobench_readiness_live.py
+++ b/tests/studio/studiobench/runtime/selftest/test_studiobench_readiness_live.py
@@ -216,7 +216,7 @@ def test_full_mount_is_admitted_in_full_mode(browser):
assert r.conditions["settled"] is True
assert r.probe["mounted"] == MESSAGES
# AND THE ORDINAL CONDITIONS ARE NOT APPLICABLE HERE, which is not the same as passing.
- # Studio publishes no aria-posinset anywhere, so a `full` arm has none to validate and must
+ # Unsloth publishes no aria-posinset anywhere, so a `full` arm has none to validate and must
# never be gated on them; `None` is the value the parity layer and this gate both use for a
# surface that was not measured rather than one that agreed.
assert r.conditions["posinset_ordinals_valid"] is None
diff --git a/tests/studio/studiobench/runtime/selftest/test_studiobench_run_acquisition.py b/tests/studio/studiobench/runtime/selftest/test_studiobench_run_acquisition.py
index e4db3e49511..a66e267ead4 100644
--- a/tests/studio/studiobench/runtime/selftest/test_studiobench_run_acquisition.py
+++ b/tests/studio/studiobench/runtime/selftest/test_studiobench_run_acquisition.py
@@ -1,16 +1,16 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-"""A run releases the Studios it acquired, and records which ones they were.
+"""A run releases the Unsloth instances it acquired, and records which ones they were.
THE SIDES ARE ACQUIRED ONE AFTER THE OTHER. In a self-managed A/B the base is installed, launched
and already serving before the treatment's clone begins, so a failure in the treatment's setup used
to unwind past a base that nothing ever stopped: the cleanup lives in the `finally` under the cells
and a failure during setup never reaches it. The same hole swallowed the two setup steps that leave
-by RETURNING -- the health check and the development-build gate -- with both Studios up.
+by RETURNING -- the health check and the development-build gate -- with both Unsloth instances up.
-An abandoned Studio is not idle. `launch_studio` detaches the server with `setsid -f`, so it keeps
-the port; Studio's own launcher then ABORTS rather than binding when it finds one of its own servers
+An abandoned Unsloth is not idle. `launch_studio` detaches the server with `setsid -f`, so it keeps
+the port; Unsloth's own launcher then ABORTS rather than binding when it finds one of its own servers
there (`studio/backend/run.py`, `_resolve_port` with `avoid_own_studio`), the retry's server exits,
and `wait_for_healthz` takes its 200 from the STALE process. That run measures the build the
previous attempt installed while `run_meta` records the ref this one asked for.
@@ -87,7 +87,7 @@ def studio(monkeypatch, tmp_path):
The returned dict is both the knobs (which ref fails to install, whether /healthz answers,
whether the bundle is a production build) and the record (what was installed, launched and
- stopped, and what the Studios looked like at the moment the first cell ran).
+ stopped, and what the Unsloth instances looked like at the moment the first cell ran).
"""
state = {
@@ -231,10 +231,10 @@ def test_a_studio_the_caller_attached_is_never_stopped(studio):
def test_a_run_that_reaches_its_cells_stops_the_studios_once_at_the_end(studio):
- """The control that matters: an ordinary run still gets two live Studios and still cleans up.
+ """The control that matters: an ordinary run still gets two live Unsloth instances and still cleans up.
The guard is a `finally` over the whole of setup, so the failure it must not have is stopping
- the Studios on the way IN. `stopped_when_the_cells_ran` is read inside the cell runner.
+ the Unsloth instances on the way IN. `stopped_when_the_cells_ran` is read inside the cell runner.
"""
args = _args(studio, "--branch", "main", "--ab", "pr-9296", "--reps", "2")
@@ -545,7 +545,7 @@ def test_a_duplicate_run_is_refused_before_it_archives_or_installs_anything(stud
), "the refused duplicate archived the live payload of the run it was refused in favour of"
assert sorted(p.name for p in paths.out.glob("payload-*.jsonl")) == []
assert studio["installed"] == [], (
- "the duplicate installed a Studio on a machine that was already measuring, which is the "
+ "the duplicate installed an Unsloth on a machine that was already measuring, which is the "
"contention the guard exists to prevent, paid as the cost of refusing it"
)
# And the directory is free again the moment the holder lets go.
@@ -761,14 +761,14 @@ def test_a_resume_under_the_same_probe_still_resumes(studio, probe):
)
-# ── one Studio, two sides: the attached null control ────────────────────────────────────────
+# ── one Unsloth, two sides: the attached null control ────────────────────────────────────────
class _ProviderBackend:
"""`lifecycle.register_provider`'s contract, per origin: idempotent by DISPLAY NAME.
The real one deletes every existing provider whose `display_name` matches before creating the
- replacement, so registering the pacer twice against ONE Studio destroys the id the first
+ replacement, so registering the pacer twice against ONE Unsloth destroys the id the first
registration handed out. Modelled rather than stubbed to a constant, because that deletion is
the whole failure.
"""
@@ -850,7 +850,7 @@ def test_an_attached_null_control_registers_one_provider_for_the_one_studio(stud
# re-seeded both scripts with the survivor, and would fail a fix that never selects at all.
selected = _selected_provider_ids(scripts, url)
assert selected == set(backend.live[url])
- assert selected, "the one Studio must still have a provider selected"
+ assert selected, "the one Unsloth must still have a provider selected"
# And the registration itself: one backend, one registration, nothing destroyed.
assert backend.deleted == []
assert backend.registrations == [(url, "provider-1")]
diff --git a/tests/studio/studiobench/runtime/selftest/test_studiobench_token_refresh.py b/tests/studio/studiobench/runtime/selftest/test_studiobench_token_refresh.py
index e257d89c12b..37f3c6d611d 100644
--- a/tests/studio/studiobench/runtime/selftest/test_studiobench_token_refresh.py
+++ b/tests/studio/studiobench/runtime/selftest/test_studiobench_token_refresh.py
@@ -9,7 +9,7 @@ the first install. A standard A/B at four repetitions is 24 cells of the 243 sec
request after that answers 401. It presents as an intermittent failure and it is not one: it is
the clock, and it is reproducible to the second.
-The fake Studio below issues tokens with a six second life instead of an hour's, and the tests drive
+The fake Unsloth below issues tokens with a six second life instead of an hour's, and the tests drive
`token()` with a one second margin, so the ratio between the two is the harness's own (15 minutes
against 60) at a scale a test can wait for. `test_the_token_a_run_was_handed_stops_working` is the
control that shows the server really does stop accepting an expired token, so the tests underneath
@@ -42,7 +42,7 @@ from studiobench.runtime.lifecycle import ( # noqa: E402
)
from studiobench.runtime.seeder import Seeder # noqa: E402
-#: How long the fake Studio's access tokens live. An hour compressed into something a test can sit
+#: How long the fake Unsloth's access tokens live. An hour compressed into something a test can sit
#: through, and long enough that a loaded machine cannot expire one mid-request.
TOKEN_TTL_S = 6.0
#: The margin the tests below drive `token()` with. The REAL ratio matters: a margin far shorter
@@ -62,7 +62,7 @@ class _State:
self.logins = 0
self.login_attempts = 0
self.rejections = 0
- #: Set to reject EVERY token once, whatever its `exp` says: a Studio restarted underneath
+ #: Set to reject EVERY token once, whatever its `exp` says: an Unsloth restarted underneath
#: the run, or a clock this process cannot see.
self.reject_next = 0
self.lock = threading.Lock()
@@ -226,7 +226,7 @@ def test_the_token_is_replaced_before_it_expires_not_after_it_fails(studio, monk
def test_a_401_that_arrives_anyway_is_recovered(studio):
"""The reactive half. A token this process believes is fresh can still be refused: a clock
- offset against the server, or a Studio restarted underneath the run. One retry, then the
+ offset against the server, or an Unsloth restarted underneath the run. One retry, then the
refusal is real and is raised."""
base_url, state = studio
auth = authenticate(base_url, "bench", PASSWORD, new_password = PASSWORD)
@@ -275,7 +275,7 @@ def test_a_login_that_is_refused_is_not_retried_as_if_it_were_the_request(studio
def test_a_clock_that_makes_every_token_look_stale_stops_the_proactive_half(studio):
"""The runaway guard. `needs_refresh` reads the server's `exp` against THIS process's clock.
- A Studio 45 minutes behind, or one whose `ACCESS_TOKEN_EXPIRE_MINUTES` is shorter than the
+ An Unsloth 45 minutes behind, or one whose `ACCESS_TOKEN_EXPIRE_MINUTES` is shorter than the
margin -- which is exactly this fake studio, six seconds against fifteen minutes -- makes every
token ever issued look like it is about to expire, and every request would then log in again
and append another init script to the browser context. One rotation is enough to find that out.
diff --git a/tests/studio/studiobench/runtime/selftest/test_studiobench_watchdog_budget.py b/tests/studio/studiobench/runtime/selftest/test_studiobench_watchdog_budget.py
index 76482ed29bf..a7f6e9982d0 100644
--- a/tests/studio/studiobench/runtime/selftest/test_studiobench_watchdog_budget.py
+++ b/tests/studio/studiobench/runtime/selftest/test_studiobench_watchdog_budget.py
@@ -8,7 +8,7 @@
before the first cell. The deadline was three times the TIER budget -- 15 minutes on fast and
quick, the two tiers people iterate with -- armed before the first install, so a slow download
tripped `os._exit(2)` during setup. It exits through `os._exit`, so the `finally` that stops the
-Studios and the pacer does not run either: the run dies, leaves its processes behind, and never
+Unsloth instances and the pacer does not run either: the run dies, leaves its processes behind, and never
reaches the measurement it advertised.
The deadline is asserted at the real entry point, by driving `run()` until the first install.
@@ -113,7 +113,7 @@ def test_a_standard_ab_at_four_reps_is_not_hard_exited_part_way_through(monkeypa
That is 5,832 seconds of film before a thread is seeded, and the deadline was
`TIER_BUDGET_S["standard"] * 3` = 3,600 seconds with nothing added for an attached pair -- so
the watchdog fired 40% of the way through a perfectly healthy run, through `os._exit`, taking
- the `finally` that stops the Studios with it.
+ the `finally` that stops the Unsloth instances with it.
"""
deadline = _armed_deadline(
@@ -185,7 +185,7 @@ def test_the_scaled_deadline_is_still_capped(monkeypatch, tmp_path):
def test_a_single_arm_tier_ladder_keeps_its_documented_budget(monkeypatch, tmp_path):
- """Every tier's own ladder, run once against one attached Studio, is unchanged.
+ """Every tier's own ladder, run once against one attached Unsloth, is unchanged.
This is the regression guard on the change: the deadline may only grow where the caller asked
for more work than the tier describes.
diff --git a/tests/studio/studiobench/runtime/selftest/test_studiobench_windowed_arm_names.py b/tests/studio/studiobench/runtime/selftest/test_studiobench_windowed_arm_names.py
index f72ef830f03..8817700e88d 100644
--- a/tests/studio/studiobench/runtime/selftest/test_studiobench_windowed_arm_names.py
+++ b/tests/studio/studiobench/runtime/selftest/test_studiobench_windowed_arm_names.py
@@ -4,7 +4,7 @@
"""A MISTYPED FLAG MUST NOT COST A BROWSER AND TWO STUDIO SERVERS.
`--windowed-arm` names the arm that is allowed the windowed readiness gate, and the name is checked
-against the arms the run actually has. That check used to happen after both Studio installs had
+against the arms the run actually has. That check used to happen after both Unsloth installs had
been launched, the pacer bound and the browser opened, and the `SystemExit` it raises for
`--windowed-arm treatments` was raised from a place with no cleanup around it: the `finally` that
calls `bundle.close()`, `pacer.stop()`, `stop_studio()` and cancels the watchdog does not begin
@@ -65,7 +65,7 @@ def test_a_bad_arm_name_is_refused_before_any_process_is_started(monkeypatch):
"""THE DEFECT. Every entry point that starts something is trapped here, so if the refusal moves
back below any of them this fails with the trap's own error instead of the SystemExit.
- The watchdog is the first of them in `run`, then the Studio install or the health check on an
+ The watchdog is the first of them in `run`, then the Unsloth install or the health check on an
attached one, then the pacer, then the browser. None of them is reached.
"""
from studiobench import pacer as pacer_mod
@@ -83,8 +83,8 @@ def test_a_bad_arm_name_is_refused_before_any_process_is_started(monkeypatch):
monkeypatch.setattr(browser_mod, "install_wall_clock_watchdog", _trap("the watchdog"))
monkeypatch.setattr(browser_mod, "launch", _trap("the browser"))
- monkeypatch.setattr(lifecycle, "install_studio", _trap("the Studio install"))
- monkeypatch.setattr(lifecycle, "launch_studio", _trap("the Studio launch"))
+ monkeypatch.setattr(lifecycle, "install_studio", _trap("the Unsloth install"))
+ monkeypatch.setattr(lifecycle, "launch_studio", _trap("the Unsloth launch"))
monkeypatch.setattr(lifecycle, "wait_for_healthz", _trap("the health check"))
monkeypatch.setattr(pacer_mod, "Pacer", _trap("the pacer"))
diff --git a/tests/studio/studiobench/runtime/selftest/thread_fixture.js b/tests/studio/studiobench/runtime/selftest/thread_fixture.js
index dc0e781dd5c..40b5bddfe7c 100644
--- a/tests/studio/studiobench/runtime/selftest/thread_fixture.js
+++ b/tests/studio/studiobench/runtime/selftest/thread_fixture.js
@@ -10,7 +10,7 @@
//
// It reproduces exactly the contract the shipping app publishes and the readiness gate reads --
// `.aui-thread-root`, `.aui-thread-viewport`, `[data-role]`, `.aui-thread-scroll-to-bottom` with
-// its `invisible` toggle, the composer textarea -- and nothing else. It is not a replica of Studio
+// its `invisible` toggle, the composer textarea -- and nothing else. It is not a replica of Unsloth
// and must never be mistaken for one: it cannot tell you anything about the app's own timing. What
// it can do is put the gate in front of each of the situations it has to tell apart.
diff --git a/tests/studio/studiobench/runtime/session.py b/tests/studio/studiobench/runtime/session.py
index 6efdaf30550..fca5f7c84a9 100644
--- a/tests/studio/studiobench/runtime/session.py
+++ b/tests/studio/studiobench/runtime/session.py
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-"""One session: one browser, one Studio, one pacer, N cells.
+"""One session: one browser, one Unsloth, one pacer, N cells.
A SESSION IS THE UNIT OF COMPARISON. Every slope, ratio and A/B pair must be read within one of
these, because cross-session drift on this app has been measured at 8% -- larger than most of the
@@ -1341,7 +1341,7 @@ def make_context(
) -> tuple[BenchContext, Session]:
session_id = new_session_id()
# THE LOCK THE CALLER IS ALREADY HOLDING. `run()` takes the output directory before it archives
- # a payload or installs a Studio, so the `Recorder` adopts that lock rather than opening a
+ # a payload or installs an Unsloth, so the `Recorder` adopts that lock rather than opening a
# second one against the same path. Without a caller's lock it takes its own, which is what
# every test and every other consumer of a payload does.
recorder = Recorder(paths.payload_jsonl, session_id, lock = out_lock)
diff --git a/tests/studio/studiobench/runtime/types.py b/tests/studio/studiobench/runtime/types.py
index bfffb38744f..ce077d98307 100644
--- a/tests/studio/studiobench/runtime/types.py
+++ b/tests/studio/studiobench/runtime/types.py
@@ -339,7 +339,7 @@ class OutDirLock:
SEPARATE FROM THE `Recorder` BECAUSE OF WHEN IT HAS TO BE TAKEN. The guard used to be taken
where the payload is opened, which is after `prepare_payload` has archived whatever was in the
- directory and after both Studios have been cloned, built and launched. A second launcher
+ directory and after both Unsloth instances have been cloned, built and launched. A second launcher
pointed at a busy `--out` without `--resume` therefore did all of that before being refused,
and both halves of it hurt the run it was refused in favour of:
@@ -351,7 +351,7 @@ class OutDirLock:
exactly the rule `prepare_payload` states for itself: a refusal has to leave the payload it
refused exactly as it found it.
* A clone, a build and a launch are not free. The first run is MEASURING, and the refusal
- that arrives after all of that has already put a compiler and a second Studio on the
+ that arrives after all of that has already put a compiler and a second Unsloth on the
machine the first run thought it had. Contention between two runs sharing one `--out` is
the whole reason this guard exists; it must not be the guard's own cost of saying no.
@@ -661,7 +661,7 @@ class Recorder:
#
# TAKEN BEFORE THIS POINT WHEN THE CALLER HAS ONE, AND THAT IS THE NORMAL PATH. `run()`
# holds the directory from its first millisecond, because by the time the payload is opened
- # a duplicate has already archived the live payload and installed two Studios on top of the
+ # a duplicate has already archived the live payload and installed two Unsloth instances on top of the
# run it is about to be refused in favour of. See `OutDirLock`. A `Recorder` built without
# one -- the tests, and any caller that only wants a payload -- still takes its own, so the
# guard cannot be switched off by forgetting to pass it.
diff --git a/tests/studio/studiobench/scene/actions.py b/tests/studio/studiobench/scene/actions.py
index 480541b2926..b192b154989 100644
--- a/tests/studio/studiobench/scene/actions.py
+++ b/tests/studio/studiobench/scene/actions.py
@@ -7,7 +7,7 @@ THE RULE THIS FILE EXISTS TO ENFORCE: an action that did not happen is `ran = Fa
a fast timing. That is not a style preference, it is the failure mode that wasted a day of
measurement. A menu whose trigger opens on `pointerdown` does not open when you call `.click()`,
and the column then reads a tidy small number that looks like a fast menu. A jump scroll from the
-bottom is read by Studio's intent-aware autoscroll as programmatic and snapped straight back, so
+bottom is read by Unsloth's intent-aware autoscroll as programmatic and snapped straight back, so
the viewport lands where it started and the timing is real, precise and about nothing. Every
action below therefore asserts a POSITIVE observable consequence -- the scroll travelled at least
90% of what was commanded, the menu opened AND closed with a non-zero item count, the delete
@@ -341,7 +341,7 @@ def _scroll(ctx: ActionContext, label: str) -> ActionResult:
return not_run(raw.get("reason", "the scroll did not run"))
commanded = raw["commandedPx"]
travelled = raw["travelledPx"]
- # 90% of commanded. Studio replaces assistant-ui's autoscroll with an intent-aware one that
+ # 90% of commanded. Unsloth replaces assistant-ui's autoscroll with an intent-aware one that
# snaps a move it reads as programmatic straight back to the bottom: measured on an earlier
# harness, the gesture landed where it started and the column timed a scroll that did not
# happen. Travel is the only thing that separates the two.
@@ -2525,7 +2525,7 @@ async (opts) => {
#: How long an action that needs a message's ACTION BAR will wait for the reply to finish.
#:
-#: Studio hides the action bar while a message is generating, so "no More button on the last
+#: Unsloth hides the action bar while a message is generating, so "no More button on the last
#: assistant message" and "no Delete button (a running message hides it)" are the same fact
#: reported by two actions. The film schedules `message_menu` about four seconds after a
#: `send_turn` whose reply runs for roughly fourteen, so the menu was being asked for on a message
@@ -2557,7 +2557,7 @@ def _wait_for_the_reply_to_land(ctx: ActionContext) -> bool:
@register_action(name = "message_menu", default_budget_ms = 12000)
def message_menu(ctx: ActionContext) -> ActionResult:
# TWO WAITS, AND THEY COVER DIFFERENT THINGS. This one waits for the STREAM to stop, bounded by
- # a fraction of the slot's own budget, because a follow-up reply runs for seconds and Studio
+ # a fraction of the slot's own budget, because a follow-up reply runs for seconds and Unsloth
# unmounts the whole action bar for its whole duration -- far longer than the page-side wait
# below is allowed to sit. `waitForButtonMs` then waits for the BAR TO MOUNT, which happens a
# few hundred milliseconds after the reply settles, and which this one cannot see because
@@ -2566,7 +2566,7 @@ def message_menu(ctx: ActionContext) -> ActionResult:
# second, the slot asks for a control that has not been mounted yet.
if not _wait_for_the_reply_to_land(ctx):
return not_run(
- "a reply was still generating when the slot's budget ran out, and Studio hides the "
+ "a reply was still generating when the slot's budget ran out, and Unsloth hides the "
"action bar on a generating message, so there was no menu to open"
)
raw = _ev(
diff --git a/tests/studio/studiobench/scene/dom.js b/tests/studio/studiobench/scene/dom.js
index 79012960040..7803f7b9ca2 100644
--- a/tests/studio/studiobench/scene/dom.js
+++ b/tests/studio/studiobench/scene/dom.js
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
//
-// The selector adapter for the REAL Studio chat UI.
+// The selector adapter for the REAL Unsloth chat UI.
//
// The salvaged action JS from playwright_heavy_thread.py calls `window.__heavyThread`, an API the
// smoke fixture exported. The shipping app exports nothing of the kind, so the actions are ported
@@ -170,7 +170,7 @@
// WHICH MESSAGES ARE STILL BEING WRITTEN, read from the app's own published state rather than
// guessed at from `isRunning()` plus "it is probably the last one".
//
- // assistant-ui gives every text part a status and Studio serialises it: markdown-text.tsx
+ // assistant-ui gives every text part a status and Unsloth serialises it: markdown-text.tsx
// renders `<div data-status={status.type}>` around the Streamdown tree, so a part that is
// still arriving reads `data-status="running"` and a finished one reads `"complete"`. The
// reasoning pane publishes the same fact as `aria-busy` on `[data-slot="reasoning-content"]`
@@ -727,7 +727,7 @@
//
// The contract is about INTENT, and intent is re-expressed by coming back: a user who
// scrolls up is detached until they return to the end, at which point they are following
- // again. That is the same re-attachment Studio's own intent-aware autoscroll implements.
+ // again. That is the same re-attachment Unsloth's own intent-aware autoscroll implements.
// Only checked here, on the way out of a deliberate gesture, so the app silently pulling
// the viewport down on its own is still scored as a yank rather than laundered into a
// re-attachment.
diff --git a/tests/studio/studiobench/scene/parity.js b/tests/studio/studiobench/scene/parity.js
index db3fdc24b1f..b1ce91a7b7d 100644
--- a/tests/studio/studiobench/scene/parity.js
+++ b/tests/studio/studiobench/scene/parity.js
@@ -61,7 +61,7 @@
//
// ── AND A NOTE ON ANY SCAN THAT CAN RETURN ZERO ──────────────────────────────────────────────
//
-// `styleProbe` below walks a hand-written selector list. If Studio renames a class the list goes
+// `styleProbe` below walks a hand-written selector list. If Unsloth renames a class the list goes
// quiet, matches nothing, and its digest becomes the hash of an empty string -- identical on both
// arms, reported as a MATCH. A scan of nothing must never be reported as agreement, so
// `compare_styles` refuses a zero-element probe instead of matching it, and `elements` travels
@@ -91,7 +91,7 @@
// happens to be scrolled, which the film varies deliberately.
// record identifiers thread ids, message ids and attachment ids are minted by the BACKEND when
// the fixture seeds the thread. The two arms of an A/B are two separate
-// Studio installs with two separate databases, so these can never agree and
+// Unsloth installs with two separate databases, so these can never agree and
// carry no information about the frontend.
// absolute URLs `src`/`href` carry the arm's own origin, and the two arms are on two
// ports by construction. `http://127.0.0.1:5830/x` and `...:5831/x` are the
@@ -811,7 +811,7 @@
// That is the failure this whole file's neighbours were written against: measuring at a
// moment whose meaning is not stable across the things being compared. It is the same
// mistake as a census taken on a `data-state` flip, and it is worse here because the
- // renderer amplifies it. Mid-stream, Studio does not show a PREFIX of the finished reply:
+ // renderer amplifies it. Mid-stream, Unsloth does not show a PREFIX of the finished reply:
// `parseIncompleteMarkdown` runs remend over the tail and closes whatever construct is
// half-arrived, KaTeX renders the repaired formula (and, while it will not parse, writes
// the parse error and its character offset into a `title`), Shiki re-tokenises the repaired
@@ -925,7 +925,7 @@
in_flight,
streaming: running,
// THE POSITIVE CONTROL, and it is not decoration. `streamingMessages()` walks selectors
- // written against Studio's markup: rename `data-status` and it goes quiet, matches
+ // written against Unsloth's markup: rename `data-status` and it goes quiet, matches
// nothing, and every reading silently becomes "nothing was streaming" -- which is the
// strongest claim this capture can make about the stream and would be supported by no
// observation at all. The app says a reply is running through a different control (the
diff --git a/tests/studio/studiobench/scene/selftest/test_studiobench_action_bar_wait.py b/tests/studio/studiobench/scene/selftest/test_studiobench_action_bar_wait.py
index 63ee13d593c..51c0685a3f9 100644
--- a/tests/studio/studiobench/scene/selftest/test_studiobench_action_bar_wait.py
+++ b/tests/studio/studiobench/scene/selftest/test_studiobench_action_bar_wait.py
@@ -3,7 +3,7 @@
"""The action bar is WAITED for, not sampled for once.
-WHAT THIS PROTECTS, and it is a liveness property rather than a timing one. Studio mounts the
+WHAT THIS PROTECTS, and it is a liveness property rather than a timing one. Unsloth mounts the
assistant action bar with `hideWhenRunning` (studio/frontend/src/components/assistant-ui/
thread.tsx), so while a turn is generating there is no Copy, no Delete and no More anywhere in the
tree. Four scene actions need one of those controls, and every film schedules them after a
@@ -27,7 +27,7 @@ WHY NODE AND THE REAL SOURCES. `MENU_JS` is the string that ships inside `scene/
`waitForActionButton` is the function that ships inside `scene/dom.js`; a Python re-implementation
of either would pass forever while the shipped pair drifted. So node runs both, against a shim of
the handful of DOM globals they touch, with the ACTION BAR ARRIVING LATE -- which is the one thing
-that cannot be shimmed away, because it is the thing under test. No browser, no Studio, and if
+that cannot be shimmed away, because it is the thing under test. No browser, no Unsloth, and if
node is missing the test SKIPS rather than passing on a substitute.
"""
diff --git a/tests/studio/studiobench/scene/selftest/test_studiobench_hover_reveal_live.py b/tests/studio/studiobench/scene/selftest/test_studiobench_hover_reveal_live.py
index 47768b703de..ebd51621f82 100644
--- a/tests/studio/studiobench/scene/selftest/test_studiobench_hover_reveal_live.py
+++ b/tests/studio/studiobench/scene/selftest/test_studiobench_hover_reveal_live.py
@@ -12,7 +12,7 @@ both pointed the wrong way:
That reads like an overlay, or a collapsed sidebar, or a zero-size button, and it was none of
them. Asking the live app directly returned a control that is 20x20 at (243, 319), `visibility:
visible`, `display: flex`, one instance, nothing drawn over it -- and `pointer-events: none` with
-`opacity: 0`. Studio styles it as a hover-revealed action:
+`opacity: 0`. Unsloth styles it as a hover-revealed action:
.sidebar-header-action { opacity-0 pointer-events-none }
.group\\/sidebar-header:hover .sidebar-header-action { opacity-100 pointer-events-auto }
@@ -44,7 +44,7 @@ if str(_STUDIO_TESTS) not in sys.path:
from studiobench.runtime.types import ActionContext, Cell # noqa: E402
from studiobench.scene import actions as A # noqa: E402
-#: Studio's own geometry: a 20x20 action inside a 279x49 sticky header row, at the same offset the
+#: Unsloth's own geometry: a 20x20 action inside a 279x49 sticky header row, at the same offset the
#: live probe measured. The numbers matter -- a control large enough to be hit by chance would let
#: the test pass for the wrong reason.
FIXTURE = """
diff --git a/tests/studio/studiobench/scene/selftest/test_studiobench_observation_cost.py b/tests/studio/studiobench/scene/selftest/test_studiobench_observation_cost.py
index fa46185d3ed..54b3d328f33 100644
--- a/tests/studio/studiobench/scene/selftest/test_studiobench_observation_cost.py
+++ b/tests/studio/studiobench/scene/selftest/test_studiobench_observation_cost.py
@@ -267,7 +267,7 @@ def _running_ctx(page, budget_ms = 12000):
def test_it_waits_for_a_generating_reply_instead_of_reporting_no_menu():
"""THE DEFECT, and it cost this action on every CI run since the branch opened.
- Studio hides a message's action bar while the message is generating, and the film schedules
+ Unsloth hides a message's action bar while the message is generating, and the film schedules
`message_menu` about four seconds after a `send_turn` whose reply runs for roughly fourteen.
So the harness asked for a menu on a message that was still being written, got no More button,
and reported NOT RUN -- an accurate observation of a question nobody should have asked yet.
diff --git a/tests/studio/studiobench/scene/selftest/test_studiobench_queued_idle_live.py b/tests/studio/studiobench/scene/selftest/test_studiobench_queued_idle_live.py
index ad1d623312a..0320ca08c28 100644
--- a/tests/studio/studiobench/scene/selftest/test_studiobench_queued_idle_live.py
+++ b/tests/studio/studiobench/scene/selftest/test_studiobench_queued_idle_live.py
@@ -279,8 +279,8 @@ def test_what_reading_the_queue_surface_gives_up(page):
def test_the_shipped_composer_still_renders_the_two_queue_buttons():
"""The fixtures above are hand-written, so they can drift into asserting themselves.
- What makes them a claim about Studio is that the app still renders BOTH Queue buttons and still
- names the queue surface, so this reads that out of the shipped TSX. If Studio stops rendering
+ What makes them a claim about Unsloth is that the app still renders BOTH Queue buttons and still
+ names the queue surface, so this reads that out of the shipped TSX. If Unsloth stops rendering
the queued-idle button the conflation is gone and this file should go with it; if it renames
the queue surface, `dom.promptQueue()` goes quiet and the conflation is back.
"""
diff --git a/tests/studio/studiobench/scene/surfaces.js b/tests/studio/studiobench/scene/surfaces.js
index a0a6afffffb..2b20bd60dc2 100644
--- a/tests/studio/studiobench/scene/surfaces.js
+++ b/tests/studio/studiobench/scene/surfaces.js
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
//
-// The selector adapter for Studio's surfaces OUTSIDE the chat thread: the other routes, the
+// The selector adapter for Unsloth's surfaces OUTSIDE the chat thread: the other routes, the
// settings dialog's twelve tabs, the sidebar and its menus, the hub, the media pages.
//
// Separate from dom.js on purpose. dom.js is the chat thread's adapter and the eighteen film
diff --git a/tests/studio/studiobench/scene/surfaces.py b/tests/studio/studiobench/scene/surfaces.py
index 1fc6af24731..247b963cdea 100644
--- a/tests/studio/studiobench/scene/surfaces.py
+++ b/tests/studio/studiobench/scene/surfaces.py
@@ -1,11 +1,11 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-"""The registry of Studio's UI SURFACES, for the parity sweep.
+"""The registry of Unsloth's UI SURFACES, for the parity sweep.
WHY THIS EXISTS. The film drives eighteen actions against the chat thread plus a handful of
overlays, and the parity digest taken at the close of each one is what licenses the claim "this
-change does not alter the UI". That claim is far wider than the evidence: Studio has fifteen
+change does not alter the UI". That claim is far wider than the evidence: Unsloth has fifteen
routes, a settings dialog with twelve lazily loaded panels, a sidebar with six menus, a model
picker with three section tabs, and the media pages. None of them is on the film's path, so a
change that repainted every one of them would pass eighteen out of eighteen parity checks.
@@ -49,7 +49,7 @@ KNOWN_STATE_PATH = "/chat"
#: Steps are (verb, *args). Interpreted by surface_sweep, which owns the browser; keeping them
#: declarative is what lets the unit tests check the registry with no browser present.
#:
-#: goto <path> navigate, relative to the Studio base url
+#: goto <path> navigate, relative to the Unsloth base url
#: click <selector> a REAL mouse click through the driver. Not element.click():
#: Radix menus open on pointerdown and a synthetic click misses
#: them entirely, which reads as a menu that opened instantly
@@ -90,7 +90,7 @@ class Surface:
#: coverage figure is not inflated by re-counting what was already covered.
also_in_film: bool = False
#: The mechanism by which this surface's digest differs between two runs of the SAME build.
- #: Measured, not assumed: three consecutive sweeps against one Studio agreed on 44 of 53
+ #: Measured, not assumed: three consecutive sweeps against one Unsloth agreed on 44 of 53
#: surfaces, and every entry below is the mechanism behind one of the nine that did not.
#:
#: This is the same distinction `scripts/sbench_ui_parity.py` already draws for the film's
@@ -245,7 +245,7 @@ _SURFACES: list[Surface] = [
),
_route(
"route:train",
- "Train (Studio)",
+ "Train (Unsloth)",
"/studio",
# NOT a URL check alone, and not the nav row either: the nav row is in the sidebar and
# is there before the page is. StudioPage shows a spinner while the hardware verdict is
diff --git a/tests/studio/studiobench/sweep/selftest/test_studiobench_sweep.py b/tests/studio/studiobench/sweep/selftest/test_studiobench_sweep.py
index 235115a5fff..baff730dad0 100644
--- a/tests/studio/studiobench/sweep/selftest/test_studiobench_sweep.py
+++ b/tests/studio/studiobench/sweep/selftest/test_studiobench_sweep.py
@@ -1559,7 +1559,7 @@ def test_the_doc_says_which_commands_in_the_loop_need_a_studio():
for offline in ("--assert-liveness", "floor_table", "ui_parity", "--report"):
assert offline in prose, (
f"the paragraph under the loop does not say that {offline} runs offline, so it reads "
- f"as though a contributor needs a Studio to score a payload they already have"
+ f"as though a contributor needs an Unsloth to score a payload they already have"
)
diff --git a/tests/studio/studiobench/sweep/selftest/test_studiobench_windowed_parity.py b/tests/studio/studiobench/sweep/selftest/test_studiobench_windowed_parity.py
index 4d75f8293b1..212699602a0 100644
--- a/tests/studio/studiobench/sweep/selftest/test_studiobench_windowed_parity.py
+++ b/tests/studio/studiobench/sweep/selftest/test_studiobench_windowed_parity.py
@@ -601,7 +601,7 @@ def test_a_style_probe_that_matched_no_elements_does_not_report_a_match():
-- both the hash of an empty string -- so the strongest verdict the function can return was
being issued on the strength of no observation at all.
- Not hypothetical: the probe walks a hand-written selector list written against Studio's
+ Not hypothetical: the probe walks a hand-written selector list written against Unsloth's
markup, and a class rename anywhere in it empties the scan silently.
"""
verdict, reason = P.compare_styles(_styled(0), _styled(0))
diff --git a/tests/studio/studiobench/sweep/ui_parity.py b/tests/studio/studiobench/sweep/ui_parity.py
index c1cf0f46442..092d6de9c20 100644
--- a/tests/studio/studiobench/sweep/ui_parity.py
+++ b/tests/studio/studiobench/sweep/ui_parity.py
@@ -1353,7 +1353,7 @@ def audit_null(
UNDECIDED IS NOT ALWAYS A DEFECT. `derive_unstable` counts a pair that was not comparable or
not exercised as blind rather than as an observation, so an action this fixture cannot perform
- at all -- `image_upload`, whose attachments button Studio never mounts without a model -- is
+ at all -- `image_upload`, whose attachments button Unsloth never mounts without a model -- is
permanently undecided for an honest reason. Those names are excused by `allow_undecided`, and
every one of them is a hole, so they are printed.
diff --git a/tests/studio/test_chat_autoload_failure_gate.py b/tests/studio/test_chat_autoload_failure_gate.py
index a4097e177ae..e8de4acba6e 100644
--- a/tests/studio/test_chat_autoload_failure_gate.py
+++ b/tests/studio/test_chat_autoload_failure_gate.py
@@ -1371,7 +1371,7 @@ def test_a_cached_text_generation_repo_still_auto_loads():
def test_a_provisional_mac_platform_does_not_hide_a_remote_backends_models():
"""Before the probe lands chatOnly is a browser guess: a Mac browser on a
- remote Linux Studio would hide every local safetensors model."""
+ remote Linux Unsloth would hide every local safetensors model."""
safetensors = (
"{ ...LOCAL_GGUF, id: 'st', load_id: 'st', path: '/models/st',"
" model_format: 'safetensors' }"
diff --git a/tests/studio/test_chat_ui_shards_cover_everything.py b/tests/studio/test_chat_ui_shards_cover_everything.py
index 23a07d4b337..7903301e07d 100644
--- a/tests/studio/test_chat_ui_shards_cover_everything.py
+++ b/tests/studio/test_chat_ui_shards_cover_everything.py
@@ -3,8 +3,8 @@
"""Every Playwright script in Chat UI Tests belongs to exactly one shard.
-The job used to run 11 scripts in sequence against four Studios, at 22.1 minutes on
-average, the largest single job in the repo. It is now four shards split on the Studio
+The job used to run 11 scripts in sequence against four Unsloth instances, at 22.1 minutes on
+average, the largest single job in the repo. It is now four shards split on the Unsloth
boundaries.
The failure mode that matters is not a broken shard, which is loud. It is a step whose
@@ -83,7 +83,7 @@ def test_every_playwright_step_runs_on_some_shard(step):
def test_the_studio_a_script_depends_on_boots_on_the_same_shard():
- """A script and the Studio it drives cannot be split across machines.
+ """A script and the Unsloth it drives cannot be split across machines.
Each boot step names its port, and so does every script that talks to it. A shard
holding the script but not the boot fails on connection refused, which is at least
@@ -104,7 +104,7 @@ def test_the_studio_a_script_depends_on_boots_on_the_same_shard():
for port in ports & set(booted):
missing = _named_shards(str(step.get("if", ""))) - booted[port]
assert not missing, (
- f"{step.get('name')!r} runs on {sorted(missing)} but the Studio on {port} "
+ f"{step.get('name')!r} runs on {sorted(missing)} but the Unsloth on {port} "
f"is only booted on {sorted(booted[port])}. The script would hit a port "
f"nothing is listening on."
)
@@ -155,8 +155,8 @@ def test_each_shard_uploads_under_its_own_artifact_name():
def test_every_shard_captures_its_own_server_logs():
"""Each cell is a separate machine with its own ~/.unsloth/studio/logs.
- The copy used to live inside the step that stops the last Studio, whose comment said
- all three Studios share the directory. True when they shared a runner; false now. A
+ The copy used to live inside the step that stops the last Unsloth, whose comment said
+ all three Unsloth instances share the directory. True when they shared a runner; false now. A
shard-gated copy leaves three artifacts with no server-side traceback, which is
exactly what anyone debugging a failed shard opens first.
"""
diff --git a/tests/studio/test_diffusion_gpu_layers_contract.py b/tests/studio/test_diffusion_gpu_layers_contract.py
index 0329268f63b..e5c6b801c6c 100644
--- a/tests/studio/test_diffusion_gpu_layers_contract.py
+++ b/tests/studio/test_diffusion_gpu_layers_contract.py
@@ -2,7 +2,7 @@
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
"""The diffusion runner must honour the GPU-layer split (#7574).
-Studio used to drop a manual GPU-layers setting on the diffusion path and pin every layer
+Unsloth used to drop a manual GPU-layers setting on the diffusion path and pin every layer
to GPU, so a GGUF larger than VRAM OOMed in cudaMalloc with no way out.
The pure helpers run directly; the wiring is checked at source level, since importing the
diff --git a/tests/studio/test_freeze_report_verdicts.py b/tests/studio/test_freeze_report_verdicts.py
index 0686f2d34ee..1a12cd1dfa2 100644
--- a/tests/studio/test_freeze_report_verdicts.py
+++ b/tests/studio/test_freeze_report_verdicts.py
@@ -355,7 +355,7 @@ def test_busy_port_is_not_taken_as_permission_to_stop_a_live_studio(monkeypatch)
def test_main_aborts_instead_of_killing_a_running_studio(monkeypatch, capsys, tmp_path):
- """The end to end shape of the above: a Studio backend already answering, with nobody
+ """The end to end shape of the above: an Unsloth backend already answering, with nobody
to ask, must reach no candidate at all, so nothing is ever killed."""
launched = []
monkeypatch.setattr(freeze, "studio_backend_pids", lambda: [4321])
diff --git a/tests/studio/test_hardware_dispatch_matrix.py b/tests/studio/test_hardware_dispatch_matrix.py
index 701e00b7c99..e969f5eb48c 100644
--- a/tests/studio/test_hardware_dispatch_matrix.py
+++ b/tests/studio/test_hardware_dispatch_matrix.py
@@ -364,13 +364,13 @@ def test_xpu_takes_priority_over_mlx_when_both_available(spoof_hardware):
assert hw.detect_hardware() == hw.DeviceType.XPU
-# Studio's placement, against the loader's opt-in device map.
+# Unsloth's placement, against the loader's opt-in device map.
#
# unsloth's loader upgrades a "sequential" device_map to the "unsloth" planning sentinel
-# when UNSLOTH_AUTO_DEVICE_MAP=1. Studio does not pass the sentinel and never sets that
-# variable, but an operator can set it process-wide, and Studio's "sequential" is not a
+# when UNSLOTH_AUTO_DEVICE_MAP=1. Unsloth does not pass the sentinel and never sets that
+# variable, but an operator can set it process-wide, and Unsloth's "sequential" is not a
# default it forgot to change: it is get_device_map() saying "one device". These pin the
-# two facts that keep that safe on every profile above -- Studio's multi-GPU answer is
+# two facts that keep that safe on every profile above -- Unsloth's multi-GPU answer is
# "balanced", which is never upgraded, and its single-GPU answer is reached only inside a
# worker that has already narrowed the visible devices to the selection.
@@ -435,9 +435,9 @@ def _loader_device_map_helpers():
def test_studio_placement_survives_the_loader_opt_in(
profile, gpu_ids, opt_in, spoof_hardware, monkeypatch
):
- """Whatever Studio decided, the loader hands the same thing to transformers.
+ """Whatever Unsloth decided, the loader hands the same thing to transformers.
- The one value the opt-in can rewrite is "sequential", and Studio only produces that
+ The one value the opt-in can rewrite is "sequential", and Unsloth only produces that
when it selected a single device -- at which point the worker has already narrowed the
visible set, the planner sees one GPU and declines back to "sequential".
"""
@@ -465,15 +465,15 @@ def test_studio_placement_survives_the_loader_opt_in(
)
assert resolved == device_map, (
f"profile {profile.name}, gpu_ids={gpu_ids}, UNSLOTH_AUTO_DEVICE_MAP={opt_in}: "
- f"Studio asked for {device_map!r} and the loader produced {resolved!r}"
+ f"Unsloth asked for {device_map!r} and the loader produced {resolved!r}"
)
@pytest.mark.parametrize("profile", PROFILES, ids = PROFILE_IDS)
def test_studio_never_speaks_the_planning_sentinel(profile, spoof_hardware):
- """get_device_map is the only thing that names a placement for Studio's loads, and
+ """get_device_map is the only thing that names a placement for Unsloth's loads, and
"unsloth" is not one of its answers on any backend. If it ever becomes one, the
- Studio-side reasoning above stops holding and this fails first."""
+ Unsloth-side reasoning above stops holding and this fails first."""
spoof_hardware(profile)
hw = _import_studio_hardware_module()
answers = {hw.get_device_map(None), hw.get_device_map([])}
diff --git a/tests/studio/test_installer_av_shapes.py b/tests/studio/test_installer_av_shapes.py
index 599419a0771..0cd66c8f0d6 100644
--- a/tests/studio/test_installer_av_shapes.py
+++ b/tests/studio/test_installer_av_shapes.py
@@ -159,7 +159,7 @@ def test_virtual_terminal_answers_a_redirected_stream_without_compiling(name: st
Only the redirected case is decided early, and it is decided FALSE. A redirected stdout is
not a console, GetConsoleMode fails on a non-console handle, and the compiled path could
only have returned false too. Anything that claimed VT here would put raw escape sequences
- in the Studio log panel, which is a pipe.
+ in the Unsloth log panel, which is a pipe.
"""
text = _text(name)
start = text.index("function Enable-StudioVirtualTerminal")
diff --git a/tests/studio/test_mac_host_offload_optin.py b/tests/studio/test_mac_host_offload_optin.py
index 02636e2539e..a36738bd37d 100644
--- a/tests/studio/test_mac_host_offload_optin.py
+++ b/tests/studio/test_mac_host_offload_optin.py
@@ -3,7 +3,7 @@
"""Only the macOS GGUF job opts out of the host-offload guard, and only deliberately.
-Mac Studio GGUF CI went red on every main run from ee68d9e2a onwards, the merge of #8883
+Mac Unsloth GGUF CI went red on every main run from ee68d9e2a onwards, the merge of #8883
("refuse a gguf that cannot fit in free vram plus available ram"). The chain that makes macOS
special, from the failing run's own server log:
diff --git a/tests/studio/test_mac_tab_capability_warm_window.py b/tests/studio/test_mac_tab_capability_warm_window.py
index 721a59b0a86..b1251ef17c7 100644
--- a/tests/studio/test_mac_tab_capability_warm_window.py
+++ b/tests/studio/test_mac_tab_capability_warm_window.py
@@ -3,7 +3,7 @@
"""The macOS tab-capability smoke has to be able to fail.
-tests/studio/playwright_mac_tab_capabilities.py needs a live Studio and a browser, so
+tests/studio/playwright_mac_tab_capabilities.py needs a live Unsloth and a browser, so
CI is the only place it runs and nothing else checks that a red case comes out red.
Twice now it has gone green having observed nothing: first by authenticating with
nobody, then by computing `seen_spinner` and only logging it, so a backend that
@@ -12,7 +12,7 @@ settled before the browser arrived skipped every assertion.
This drives the same functions with the page and the backend stubbed, over the exact
shapes that used to pass: the warm window already shut, the row absent, the row greyed
out. It is a plain pytest file so it runs in the Backend CI walk over tests/, where
-neither playwright nor a Studio is installed.
+neither playwright nor an Unsloth is installed.
"""
from __future__ import annotations
diff --git a/tests/studio/test_macos_slots_per_commit.py b/tests/studio/test_macos_slots_per_commit.py
index 114f6965e90..ddc85f0400d 100644
--- a/tests/studio/test_macos_slots_per_commit.py
+++ b/tests/studio/test_macos_slots_per_commit.py
@@ -13,7 +13,7 @@ for 3.
Four workflows used to declare `push: branches: [main]` with no `paths:` filter while their
`pull_request` trigger was carefully scoped. The effect was invisible on a PR and only
appeared after merge: commit 6371f46a changes README.md and nothing else, and it started
-`Mac Studio GGUF CI`, `Mac Studio UI + API + Update CI`, `Mac Studio Install Matrix CI` and
+`Mac Unsloth GGUF CI`, `Mac Unsloth UI + API + Update CI`, `Mac Unsloth Install Matrix CI` and
`Unsloth Tauri CI` -- seven macOS legs, 40% over the entire account cap, for a
documentation typo. Every one of those runs then queued behind the others.
diff --git a/tests/studio/test_model_picker_contracts.py b/tests/studio/test_model_picker_contracts.py
index 59381544c35..d48d4828aa8 100644
--- a/tests/studio/test_model_picker_contracts.py
+++ b/tests/studio/test_model_picker_contracts.py
@@ -1247,7 +1247,7 @@ def test_diffusion_picker_hides_and_clears_unsupported_memory_modes():
def test_legacy_migration_is_idempotent_and_non_destructive():
"""The v1->v2 localStorage migration (unsloth_load_settings -> unsloth_model_configs)
is invoked on every store read, so it must be idempotent: repeated reads, browser
- reloads, and Studio restarts must never re-migrate, duplicate records, or overwrite
+ reloads, and Unsloth restarts must never re-migrate, duplicate records, or overwrite
a newer per-model config."""
raw = _read("features/model-picker/model-config/per-model-config.ts")
src = " ".join(raw.split())
@@ -2622,7 +2622,7 @@ def test_api_reach_copy_is_limited_to_gguf_models():
GGUFs only."""
src = " ".join(_read("features/hub/catalog/hub-model-settings-view.tsx").split())
assert "{(target.apiLoadable ?? target.isGguf)" in src
- assert "Saved settings apply everywhere Studio loads this model." in src
+ assert "Saved settings apply everywhere Unsloth loads this model." in src
def test_backfill_includes_a_standalone_gguf_with_no_variant():
@@ -2665,7 +2665,7 @@ def test_override_writes_are_ordered_per_model():
def test_backfill_skips_future_schema_local_records():
- """loadPerModelConfig refuses to apply a record written by a newer Studio and eviction
+ """loadPerModelConfig refuses to apply a record written by a newer Unsloth and eviction
refuses to drop one, because this client cannot interpret that schema."""
src = " ".join(_read("features/model-picker/model-config/per-model-config.ts").split())
listing = src[src.index("export function listPerModelConfigs()") :]
@@ -3372,7 +3372,7 @@ def test_autoload_local_rows_follow_the_picker_policy():
def test_default_model_download_is_visible_and_cancellable():
- """On a genuinely empty device Studio still fetches a model, but as a managed
+ """On a genuinely empty device Unsloth still fetches a model, but as a managed
download with progress and a Cancel, never an inline pull inside /load."""
src = _read("features/chat/api/chat-adapter.ts")
helper = src.split("async function ensureDefaultModelDownloaded", 1)[1]
@@ -3648,7 +3648,7 @@ def test_non_chat_conditional_generation_is_excluded_before_the_suffix_check():
def test_format_gates_wait_for_the_server_reported_platform():
"""The store's initial chatOnly is a browser guess: a Mac browser on a remote
- Linux Studio would hide every local safetensors model."""
+ Linux Unsloth would hide every local safetensors model."""
src = _read("features/chat/api/chat-adapter.ts")
gate = src.split("function runsOnThisPlatform", 1)[1].split("\n}", 1)[0]
assert "if (!platform.fetched || !platform.isChatOnly()) return true;" in gate
diff --git a/tests/studio/test_playwright_server_lifecycle.py b/tests/studio/test_playwright_server_lifecycle.py
index d0c1652599e..e683169084e 100644
--- a/tests/studio/test_playwright_server_lifecycle.py
+++ b/tests/studio/test_playwright_server_lifecycle.py
@@ -194,7 +194,7 @@ def test_start_vite_refuses_a_tree_with_no_frontend_toolchain(
) -> None:
"""The failure #9654 exists to name, and the reason the refusal has to be up front.
- A job that installs Studio from a warm frontend-dist cache never builds the frontend, so
+ A job that installs Unsloth from a warm frontend-dist cache never builds the frontend, so
setup.sh skips its npm install and node_modules is never created. Reaching npm in that
state costs a spawn and returns `vite exited with code 127`, which is indistinguishable
from vite crashing. So the assertion is not only that it raises: it is that nothing was
diff --git a/tests/studio/test_project_chat_view_switch.py b/tests/studio/test_project_chat_view_switch.py
index fcb02721f64..911092bf09f 100644
--- a/tests/studio/test_project_chat_view_switch.py
+++ b/tests/studio/test_project_chat_view_switch.py
@@ -2583,7 +2583,7 @@ def test_a_remembered_thread_the_store_has_dropped_does_not_take_the_app_down():
``ShallowMemoizeSubject``'s constructor -- so the optional chain around it catches
nothing, and an effect that throws with no error boundary above it blanks the app.
- Studio deletes chats through storage and tombstones rather than ``runtime.threads.delete()``,
+ Unsloth deletes chats through storage and tombstones rather than ``runtime.threads.delete()``,
so nothing evicts an entry today. The reopen must not be the thing that depends on that.
"""
out = _run(
diff --git a/tests/studio/test_run_windows_entry_point.py b/tests/studio/test_run_windows_entry_point.py
index d204a000d4d..c3125c39b06 100644
--- a/tests/studio/test_run_windows_entry_point.py
+++ b/tests/studio/test_run_windows_entry_point.py
@@ -247,5 +247,5 @@ def test_the_windows_existence_gate_accepts_a_quarantined_venv():
}
assert "_managed_cli_package_present" in fallbacks, (
"a missing console script must fall back to the installed package, or a "
- "quarantined Windows install cannot start Studio"
+ "quarantined Windows install cannot start Unsloth"
)
diff --git a/tests/studio/test_studio_pid_file_contract.py b/tests/studio/test_studio_pid_file_contract.py
index 23ace706b56..67ec66c9987 100644
--- a/tests/studio/test_studio_pid_file_contract.py
+++ b/tests/studio/test_studio_pid_file_contract.py
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved.
-"""run.py writes the Studio PID files; `unsloth studio stop` globs for them.
+"""run.py writes the Unsloth PID files; `unsloth studio stop` globs for them.
Nothing else ties the writer's filename to the reader's glob, and each side's own
tests hardcode the names they expect, so a rename on either side alone leaves both
diff --git a/tests/studio/test_tauri_python_tool_images.py b/tests/studio/test_tauri_python_tool_images.py
index db62a6075ab..cc15a7f0c7e 100644
--- a/tests/studio/test_tauri_python_tool_images.py
+++ b/tests/studio/test_tauri_python_tool_images.py
@@ -39,7 +39,7 @@ def test_desktop_csp_has_no_explicit_http_loopback_image_source() -> None:
]
assert loopback == []
assert "blob:" in directives["img-src"]
- # The boundary is the HTTP Studio backend regression. Ordinary remote
+ # The boundary is the HTTP Unsloth backend regression. Ordinary remote
# HTTPS images remain supported, including HTTPS loopback if its certificate
# is trusted by the host.
assert "https:" in directives["img-src"]
diff --git a/tests/studio/test_uninstall_dual_install_icon.ps1 b/tests/studio/test_uninstall_dual_install_icon.ps1
index 648d561fceb..a6c10827a2b 100644
--- a/tests/studio/test_uninstall_dual_install_icon.ps1
+++ b/tests/studio/test_uninstall_dual_install_icon.ps1
@@ -19,7 +19,7 @@ $tokens = $null; $errors = $null
$ast = [System.Management.Automation.Language.Parser]::ParseFile($uninstallPath, [ref]$tokens, [ref]$errors)
if ($errors) { $errors | ForEach-Object { $_.ToString() }; throw "uninstall.ps1 has parse errors" }
# _RemoveTreeKeeping does the actual deleting: the helper delegates to it so a
-# directory a previous pass decided to keep (a live Studio's private %TEMP%)
+# directory a previous pass decided to keep (a live Unsloth's private %TEMP%)
# survives the data-dir removal.
$wanted = @("_RemoveDataDirKeepingWslIcon", "_RemoveTreeKeeping")
$fn = @()
diff --git a/tests/studio/test_uninstall_reparse_stop_roots.ps1 b/tests/studio/test_uninstall_reparse_stop_roots.ps1
index 7e47f8605af..01d832c14f9 100644
--- a/tests/studio/test_uninstall_reparse_stop_roots.ps1
+++ b/tests/studio/test_uninstall_reparse_stop_roots.ps1
@@ -1,7 +1,7 @@
#!/usr/bin/env pwsh
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-# A junction / directory-symlink Studio home must have its PHYSICAL path in the stop scan.
+# A junction / directory-symlink Unsloth home must have its PHYSICAL path in the stop scan.
#
# The backend resolves UNSLOTH_STUDIO_HOME (Path.resolve) before deriving
# <home>\stable-diffusion.cpp, so sd-server's real image path is under the reparse TARGET.
diff --git a/tests/studio/test_update_release_notes.py b/tests/studio/test_update_release_notes.py
index a65912d62b8..447575641c0 100644
--- a/tests/studio/test_update_release_notes.py
+++ b/tests/studio/test_update_release_notes.py
@@ -960,7 +960,7 @@ def test_expanded_popup_fits_a_short_viewport(banner):
def test_relative_release_body_links_point_at_the_repository():
- """Repository-relative links would resolve against Studio's own origin."""
+ """Repository-relative links would resolve against Unsloth's own origin."""
src = LINKS.read_text(encoding = "utf-8")
assert "https://github.com/unslothai/unsloth/blob/main/" in src
assert "https://raw.githubusercontent.com/unslothai/unsloth/main/" in src
@@ -1094,7 +1094,7 @@ def test_a_comment_marker_in_prose_cannot_swallow_later_releases(notes_module):
"""A note that mentions `<!--` used to put the parser into comment state for
the rest of the file, hiding every release below it."""
text = (
- "## 2026.8.0\n\n- Studio strips <!-- markers from pasted prompts.\n\n"
+ "## 2026.8.0\n\n- Unsloth strips <!-- markers from pasted prompts.\n\n"
"## 2026.7.5\n\n- SECRET: an older release\n"
)
assert [e.version for e in parse_sections(notes_module, text)] == ["2026.8.0", "2026.7.5"]
@@ -1347,7 +1347,7 @@ def test_the_rail_offset_is_not_computed():
def test_desktop_notes_are_not_keyed_by_the_pinned_backend_version():
- """The banner asks with the Studio version it offers. `pypi_version` stays
+ """The banner asks with the Unsloth version it offers. `pypi_version` stays
in latest.json as the backend pin preflight checks, not a notes key."""
banner = TAURI_BANNER.read_text(encoding = "utf-8")
assert "info?.version?.replace(LEADING_V" in banner
@@ -1579,7 +1579,7 @@ def test_a_link_indented_under_a_bullet_still_resolves(run_scanner):
"""CommonMark measures indentation from the container (spec 0.31.2 section
5.2), so under "- Details:" a four-space line is two columns in: a paragraph
holding a link. Measuring from the margin called it code (section 4.4) and
- left the destination relative to Studio's own origin."""
+ left the destination relative to Unsloth's own origin."""
resolved = run_scanner("links", "- Details:\n\n [guide](docs/a.md)\n")
assert "https://github.com/unslothai/unsloth/blob/main/docs/a.md" in resolved
# The same prose one column further in really is code, and stays untouched.
@@ -1987,10 +1987,10 @@ def test_a_comment_closed_on_its_own_line_still_closes(run_scanner):
and the popup showed the author's internal note."""
closer = run_scanner(
"preview",
- "- DoRA training is available in Studio. <!-- TODO confirm the exact\n"
+ "- DoRA training is available in Unsloth. <!-- TODO confirm the exact\n"
" flag name before release\n-->\n",
)
- assert preview_leads(closer) == ["DoRA training is available in Studio."]
+ assert preview_leads(closer) == ["DoRA training is available in Unsloth."]
# A continuation may open with emphasis, which is text and not a block.
starred = run_scanner(
"preview",
@@ -2209,7 +2209,7 @@ def test_only_a_paragraph_of_its_own_opens_an_install_block(notes_module):
assert "To update Unsloth, run the installer." in stripped
assert "- a real fix" in stripped
- for line in ("* Update Studio icons by @someone", "> To update Unsloth, run it"):
+ for line in ("* Update Unsloth icons by @someone", "> To update Unsloth, run it"):
body = f"Intro.\n\n{line}\n\n## Fixes\n\n- a real fix\n"
assert "a real fix" in notes_module.strip_release_body(body), line
diff --git a/tests/studio/test_windows_ui_lanes_are_isolated.py b/tests/studio/test_windows_ui_lanes_are_isolated.py
index 21684827eb4..a4c1daf12f9 100644
--- a/tests/studio/test_windows_ui_lanes_are_isolated.py
+++ b/tests/studio/test_windows_ui_lanes_are_isolated.py
@@ -112,7 +112,7 @@ def test_each_lane_gets_its_own_port_and_studio_home() -> None:
def test_each_lane_links_the_installed_venv_and_pins_llama_cpp() -> None:
- """A bare per-lane home is not a usable Studio root; see the module docstring."""
+ """A bare per-lane home is not a usable Unsloth root; see the module docstring."""
body = _lane_body()
assert "unsloth_studio" in body and re.search(r"mklink|ln -sfn", body), (
"the lane home does not link the installed venv. UNSLOTH_STUDIO_HOME is the "
diff --git a/tests/studio/test_xpu_spoof_pipeline.py b/tests/studio/test_xpu_spoof_pipeline.py
index 4a458a545d9..75eb4f428c2 100644
--- a/tests/studio/test_xpu_spoof_pipeline.py
+++ b/tests/studio/test_xpu_spoof_pipeline.py
@@ -1,10 +1,10 @@
# SPDX-License-Identifier: AGPL-3.0-only
"""Full Intel XPU spoof pipeline: fake torch.xpu on a GPU-less/NVIDIA runner so
-Studio's hardware selection + training-device path (detect -> select -> apply ->
+Unsloth's hardware selection + training-device path (detect -> select -> apply ->
device_map -> cache clear) runs exactly as the CUDA path does, with no real
Intel hardware. The XPU sibling of tests/_zoo_aggressive_cuda_spoof.py.
-State-sensitive: it fresh-imports the Studio hardware module under the spoof and
+State-sensitive: it fresh-imports the Unsloth hardware module under the spoof and
mutates its module globals, so studio-backend-ci.yml runs it in the isolated
"Hardware-spoof tests" step (never alongside tests that import hardware).
@@ -81,7 +81,7 @@ def _make_fake_xpu(
def _import_studio_hardware_module():
- """Fresh-import Studio's hardware module so detect_hardware re-runs under the
+ """Fresh-import Unsloth's hardware module so detect_hardware re-runs under the
current spoofs (mirrors test_hardware_dispatch_matrix.py)."""
if str(STUDIO_BACKEND) not in sys.path:
sys.path.insert(0, str(STUDIO_BACKEND))
diff --git a/tests/test_compressed_export_gpu_release.py b/tests/test_compressed_export_gpu_release.py
index fee6855cbe8..d67b86ead40 100644
--- a/tests/test_compressed_export_gpu_release.py
+++ b/tests/test_compressed_export_gpu_release.py
@@ -213,7 +213,7 @@ def test_single_device_model_keeps_plain_move():
def test_quantized_model_is_released_when_the_stack_allows_it():
- # Studio exports load 4-bit by DEFAULT, so skipping quantized models left a shard
+ # Unsloth exports load 4-bit by DEFAULT, so skipping quantized models left a shard
# on every GPU. Release them too where the move is accepted.
ns = _load_helpers(_fake_torch(), _FakeLogger())
model = _FakeModel(devices = ("cuda:0",), quantized = True)
diff --git a/tests/test_gguf_model_basename.py b/tests/test_gguf_model_basename.py
index ab6c3fac3dc..d28132d1b12 100644
--- a/tests/test_gguf_model_basename.py
+++ b/tests/test_gguf_model_basename.py
@@ -10,7 +10,7 @@ name. Joining that onto the output directory relocated the file, because
ntpath.join(r"C:\\exp\\_gguf", r"D:\\M\\X.Q5_K_M.gguf") == r"D:\\M\\X.Q5_K_M.gguf"
-The GGUF landed next to the base model and Studio logged ``(none)``.
+The GGUF landed next to the base model and Unsloth logged ``(none)``.
These run on Linux and still assert the Windows answers, deliberately:
``os.path.basename`` returns the whole ``D:\\...`` string on POSIX, so a fix built
diff --git a/tests/test_heterogeneous_config_probes.py b/tests/test_heterogeneous_config_probes.py
index c1afda9dadc..1c712130719 100644
--- a/tests/test_heterogeneous_config_probes.py
+++ b/tests/test_heterogeneous_config_probes.py
@@ -168,7 +168,7 @@ def _saved_gemma4_text_config():
def _to_namespace(value):
- """Studio's `_load_config_for_gpu_estimate`, verbatim: it never builds a
+ """Unsloth's `_load_config_for_gpu_estimate`, verbatim: it never builds a
transformers config, it reads config.json and recursively wraps every dict
in a SimpleNamespace, so the per-layer mapping arrives as an object whose
attribute names are the layer indices.
@@ -191,7 +191,7 @@ def test_a_serialized_per_layer_config_is_read_from_a_dict():
def test_a_serialized_per_layer_config_is_read_from_a_namespace():
- """Studio's VRAM estimate reads config.json, so this is the shape it sees."""
+ """Unsloth's VRAM estimate reads config.json, so this is the shape it sees."""
config = _to_namespace({"model_type": "gemma4", "text_config": _saved_gemma4_text_config()})
assert _utils._get_max_attention_head_dim(config) == 512
assert _utils._get_flash_attention_disable_reason(config) is not None
diff --git a/tests/test_installer_interactive_prompts.py b/tests/test_installer_interactive_prompts.py
index a292bb4e2e4..be6de48be7e 100644
--- a/tests/test_installer_interactive_prompts.py
+++ b/tests/test_installer_interactive_prompts.py
@@ -6,7 +6,7 @@
#7016 added `Open Unsloth Studio in your default browser after launch?
[Y/n]` and had to be reverted in #8040: extra questions stall a piped
install and persist an answer nobody can find again. The only preference
-setup may ask about is whether to start Studio when it finishes.
+setup may ask about is whether to start Unsloth when it finishes.
Allowlist, not a ban: every prompt in the tree is listed in
`APPROVED_PROMPTS` with its reason, so a new one fails with instructions
@@ -60,7 +60,7 @@ SCANNED_SCRIPTS = ENTRY_POINTS + (
# entry just to turn a build green: decide the prompt is wanted first.
APPROVED_PROMPTS: dict[tuple[str, str], str] = {
("install.sh", "start unsloth studio now?"): (
- "The one sanctioned preference prompt: launch Studio after install."
+ "The one sanctioned preference prompt: launch Unsloth after install."
),
("install.ps1", "start unsloth studio now?"): (
"Windows half of the sanctioned launch prompt above."
diff --git a/tests/test_installer_system32_guard.py b/tests/test_installer_system32_guard.py
index 8826cce75d1..1a44feae6f4 100644
--- a/tests/test_installer_system32_guard.py
+++ b/tests/test_installer_system32_guard.py
@@ -691,7 +691,7 @@ def test_cli_guard_fails_closed_when_the_chdir_fails():
def test_cli_guard_fails_closed_when_the_work_dir_cannot_be_created():
- """Studio has to write under the home anyway, and the Rust half stops here too."""
+ """Unsloth has to write under the home anyway, and the Rust half stops here too."""
_, colour, chdir_calls = _guard_outcome(
r"C:\Windows\System32",
argv = ["unsloth", "studio", "--api-only"],
@@ -837,7 +837,7 @@ def test_cli_guard_keeps_working_when_nothing_looks_like_windows():
def test_cli_guard_pins_a_relative_studio_home_before_moving():
- """Studio resolves the override with Path.resolve(), which anchors a relative
+ """Unsloth resolves the override with Path.resolve(), which anchors a relative
value to the working directory, so moving first would retarget it."""
environ_out: dict[str, str] = {}
_, colour, chdir_calls = _guard_outcome(
@@ -1029,7 +1029,7 @@ def test_cli_guard_refuses_to_move_when_a_drive_relative_override_cannot_be_reso
def test_cli_guard_pins_every_storage_root_override_studio_reads():
- """storage_roots.py owns the Studio folders, and each of its overrides is a
+ """storage_roots.py owns the Unsloth folders, and each of its overrides is a
plain user-supplied path, so a relative one must be pinned before the move.
Reading them from the module keeps the guard honest as roots are added."""
storage_roots = REPO_ROOT / "studio" / "backend" / "utils" / "paths" / "storage_roots.py"
@@ -1116,7 +1116,7 @@ def test_cli_guard_leaves_values_the_working_directory_does_not_resolve():
def test_cli_guard_expands_a_cache_override_before_deciding():
- r"""huggingface_hub expands %LOCALAPPDATA% in HF_HOME and Studio's own
+ r"""huggingface_hub expands %LOCALAPPDATA% in HF_HOME and Unsloth's own
hf_cache_settings does not, so leaving the value as written sends the two
readers to different folders once the process moves. Expanding here settles
it; a variable this machine does not set stays literal and is anchored."""
@@ -1385,7 +1385,7 @@ def test_cli_guard_restores_the_real_sys_path_when_the_move_fails():
def test_cli_guard_pins_the_model_paths_llama_server_reads_for_itself():
r"""llama-server resolves LLAMA_ARG_MODEL, LLAMA_ARG_MMPROJ and the draft
- spellings against its own working directory, and Studio reads them back when
+ spellings against its own working directory, and Unsloth reads them back when
it sizes a launch, so a relative one has to move with the process. The URL
spelling names no local file and is left alone."""
environ_out: dict[str, str] = {}
diff --git a/tests/test_psutil_apple_cpu_freq.py b/tests/test_psutil_apple_cpu_freq.py
index b5a4e0b87ef..091cc462030 100644
--- a/tests/test_psutil_apple_cpu_freq.py
+++ b/tests/test_psutil_apple_cpu_freq.py
@@ -405,7 +405,7 @@ class TestOnRealAppleSilicon:
IF.patch_psutil_cpu_freq()
reader = getattr(psutil, "cpu_freq", None)
if reader is None:
- # Nothing was wrapped, so there is nothing to assert about. Studio's
+ # Nothing was wrapped, so there is nothing to assert about. Unsloth's
# own helper covers this host, and its test asserts that path.
pytest.skip("psutil exposes no cpu_freq on this host")
try:
diff --git a/tests/test_python39_compatibility.py b/tests/test_python39_compatibility.py
index 0777aff9e39..d262d5468b7 100644
--- a/tests/test_python39_compatibility.py
+++ b/tests/test_python39_compatibility.py
@@ -26,7 +26,7 @@ PACKAGE_ROOT = REPO_ROOT / "unsloth"
# evaluated-union debt is ratcheted rather than fixed here: the 35 files involved include
# FastAPI routers and pydantic models, where `from __future__ import annotations` is
# supported but has real failure modes around class dependencies, so converting them needs
-# Studio actually booted and its routes exercised. The ratchet stops the debt growing.
+# Unsloth actually booted and its routes exercised. The ratchet stops the debt growing.
STUDIO_UNION_DEBT = 35
@@ -341,7 +341,7 @@ def test_every_packaged_module_compiles():
def test_studio_evaluated_unions_do_not_grow():
"""studio/ is shipped on the same floor but still carries unions that raise there.
- A ratchet, not a pass: converting those files needs Studio booted and its routes
+ A ratchet, not a pass: converting those files needs Unsloth booted and its routes
exercised, because FastAPI resolves annotations when it builds each endpoint. This
keeps the debt from growing in the meantime.
"""
diff --git a/tests/test_studio_install_workspace_guard.py b/tests/test_studio_install_workspace_guard.py
index 1ff3c8800f5..c3c7a816c95 100644
--- a/tests/test_studio_install_workspace_guard.py
+++ b/tests/test_studio_install_workspace_guard.py
@@ -497,7 +497,7 @@ def test_check_health_accepts_matching_studio_root_id():
def test_check_health_rejects_mismatched_studio_root_id():
- """Mismatched studio_root_id rejects attach (workspace isolation across same-port Studios)."""
+ """Mismatched studio_root_id rejects attach (workspace isolation across same-port Unsloth instances)."""
expected_id = "a" * 64
other_id = "b" * 64
rc = _run_check_health(
diff --git a/tests/test_unsloth_device_map_review_fixes.py b/tests/test_unsloth_device_map_review_fixes.py
index d27034296fc..d02208ce41d 100644
--- a/tests/test_unsloth_device_map_review_fixes.py
+++ b/tests/test_unsloth_device_map_review_fixes.py
@@ -233,7 +233,7 @@ def test_the_cap_is_read_without_needing_accelerate_importable():
the cap conditional on an import that runs while placement is still being decided: on an
install without accelerate, or one that moves the symbol, every budget came back
unreadable and the caller's cap was dropped in silence. Found by the cross-platform run,
- whose runners carry pytest and the Studio requirements but no accelerate."""
+ whose runners carry pytest and the Unsloth requirements but no accelerate."""
import builtins
as_bytes = _build()["_as_bytes"]
diff --git a/tests/test_version_single_source.py b/tests/test_version_single_source.py
index 437108c8d46..d7c6cc71fe7 100644
--- a/tests/test_version_single_source.py
+++ b/tests/test_version_single_source.py
@@ -16,7 +16,7 @@
Three consumers read that literal by different means and each breaks differently when it
moves: pyproject resolves it with a static AST parse (a non-literal makes setuptools import
-torch inside the build env), Studio's version fallback scans the file line by line for
+torch inside the build env), Unsloth's version fallback scans the file line by line for
``__version__ = `` (a re-export line silently reports "dev"), and the MLX branch of
unsloth/__init__.py imports the module directly (anything with imports defeats its
torch-free boot, which is what drove it to borrow unsloth_zoo's number instead -- unsloth#8171).
@@ -136,13 +136,13 @@ def _Path_read(p):
def test_studio_version_fallback_reports_the_real_version_on_a_source_checkout():
# get_unsloth_version falls back to scanning the source when distribution metadata is
# missing. The scan matches a `__version__ = ` line prefix, so a file that only
- # re-exports the name yields nothing and Studio silently reports "dev". Driving the
+ # re-exports the name yields nothing and Unsloth silently reports "dev". Driving the
# real function against the real tree catches that whatever the scan is pointed at.
reported = _get_unsloth_version_with_metadata_missing(
_REPO_ROOT / "studio" / "backend" / "main.py"
)
assert reported == _load_version_module_standalone().__version__, (
- f"the fallback reported {reported!r}; Studio would show that instead of the "
+ f"the fallback reported {reported!r}; Unsloth would show that instead of the "
"real version on a source checkout."
)
diff --git a/tests/utils/test_dataset_num_proc.py b/tests/utils/test_dataset_num_proc.py
index 22b7a39b183..0f648d7e1bd 100644
--- a/tests/utils/test_dataset_num_proc.py
+++ b/tests/utils/test_dataset_num_proc.py
@@ -284,7 +284,7 @@ def test_auto_value_clamped_by_available_memory(monkeypatch, dnp):
def test_explicit_value_is_clamped_by_memory(monkeypatch, dnp, capsys):
"""The gap that caused issue #2693.
- Studio passes an explicit ``max(1, cpu_count // 4)``, dozens of workers at
+ Unsloth passes an explicit ``max(1, cpu_count // 4)``, dozens of workers at
~680 MB each on a big-core machine, and the old heuristic bounded only the
auto path, so that sailed through however little RAM there was.
"""
@@ -1037,7 +1037,7 @@ def test_successful_map_is_not_disturbed(dnp):
def test_studio_num_proc_cap_has_not_drifted(dnp):
- """Studio duplicates AUTO_NUM_PROC_CAP; the two must stay equal.
+ """Unsloth duplicates AUTO_NUM_PROC_CAP; the two must stay equal.
hardware.py cannot import this module without pulling unsloth's whole
__init__ into hardware detection, so it carries its own copy. Read it out of
diff --git a/tests/utils/test_truncation_attestation.py b/tests/utils/test_truncation_attestation.py
index 50981eafc48..4867c77c141 100644
--- a/tests/utils/test_truncation_attestation.py
+++ b/tests/utils/test_truncation_attestation.py
@@ -4,7 +4,7 @@
"""A split that truncates its own rows may say so instead of being scanned.
`pretokenized_within_cap` checks `max_length` by reading every row. On a
-lazily-tokenizing `with_transform` view -- what Studio's online tokenization
+lazily-tokenizing `with_transform` view -- what Unsloth's online tokenization
produces -- reading a row is tokenizing it, so the scan runs the whole eager pass
the view exists to avoid, inside `__init__` where nothing overlaps it.
diff --git a/unsloth/dataset_num_proc.py b/unsloth/dataset_num_proc.py
index 1c732d498ab..f891074d3b3 100644
--- a/unsloth/dataset_num_proc.py
+++ b/unsloth/dataset_num_proc.py
@@ -18,7 +18,7 @@ in ways that produced https://github.com/unslothai/unsloth/issues/2693:
keeps its own default context. The two read different settings.
2. They used ``1`` as the "disable multiprocessing" sentinel, but ``datasets``
- >= 4.1 (Studio pins 4.3.0) pools for any ``num_proc >= 1``, so only ``None``
+ >= 4.1 (Unsloth pins 4.3.0) pools for any ``num_proc >= 1``, so only ``None``
is in-process on every supported version.
"""
@@ -399,7 +399,7 @@ def _clamp_by_memory(num_proc: int) -> Optional[int]:
"""Bound a worker count by RAM. None means "do not use workers at all".
Applies to explicit counts too: the old heuristic capped only the auto path,
- so a caller passing a number (Studio passes ``max(1, cpu_count // 4)``) could
+ so a caller passing a number (Unsloth passes ``max(1, cpu_count // 4)``) could
ask for dozens of workers on a machine with no room. That is what OOMs.
"""
affordable = _affordable_workers()
diff --git a/unsloth/import_fixes.py b/unsloth/import_fixes.py
index 47de9769b99..47a937a0fde 100644
--- a/unsloth/import_fixes.py
+++ b/unsloth/import_fixes.py
@@ -949,7 +949,7 @@ def patch_datasets():
# reads a 4.5 GHz M4 Pro back as 4 MHz (unslothai/unsloth#8519). Upstream fix is
# giampaolo/psutil#2824, merged and unreleased; its heuristics are mirrored here.
#
-# Studio's backend keeps the same correction in
+# Unsloth's backend keeps the same correction in
# studio/backend/utils/hardware/hardware.py, since the API server never imports
# unsloth. Keep both in sync; delete both once a fixed psutil is our floor.
#
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.py
index 48a846943cf..15815fbe988 100644
--- a/unsloth/models/_utils.py
+++ b/unsloth/models/_utils.py
@@ -548,7 +548,7 @@ def _get_per_layer_values(config, field_name):
return []
# Three shapes: a live `_PerLayerConfigView` (a Sequence, not a list/tuple);
# `to_dict`/config.json, a mapping of zero-padded layer index to overrides
- # like `{"04": {"head_dim": 512}}`; and Studio's SimpleNamespace wrap of it.
+ # like `{"04": {"head_dim": 512}}`; and Unsloth's SimpleNamespace wrap of it.
# Iterating a mapping walks the indices, not the overrides, so the probe
# would answer 256 where the object form answers 512.
if isinstance(per_layer, dict):
diff --git a/unsloth/models/diffusion.py b/unsloth/models/diffusion.py
index 9822eea66e1..679046de4ac 100644
--- a/unsloth/models/diffusion.py
+++ b/unsloth/models/diffusion.py
@@ -355,7 +355,7 @@ class FastDiffusionModel:
target_modules = DIFFUSION_LORA_TARGETS
# NOTE: use_dora (and any other LoraConfig kwarg outside this allowlist,
- # e.g. use_rslora) is silently dropped here. Studio does not reach this
+ # e.g. use_rslora) is silently dropped here. Unsloth does not reach this
# path today, so it's untested/unsupported on diffusion models; add it
# to the allowlist below if that changes.
lora_kwargs = dict(
diff --git a/unsloth/models/loader_utils.py b/unsloth/models/loader_utils.py
index 7f43d0da075..6900d586e72 100644
--- a/unsloth/models/loader_utils.py
+++ b/unsloth/models/loader_utils.py
@@ -1505,7 +1505,7 @@ def _restore_progress_bars(were_disabled):
# Every way a cache miss reaches the caller once offline mode has skipped Transformers'
# own "does not appear to have a file named" raise: the resolved path stays None and the
# next line dereferences it, so the message names the None and never the cache. Same set
-# the Studio training worker matches (studio/backend/core/training/worker.py, #7845):
+# the Unsloth training worker matches (studio/backend/core/training/worker.py, #7845):
# weights come out as `endswith`, tokenizers/processors as any of the other four.
_EMPTY_CACHE_ARTIFACTS = (
"'nonetype' object has no attribute 'endswith'",
diff --git a/unsloth/models/rl.py b/unsloth/models/rl.py
index ac790ece7e0..fac0a211b51 100644
--- a/unsloth/models/rl.py
+++ b/unsloth/models/rl.py
@@ -3077,7 +3077,7 @@ def _patch_trl_rl_trainers_impl(trainer_file = "grpo_trainer"):
" raise ValueError('Unsloth: truncating to `max_length = ' + str(args.max_length) + '` left every row with no supervised token, so there is nothing to train on. The supervised part of your rows starts past that length: raise `max_length`, or set `truncation_mode = \"keep_end\"` if the completion sits at the end of each row.')\n"
# A producer that truncates every row enforces the cap just as
# `truncate_dataset` would, so keep padding-free rather than pay the
- # fallback for a guarantee already held. Studio's online tokenization
+ # fallback for a guarantee already held. Unsloth's online tokenization
# is this shape: a `with_transform` view capped on read, invisible
# without reading -- and reading it all is the eager pass it avoids.
# Not under `eval_packing`: that split is meant to be overlength and
diff --git a/unsloth/save.py b/unsloth/save.py
index 7815d4ae385..c86478a0e61 100644
--- a/unsloth/save.py
+++ b/unsloth/save.py
@@ -7100,14 +7100,14 @@ def _offload_model_for_quantize_subprocess(model):
Two shapes are handled:
* single-device CUDA/XPU model -> ``.to("cpu")``, restored with ``.to(device)``;
- * accelerate-dispatched model (a multi-GPU ``device_map`` shard, e.g. the Studio
+ * accelerate-dispatched model (a multi-GPU ``device_map`` shard, e.g. the Unsloth
multi-GPU export load) -> hooks removed and moved to CPU, restored by replaying
the dispatch. A plain ``.to("cpu")`` is invalid here, which is why the old
single-device-only move left every GPU holding a full copy. A map spilling to
CPU is still released, but disk/meta targets are left alone: accelerate keeps
those parameters off the model, so moving would materialize the whole checkpoint.
- Quantized (bnb) models are attempted too rather than skipped: Studio exports load
+ Quantized (bnb) models are attempted too rather than skipped: Unsloth exports load
4-bit by DEFAULT, so skipping them left a shard on every GPU. transformers refuses
``.to()`` for some bitsandbytes builds and that refusal raises before anything moves,
so the failure path restores the model and returns None, i.e. the old behaviour.
diff --git a/unsloth_cli/__main__.py b/unsloth_cli/__main__.py
index ba95d1a2811..56b9b49ded6 100644
--- a/unsloth_cli/__main__.py
+++ b/unsloth_cli/__main__.py
@@ -13,7 +13,7 @@ generated launcher:
python -X utf8 -I -m unsloth_cli studio -p 8888
-Use -I when that `python` is the managed Studio interpreter, which is what every
+Use -I when that `python` is the managed Unsloth interpreter, which is what every
command Unsloth prints does. `-m` resolves the package before this file runs, so a
shell standing in a directory that has an `unsloth_cli` folder would otherwise run
that copy, and -I drops the working directory from sys.path first.
diff --git a/unsloth_cli/_model_catalog.py b/unsloth_cli/_model_catalog.py
index 205e5461766..29ca049af71 100644
--- a/unsloth_cli/_model_catalog.py
+++ b/unsloth_cli/_model_catalog.py
@@ -229,7 +229,7 @@ def _quant_labels(
repo_path: str,
load_id: Optional[str] = None,
) -> str:
- """The quants this cached GGUF repo offers, spelled the way Studio spells them.
+ """The quants this cached GGUF repo offers, spelled the way Unsloth spells them.
Through ``list_local_gguf_variants``, which is what ``_preferred_complete_gguf`` picks the
load target with, so the label and the target cannot disagree. Globbing
diff --git a/unsloth_cli/_studio_deps.py b/unsloth_cli/_studio_deps.py
index daff84733e6..60fa3364b98 100644
--- a/unsloth_cli/_studio_deps.py
+++ b/unsloth_cli/_studio_deps.py
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-"""Studio dependency checks shared by the CLI commands.
+"""Unsloth dependency checks shared by the CLI commands.
The wheel ships studio/ and studio.backend*, so train / export / chat /
inference / studio all work after a plain `pip install unsloth` right up to the
@@ -643,13 +643,13 @@ def running_outside_managed_venv(extra_roots: Sequence[Path] = ()) -> bool:
# Not a venv at all. On Colab setup.sh deliberately installs the backend
# into the system Python, whose distro-packaged RECORDs legitimately list
# files the distro never installed (PEP 627), so a file check here
- # describes the distro rather than Studio.
+ # describes the distro rather than Unsloth.
return True
return _managed_root(extra_roots) is not None
def _missing_studio_packages() -> List[str]:
- """Studio packages studio.txt asks for and the venv does not have."""
+ """Unsloth packages studio.txt asks for and the venv does not have."""
module = load_install_manifest_module()
if module is None:
return []
@@ -703,6 +703,6 @@ def studio_backend_imports(feature: str = "This command", *, studio_only: bool =
if not from_studio:
typer.echo(f" Install it: pip install {needed}", err = True)
if from_studio or others:
- typer.echo(" Studio install: unsloth studio update", err = True)
+ typer.echo(" Unsloth install: unsloth studio update", err = True)
typer.echo(' Plain pip: pip install "unsloth[studio]"', err = True)
raise typer.Exit(code = 1) from None
diff --git a/unsloth_cli/_studio_runtime_gate.py b/unsloth_cli/_studio_runtime_gate.py
index f1d354f8a9c..a5f0cfd09be 100644
--- a/unsloth_cli/_studio_runtime_gate.py
+++ b/unsloth_cli/_studio_runtime_gate.py
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved.
-"""Coordinate Windows launches that consume the Tauri-managed Studio environment."""
+"""Coordinate Windows launches that consume the Tauri-managed Unsloth environment."""
from __future__ import annotations
@@ -22,7 +22,7 @@ _RUNTIME_GATE_HANDOFF_ENV = "_UNSLOTH_STUDIO_RUNTIME_GATE_HANDOFF"
class StudioRuntimeGateBusy(RuntimeError):
- """The managed Studio environment is being installed or repaired."""
+ """The managed Unsloth environment is being installed or repaired."""
class _SidAndAttributes(ctypes.Structure):
@@ -286,13 +286,13 @@ def ensure_managed_environment_is_idle(studio_home: Path) -> None:
)
if result.returncode != 0:
detail = result.stderr.strip() or f"exit code {result.returncode}"
- raise RuntimeError(f"Could not inspect running processes before Studio update: {detail}")
+ raise RuntimeError(f"Could not inspect running processes before Unsloth update: {detail}")
try:
payload = json.loads(result.stdout or "[]")
except json.JSONDecodeError as error:
raise RuntimeError(
- f"Could not decode the running-process list before Studio update: {error}"
+ f"Could not decode the running-process list before Unsloth update: {error}"
) from error
processes = payload if isinstance(payload, list) else [payload]
process_by_pid = {
@@ -363,7 +363,7 @@ def ensure_managed_environment_is_idle(studio_home: Path) -> None:
):
name = process.get("Name") or "process"
raise RuntimeError(
- "The managed Studio environment is in use by "
+ "The managed Unsloth environment is in use by "
f"{name} (PID {process_id}). Stop that process, then retry the update."
)
diff --git a/unsloth_cli/_system_dir_guard.py b/unsloth_cli/_system_dir_guard.py
index ebb63d5f11c..d7067547e62 100644
--- a/unsloth_cli/_system_dir_guard.py
+++ b/unsloth_cli/_system_dir_guard.py
@@ -193,8 +193,8 @@ def safe_user_dir(
return None
-# Commands the desktop runs that take no path from a user: Studio resolves its
-# venv, llama.cpp, auth, pid files and logs from the Studio home. `update` is here
+# Commands the desktop runs that take no path from a user: Unsloth resolves its
+# venv, llama.cpp, auth, pid files and logs from the Unsloth home. `update` is here
# so an older desktop can still upgrade from the tray. Everything else keeps the
# hard error. Matched whole, not on the first word, since `studio update --local
# <path>` resolves that path against the working directory.
@@ -292,10 +292,10 @@ def is_relocatable_invocation(argv, environ):
# Path overrides the caller may have written relative to the folder being left.
-# Studio resolves them with Path.resolve(), which anchors a relative value to the
+# Unsloth resolves them with Path.resolve(), which anchors a relative value to the
# working directory, so moving first would silently retarget them.
_RELATIVE_PATH_ENV = (
- # Studio roots: storage_roots.py.
+ # Unsloth roots: storage_roots.py.
"UNSLOTH_STUDIO_HOME",
"STUDIO_HOME",
"UNSLOTH_STUDIO_DOCUMENTS_HOME",
@@ -312,7 +312,7 @@ _RELATIVE_PATH_ENV = (
"WHISPER_SERVER_PATH",
"SD_CLI_PATH",
"SD_SERVER_PATH",
- # Model files llama-server reads straight from the environment, and Studio
+ # Model files llama-server reads straight from the environment, and Unsloth
# reads back when it sizes a launch (llama_cpp.py). The URL and HF-repo
# spellings are deliberately absent: they name no local file.
"LLAMA_ARG_MODEL",
@@ -320,7 +320,7 @@ _RELATIVE_PATH_ENV = (
"LLAMA_ARG_MODEL_DRAFT",
"LLAMA_ARG_SPEC_DRAFT_MODEL",
# Read straight from the environment as a file path: the ASIC table by
- # unsloth/import_fixes.py, the vLLM cache root by Studio when the caller set
+ # unsloth/import_fixes.py, the vLLM cache root by Unsloth when the caller set
# it themselves (storage_roots.py only fills a blank one).
"AMDGPU_ASIC_ID_TABLE_PATH",
"VLLM_CACHE_ROOT",
@@ -461,8 +461,8 @@ _INLINE_JSON_ENV = frozenset(("MLX_HOSTFILE", "MLX_IBV_DEVICES"))
# Names whose readers disagree about %VAR% and $VAR: huggingface_hub calls
# expandvars on HF_HOME (and on the XDG_CACHE_HOME it defaults from), HF_HUB_CACHE
-# and HF_ASSETS_CACHE, and Studio calls it on SENTENCE_TRANSFORMERS_HOME, but
-# Studio's own hf_cache_settings._canonical() does not, so it would read
+# and HF_ASSETS_CACHE, and Unsloth calls it on SENTENCE_TRANSFORMERS_HOME, but
+# Unsloth's own hf_cache_settings._canonical() does not, so it would read
# %LOCALAPPDATA%\hf as a relative folder. Expanding here before deciding settles
# it: both readers then see one absolute path. Scoped to these names because a
# directory really called "%data%" is legal, and every other name is read as one.
@@ -655,7 +655,7 @@ def relocation_target(
try:
makedirs(work_dir, exist_ok = True)
except OSError:
- # An unwritable home is a broken profile and Studio must write there
+ # An unwritable home is a broken profile and Unsloth must write there
# anyway, so stop now rather than failing later.
return None
return work_dir
diff --git a/unsloth_cli/_tool_policy.py b/unsloth_cli/_tool_policy.py
index 21f92f7bd6b..664e1a3c83b 100644
--- a/unsloth_cli/_tool_policy.py
+++ b/unsloth_cli/_tool_policy.py
@@ -34,7 +34,7 @@ def resolve_tool_policy(
every request. With no flag the result is None: tools still default on for
every bind (the backend installs that default in `_apply_cli_tool_policy`),
but as a default rather than an override, so a request's own
- `enable_tools: false` is honored -- which is what the Studio UI sends with
+ `enable_tools: false` is honored -- which is what the Unsloth UI sends with
its tool pills off. `host`, `yes`, `silent`, `prompt` are kept for signature
compatibility; no bind prompts."""
return flag
diff --git a/unsloth_cli/commands/start.py b/unsloth_cli/commands/start.py
index 27a8f56c76d..8995d0b2196 100644
--- a/unsloth_cli/commands/start.py
+++ b/unsloth_cli/commands/start.py
@@ -708,7 +708,7 @@ def _fail(message: str) -> NoReturn:
def _reject_as_subagent(agent: str, args: list) -> None:
- # Reject early, or the flag reaches the agent binary after Studio loaded the model.
+ # Reject early, or the flag reaches the agent binary after Unsloth loaded the model.
if any(arg == "--as-subagent" or arg.startswith("--as-subagent=") for arg in args):
_fail(f"--as-subagent is not supported for {agent}.")
@@ -1168,7 +1168,7 @@ def _start_studio_server(
# unknown CLI flag as a llama-server arg; new launchers preserve it across re-exec.
child_env[_START_API_KEY_MARKER_ENV] = "1"
# Convey healing/nudging through the env; `unsloth run` reads these when its own
- # flags are omitted, so this works even if run re-execs into an older Studio venv.
+ # flags are omitted, so this works even if run re-execs into an older Unsloth venv.
# Only write when the operator set the flag explicitly; otherwise keep whatever they
# already exported (child_env is a copy of os.environ), falling back to the start
# defaults (healing on, nudging on) when nothing was inherited.
@@ -3295,7 +3295,7 @@ def _augment_path_with_install_dirs() -> None:
def _probe_env(**extra: str) -> dict:
"""Environment for probes that RUN a resolved shim.
- _which_with_install_dirs restores PATH before returning, so a shim backed by Studio's
+ _which_with_install_dirs restores PATH before returning, so a shim backed by Unsloth's
managed Node would not find that node when executed.
"""
original = os.environ.get("PATH")
@@ -3849,7 +3849,7 @@ def _agents_config_root() -> Path:
@contextlib.contextmanager
def _temporary_agent_config(prefix: str):
- # Nothing else prunes Studio's auth tree, so reuse the locked session helper: the next
+ # Nothing else prunes Unsloth's auth tree, so reuse the locked session helper: the next
# launch reclaims homes left by a killed wrapper, and the lock spares live sessions.
temp_root = _agents_config_root() / ".tmp"
with contextlib.ExitStack() as stack:
@@ -3857,7 +3857,7 @@ def _temporary_agent_config(prefix: str):
temp_root.mkdir(parents = True, exist_ok = True, mode = 0o700)
path = stack.enter_context(_short_ephemeral_session(temp_root, prefix))
except OSError:
- # Attaching to a remote or running Studio needs no local auth tree, so it may be
+ # Attaching to a remote or running Unsloth needs no local auth tree, so it may be
# absent or unwritable. Fall back to the system temp dir, as before: no
# reclamation there, but the OS prunes it.
path = Path(tempfile.mkdtemp(prefix = prefix))
@@ -4027,7 +4027,7 @@ def _session_config(
resumed next time. Either way the user's real ~/.<agent> config is left untouched.
"""
if launch and not persist:
- # Windows codex keeps #7519's short home (MAX_PATH); everyone else uses Studio's root.
+ # Windows codex keeps #7519's short home (MAX_PATH); everyone else uses Unsloth's root.
parent = _ephemeral_session_parent(agent)
prefix = _ephemeral_session_prefix(agent, parent)
if parent is not None:
diff --git a/unsloth_cli/commands/studio.py b/unsloth_cli/commands/studio.py
index 437ed64e47e..2cca7f766b3 100644
--- a/unsloth_cli/commands/studio.py
+++ b/unsloth_cli/commands/studio.py
@@ -159,7 +159,7 @@ _CLOUDFLARE_INTENT_ENV = "_UNSLOTH_CLOUDFLARE_INTENT"
def _consume_start_api_key_marker_env() -> bool:
- """Consume the one-shot readiness marker passed across a Studio re-exec."""
+ """Consume the one-shot readiness marker passed across an Unsloth re-exec."""
return os.environ.pop(_START_API_KEY_MARKER_ENV, None) == "1"
@@ -237,7 +237,7 @@ _WINDOWS_CLI_ENTRYPOINT = (
# package), for a package whose __init__ raises, and for one whose dependencies
# an interrupted install never fetched. Every one of those is a venv the
# trampoline cannot start, and this probe gates the headless-public strip of
-# .bootstrap_password, so a false pass there is a public Studio with no login
+# .bootstrap_password, so a false pass there is a public Unsloth with no login
# page and no plaintext recovery credential. Paying the import is what makes the
# probe's answer the launch's answer.
_MANAGED_CLI_IMPORT_PROBE = (
@@ -304,7 +304,7 @@ def _studio_runtime_launch_guard(*, inherited: bool = False):
)
raise typer.Exit(1)
except OSError as exc:
- typer.echo(f"Error: could not coordinate the Studio launch: {exc}", err = True)
+ typer.echo(f"Error: could not coordinate the Unsloth launch: {exc}", err = True)
raise typer.Exit(1)
try:
@@ -401,7 +401,7 @@ def _managed_cli_package_present(python: Path) -> bool:
directory is metadata, not a runnable CLI. It matters here specifically:
this gate stands in front of the headless-public strip of
.bootstrap_password, so passing a venv that then fails to import is the one
- outcome the gate's placement exists to prevent -- a public Studio with no
+ outcome the gate's placement exists to prevent -- a public Unsloth with no
login page and no plaintext recovery credential.
The probe runs the trampoline's own ``from unsloth_cli import app`` rather
@@ -433,7 +433,7 @@ def _managed_cli_package_present(python: Path) -> bool:
# runs THAT interpreter, so it is going to fail the same way, and the
# on-disk layout cannot say otherwise. Fail closed, because the caller
# strips .bootstrap_password on a headless public launch before it
- # re-execs: passing here would leave a public Studio with no login page
+ # re-execs: passing here would leave a public Unsloth with no login page
# and no plaintext recovery credential, which is worse than telling the
# user to re-run setup.
return False
@@ -1722,7 +1722,7 @@ def studio_default(
max = _PARALLEL_MAX,
help = (
f"llama-server parallel decode slots ({_PARALLEL_MIN}..{_PARALLEL_MAX}). "
- f"Default {_PARALLEL_DEFAULT_PLAIN}. The Studio run settings "
+ f"Default {_PARALLEL_DEFAULT_PLAIN}. The Unsloth run settings "
"(Parallel Slots) override it per load."
),
),
@@ -2244,7 +2244,7 @@ def run(
rich_help_panel = _RUN_PANEL_MODEL,
help = (
"Speculative decoding mode for GGUF models. DSpark automatically uses a "
- "matching dspark-*.gguf sidecar when available. Default: unset (Studio auto)."
+ "matching dspark-*.gguf sidecar when available. Default: unset (Unsloth auto)."
),
),
spec_draft_n_max: Optional[int] = typer.Option(
@@ -2283,7 +2283,7 @@ def run(
help = (
"Force server-side tools (web search, code execution) on or off for "
"every request. Default: on for every bind, with a request's own "
- "enable_tools: false (what the Studio UI sends) honored. /v1/messages "
+ "enable_tools: false (what the Unsloth UI sends) honored. /v1/messages "
"takes the on direction per request (enable_tools) because it has no "
"confirmation channel; the off direction still applies everywhere."
),
@@ -2385,7 +2385,7 @@ def run(
help = (
"llama-server parallel decode slots. N requests share one "
"loaded model; each slot gets ctx/N KV cache. Default "
- f"{_PARALLEL_DEFAULT_RUN} (pre-PR hardcoded value). The Studio "
+ f"{_PARALLEL_DEFAULT_RUN} (pre-PR hardcoded value). The Unsloth "
"run settings (Parallel Slots) can override it per load."
),
),
@@ -2455,7 +2455,7 @@ def run(
unsloth studio run --model some-model --chat-template-file /path/to/tpl.jinja
unsloth studio run --model unsloth/Qwen3-27B-GGUF --gguf-variant Q8_0 --tensor-parallel
"""
- # A newer outer CLI can re-exec into an older Studio venv; pass this signal via
+ # A newer outer CLI can re-exec into an older Unsloth venv; pass this signal via
# env so an older child ignores it instead of treating it as a llama-server arg.
inherited_start_api_key_marker = _consume_start_api_key_marker_env()
start_api_key_marker = start_api_key_marker or inherited_start_api_key_marker
@@ -2777,7 +2777,7 @@ def run(
# Headless serving prints its own URL/API-key banner; the Tauri-only
# TAURI_PORT line would corrupt that machine-parseable output.
emit_tauri_port = False,
- # We read the bound port back below, so a fallback past another Studio is
+ # We read the bound port back below, so a fallback past another Unsloth is
# safe here and keeps side-by-side model runs working.
abort_if_own_studio = False,
)
@@ -3912,14 +3912,14 @@ def _fail_if_install_damaged(package_name: str = "unsloth") -> None:
managed_conflicts = _studio_deps.installed_metadata_conflicts(names = managed_names)
if managed_conflicts:
typer.echo("", err = True)
- typer.echo("Update finished, but Studio package metadata is inconsistent:", err = True)
+ typer.echo("Update finished, but Unsloth package metadata is inconsistent:", err = True)
for entry in managed_conflicts:
typer.echo(f" {entry}", err = True)
typer.echo("", err = True)
typer.echo("The file check cannot safely choose between these records.", err = True)
typer.echo("The installer could not repair its managed package metadata.", err = True)
typer.echo(
- "Recreate the managed environment before running the Studio installer again.", err = True
+ "Recreate the managed environment before running the Unsloth installer again.", err = True
)
typer.echo("", err = True)
typer.echo(
@@ -3933,7 +3933,7 @@ def _fail_if_install_damaged(package_name: str = "unsloth") -> None:
for entry in other_conflicts:
typer.echo(f" {entry}", err = True)
typer.echo("", err = True)
- typer.echo("Studio skipped file verification for these packages.", err = True)
+ typer.echo("Unsloth skipped file verification for these packages.", err = True)
typer.echo(
"Reinstall the intended version from its original package source, or use a clean environment.",
err = True,
@@ -3947,7 +3947,7 @@ def _fail_if_install_damaged(package_name: str = "unsloth") -> None:
typer.echo(f" {entry}", err = True)
typer.echo("", err = True)
typer.echo("An update cannot repair these. pip sees intact package metadata and", err = True)
- typer.echo("reinstalls nothing, so Studio will keep failing to start. Reinstall", err = True)
+ typer.echo("reinstalls nothing, so Unsloth will keep failing to start. Reinstall", err = True)
typer.echo("over the top:", err = True)
# Carry a custom root into the command. The shim is a bare symlink and
# _ensure_studio_env_exported only sets os.environ for this process, so the
@@ -4093,7 +4093,7 @@ def update(
os.environ.pop("STUDIO_LOCAL_REPO", None)
# main gained a runtime gate around setup; this branch replaced the
# rename-to-.deleteme helpers with the launcher transaction. Both apply:
- # the gate keeps a second Studio process off the venv, the transaction
+ # the gate keeps a second Unsloth process off the venv, the transaction
# keeps the launcher recoverable across the setup it wraps.
runtime_gate_handoff = _studio_runtime_gate.consume_runtime_gate_handoff()
with _studio_runtime_launch_guard(inherited = runtime_gate_handoff):
@@ -4512,9 +4512,9 @@ class _WindowsLauncherUpdateTransaction:
self.launcher = scripts / "unsloth.exe"
self.backup = scripts / "unsloth.exe.update-backup"
self.legacy_backup = scripts / "unsloth.exe.deleteme"
- # Under the Studio home, not the venv: setup.ps1 removes the whole
+ # Under the Unsloth home, not the venv: setup.ps1 removes the whole
# $VenvDir to rebuild a stale torch, and an open handle inside it makes
- # Windows refuse the recursive delete. One lock per Studio home is the
+ # Windows refuse the recursive delete. One lock per Unsloth home is the
# right grain anyway, since that is what names the managed venv.
self.lock_path = STUDIO_HOME / "unsloth.exe.update-lock"
# install.ps1 hardlinks this to the launcher, so it survives the old
diff --git a/unsloth_cli/tests/test_inference_chat.py b/unsloth_cli/tests/test_inference_chat.py
index c660e2fce6c..bd962d3842a 100644
--- a/unsloth_cli/tests/test_inference_chat.py
+++ b/unsloth_cli/tests/test_inference_chat.py
@@ -1262,7 +1262,7 @@ def test_load_gguf_backend_forwards_source_and_runtime_options(
def test_load_gguf_backend_hands_a_local_dflash_sidecar_to_the_load(monkeypatch):
- """The managed CLI resolves the sidecar next to a local weight exactly as Studio
+ """The managed CLI resolves the sidecar next to a local weight exactly as Unsloth
does, and dropping it here is silent: the load simply comes up with no drafter and
nothing says the sidecar sitting beside the model was ever found."""
import unsloth_cli._inference as inference
@@ -2023,7 +2023,7 @@ def test_catalog_local_folder_entries_require_loadable_payloads(monkeypatch, tmp
def test_catalog_trained_and_exported_entries_drop_non_chat_checkpoints(monkeypatch, tmp_path):
- """Studio trains Whisper and other audio models, so an outputs or exports folder
+ """Unsloth trains Whisper and other audio models, so an outputs or exports folder
legitimately holds a checkpoint that cannot answer a text turn. Neither builder
classified anything, so both offered it for chat."""
from unsloth_cli._inference import ensure_studio_backend_path
diff --git a/unsloth_cli/tests/test_start.py b/unsloth_cli/tests/test_start.py
index 1aa7dd6aeb9..13b495f1755 100644
--- a/unsloth_cli/tests/test_start.py
+++ b/unsloth_cli/tests/test_start.py
@@ -6191,7 +6191,7 @@ def test_augment_path_leaves_path_alone_when_nothing_to_add(monkeypatch):
def test_probe_env_carries_install_dirs_and_restores_path(monkeypatch, tmp_path):
- # A shim resolved via Studio's managed Node needs that node on PATH when it runs.
+ # A shim resolved via Unsloth's managed Node needs that node on PATH when it runs.
managed_bin = tmp_path / "node" / "bin"
managed_bin.mkdir(parents = True)
monkeypatch.setattr(
@@ -6209,7 +6209,7 @@ def test_probe_env_carries_install_dirs_and_restores_path(monkeypatch, tmp_path)
def test_session_config_falls_back_when_studio_auth_root_is_unwritable(monkeypatch, tmp_path):
- # Attaching to a remote Studio needs no local auth tree, so a read-only one must not stop it.
+ # Attaching to a remote Unsloth needs no local auth tree, so a read-only one must not stop it.
readonly = tmp_path / "readonly"
readonly.mkdir(mode = 0o500)
monkeypatch.setattr(start, "_agents_config_root", lambda: readonly / "agents")
@@ -6221,7 +6221,7 @@ def test_session_config_falls_back_when_studio_auth_root_is_unwritable(monkeypat
def test_session_config_reclaims_abandoned_homes_for_non_codex_agents(monkeypatch, tmp_path):
- # Nothing else prunes Studio's auth tree, so a killed wrapper's home must be reclaimed.
+ # Nothing else prunes Unsloth's auth tree, so a killed wrapper's home must be reclaimed.
agents_root = tmp_path / "agents"
temp_root = agents_root / ".tmp"
temp_root.mkdir(parents = True)
diff --git a/unsloth_cli/tests/test_studio_run_parallel_flag.py b/unsloth_cli/tests/test_studio_run_parallel_flag.py
index 33c0ff35486..91bbb05496c 100644
--- a/unsloth_cli/tests/test_studio_run_parallel_flag.py
+++ b/unsloth_cli/tests/test_studio_run_parallel_flag.py
@@ -416,7 +416,7 @@ def test_reexec_forwards_context_length_alias(monkeypatch):
def test_reexec_forwards_manual_gpu_memory_mode(monkeypatch):
- """An explicit manual policy must survive the Studio venv re-exec."""
+ """An explicit manual policy must survive the Unsloth venv re-exec."""
result, captured = _invoke_run(
monkeypatch,
_BASE + ["--gpu-memory-mode", "manual"],
@@ -427,7 +427,7 @@ def test_reexec_forwards_manual_gpu_memory_mode(monkeypatch):
def test_reexec_omits_default_gpu_memory_mode(monkeypatch):
- """The default stays compatible with older Studio venv launchers."""
+ """The default stays compatible with older Unsloth venv launchers."""
result, captured = _invoke_run(monkeypatch, _BASE)
assert len(captured) == 1, result.output
assert "--gpu-memory-mode" not in captured[0]["argv"]
diff --git a/unsloth_cli/tests/test_studio_runtime_gate_powershell.py b/unsloth_cli/tests/test_studio_runtime_gate_powershell.py
index f34f845dc15..90c1b69b7ba 100644
--- a/unsloth_cli/tests/test_studio_runtime_gate_powershell.py
+++ b/unsloth_cli/tests/test_studio_runtime_gate_powershell.py
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-"""Regression coverage for Studio's PowerShell resolution (#9440)."""
+"""Regression coverage for Unsloth's PowerShell resolution (#9440)."""
import ntpath
import os
diff --git a/unsloth_cli/tests/test_studio_update_local_repo.py b/unsloth_cli/tests/test_studio_update_local_repo.py
index 45bbe6de1e9..cb1dd5929cb 100644
--- a/unsloth_cli/tests/test_studio_update_local_repo.py
+++ b/unsloth_cli/tests/test_studio_update_local_repo.py
@@ -154,7 +154,7 @@ def test_the_override_runs_that_checkouts_setup_script(monkeypatch, tmp_path):
setup.sh/setup.ps1 build the frontend under their own $SCRIPT_DIR, and the
editable install of the checkout removes the installed tree the installed
copy's script would have built into. studio/frontend/dist is gitignored, so
- running the installed script against a fresh checkout leaves Studio with no
+ running the installed script against a fresh checkout leaves Unsloth with no
frontend at all.
"""
import platform as _platform
diff --git a/unsloth_cli/tests/test_studio_update_verify.py b/unsloth_cli/tests/test_studio_update_verify.py
index 2f67019f961..0ff9f4ea0c1 100644
--- a/unsloth_cli/tests/test_studio_update_verify.py
+++ b/unsloth_cli/tests/test_studio_update_verify.py
@@ -5,7 +5,7 @@
pip considers a distribution with intact metadata already satisfied, so an
update reinstalls nothing when a package's files are damaged. Before this check
-it printed "Unsloth Studio Installed" and exited 0 while Studio died at boot
+it printed "Unsloth Studio Installed" and exited 0 while Unsloth died at boot
with `cannot import name 'Depends' from 'fastapi'` -- and a missing-package
check could not have caught it, because `import fastapi` still succeeded.
@@ -356,12 +356,12 @@ def test_duplicate_metadata_gets_its_own_actionable_failure(monkeypatch, capsys)
assert excinfo.value.exit_code == 1
err = capsys.readouterr().err
- assert "Studio package metadata is inconsistent" in err
+ assert "Unsloth package metadata is inconsistent" in err
assert "cannot safely choose" in err
assert "Recreate the managed environment before" in err
assert "pip install" not in err
assert "installed files are damaged" not in err
- assert "Studio will keep failing to start" not in err
+ assert "Unsloth will keep failing to start" not in err
@pytest.mark.parametrize("package", ["typer", "torch"])
@@ -432,7 +432,7 @@ def test_a_system_python_is_not_treated_as_the_managed_venv(monkeypatch, tmp_pat
# Colab has no Unsloth venv: studio/setup.sh installs the backend into the
# system Python on purpose. Distro-packaged RECORDs there list files the
# distro never installed (PEP 627), so running the file check would accuse
- # the distro of damaging Studio. Reproduced on Ubuntu system Python, which
+ # the distro of damaging Unsloth. Reproduced on Ubuntu system Python, which
# reports an apt-owned `markdown-it-py: ../scripts/markdown-it is missing`.
prefix = tmp_path / "usr"
prefix.mkdir()
@@ -666,7 +666,7 @@ def test_the_message_covers_packages_the_installer_will_not_repair(monkeypatch,
# nothing, and the installer never recreates the venv, so damage in an
# orphan from an older release survives the reinstall it recommends and
# would report the same failure forever. The scan is deliberately not
- # scoped to Studio's dependency closure: under-including there would let
+ # scoped to Unsloth's dependency closure: under-including there would let
# real damage through, which is the failure this whole check exists to
# catch. So the message has to carry the fallback instead.
import typer