unsloth/studio/backend/utils/hardware
Daniel Han 1daaa5cbb4
Let a decode failure degrade instead of escaping a fail-closed helper (#7487)
* Let a decode failure degrade instead of escaping a fail-closed helper

Pinning utf-8 makes a read that used to return mojibake on Windows raise
instead. 33 of those reads sit under a handler catching OSError or
json.JSONDecodeError but not UnicodeDecodeError, which subclasses
ValueError, so a corrupt file would now escape a helper written to return
a default. Adds UnicodeDecodeError to those tuples only.

* Treat an undecodable install lock as stale instead of retrying forever
2026-07-27 03:26:08 -07:00
..
__init__.py fix(studio): report Vulkan GPUs in system UI (#7476) 2026-07-26 23:28:39 -07:00
amd.py Replace standalone Studio wording with Unsloth (#7221) 2026-07-19 00:47:04 -07:00
apple.py Guard Apple GPU power against negative counter-reset readings (#6235) 2026-06-12 01:56:05 -07:00
hardware.py Let a decode failure degrade instead of escaping a fail-closed helper (#7487) 2026-07-27 03:26:08 -07:00
nvidia.py Reduce and tighten code comments and docstrings repo-wide (#6095) 2026-06-08 23:09:51 -07:00
VRAM_ESTIMATION.md Replace standalone Studio wording with Unsloth (#7221) 2026-07-19 00:47:04 -07:00
vram_estimation.py Reduce and tighten code comments and docstrings repo-wide (#6095) 2026-06-08 23:09:51 -07:00