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.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
CI: drop three macOS legs that assert nothing a Linux runner does not (#7974)
Daniel Hanfc0adfbad7ce
diff --git a/.github/workflows/cross-platform-parity-ci.yml b/.github/workflows/cross-platform-parity-ci.ymlindex 71a7beebd6f..2696180c236 100644--- a/.github/workflows/cross-platform-parity-ci.yml+++ b/.github/workflows/cross-platform-parity-ci.yml@@ -71,7 +71,16 @@ jobs:strategy:fail-fast: falsematrix:- os: [ubuntu-latest, windows-latest, macos-latest]+ # No macOS leg on purpose. This matrix exists for Windows: the parity+ # tests are pure `Path.read_text()` + regex assertions over install.sh /+ # install.ps1 / setup.ps1, and the OS-specific risk they guard is the+ # cp1252 default encoding on Windows. There is no `platform.`,+ # `sys.platform`, `darwin` or `uname` reference anywhere in+ # tests/python/test_cross_platform_parity.py, so the macOS row asserted+ # exactly what the Linux row already asserts. macOS concurrency is+ # capped at 5 account-wide; do not add it back without a Mac-specific+ # assertion to justify it.+ os: [ubuntu-latest, windows-latest]runs-on: ${{ matrix.os }}timeout-minutes: 10steps:diff --git a/.github/workflows/mlx-ci.yml b/.github/workflows/mlx-ci.ymlindex aadf0b54e6e..7102c7e2146 100644--- a/.github/workflows/mlx-ci.yml+++ b/.github/workflows/mlx-ci.yml@@ -36,13 +36,17 @@# only place in CI that exercises a real MLX backward pass +# optimizer step + inference call.#-# Three dispatch test files documented in tests/studio/README.md:-# - test_hardware_dispatch_matrix.py parametrized 7-profile matrix-# + 2 dispatch-priority canaries-# - test_is_mlx_dispatch_gate.py AST + runtime guard on-# unsloth._IS_MLX+# Dispatch test files documented in tests/studio/README.md:# - test_mlx_training_worker_behaviors.py AST contract checks on# studio/backend/core/training/worker.py+# Run here because no other workflow claims it.+#+# test_hardware_dispatch_matrix.py and test_is_mlx_dispatch_gate.py are NOT run+# here. Both are fully spoofed (monkeypatched profiles plus a MetaPathFinder+# that blocks `import mlx.core`), so they assert identically on any host, and+# studio-backend-ci.yml runs both on ubuntu-latest. macOS concurrency is capped+# at 5 jobs account-wide; re-running host-independent tests on that pool is the+# most expensive way to learn nothing new.## Surfaces a single PR check ("MLX CI on Mac M1 / dispatch").#@@ -64,8 +68,12 @@ on:- 'studio/backend/utils/hardware/**'- 'studio/backend/core/training/worker.py'- 'studio/backend/core/inference/mlx_inference.py'- - 'tests/studio/test_hardware_dispatch_matrix.py'- - 'tests/studio/test_is_mlx_dispatch_gate.py'+ # test_hardware_dispatch_matrix.py and test_is_mlx_dispatch_gate.py are+ # deliberately absent: this workflow no longer runs them (see the AST+ # contract step below), so booting a macOS runner when only those files+ # change would burn a slot from the 5-job account-wide macOS cap to run+ # nothing related. studio-backend-ci.yml covers both on ubuntu-latest and+ # already triggers on them.- 'tests/studio/test_mlx_training_worker_behaviors.py'- 'tests/studio/run_real_mlx_smoke.py'- 'tests/conftest.py'@@ -216,19 +224,24 @@ jobs:print('OK: FastMLXModel + MLXTrainer surface present')"- # Spoofed dispatch matrix. Runs on the real Mac too -- the- # test fixture installs a MetaPathFinder that blocks- # `import mlx.core` for "no-mlx" profiles, so the spoofs- # faithfully simulate every supported hardware combo regardless- # of whether mlx is installed for real.- - name: MLX dispatch tests (3 files, 36 tests)+ # AST contract checks on worker.py. Pure `ast.parse`, no runtime and no+ # mlx import, so it would run anywhere -- but this is the only workflow+ # that runs it at all, so it stays here until something on Linux claims it.+ #+ # test_hardware_dispatch_matrix.py and test_is_mlx_dispatch_gate.py used+ # to run here too. They are 100% spoofed monkeypatches (the fixture+ # installs a MetaPathFinder that blocks `import mlx.core` for "no-mlx"+ # profiles), so they assert the same thing on any host -- and+ # studio-backend-ci.yml already runs both on ubuntu-latest in its+ # "Hardware-spoof tests" step. Running them again on a macOS runner spent+ # minutes from a pool capped at 5 concurrent jobs account-wide to+ # re-derive a result Linux had already produced.+ - name: MLX worker AST contract testsenv:PYTHONPATH: ${{ github.workspace }}/studioUNSLOTH_COMPILE_DISABLE: '1'run: |python -m pytest -v --tb=short \- tests/studio/test_hardware_dispatch_matrix.py \- tests/studio/test_is_mlx_dispatch_gate.py \tests/studio/test_mlx_training_worker_behaviors.py# Real MLX training + inference smoke test. Trainsdiff --git a/.github/workflows/studio-export-capability-ci.yml b/.github/workflows/studio-export-capability-ci.ymlindex 83df3ed476d..d48ded36260 100644--- a/.github/workflows/studio-export-capability-ci.yml+++ b/.github/workflows/studio-export-capability-ci.yml@@ -44,7 +44,15 @@ jobs:strategy:fail-fast: falsematrix:- os: [ubuntu-latest, windows-latest, macos-latest]+ # No macOS leg on purpose. The only command this job runs is+ # `pytest tests/test_export_capability.py`, and every test in that file+ # goes through `_patch()`, which monkeypatches `_has_torch`,+ # `get_device` and `is_apple_silicon`. Nothing in it touches Metal, MLX+ # or any Apple binary, so a real Mac proves nothing a Linux runner does+ # not already prove -- and studio-backend-ci.yml runs the same file on+ # ubuntu-latest as part of `pytest tests/`. macOS concurrency is capped+ # at 5 account-wide, so a leg that buys no signal is worth reclaiming.+ os: [ubuntu-latest, windows-latest]runs-on: ${{ matrix.os }}timeout-minutes: 20env: