Repository navigation
Fix main Backend CI: PP layer name on transformers 5.17, INT8 attention without Triton, kernel and test gates - #17882
Merged
Merged
Conversation
…ayer type for Qwen4Exp transformers 5.17 names the QSA layer type qwen_sparse_attention (5.22 renamed it indexed_attention), so the CPU CI (transformers 5.17) refused every Qwen4Exp PP run added in #17785.
_launch read triton.runtime with triton None (the Python 3.13 diffusion shard has no Triton), so the stubbed-launcher device tests from #17855 raised AttributeError.
…e _launch helper #17860 left 23 tl.constexpr parameters without a comment, and its _launch helper forwards enable_fp_fusion from every caller, which the fp fusion gate now checks per call as it does for layernorm.py.
…cts it tests/test_ddp_push_rank0_gloo.py (#17868) matched both the gloo shard and rest-2's tests/test_[dimsu]*.py glob.
… aux loss GC test test_bind_local_cuda_device.py read __init__.py with the platform encoding (#17867); test_block_cudagraphs_side_grad.py gated on the spoofable torch.cuda.is_available() (#17850); test_moe_aux_loss_checkpointing.py (#17873) is gpu-marked but CI's -m override runs it, and unsloth gradient checkpointing pins host memory, so it now also skips without a real accelerator.
…ithout get_train_dataloader #17859's patch_train_dataloader assumed a transformers Trainer subclass and raised AttributeError on other trainer classes (the stand-in in test_mixed_nvidia_capabilities).
Member
Author
|
@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. Can't wait for the next one! 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". |
[skip ci]
[skip ci]
danielhanchen
added a commit
that referenced
this pull request
Nov 16, 2026
…iniMax LoRA sidecar read (#17913) ## Summary Two checks are red on main right now: 1. **`Repo tests (CPU, rest)`: `tests/test_ci_repo_cpu_shards.py::TestEveryGlobRootMatchesAFile::test_no_shard_hands_pytest_an_unexpanded_pattern`** ``` AssertionError: these shard globs match no test file: [('gloo', 'tests/test_t[!p]*gloo*.py')] ``` #17892 added `tests/test_t[!p]*gloo*.py` to the gloo shard so that `tests/test_tokenizer_save_ddp_gloo.py` (from #17862) was collected by some shard. #17882 landed at the same time and renamed that file to `tests/test_local_save_tokenizer_ddp_gloo.py`, which the gloo shard's first glob (`tests/test_[!dfimpstu]*gloo*.py`) already covers. The `test_t[!p]` glob now matches nothing, and an unmatched glob reaches pytest as a literal path. Both PRs were right on their own; together they leave one dead glob. 2. **`(Python 3.13, rest)` and `Repo tests (CPU, rest)`: the text I/O encoding gates** ``` test_text_io_names_its_encoding[diffusion_minimax_h3_image.py] assert not ['diffusion_minimax_h3_image.py:3422: read_text() without encoding'] ``` #17863 added `json.loads(sidecar.read_text())` for the LoRA `adapter_config.json` sidecar. Without an encoding that read uses the locale codepage on Windows. ## Change - `.github/workflows/studio-backend-ci.yml`: remove `tests/test_t[!p]*gloo*.py` from the gloo shard and restore the comment that a `test_t[!p]*` gloo file would be reported as dropped by `tests/test_ci_repo_cpu_shards.py` (with a note on why the glob is not kept for later: an unmatched glob is a missing file to pytest). - `studio/backend/core/inference/diffusion_minimax_h3_image.py`: `sidecar.read_text(encoding = "utf-8")`. JSON is UTF-8, so behaviour on Linux and macOS is unchanged. ## Testing - `tests/test_ci_repo_cpu_shards.py` and `test_text_io_encoding.py::test_text_io_names_its_encoding[diffusion_minimax_h3_image.py]`: 16 passed on this branch, 2 failed on main. - `tests/test_runtime_text_encoding.py` and `studio/backend/tests/test_diffusion_minimax_h3_image.py` pass; `studio/backend/tests/test_text_io_encoding.py` passes for every tracked file.
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.
Backend CI on main has been red since today's merges. Every failure traces to one commit; this fixes the unsloth side (the gloo-cp shard also needs unslothai/unsloth-zoo#2542, since CI installs zoo from main).
test_qwen4exp_parallel_matches_one_process[pp*],test_pp_splits_streams_and_runs_the_mixer_last, all oftest_frozen_table_pp_gloo.pyqwen_sparse_attention, 5.22 renamed itindexed_attention; pipeline parallel only accepted the new name, so every rank raised "hybrid layer stacks"_PP_HYBRID_FAMILIEStest_diffusion_int8_attention_triton_device.py_launchreadtriton.runtimewhiletritonisNoneon that shardtriton is not Nonefirsttest_every_constexpr_line_has_a_commenttl.constexprparameters inlarge_head_attention.py_tma_tile's signature split one parameter per linetest_every_launch_requests_fp_fusion_launchhelper forwardsenable_fp_fusionfrom every caller, but the gate did not know it is a helperlayernorm.py'stest_no_file_is_dropped_or_run_twicetests/test_ddp_push_rank0_gloo.pymatched both the gloo shard and rest-2'stest_[dimsu]*.pytests/test_hub_push_rank0_ddp_gloo.pytest_checked_in_file_reads_name_an_encodingread_text()without an encoding intests/test_bind_local_cuda_device.pyencoding = "utf-8"test_sentence_transformer_trainer_checks_the_placement_before_the_deferred_compile[*]patch_train_dataloaderassumed every trainer class hasget_train_dataloadertest_router_aux_loss_gradient_survives_unsloth_checkpointing[*]-m 'not server and not e2e'has_real_accelerator()skip next to the gpu marktest_no_skip_guard_reads_a_spoofable_accelerator_probetest_block_cudagraphs_side_grad.pyskipped ontorch.cuda.is_available(), which the CUDA spoof fakeshas_real_cuda()Tests
In a venv matching CI (Python 3.12, torch 2.10.0+cpu, transformers 5.17.0, TRL 1.15, PEFT 0.21.3,
UNSLOTH_COMPILE_DISABLE=1,-m 'not server and not e2e'):test_qwen4exp_parallel_gloo.pyfailed on main, 9 / 9 pass here;test_frozen_table_pp_gloo.py13 / 13.The only non-test code changes are the PP layer-type name, the Triton
Nonecheck and the Sentence Transformers method check;large_head_attention.pychanges are comments only.