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.

Name the encoding on the snapshot-progress ref read (#8355)

Daniel Han5a26ed469271
diff --git a/studio/backend/hub/services/snapshot_progress.py b/studio/backend/hub/services/snapshot_progress.py
index aaeec3fe61b..d93e0b23195 100644
--- a/studio/backend/hub/services/snapshot_progress.py
+++ b/studio/backend/hub/services/snapshot_progress.py
@@ -395,7 +395,9 @@ def _referenced_commits(entry: Path) -> "frozenset[str]":
try:
if not ref.is_file():
continue
- commit = download_manifest.normalized_commit_hash(ref.read_text().strip())
+ commit = download_manifest.normalized_commit_hash(
+ ref.read_text(encoding = "utf-8").strip()
+ )
except (OSError, ValueError):
continue
if commit:
diff --git a/studio/backend/tests/test_video_prequant.py b/studio/backend/tests/test_video_prequant.py
index 035f24aed75..4e5dc64c22a 100644
--- a/studio/backend/tests/test_video_prequant.py
+++ b/studio/backend/tests/test_video_prequant.py
@@ -1087,4 +1087,4 @@ def test_the_fallback_is_resolved_before_the_download_is_planned(monkeypatch):
verified = src.index("_denoiser_prequant_verified")
predownload = src.index("_predownload_base")
assert planned < verified < predownload
- assert "h3_auto_denoiser or kwargs.get(\"transformer_quant\")" in src
+ assert 'h3_auto_denoiser or kwargs.get("transformer_quant")' in src
diff --git a/studio/install_sd_cpp_prebuilt.py b/studio/install_sd_cpp_prebuilt.py
index 765abecc1ee..f8aaf45244e 100644
--- a/studio/install_sd_cpp_prebuilt.py
+++ b/studio/install_sd_cpp_prebuilt.py
@@ -132,6 +132,7 @@ def _raw_install_record(root: Path) -> Optional[str]:
except Exception: # noqa: BLE001 -- absent / unreadable / a directory: all "cannot tell"
return None
+
# The same, for the bundle's sd-server capability. Memoised alongside the accelerator or not at
# all: with only half of it remembered, an unwritable record leaves a serverless install looking
# server-capable, and the load that finds a mismatched legacy server keeps reinstalling.