Repository navigation
fix(macos): separate launcher bundle identity from desktop - #18076
Merged
danielhanchen merged 2 commits intoNov 17, 2026
Merged
Conversation
Member
|
@codex review |
1 similar comment
Member
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Keep it up! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
This was referenced Nov 17, 2026
danielhanchen
added a commit
that referenced
this pull request
Nov 17, 2026
…oth.kernels loaded on CPU since #18111) (#18117) Two CPU-backend tests fail on main in the CPU `rest` shard since #18111 (seen on the staging runs of #18075 and #18076): ``` tests/test_cpu_backend_init.py::test_no_accelerator_loads_the_cpu_backend tests/test_cpu_backend_tiled_mlp.py::test_cpu_backend_loader_tiles_like_the_gpu_loaders E AssertionError: assert ['unsloth.kernels', ...] == [] ``` ## Cause #18111 added, at the end of `unsloth/__init__.py`: ```python from .kernels.triton_launch import sync_compile_cache_tag_to_workers as _sync_tag ``` It runs for every backend. On a machine with no accelerator, `import unsloth` now loads `unsloth.kernels` (and everything its package `__init__` pulls in, 87 modules) even though the CPU backend deliberately never loads GPU kernels; the tests above guard exactly that. The sync itself is right, but it only matters where kernels add tags to `torch.compiler.config.cache_key_tag`, i.e. the GPU backend, which has already imported `unsloth.kernels` by then. On the CPU backend there is no tag to hand to compile workers. ## Fix Run the sync only when the GPU backend was selected (`_IS_CPU_BACKEND` is False). The MLX branch never defines `_IS_CPU_BACKEND`, so it is skipped there too. ## Verification - `tests/test_cpu_backend_init.py`, `tests/test_cpu_backend_tiled_mlp.py`: 2 failed on main, pass here. - `tests/test_compile_cache_tag_workers.py` (#18111's own tests): 6 passed.
danielhanchen
added a commit
that referenced
this pull request
Nov 17, 2026
…ys fp32 (red since #18099) (#18118) `tests/test_attention_dispatch_compiled_block.py::test_rerouted_xformers_keeps_the_fp32_downcast` fails on main in the CPU `rest` shard since #18099 (seen on the staging runs of #18075 and #18076): ``` E assert torch.float32 == torch.bfloat16 ``` ## Cause #18099 made fp32 Q/K/V with autocast off stay fp32 (rerouted to SDPA) instead of being downcast to bf16 for xformers / flash, because that is a genuine fp32 model. The DoRA downcast still applies under autocast, which is how DoRA reaches this code in training. #18099 moved its own DoRA tests under autocast, but this compiled-path test in another file still called the reroute with plain fp32 inputs and no autocast, so it now sees the intended fp32 result. The behaviour change is correct; the test predates it. ## Fix - `test_rerouted_xformers_keeps_the_fp32_downcast` now takes the autocast decision (`_keeps_fp32_attention` returns False), so it still checks the DoRA downcast through the compiled reroute. CPU CI cannot enter CUDA autocast, and faking `torch.is_autocast_enabled` trips dynamo's global autocast guard ("Global autocast state changed while dynamo tracing"), so the decision is patched directly. - New `test_rerouted_xformers_keeps_an_fp32_model_in_fp32` covers the other half under `fullgraph` compile: without autocast the reroute returns fp32 and matches the fp32 SDPA reference. ## Verification - main: `test_rerouted_xformers_keeps_the_fp32_downcast` fails. - this branch: `tests/test_attention_dispatch_compiled_block.py` and `tests/utils/test_attention_dispatch_dora_dtype.py` 19 passed, 2 skipped. - Sabotage: with `_keeps_fp32_attention` forced to False (the pre-#18099 behaviour), the new fp32 test fails.
2 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CFBundleIdentifierinstead of reusing the packaged Desktop app's identifier.Verification
python -m pytest -q tests/studio/test_macos_app_native_arch.py(4 passed, 2 skipped: Rosetta-only tests)sh -n install.sh scripts/uninstall.shgit diff --checkThe broader
tests/sh/test_uninstall_webview_data.shsuite was also exercised; it reported 83 passed and 3 environment-sensitive failures in pre-existing custom-root/TMPDIR cases unrelated to bundle identifiers.