NVIDIA/NVFlare 2.7.2
NVIDIA/NVFlare
Captured source
source ↗2.7.2: New features, bug fixes and document updates
Repository: NVIDIA/NVFlare
Tag: 2.7.2
Published: 2026-03-20T20:51:32Z
Prerelease: no
Release notes:
2.7.2 Release Contributors (Chronological Order)
Total PRs in this release: 213
- Holger Roth — 52 PRs
- Chester Chen — 40 PRs
- Yuan-Ting Hsieh (謝沅廷) — 39 PRs
- Ziyue Xu — 26 PRs
- nvkevlu — 21 PRs
- Zhihong Zhang — 13 PRs
- Peter Cnudde — 11 PRs
- Isaac Yang — 10 PRs
- GeorgeWang-nv — 1 PR
---
🎉 Welcome First-Time Contributors!
- Peter Cnudde — 11 PRs
- GeorgeWang-nv — 1 PR
---
Feature Highlights
Job Recipe API — Generally Available
The Job Recipe API, introduced as a technical preview in 2.7.0, is now generally available. Almost all examples in the NVFlare repository have been converted to use Job Recipes. Ready-to-use recipes are available for FedAvg, FedProx, FedOpt, SCAFFOLD, Cyclic Learning, XGBoost, Federated Statistics, FedEval, Cross-Site Evaluation, PSI, Flower, Swarm Learning, and Edge FL. The same recipe runs seamlessly across SimEnv, PoCEnv, and ProdEnv.
Memory Management for Large-Model Training
FLARE 2.7.2 delivers a full memory management stack across every tier from the FL server down to the client training subprocess. Three complementary features work together:
- TensorDownloader: Zero-code memory optimization for PyTorch large models. Tensors are
serialized incrementally in safetensors format and distributed via a pull-based download service. Reduces peak memory on both server and client in all training modes.
- Zero-copy relay at the CJ process (Pass-Through): For subprocess-mode clients
(ClientAPILauncherExecutor), the CJ relay now holds lightweight LazyDownloadRef placeholders instead of materializing full tensors, making CJ memory independent of model size. Particularly impactful for LLM-scale models (7B–70B parameters).
- Server and Client Memory Cleanup: Automatic periodic
gc.collect()+malloc_trim()
on both the server and the full client pipeline (CJ relay + training subprocess) prevents unbounded RSS growth across long multi-round jobs. Includes torch.cuda.empty_cache() for GPU memory. Configurable via client_memory_gc_rounds; no training script changes required.
In a 5 GB PyTorch model benchmark with FedAvg and 4 clients, server peak memory dropped by 60–75% (in-process mode) and client peak memory by 70–82% (subprocess mode).
Reliability and Performance
Focused hardening of the F3 streaming layer and large-model subprocess handling:
- Head-of-line stall mitigation: A bounded send timeout, ACK-progress watchdog, and
optional connection reset (SFM_CLOSE_STALLED_CONNECTION) prevent a slow connection from blocking all outgoing traffic indefinitely.
- Concurrency fixes: Stream pool starvation (callbacks starving the pool they depended
on), an RxTask self-deadlock on error signals, and serialized cache-miss production at high client counts — all resolved. Concurrent downloads now complete reliably.
- Streaming download retry: Transient timeouts now trigger exponential-backoff retry
(up to 3 attempts, capped at 60 s), abort-signal aware and idempotent.
- Large-model subprocess reliability: Send retries no longer accumulate per-attempt model
copies in memory. Key timeouts (submit_result_timeout, tensor_min_download_timeout, max_resends) are now configurable via recipe. min_clients fault tolerance added to Swarm Learning and SAG workflows.
Hierarchical FL Startup Stability
Deployment timeouts are now correctly classified as failures (triggering the min_sites tolerance check); a startup grace period prevents premature dead-client detection during initialization; and stragglers that miss the start-job window are selectively excluded rather than aborting the entire job, provided min_clients is still satisfied.
Security Fixes
- Addressed a remote code execution vulnerability in FOBS deserialization (unvalidated
type_name) - Addressed a path traversal vulnerability in
FileRetriever - Hardened startup kit signing: root folders now signed in Confidential Computing mode
Comprehensive Timeout Documentation
Two new guides: Timeout Troubleshooting for common failure scenarios, and Timeouts Reference covering many timeout parameters across NVFlare components.
---
What's Changed
- Job Recipe API GA: comprehensive recipe library, dict model config, initial checkpoint support by
@holgerroth, @YuanTingHsieh, @chesterxgchen, @ZiyueXu77 in #4082, #4117, #4130, #4144, #4155, #4156
- Pass-Through architecture for CJ relay (zero tensor copy) by @chesterxgchen in #4210
- Client-side memory management (GC + heap trim + GPU cache flush) by @chesterxgchen in #4211
- Add Server-Side Memory Management for long-running FL jobs by @chesterxgchen in #4042
- Mitigate F3 streaming Head-of-Line stalls and add guardrails by @chesterxgchen in #4206
- Fix RxTask self-deadlock on stream error cleanup by @pcnudde in #4204
- Fix stream pool starvation issue by @YuanTingHsieh in #4171
- Add retry mechanism for streaming download on TIMEOUT by @chesterxgchen in #4167
- Fix hierarchical FL startup failures by @chesterxgchen in #4209
- Fix client-side RSS memory growth and subprocess logging by @chesterxgchen in #4231
- Fix large-model subprocess memory, PASS_THROUGH, download gating, MSG_ROOT_TTL, min_clients by
@chesterxgchen in #4247
- Fix RCE vulnerability from unvalidated type_name in FOBS by @nvidianz in #4295
- Fix path traversal vulnerability in FileRetriever by @IsaacYangSLA in #4230
- Sign the root folders of startup kits by @IsaacYangSLA in #4301
- Fix Swarm Learning self-message deadlock by @pcnudde in #4186
- Fix Swarm Learning controller compatibility with tensor streaming by @YuanTingHsieh in #4141
- Fix Swarm ext-process bugs: msg_root race, CSE model load, validate hang, round_timeout by
@chesterxgchen in #4270
- FedAvg Merge with FedAvgEarlyStopping + InTimeAggregation by...
Excerpt shown — open the source for the full document.