unsloth/tests
Daniel Han 6dcf2003b3 docs: tests/studio/README.md for the MLX dispatch matrix
Document how the Studio backend MLX dispatch suite simulates every
hardware combination on a Linux+CPU box without owning the actual
hardware. Specifically:

- Catalogue the seven HardwareProfile rows in
  test_hardware_dispatch_matrix.py (nvidia_cuda, amd_rocm, intel_xpu,
  apple_silicon_mlx, apple_silicon_no_mlx, linux_arm64_with_mlx,
  cpu_only) and the four contracts each profile asserts.
- Explain the spoof mechanism (platform.system, platform.machine,
  torch.cuda.is_available, torch.version.hip, torch.xpu.is_available,
  torch.xpu.get_device_name, torch.backends.mps.is_available, and
  sys.modules['mlx']).
- Document the negative-space canaries that protect the dispatch
  priority order (CUDA over MLX, XPU over MLX).
- Cross-reference the AST guard in test_is_mlx_dispatch_gate.py and
  the AST checks in test_mlx_training_worker_behaviors.py.
- Provide one-liner pytest invocations for the common subsets and
  show how to filter by profile name with -k.

Pure documentation: no production or test code modified. Helps a new
reviewer figure out how to extend the matrix when adding a new
backend without trial and error.
2026-05-06 10:56:37 +00:00
..
python feat(studio): MLX training tab on Apple Silicon (LoRA / full FT, VLM, export) (#5265) 2026-05-05 23:54:58 -07:00
qlora Revert "[pre-commit.ci] auto fixes from pre-commit.com hooks" 2025-12-01 07:24:58 -08:00
saving chore: fix typo cleanup across tests and backend strings (#5152) 2026-04-24 12:51:27 +01:00
sh Default Studio host to 127.0.0.1 and prompt before auto-start (#5267) 2026-05-04 13:03:16 +04:00
studio docs: tests/studio/README.md for the MLX dispatch matrix 2026-05-06 10:56:37 +00:00
utils feat: Add cactus QAT scheme support (#4679) 2026-04-15 07:40:03 -07:00
__init__.py Qwen 3, Bug Fixes (#2445) 2025-04-30 22:38:39 -07:00
run_all.sh fix: add tokenizers to no-torch deps and TORCH_CONSTRAINT for arm64 macOS py313+ (#4748) 2026-04-01 06:12:17 -07:00
test_cli_export_unpacking.py studio: stream export worker output into the export dialog (#4897) 2026-04-14 08:55:43 -07:00
test_gemma4_chat_template.py update gema4 chat templates (#5116) 2026-04-22 09:04:08 -07:00
test_get_model_name.py feat: Add support for OLMo-3 model (#4678) 2026-04-15 07:39:11 -07:00
test_loader_glob_skip.py Add unit tests for HfFileSystem glob skip guard (#4854) 2026-04-06 08:54:36 -07:00
test_model_registry.py Revert "[FIX] Vllm guided decoding params (#3662)" 2025-12-01 05:43:45 -08:00
test_peft_weight_converter_compat.py Patch checkpoint reload init functions to strip unsupported args (#5167) 2026-04-29 02:50:49 -07:00
test_raw_text.py fix: check find() return value before adding offset in try_fix_tokenizer (#4923) 2026-04-09 06:15:46 -07:00
test_resolve_model_class.py fix: guard resolve_model_class fallback against unresolvable transformers AutoModel entries (#5155) 2026-04-24 05:59:17 -07:00
test_studio_install_workspace_guard.py install: support STUDIO_HOME / UNSLOTH_STUDIO_HOME for custom install paths (#5190) 2026-05-05 23:17:40 -07:00
test_studio_root_resilience.py install: support STUDIO_HOME / UNSLOTH_STUDIO_HOME for custom install paths (#5190) 2026-05-05 23:17:40 -07:00