Repository navigation
Studio fine-tuning queue: run the batch model probe behind the account's path guard - #15727
Merged
Merged
Conversation
Codex Review SummaryThis 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. |
Member
Author
|
@codex review |
1 similar comment
Member
Author
|
@codex review |
|
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". |
[skip ci]
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.
When compatible OpenAI fine-tuning jobs are queued,
_start_queuedprobes the head job's model (_trains_alone) to decide whether it can join a multi-LoRA batch. That probe ran with the rawmodel_name, before the account's path guard and outside the job's account context. A managed account could queue two batchable jobs whose model is a UNC path (\\host\share\modelor//host/share/model); on a Windows host the probe's file checks then open that share, which makes the Studio service account sign in over SMB and hands its NetNTLM response to that host.account_pathalready refuses share and device paths for managed accounts before touching the filesystem, andstart_trainingapplies it, but the batch probe ran first.Fix
account_path(model_name, reference = True)first. A path the account may not use makes the job train alone, so the normal single start refuses it with the usual 403._start_queuedruns the probe underarun_as(entry.account, ...), so it sees the job's account rather than the drain loop's.Owners, Desktop and notebooks are unaffected (
account_pathreturns early for the owner). Managed accounts still batch Hub ids and workspace paths exactly as before. The check is a pure lookup, so repeated drains behave the same.Tests
test_batch_probe_never_touches_a_managed_share_path(both UNC spellings): fails on main (the diffusion, LoRA and config probes all receive the share path), passes here.test_batch_probe_unchanged_for_the_owner: the owner's jobs still probe and batch.test_openai_fine_tuning.py: the same 10 tests fail as on main, all multi-LoRA batching tests that fail since packing became the default (Studio: enable packing and assistant-only training defaults where supported #15478 landed before Studio: train compatible queued fine-tuning jobs together with multi-LoRA #15344); 67 pass. Account path suites: 880 passed.