[Auto-FL] Harden cleanup and comparison budgets - #4984
Draft
holgerroth wants to merge 2 commits into
Draft
Conversation
Signed-off-by: Holger Roth <hroth@nvidia.com>
Collaborator
Author
|
/build |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4984 +/- ##
=======================================
Coverage 64.26% 64.26%
=======================================
Files 1030 1030
Lines 103578 103578
=======================================
+ Hits 66560 66562 +2
+ Misses 37018 37016 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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
This draft proposes two general Auto-FL runner improvements based on the recent long-running H100 campaigns:
The default Auto-FL workflow is unchanged when a task does not configure observed budget evidence.
Trial process ownership
Each runner execution now injects a random
NVFLARE_AUTOFL_TRIAL_TOKENinto the child environment. Existing process-group cleanup remains the portable first line of defense. On Linux, timeout, interruption, and final cleanup also scan/proc/*/environfor the exact token and terminate remaining trial-owned processes.This avoids command-name, candidate-name, or shared-directory matching and directly covers simulator workers that create their own process groups.
Observed comparison budgets
Static import and fixed arguments can constrain declared budgets, but they cannot prove the behavior of arbitrary Python training loops. A task that needs strict semantic equality can now declare:
The job emits:
{ "values": { "optimizer_steps": 1280, "examples_seen": 81920, "partition_sha256": "..." } }The runner copies the contract into
autofl.yaml, stores the scored baseline values, and requires exact evidence equality for simulation and externally recorded POC/production candidates. Missing, malformed, or different evidence makes the candidate a failed attempt and prevents score retention. Evidence and provenance are recorded in the candidate manifest, campaign metadata,results.tsv, and the running report.The fields remain task-defined so this mechanism does not encode CIFAR, PyTorch, DataLoader, or optimizer-specific assumptions.
Review focus
Out of scope
Validation
333 passed, 1 skippedacross focused Auto-FL runner, guard, importer, plotter, report, and trigger-eval suites;157 passed, 1 skipped;0 errors, 0 warnings;git diff --check: pass;SKILL.md: 200/200 lines.The skipped regression is Linux-specific and exercises a detached child that starts a new session; it will run in Linux CI. A broader local agent-skill sweep also reached 150 passing tests, with one unrelated macOS XGBoost import failure because
libomp.dylibis unavailable.