unsloth/studio/backend/utils
Daniel Han 8028c52600 Add IS_ROCM flag to hardware module and fix AMD error message
Hardware module changes:
- Add IS_ROCM global flag (bool, default False) to hardware.py
- detect_hardware() sets IS_ROCM=True when torch.version.hip is set,
  while keeping DeviceType as CUDA (torch.cuda.* works on ROCm via HIP)
- Print "ROCm (HIP X.Y)" instead of just "CUDA" when IS_ROCM is True
- get_package_versions() now returns a "rocm" key with the HIP version
  (torch.version.hip) alongside the existing "cuda" key
- Export IS_ROCM from studio/backend/utils/hardware/__init__.py

Tokenizer error message fix:
- Replace "We do not support AMD" with a helpful message pointing to
  ROCm installation docs at docs.unsloth.ai, since AMD is now supported
2026-03-31 08:31:31 +00:00
..
datasets fix(studio): avoid UnicodeEncodeError on Windows cp1252 consoles (#4699) 2026-03-30 06:40:47 -07:00
hardware Add IS_ROCM flag to hardware module and fix AMD error message 2026-03-31 08:31:31 +00:00
inference studio: improve onboarding UX, tooltips, and training defaults (#4355) 2026-03-17 07:46:07 -07:00
models Fix HF cache default and show LM Studio models in chat/inference (#4653) 2026-03-27 06:59:27 -07:00
paths fix: preserve Windows drive-letter paths on native Windows (#4665) 2026-03-27 08:19:41 -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
transformers_version.py feat: support GGUF export for non-PEFT models + fix venv_t5 switching for local checkpoints (#4455) 2026-03-20 12:13:18 +04:00
utils.py Final cleanup 2026-03-12 18:28:04 +00:00