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.

Studio: decode the Rosetta sysctl probe as UTF-8 (#14419)

Daniel Hanba37af25fe5c
diff --git a/studio/backend/utils/hardware/hardware.py b/studio/backend/utils/hardware/hardware.py
index 3153c1e87d5..9106bb7408b 100644
--- a/studio/backend/utils/hardware/hardware.py
+++ b/studio/backend/utils/hardware/hardware.py
@@ -166,6 +166,8 @@ def _running_under_rosetta() -> bool:
["sysctl", "-n", "hw.optional.arm64"],
capture_output = True,
text = True,
+ encoding = "utf-8",
+ errors = "replace",
timeout = 2,
)
answer = out.returncode == 0 and out.stdout.strip() == "1"