Repository navigation
Studio: fix embedding fine-tunes failing at the first step - #17311
Conversation
|
@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. 🚀 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". |
|
@codex review |
1 similar comment
|
@codex review |
|
Codex Review: Didn't find any major issues. Chef's kiss. 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". |
…-transformers pin scan (#17547) ## Summary `Repo tests (CPU, studio-install)` can fail on any PR, depending on what runs at the same time on the other xdist workers (seen on #17533): ``` tests/studio/install/test_sentence_transformers_pin.py:47: in test_pinned_sentence_transformers_can_log_with_the_pinned_transformers E FileNotFoundError: [Errno 2] No such file or directory: '.../studio/backend/requirements/single-env/.data-designer-deps-filtered-bpfrp0a_.txt' ``` `install_python_stack._filter_requirements` writes a hidden `.<stem>-filtered-*.txt` copy beside its source file, so relative `-r`/`-c` lines still resolve, and the installer deletes it again afterwards. Tests that drive the installer do this inside the repo's own `studio/backend/requirements` tree. The pin test added in #17311 walks that tree with `rglob("*.txt")` and reads every match, so when another worker's copy disappears between the walk and the read, it fails. The installer is right to put the copy there, and the pin check itself is right. The scan just has to ignore those copies, the same way its sibling scans already do (`test_transformers_tokenizers_pair.py` skips dot-named files, and `test_diffusers_pin.py` skips the `-filtered-` pattern). ## Change - `tests/studio/install/test_sentence_transformers_pin.py`: the scan now goes through a `_requirement_files()` helper that skips dot-named files. - New `test_a_filtered_copy_vanishing_mid_scan_is_not_read`: it plants a dangling `.data-designer-deps-filtered-*.txt` link (a copy deleted mid-scan) next to a real file and checks that the scan skips it. Without the skip, that test fails with the CI error. No library code changes. ## Testing - `test_sentence_transformers_pin.py`, `test_transformers_tokenizers_pair.py`, `test_diffusers_pin.py`: 76 passed. - With the skip removed, `test_a_filtered_copy_vanishing_mid_scan_is_not_read` fails.
Every embedding fine-tune in Studio fails at step 0 with "'SentenceTransformerTrainer' object has no attribute '_nested_gather'". Studio installs transformers 5.5.0, which removed that method, but still pins sentence-transformers 5.2.0, which calls it.
This moves the pin to sentence-transformers 5.2.3, the patch release for transformers 5.2 and newer. Python 3.9 installs keep 5.1.2. Embedding runs now train, log and save checkpoints on Linux and macOS.
Before and after
all-MiniLM-L6-v2, LoRA, sentence-transformers/all-nli, 30 steps.