unsloth/studio/backend/utils
Daniel Han cb0edfc56c Use 'is not None' and log debug on torch.version.hip probe failures
Two small follow-ups to the apply_gpu_ids ROCm fallback:

1. Match detect_hardware()'s 'getattr(torch.version, "hip", None) is not None'
   form so the entire codebase has one canonical 'this torch was built with
   HIP' check. On every shipping torch wheel hip is either None or a non-empty
   version string, so the new form agrees with the old bool() form on every
   real install.

2. Log the probe failure at debug level instead of swallowing it silently.
   The broad 'except Exception' is intentional (we never want apply_gpu_ids
   to crash a worker over a probe), but the silent pass made it impossible
   to tell whether the fallback was firing or being skipped.
2026-05-06 12:29:20 +00:00
..
datasets Add Qwen3.6 support (#5257) 2026-05-02 23:30:57 +04:00
hardware Use 'is not None' and log debug on torch.version.hip probe failures 2026-05-06 12:29:20 +00:00
inference Fix Windows local GGUF model loading crash (#4730) 2026-04-01 01:38:09 -07:00
models Add native GGUF intake to Studio (#5246) 2026-05-04 11:46:18 +02:00
paths Studio: add folder browser modal for Custom Folders (#5035) 2026-04-15 08:04:33 -07:00
.gitkeep root studio folder 2026-02-02 09:13:49 +00:00
__init__.py Final cleanup 2026-03-12 18:28:04 +00:00
cache_cleanup.py fix(studio): prevent ModuleNotFoundError in dataset.map() on Windows (#4473) 2026-03-22 06:11:24 -07:00
downsample.py feat(studio): training history persistence and past runs viewer (#4501) 2026-03-25 00:58:55 -07:00
native_path_leases.py Add native GGUF intake to Studio (#5246) 2026-05-04 11:46:18 +02:00
subprocess_compat.py Add tauri (#5144) 2026-04-23 04:50:10 -07:00
transformers_version.py Add native GGUF intake to Studio (#5246) 2026-05-04 11:46:18 +02:00
utils.py Final cleanup 2026-03-12 18:28:04 +00:00
wheel_utils.py Add native GGUF intake to Studio (#5246) 2026-05-04 11:46:18 +02:00