instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NVIDIA__DALI__6218 | NVIDIA/DALI | 6,218 | defect | d741bef230d5c1fd2d349a10811ef58fa3a5a4ac | d8883abc80d39a5117718b7e4de4de74f9af4165 | Add ArgValue broadcasting when using ShapeFromSize callback. | <!---
Thank you for contributing to NVIDIA DALI! If you haven't yet,
please read the contributing guidelines in the CONTRIBUTING.md file.
We need a few more information from you to proceed.
Please fill the relevant sections in this PR template.
Fields in the Checklist section can be marked after you create and... | diff --git a/dali/pipeline/operator/arg_helper.h b/dali/pipeline/operator/arg_helper.h
index fffad971701..7bed12ad33e 100644
--- a/dali/pipeline/operator/arg_helper.h
+++ b/dali/pipeline/operator/arg_helper.h
@@ -318,11 +318,34 @@ class ArgValue {
ArgValueFlags flags = ArgValue_Default,
... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new ShapeFromSize broadcast path only handles vol > 1 and treats vol == 0 like vol == 1 by reusing source pointers, so add explicit zero-volume handling setting the pointers to nullptr.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1"... | null |
NVIDIA__DALI__6237 | NVIDIA/DALI | 6,237 | defect | 87643a03e6c2f3499d2aa174ec9d05621eae6a97 | 216da6040e3dd4673fbcee0cae53092ef967898d | Add enable_frame_num='sequence' mode to video readers. | - extends the `enable_frame_num` argument in both the legacy
(`fn.readers.video`) and experimental (`fn.experimental.readers.video`)
video reader operators from a boolean to a string enum, following the
same convention as `out_of_bounds_policy`:
* ``"none"``/`False` (default) - no frame number output (previ... | diff --git a/dali/operators/video/legacy/reader/nvdecoder/sequencewrapper.h b/dali/operators/video/legacy/reader/nvdecoder/sequencewrapper.h
index b6aa0e3e9fc..61786019d8b 100644
--- a/dali/operators/video/legacy/reader/nvdecoder/sequencewrapper.h
+++ b/dali/operators/video/legacy/reader/nvdecoder/sequencewrapper.h
@@ ... | 13 | 8 | 2 | [{"id": "G0", "claim": "test_enable_frame_num_sequence_with_padding lacks the divisibility SkipTest guard its sibling test has, so if the video's total frame count is exactly divisible by stride * sequence_length no padded tail sequence is produced and the final assertion always fails.", "category": "testing", "verdict... | null |
NVIDIA__DALI__6317 | NVIDIA/DALI | 6,317 | defect | 7558cc49bc31a87fc48fda416dd964725810f9c3 | 04b840f22aa08752b15748bd8d57ffbdd9dd38d9 | Add static type inference to arithmetic ops. | <!---
Thank you for contributing to NVIDIA DALI! If you haven't yet,
please read the contributing guidelines in the CONTRIBUTING.md file.
We need a few more information from you to proceed.
Please fill the relevant sections in this PR template.
Fields in the Checklist section can be marked after you create and... | diff --git a/dali/operators/math/expressions/arithmetic.cc b/dali/operators/math/expressions/arithmetic.cc
index eb775be8575..a40bfd19d30 100644
--- a/dali/operators/math/expressions/arithmetic.cc
+++ b/dali/operators/math/expressions/arithmetic.cc
@@ -20,6 +20,52 @@
namespace dali {
namespace expr {
+std::optional... | 3 | 3 | 1 | [{"id": "G0", "claim": "The OutputDType lambda catches std::exception by value, which slices derived exception types and may lose their what() message; use catch (const std::exception&) instead.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The OpS... | null |
NVIDIA__Megatron-LM__2207 | NVIDIA/Megatron-LM | 2,207 | defect | 2fef6bbc16fcd6d94c6616a72390b6ec184063c2 | b5a8d4775bdd94f60bd79402ec5f3915ba120ac9 | [MoE] Improvement of shared expert overlap, support shared expert overlap for FlexDispatcher | # What does this PR do ?
Design doc: https://docs.google.com/document/d/1whtnUiw1hpfdkjFss_g5P8fyIT9xBA5XJvmdklFes48/edit?usp=sharing
Changelog:
* Add shared expert overlap for FlexDispatcher
* Add stream wait for cases where CUDA_DEVICE_MAX_CONNECTIONS> 1 to prevent shared expert GEMM launched too early.
* Chan... | diff --git a/megatron/core/tensor_parallel/mappings.py b/megatron/core/tensor_parallel/mappings.py
index 9ff69c9dc31..749b643a357 100644
--- a/megatron/core/tensor_parallel/mappings.py
+++ b/megatron/core/tensor_parallel/mappings.py
@@ -419,11 +419,12 @@ def backward(ctx, grad_output):
class _AllToAll(torch.autograd... | 3 | 2 | 1 | [{"id": "G0", "claim": "Making the CUDA stream a class-level (ClassVar) attribute shared by all SharedExpertMLP instances is questionable; the reviewer asks whether two different streams for the same class will never be needed.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id... | null |
NVIDIA__Megatron-LM__2217 | NVIDIA/Megatron-LM | 2,217 | defect | 2c2ee22f2202469b5150c79e63b7f26d42062a1f | 68a054f578680dfb211381ac671c913d0d8115be | [DEV] Fix aux loss scale when cp enabled | # What does this PR do ?
Fix aux loss scale when CP enabled. PR to main branch https://github.com/NVIDIA/Megatron-LM/pull/2237
<img width="1391" height="741" alt="image" src="https://github.com/user-attachments/assets/f09a6547-74f1-4a09-a6f3-4982efc8a7aa" />
## Explanation of this Fix
Ideally, we want to make s... | diff --git a/megatron/core/pipeline_parallel/schedules.py b/megatron/core/pipeline_parallel/schedules.py
index 11e54e0fa536..22e5d2633ce0 100644
--- a/megatron/core/pipeline_parallel/schedules.py
+++ b/megatron/core/pipeline_parallel/schedules.py
@@ -271,7 +271,7 @@ def forward_step_calc_loss(
if config.calcul... | 1 | 1 | 0 | [{"id": "G0", "claim": "Multiplying the aux-loss scale by cp_group_size at this line feels a bit odd and is confusing without an explanation of why it is needed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
NVIDIA__Megatron-LM__3003 | NVIDIA/Megatron-LM | 3,003 | defect | b49d810e7e7d3d51af2ec8426a8c0872da1e0cfd | b0fc067d655ed050415a8870152f16e34cb8be69 | [MLA] fix: Pad V when Q/V head dims differ for THD | # What does this PR do ?
https://github.com/volcengine/verl/pull/4931
Resolves https://github.com/nvidia/megatron-lm/issues/1698
For MLA, we shall pad V when Q/V head dims differ for THD
Refer to
https://github.com/modelscope/ms-swift/blob/50d54089a824578f64bde37f8b47785d955ede4f/swift/megatron/init.py#L63... | diff --git a/megatron/core/transformer/multi_latent_attention.py b/megatron/core/transformer/multi_latent_attention.py
index cd3db50a35bb..dac92a3a7512 100644
--- a/megatron/core/transformer/multi_latent_attention.py
+++ b/megatron/core/transformer/multi_latent_attention.py
@@ -6,6 +6,7 @@
from typing import NoReturn,... | 3 | 2 | 1 | [{"id": "G0", "claim": "Setting `hidden_size_per_attention_head_v` dynamically on `core_attention` may be silently ignored or behave unexpectedly because the attribute does not exist on DotProductAttention/TEDotProductAttention; verify it is supported or remove the line.", "category": "correctness", "verdict": "support... | null |
NVIDIA__Megatron-LM__3039 | NVIDIA/Megatron-LM | 3,039 | defect | bbbedbb9f53343762e4dc70abc771b813a83d817 | 28320940b0cb1879ce1c9fc316af61fbcd2abef0 | Fuse MLA DOWN projection GEMMs | dev PR: #2960
# What does this PR do ?
Add cli args `--mla-down-proj-fusion` and `mla_down_proj_fusion` to the transformer config for the fusion.
:warning: For major changes (either in lines of code or in its impact), please make sure to first share a design doc with the team. If you're unsure what's the best w... | diff --git a/megatron/core/models/gpt/gpt_layer_specs.py b/megatron/core/models/gpt/gpt_layer_specs.py
index 974e33f88e8..7e0ffd945d2 100755
--- a/megatron/core/models/gpt/gpt_layer_specs.py
+++ b/megatron/core/models/gpt/gpt_layer_specs.py
@@ -171,6 +171,13 @@ def get_gpt_layer_with_inference_spec(
)
+imp... | 5 | 5 | 4 | [{"id": "G0", "claim": "The environment-variable toggles used to adjust the spec should be replaced with explicit configuration (e.g. an argument to the spec function), since mcore does not configure anything through environment variables.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "intr... | null |
NVIDIA__Megatron-LM__3249 | NVIDIA/Megatron-LM | 3,249 | defect | 1934391a9578f7108be7bda63f73887dfb6f0dfa | 1757e427bdf5763884c20130c5072e3f8e3bf7cb | Enable AG/RS overlap with explicit process group passing | # What does this PR do ?
This PR enables all-gather (AG) / reduce-scatter (RS) communication overlap for **both regular data parallelism and Expert Parallelism (MoE models)** by migrating from global process group management to explicit argument passing via `ProcessGroupCollection`.
## Motivation
**Problem**: ... | diff --git a/megatron/core/distributed/fsdp/mcore_fsdp_adapter.py b/megatron/core/distributed/fsdp/mcore_fsdp_adapter.py
index 5bf543fdc5ce..77623ad28050 100644
--- a/megatron/core/distributed/fsdp/mcore_fsdp_adapter.py
+++ b/megatron/core/distributed/fsdp/mcore_fsdp_adapter.py
@@ -253,6 +253,12 @@ def _init_dist_index... | 5 | 3 | 3 | [{"id": "G0", "claim": "The --use-sharp, --sharp-enabled-group and --use-megatron-fsdp arguments added in _add_distributed_args should be initialized from DistributedInitConfig instead of being re-declared as plain CLI arguments.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, ... | null |
NVIDIA__Megatron-LM__3380 | NVIDIA/Megatron-LM | 3,380 | defect | faced512869f130ae4c5d1b4779c3f7fd52b74ed | c96049d567100b382acc01f9bc7bed6ca61dbcbe | Forced load imbalance | # What does this PR do ?
This PR tries to add a utility to force load imbalance among experts. dev PR [#2917](https://github.com/NVIDIA/Megatron-LM/pull/2917)
:warning: For major changes (either in lines of code or in its impact), please make sure to first share a design doc with the team. If you're unsure what's t... | diff --git a/megatron/core/transformer/moe/moe_utils.py b/megatron/core/transformer/moe/moe_utils.py
index 47debdd27df..2cbc05b07e2 100644
--- a/megatron/core/transformer/moe/moe_utils.py
+++ b/megatron/core/transformer/moe/moe_utils.py
@@ -11,7 +11,11 @@
from megatron.core.fp4_utils import get_fp4_align_size
from me... | 5 | 3 | 1 | [{"id": "G0", "claim": "The pull request's unit tests are failing and the test error must be fixed (the new moe_router_force_biased config field was not accounted for in the test's checked fields).", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The opti... | null |
NVIDIA__Megatron-LM__3384 | NVIDIA/Megatron-LM | 3,384 | defect | 4beb8caae7ee2eb829f0996eb5735db939cb35d8 | 93de412b3762d588d5614c3e101e73b48689de5d | Fused dLN + add in backwards pass | # What does this PR do ?
dev branch: #3383
Fuse the backwards pass of the residual fork + LN pattern in transformer_layer.py.
## Contribution process
```mermaid
flowchart LR
A[Pre-checks] --> B[PR Tests]
subgraph Code Review/Approval
C1[Expert Review] --> C2[Final Review]
end
B --... | diff --git a/megatron/core/extensions/transformer_engine.py b/megatron/core/extensions/transformer_engine.py
index 996330f5674..799c79d3749 100644
--- a/megatron/core/extensions/transformer_engine.py
+++ b/megatron/core/extensions/transformer_engine.py
@@ -432,21 +432,204 @@ def __new__(cls, config: TransformerConfig):... | 7 | 4 | 2 | [{"id": "G0", "claim": "The residual-fusion decision should not be special-cased inside transformer_layer: the `builder is TENorm` check and the _build_layernorm helper should be removed, with has_residual decided at the module-spec level so all norms take the same arguments.", "category": "design", "verdict": "support... | null |
NVIDIA__Megatron-LM__3426 | NVIDIA/Megatron-LM | 3,426 | defect | 28ccdaa75804d5097c4a2602ebf0d39d9236a6e0 | d5d95dca7f68a91722f87da79e428b5780a5d19a | Migrate MoeLayer submodules from ModuleSpec to Protocols | # What does this PR do ?
Defines Protocols representing Experts and SharedExperts, and uses them instead of ModuleSpec to enable typechecking of MoeLayer construction.
I also updated `Backend` to just return an instance of `ExpertsBuilder` because that seems to be the real intended use here; I can add a more intros... | diff --git a/megatron/core/extensions/transformer_engine_spec_provider.py b/megatron/core/extensions/transformer_engine_spec_provider.py
index a445eacdfe0d..794bfbe4c2c9 100644
--- a/megatron/core/extensions/transformer_engine_spec_provider.py
+++ b/megatron/core/extensions/transformer_engine_spec_provider.py
@@ -2,6 +... | 1 | 1 | 0 | [{"id": "G0", "claim": "The ValueError message in get_submodules should be an f-string so {spec!r} interpolates the spec instead of being printed literally.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
NVIDIA__Megatron-LM__3653 | NVIDIA/Megatron-LM | 3,653 | defect | 93d27397788c36791771c1b2009c20f291a8b629 | 52e3d10d564d24eaf90a30140fe18bd15a44f8a8 | Prevent double serialization inside Flask server | # What does this PR do ?
<!-- Add a one line overview of what this PR aims to accomplish. -->
:warning: For major changes (either in lines of code or in its impact), please make sure to first share a design doc with the team. If you're unsure what's the best way to do so, contact the @mcore-oncall.
## Contributi... | diff --git a/examples/inference/gpt/gpt_dynamic_inference_with_coordinator.py b/examples/inference/gpt/gpt_dynamic_inference_with_coordinator.py
index 536f533eccd..ef0b251787b 100644
--- a/examples/inference/gpt/gpt_dynamic_inference_with_coordinator.py
+++ b/examples/inference/gpt/gpt_dynamic_inference_with_coordinato... | 5 | 5 | 3 | [{"id": "G0", "claim": "Rename the loop variables still called `record` (and `record_dict`) to request-style names, now that the results they hold are completed requests.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "With the client defaulting ... | null |
NVIDIA__Megatron-LM__3659 | NVIDIA/Megatron-LM | 3,659 | defect | 63cd60bdbcf7502168af5688ca75dbcefedcf641 | d8339e93c21d33c4fcec46248cd51a3cbc8bf945 | Change Review Process | # What does this PR do ?
Changing the review process to:
- force all new PRs be drafts
- no longer using "Expert Review" label
- PRs that have all necessary approvals have label "Approved" automatically added
- automated the review process steps
- updated all documentation to reflect this new process
Befor... | diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
index 5cd5138eb69..d2825f9c34b 100644
--- a/.github/pull_request_template.md
+++ b/.github/pull_request_template.md
@@ -5,19 +5,8 @@
## Contribution process
-```mermaid
-flowchart LR
- A[Pre-checks] --> B[PR Tests]
- subgraph Co... | 9 | 4 | 2 | [{"id": "G0", "claim": "The force-draft workflow triggers only on `opened`, so a PR that is closed and then reopened bypasses the force-to-draft logic and stays 'Ready for review' — the reviewer asks whether `reopened` should be included.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "in... | null |
NVIDIA__Megatron-LM__3715 | NVIDIA/Megatron-LM | 3,715 | defect | 7ea354b83e20fd047941cc43a4d0ae7d186d4118 | 00462e72534e50a1fb66756b70d32ed6bca7b98d | Scaling for MuP over Muon optimizer. | # What does this PR do ?
Addresses #3177, make default Muon scaling when conducting MuP transfer behave as it should.
By default, Megatron scales Muon's matrix sign directions by $\sqrt{\max(\text{fan}\_{in}, \text{fan}\_{out})}$ (`spectral`). An alternate option is to use `unit_rms_norm`, or $\sqrt{\frac{\text{fan}... | diff --git a/megatron/core/optimizer/__init__.py b/megatron/core/optimizer/__init__.py
index 4e445dcc58e..7b46b969a5e 100644
--- a/megatron/core/optimizer/__init__.py
+++ b/megatron/core/optimizer/__init__.py
@@ -125,6 +125,8 @@ def get_mup_config_overrides(
- Non-Adam optimizers:
- hidden (matrix-like) lr ... | 3 | 3 | 2 | [{"id": "G0", "claim": "Leave the --muon-scale-mode default unchanged (spectral) and instead assert or warn when an incompatible scale mode is used with MuP, rather than changing the default and silently switching the mode under MuP.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced... | null |
NVIDIA__Megatron-LM__3748 | NVIDIA/Megatron-LM | 3,748 | defect | 8318b8093e7d49bce2529a29a14aeb50e5840ee0 | ef074b27b3a0aac024e9904fbd66b7ca8e506158 | Refactor VisionTECudaGraphHelper to minimize overrides and clarify state tracking | # What does this PR do ?
## Summary
This pull request refactors the CUDA Graph helper class hierarchy based on review feedback from #3293. Key improvements include:
1. **Barrier-free synchronization**: Replaced `torch.distributed.barrier()` with `torch.cuda.synchronize()` to eliminate deadlock risks
2. **Minimi... | diff --git a/megatron/core/transformer/cuda_graphs.py b/megatron/core/transformer/cuda_graphs.py
index c1f3c1cf8b9..80a91593014 100644
--- a/megatron/core/transformer/cuda_graphs.py
+++ b/megatron/core/transformer/cuda_graphs.py
@@ -1718,8 +1718,11 @@ def __init__(self, model, config, seq_length, micro_batch_size, opti... | 4 | 4 | 1 | [{"id": "G0", "claim": "By removing the vision helper's overrides, the inherited parent _start_capturing/_finish_capturing now call torch.distributed.barrier(), so with PP > 1 the helper could deadlock unless every rank calls create_cudagraphs() on it; the reviewer asks to note this new all-ranks contract in the class ... | null |
NVIDIA__Megatron-LM__3795 | NVIDIA/Megatron-LM | 3,795 | defect | f54403492e3c7fece062553ebd41ab91199331d9 | 84a48de40807961fa9d6a1e0a6007705d3558583 | [Main][feat] Support overlapping A2A Combine backprop with wgrad GEMM | # What does this PR do ?
<!-- Add a one line overview of what this PR aims to accomplish. -->
PR for dev: https://github.com/NVIDIA/Megatron-LM/pull/3766
### Problem
In MoE models, the expert weight gradient (wgrad) computation during backward is serialized on the main CUDA stream. This blocks the data gradient (... | diff --git a/megatron/core/distributed/fsdp/src/megatron_fsdp/megatron_fsdp.py b/megatron/core/distributed/fsdp/src/megatron_fsdp/megatron_fsdp.py
index 6987729ba8f..cbb8e7bd209 100644
--- a/megatron/core/distributed/fsdp/src/megatron_fsdp/megatron_fsdp.py
+++ b/megatron/core/distributed/fsdp/src/megatron_fsdp/megatron... | 3 | 2 | 1 | [{"id": "G0", "claim": "When moe_latent_size is set, backward_dw() launches fc2_latent_proj.backward_dw() on comm_stream, which the new delayed-wgrad event mechanism does not track, so the wait_event can proceed before the comm_stream work finishes and gradients can be incorrect; the reviewer asked to either assert moe... | null |
NVIDIA__Megatron-LM__3842 | NVIDIA/Megatron-LM | 3,842 | defect | d245c4438fb09f6b3b96e449400187c8b9063195 | 157a928ea33b2637aefacd26478dfe8213347d03 | Add activation logging and tokens per expert logging | Adding activation logging and tokens per expert logging,
activation logging can be enabled through --save-activations-interval,
tokens per expert logging can be enabled through --save-tokens-per-experts-interval,
when enabled, they will be dumped at checkpoint folder. tokens per expert will be logged in args.save/to... | diff --git a/megatron/training/activation_logging.py b/megatron/training/activation_logging.py
new file mode 100644
index 00000000000..745836cd458
--- /dev/null
+++ b/megatron/training/activation_logging.py
@@ -0,0 +1,245 @@
+# Copyright (c) 2026, NVIDIA CORPORATION. All rights reserved.
+
+"""Forward activation loggi... | 8 | 6 | 2 | [{"id": "G0", "claim": "Extracting the layer number from the module name with a regex would be more failsafe than splitting the name on dots.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "self._tpe_records should be a dictionary keyed by layer ... | null |
NVIDIA__Megatron-LM__3851 | NVIDIA/Megatron-LM | 3,851 | defect | b2504722dd2da83b954a9465e191ac8b425dfe63 | 38450072dcabf31262a8541f6f8402734daa7173 | Nemo-RL integration bugfixes for --transformer-impl inference_optimized | # What does this PR do ?
Fixing bugs we encountered during integration of mcore-inference with nemo-RL.
:warning: For major changes (either in lines of code or in its impact), please make sure to first share a design doc with the team. If you're unsure what's the best way to do so, contact the @mcore-oncall.
#... | diff --git a/megatron/core/inference/contexts/dynamic_context.py b/megatron/core/inference/contexts/dynamic_context.py
index 28559943481..02bf84c5a15 100644
--- a/megatron/core/inference/contexts/dynamic_context.py
+++ b/megatron/core/inference/contexts/dynamic_context.py
@@ -573,7 +573,6 @@ def __init__(self, model_co... | 2 | 1 | 0 | [{"id": "G0", "claim": "Remove the leftover \"# initialize symmetric memory if needed\" comment in dummy_forward, since the symmetric memory initialization code it described was removed (the bot's suggestion block deletes the line).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "in... | null |
NVIDIA__Megatron-LM__3877 | NVIDIA/Megatron-LM | 3,877 | defect | f8becec65f47982c80c3d397bef7c3fba65f9efc | fafaa0ca90b8dc55b3d08ec3bba7d48554b947c9 | Add RL token throughput and packing metrics | # What does this PR do ?
<!-- Add a one line overview of what this PR aims to accomplish. -->
:warning: For major changes (either in lines of code or in its impact), please make sure to first share a design doc with the team. If you're unsure what's the best way to do so, contact the @mcore-oncall.
## Contributi... | diff --git a/megatron/rl/rl_utils.py b/megatron/rl/rl_utils.py
index d68a0330989..5ff49ab5bd6 100644
--- a/megatron/rl/rl_utils.py
+++ b/megatron/rl/rl_utils.py
@@ -57,6 +57,10 @@
get_sequence_packing_tensorboard_metrics,
get_sequence_packing_log_info,
get_default_packed_seq_params,
+ get_packing_actu... | 12 | 10 | 4 | [{"id": "G0", "claim": "The derived throughput metrics do not need to be stored on the runtime state since they are calculated, put to state and logged immediately; just calculate them and log them.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The RL met... | null |
NVIDIA__Megatron-LM__3914 | NVIDIA/Megatron-LM | 3,914 | defect | a4888bca75b2ec4a057184f99b75c0554a0883d1 | 08d1a5765908370fd8fd29e2d8fbc7539d71f8fe | Hotfix for eviction issue | # What does this PR do ?
<!-- Add a one line overview of what this PR aims to accomplish. -->
:warning: For major changes (either in lines of code or in its impact), please make sure to first share a design doc with the team. If you're unsure what's the best way to do so, contact the @mcore-oncall.
## Contributi... | diff --git a/megatron/core/inference/engines/dynamic_engine.py b/megatron/core/inference/engines/dynamic_engine.py
index 16d725d082d..7684dc91246 100644
--- a/megatron/core/inference/engines/dynamic_engine.py
+++ b/megatron/core/inference/engines/dynamic_engine.py
@@ -1372,6 +1372,10 @@ def schedule_non_chunked_prefill... | 2 | 1 | 1 | [{"id": "G0", "claim": "The reviewer asks whether re-stamping kv_cache_epoch would make more sense at eviction time rather than upon resume, or whether doing it at eviction would defeat the purpose of kv_cache_epoch.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "c... | null |
NVIDIA__Megatron-LM__3927 | NVIDIA/Megatron-LM | 3,927 | defect | 5a00bd254c66b0a80997cee891c6b7b226910b04 | 8a025d38e76932124f4cddddd12e1c76dadf7961 | Add --muon-coefficient-type argument for Muon optimizer | Allow users to select the Newton-Schulz polynomial coefficient set (e.g. simple, quintic, polar_express, aol) via the new --muon-coefficient-type CLI flag. Supported types are discovered dynamically from the installed emerging_optimizers package so that upstream additions are picked up automatically without code change... | diff --git a/megatron/core/optimizer/muon.py b/megatron/core/optimizer/muon.py
index ae4a1a348fa..c2028c181aa 100644
--- a/megatron/core/optimizer/muon.py
+++ b/megatron/core/optimizer/muon.py
@@ -3,7 +3,7 @@
"""Megatron muon optimizer wrapper to handle tensor-parallel."""
import logging
-from typing import Any, Ca... | 3 | 2 | 2 | [{"id": "G0", "claim": "The pull request should check for certain versions of emerging_optimizers, since the API (e.g. use_nesterov renamed to nesterov) changed in the latest release.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "get_supported_coef... | null |
NVIDIA__Megatron-LM__3930 | NVIDIA/Megatron-LM | 3,930 | defect | 49be885b5293751b39c432a1078068ae0d8984f0 | 79cf6a7ec3ebe7415b908875e0e187fb8aac77ba | Improve load balancing behavior for prefix cache-aware routing | # What does this PR do ?
Improves the load balancing behavior for prefix cache-aware routing by prioritizing ranks with less load in the event of ties on the longest prefix match.
## Contribution process
### Pre-checks
- [ ] I have added relevant unit tests
- [ ] I have added relevant functional tests
- [ ]... | diff --git a/megatron/core/inference/data_parallel_inference_coordinator.py b/megatron/core/inference/data_parallel_inference_coordinator.py
index 5591942714f..2a544f88835 100644
--- a/megatron/core/inference/data_parallel_inference_coordinator.py
+++ b/megatron/core/inference/data_parallel_inference_coordinator.py
@@ ... | 5 | 4 | 2 | [{"id": "G0", "claim": "Prioritizing completely idle ranks ahead of the routing policy may be suboptimal and data-dependent; the reviewer does not agree a rank with a prefix match should lose to an idle rank and suggests scoring the load of each rank and possibly adding a flag.", "category": "design", "verdict": "suppo... | null |
NVIDIA__Megatron-LM__3993 | NVIDIA/Megatron-LM | 3,993 | defect | 197242e4ec975809a7df8c250bd8363df6fdaae5 | e65481941c8e1053aec6719a85c2c5a6ac7a293e | Guard non-core imports | # What does this PR do ?
This is necessary to be able to import `megatron.training` in Megatron-Bridge. Only `megatron.training` and `megatron.core` are included in the wheel, so they should not import from any other parts of the codebase (`megatron.rl`, `megatron.legacy`, etc).
:warning: For major changes (either ... | diff --git a/megatron/training/initialize.py b/megatron/training/initialize.py
index d4c7935d588..0047055c1dc 100644
--- a/megatron/training/initialize.py
+++ b/megatron/training/initialize.py
@@ -24,7 +24,6 @@
)
from megatron.core.transformer.custom_layers.batch_invariant_kernels import enable_batch_invariant_mode
... | 4 | 4 | 1 | [{"id": "G0", "claim": "The PR should not copy param_is_not_shared from legacy into megatron/training/utils.py but instead delete it from legacy and keep the single replica in megatron/core/transformer/module.py.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "... | null |
NVIDIA__Megatron-LM__4001 | NVIDIA/Megatron-LM | 4,001 | defect | 4dcd7d618c78fc09139701eb737e483a5843094f | d0899ae426978383afdbc60131c9c894347554d9 | base strategy simplification | # What does this PR do ?
Base strategy simplification. Getting rid of base's asbtract classes. Part of checkpointing simplification strategy.
:warning: For major changes (either in lines of code or in its impact), please make sure to first share a design doc with the team. If you're unsure what's the best way to do... | diff --git a/megatron/core/dist_checkpointing/exchange_utils.py b/megatron/core/dist_checkpointing/exchange_utils.py
index 79f906b237a..7c7863532f6 100644
--- a/megatron/core/dist_checkpointing/exchange_utils.py
+++ b/megatron/core/dist_checkpointing/exchange_utils.py
@@ -11,7 +11,6 @@
import numpy as np
import torch... | 6 | 3 | 1 | [{"id": "G0", "claim": "The unsupported-backend warning should also mention that the code falls back to `torch_dist` in that case.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "FullyParallelSaveStrategyWrapper should probably inherit from TorchDi... | null |
NVIDIA__Megatron-LM__4005 | NVIDIA/Megatron-LM | 4,005 | defect | 197242e4ec975809a7df8c250bd8363df6fdaae5 | ebe7b20f02e30f6d704619a4cf5faef3f5a83c95 | NVFP4 native weights for DDP | # What does this PR do ?
Add support for NVFP4 native (packed) weights in Megatron's Distributed Data Parallel (DDP) pipeline. This allows parameters to be stored, communicated, and gathered in NVFP4 format, reducing memory footprint and communication volume during training.
## Problem
Previously, NVFP4 quantizati... | diff --git a/megatron/core/distributed/distributed_data_parallel.py b/megatron/core/distributed/distributed_data_parallel.py
index dca0a8777dc..684e6a6b1bd 100644
--- a/megatron/core/distributed/distributed_data_parallel.py
+++ b/megatron/core/distributed/distributed_data_parallel.py
@@ -7,6 +7,7 @@
import torch
fr... | 19 | 13 | 3 | [{"id": "G0", "claim": "fp4_param_gather should be enabled by default whenever fp4 is enabled, or the separate argument may be unnecessary.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The two string literals of the fp4 fallback warning are concatenated ... | null |
NVIDIA__Megatron-LM__4019 | NVIDIA/Megatron-LM | 4,019 | defect | 34e1e97fb3961e5301acc5bdb0af76a22af73412 | 6a8ff0c43b025a249d2129aa62624fb24b68c52c | Add MimoOptimizer for heterogeneous parallelism | ## Summary
Replaces #3212 (closed when base branch `pull-request/3211` was deleted after #3211 merged).
Adds optimizer support for MIMO models where different modules (encoder, LLM) can have different DP/TP/PP configurations.
- **MimoOptimizer** class managing per-module MegatronOptimizer instances
- Global gradient ... | diff --git a/megatron/core/hyper_comm_grid.py b/megatron/core/hyper_comm_grid.py
index 9b5cc6cfaf5..4b860396c4e 100644
--- a/megatron/core/hyper_comm_grid.py
+++ b/megatron/core/hyper_comm_grid.py
@@ -262,3 +262,12 @@ def _order_dims(self, dims: Union[str, list[str]]) -> Tuple[list[str], str]:
unique_group_k... | 2 | 2 | 1 | [{"id": "G0", "claim": "found_inf is not synchronized across module/rank boundaries before the early return in step(), which can deadlock (encoder ranks skipping the all_reduce in get_grad_norm) and leave modules out of sync; request an all-reduce (MAX) of found_inf before the early return.", "category": "correctness",... | null |
NVIDIA__Megatron-LM__4057 | NVIDIA/Megatron-LM | 4,057 | defect | d863b7b80d8cc83e55453fe64b451704813d602e | 901dae2e0c04faed45fbfd6d32af1ae143e1ae22 | Enable NullTokenizer for pretraining to reduce I/O access | # What does this PR do ?
## Problem
During pretraining, Megatron-LM requires a tokenizer config even though data is already pretokenized. The tokenizer is only used for 3 integer values (vocab_size, eod, pad), yet every rank loads tokenizer files from the filesystem. At scale, this causes expensive redundant I/O on s... | diff --git a/docs/user-guide/features/tokenizers.md b/docs/user-guide/features/tokenizers.md
index bc1a47cec76..d836c59fd9a 100644
--- a/docs/user-guide/features/tokenizers.md
+++ b/docs/user-guide/features/tokenizers.md
@@ -146,7 +146,24 @@ tokenizer = MegatronTokenizer.from_pretrained(
### Null Tokenizer
-Use a ... | 2 | 1 | 0 | [{"id": "G0", "claim": "The unique_identifiers entry should use the int value directly (`\"vocab_size\": self._vocab_size`) instead of wrapping it in `str`, keeping the typing and making the code cleaner.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl... | null |
NVIDIA__Megatron-LM__4067 | NVIDIA/Megatron-LM | 4,067 | defect | a61ce5f6facef3ec1efc8636e4ce9d59386d5ef3 | 301d12e626ff9235bb60c60df70ce84cadadd970 | Add QK layernorm support for dot-product attention in MambaModel | ## Summary
- Adds config-driven QK norm support to `SelfAttention.__init__` so models with static specs (e.g. MambaModel) can enable QK layernorm via `--qk-layernorm` without modifying their specs
- Config selects the default norm class (`TENorm` or `L2Norm`); spec overrides if `q_layernorm`/`k_layernorm` are expli... | diff --git a/mamba_builders.py b/mamba_builders.py
index 650ea4a719f..a2df86b1779 100644
--- a/mamba_builders.py
+++ b/mamba_builders.py
@@ -6,7 +6,10 @@
from megatron.core.transformer.spec_utils import import_module
from megatron.training import print_rank_0
from megatron.training.arguments import core_transformer_... | 2 | 2 | 2 | [{"id": "G0", "claim": "The new QK-norm code paths (`_get_qk_layernorm` and the two `get_*` spec functions) are not exercised with a real config that has `qk_layernorm=True` or `qk_l2_norm=True`, since existing tests only use the backward-compatible constants passing `config=None`; a small parametrized unit test with e... | null |
NVIDIA__Megatron-LM__4073 | NVIDIA/Megatron-LM | 4,073 | defect | d0e0cf00a1ad468a40c9853a06fd93ee5c82690b | 548af5e64994fed84ebc8d0af7bbefca1929a0c1 | [Dev] Add permute/unpermute fusion with dispatch/combine in Hybrid-EP | # What does this PR do ?
This PR introduce the new feature: fuse the permute/unpermute with the dispatch/combine into 1 kernel
This feature is provided by the hybrid-ep
related PR in main: #4089
:warning: For major changes (either in lines of code or in its impact), please make sure to first share a design doc... | diff --git a/megatron/core/transformer/moe/fused_a2a.py b/megatron/core/transformer/moe/fused_a2a.py
index 39f50a4a670..a59fc432d47 100644
--- a/megatron/core/transformer/moe/fused_a2a.py
+++ b/megatron/core/transformer/moe/fused_a2a.py
@@ -344,6 +344,7 @@ def forward(
num_local_experts,
num_sms_dispa... | 4 | 4 | 1 | [{"id": "G0", "claim": "The config flag should be renamed to something like `moe_permute_fusion_into_hybridep` to indicate that the permute is fused/overlapped with the HybridEP communication.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new fused-... | null |
NVIDIA__Megatron-LM__4096 | NVIDIA/Megatron-LM | 4,096 | defect | 1284d25e1250247a24b0762ae783b2d77bb255b1 | 17d6010fa56d209d028eb3a87906304daa860b27 | Fix RL reward due to stop token | # What does this PR do ?
<!-- Add a one line overview of what this PR aims to accomplish. -->
:warning: For major changes (either in lines of code or in its impact), please make sure to first share a design doc with the team. If you're unsure what's the best way to do so, contact the @mcore-oncall.
## Contributi... | diff --git a/examples/rl/environments/countdown/countdown_agent.py b/examples/rl/environments/countdown/countdown_agent.py
index e14ac6c6d7ef..f1d85b15cb83 100644
--- a/examples/rl/environments/countdown/countdown_agent.py
+++ b/examples/rl/environments/countdown/countdown_agent.py
@@ -40,5 +40,5 @@ async def get_promp... | 4 | 2 | 1 | [{"id": "G0", "claim": "The '# NOTE: finish_reason is intentionally unused.' comment added to CountdownAgent.get_reward is confusing and only makes things more mysterious for a future developer, so it should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {... | null |
NVIDIA__Megatron-LM__4119 | NVIDIA/Megatron-LM | 4,119 | defect | dcc6d62103c8cab5f41e7e1d23d2a43361001282 | fd91d5283aabb5e1b7008ff3d0cad6f15823c744 | Add more emerging optimizers (#3907) | # What does this PR do ?
Add #3907 to main.
:warning: For major changes (either in lines of code or in its impact), please make sure to first share a design doc with the team. If you're unsure what's the best way to do so, contact the @mcore-oncall.
## Contribution process
### Pre-checks
- [ ] I have added... | diff --git a/megatron/core/optimizer/emerging_optimizers.py b/megatron/core/optimizer/emerging_optimizers.py
index 5500ef2966f..42120259b17 100644
--- a/megatron/core/optimizer/emerging_optimizers.py
+++ b/megatron/core/optimizer/emerging_optimizers.py
@@ -24,18 +24,21 @@
try:
from emerging_optimizers import regi... | 1 | 1 | 0 | [{"id": "G0", "claim": "Extend the TensorParallelAdaptiveMuon docstring to briefly describe what Adaptive Muon is and how it differs from Muon.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
NVIDIA__Megatron-LM__4144 | NVIDIA/Megatron-LM | 4,144 | defect | 10e7b74597b47a57449599bf2780bd9e82ef79ff | b1188f056838ac6747dc59310a31bab37bfbb3f6 | Fix build_sequences_per_dataset output path arg usage | ## Summary
Fixes a CLI argument mismatch in `build_sequences_per_dataset.py` that caused a runtime `AttributeError` when writing the output JSON.
## Problem
The script defines:
- `--per-dataset-sequences-path` (parsed as `args.per_dataset_sequences_path`)
But later used a non-existent attribute:
- `args.path_... | diff --git a/tools/build_sequences_per_dataset.py b/tools/build_sequences_per_dataset.py
index e2787dd6434..9213a0e1f53 100644
--- a/tools/build_sequences_per_dataset.py
+++ b/tools/build_sequences_per_dataset.py
@@ -104,14 +104,14 @@ def build_sequences_per_dataset(args):
'`--(train|valid|test)... | 1 | 1 | 1 | [{"id": "G0", "claim": "The same stale attribute usage fixed in build_sequences_per_dataset.py should also be fixed in tests/unit_tests/data/test_builder.py.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
NVIDIA__Megatron-LM__4184 | NVIDIA/Megatron-LM | 4,184 | defect | eba2eaf71d34274c1ca0a59ac5e57a6bf53eb732 | 8d51177bc2bf59775a756a9467ff12706cf894c4 | Fix nvtx_decorator to check _nvtx_enabled at call time | # What does this PR do ?
nvtx_decorator previously checked _nvtx_enabled at decoration time (module import), but configure_nvtx_profiling(True) runs later during initialization. This meant @nvtx_decorator() was always a no-op for any module imported before init completes.
Move the _nvtx_enabled check into the wrapp... | diff --git a/megatron/core/utils.py b/megatron/core/utils.py
index 3c10154666f..fc6026e4bd3 100644
--- a/megatron/core/utils.py
+++ b/megatron/core/utils.py
@@ -52,13 +52,6 @@
except ImportError:
HAVE_PACKAGING = False
-try:
- import nvtx
-
- HAVE_NVTX = True
-except ImportError:
- HAVE_NVTX = False
-
... | 3 | 3 | 1 | [{"id": "G0", "claim": "The wrapper need not check `_nvtx_enabled` itself because `nvtx_range_push`/`nvtx_range_pop` already check the flag internally, so the check in the decorator is redundant.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Si... | null |
NVIDIA__Megatron-LM__4190 | NVIDIA/Megatron-LM | 4,190 | defect | 2d6e946bab81eb00be14b6ca6138f4eb9cbb5d5f | c14cbee28746a9629631ba3a1de8a3174ae29e9c | [dev] fix: Support mHC with cuda graph and activation offloading | # What does this PR do ?
<!-- Add a one line overview of what this PR aims to accomplish. -->
:warning: For major changes (either in lines of code or in its impact), please make sure to first share a design doc with the team. If you're unsure what's the best way to do so, contact the @mcore-oncall.
## Contributi... | diff --git a/megatron/core/transformer/transformer_layer.py b/megatron/core/transformer/transformer_layer.py
index 2619bcd1338c..1548ab61c95b 100644
--- a/megatron/core/transformer/transformer_layer.py
+++ b/megatron/core/transformer/transformer_layer.py
@@ -1519,7 +1519,11 @@ def _get_submodules_under_cudagraphs(self)... | 5 | 5 | 3 | [{"id": "G0", "claim": "The new _te_cuda_graph_replay override bypasses the parent's delay_offload_until_cuda_graph lifecycle (enter_replay/exit_replay/flush_delayed_groups), so if that option is ever enabled alongside hyper connections the offload lifecycle would be silently skipped; the PR should override _te_cuda_gr... | null |
NVIDIA__Megatron-LM__4219 | NVIDIA/Megatron-LM | 4,219 | defect | 06ecac391efedabba553b9c50f051b2e815bda6c | 2f67f4631bbd7931617274c43d816205bff0e317 | Enabled fused grouped MLP for `quick_gelu` and add config for grouped params | # What does this PR do ?
<!-- Add a one line overview of what this PR aims to accomplish. -->
- Add configurable arguments for `single_grouped_weight` and `single_grouped_bias`.
- Enable `GroupedMLP` fused path via TE when activation is Quick GeGLU.
## Contribution process
### Pre-checks
- [ ] I have adde... | diff --git a/megatron/core/extensions/transformer_engine.py b/megatron/core/extensions/transformer_engine.py
index e06b75fe28a..31d1fbb691d 100644
--- a/megatron/core/extensions/transformer_engine.py
+++ b/megatron/core/extensions/transformer_engine.py
@@ -1772,6 +1772,8 @@ def __init__(
return_bias=se... | 1 | 1 | 1 | [{"id": "G0", "claim": "Unconditionally passing `single_grouped_weight` and `single_grouped_bias` kwargs into the TE GroupedLinear super().__init__ call may cause an error on TE versions whose GroupedLinear.__init__ signature does not accept them; gate both behind `is_te_min_version(\"2.14.0\")` and pass them via `**ex... | null |
NVIDIA__Megatron-LM__4227 | NVIDIA/Megatron-LM | 4,227 | defect | 97aca2f8878f9a59ed506981d5495da32d7a4ba3 | 9df24b65ab5763882dc5af13c27bc68182288af9 | [training migration] Add container class for config dataclasses | # What does this PR do ?
Create a container class for the config dataclasses to hold all config settings and pass to appropriate functions. Initialize it in pretrain scripts.
This is meant to replace the global args.
:warning: For major changes (either in lines of code or in its impact), please make sure to first ... | diff --git a/megatron/training/argument_utils.py b/megatron/training/argument_utils.py
index b9f7c7b22d1..c5f4493ec17 100644
--- a/megatron/training/argument_utils.py
+++ b/megatron/training/argument_utils.py
@@ -1,10 +1,11 @@
# Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
+from _typeshed import Data... | 5 | 5 | 3 | [{"id": "G0", "claim": "The runtime import of the type-stub-only `_typeshed` package will raise ModuleNotFoundError whenever argument_utils.py is imported in a training environment without mypy, so guard it behind TYPE_CHECKING or drop it and use `Any`.", "category": "correctness", "verdict": "supported", "priority": "... | null |
NVIDIA__Megatron-LM__4301 | NVIDIA/Megatron-LM | 4,301 | defect | 123645bb7812525515d6a70b22da0f6e184f0f0a | 1a61c2dc5ee1bb0e0c6f66d1dbd8cba68a974014 | Inference | Per-block MoE routing storage for prefix caching | ## Summary
- Convert MoE routing indices from GPU tensors to CPU numpy arrays after the forward pass, reducing GPU memory pressure at long sequences
- Add per-block routing storage on `KVBlockAllocator` so routing indices are scattered into KV cache blocks and reconstructed at request completion — prefix-cached blocks ... | diff --git a/megatron/core/inference/contexts/kv_block_allocator.py b/megatron/core/inference/contexts/kv_block_allocator.py
index 87039835c7f..3057b45f685 100644
--- a/megatron/core/inference/contexts/kv_block_allocator.py
+++ b/megatron/core/inference/contexts/kv_block_allocator.py
@@ -3,6 +3,7 @@
from collections i... | 3 | 3 | 1 | [{"id": "G0", "claim": "The per-request-to-flat conversion in store_routing_per_block is the reverse of the flat-to-per-request conversion in router_record_bookkeeping; router_record_bookkeeping could simply return the per-token map and simplify things.", "category": "design", "verdict": "supported", "priority": "P2", ... | null |
NVIDIA__Megatron-LM__4318 | NVIDIA/Megatron-LM | 4,318 | defect | a2e673fed74b6f571d398491b2105deb7cfafc82 | 77bbe7d9e94630da08349719eafb9ba07de14c33 | Add TEFusedDenseMLP for Dense+Grouped GEMM fusion on SM100+ | # What does this PR do ?
TEFusedDenseMLP class addition to ensure that dense GEMM is achieved from groupedGEMM with group=1
:warning: For major changes (either in lines of code or in its impact), please make sure to first share a design doc with the team. If you're unsure what's the best way to do so, contact the @mc... | diff --git a/gpt_builders.py b/gpt_builders.py
index b273f3c12aa..4f3f983bc5c 100644
--- a/gpt_builders.py
+++ b/gpt_builders.py
@@ -145,6 +145,7 @@ def _get_transformer_layer_spec(use_te, config):
fallback_to_eager_attn=config.fallback_to_eager_attn,
enable_hyper_connection=config.enable_hype... | 6 | 5 | 5 | [{"id": "G0", "claim": "The TEFusedDenseMLP.__init__ validation should read the activation function from self.config.activation_func instead of self.activation_func (as done in PR #4325).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A Transformer ... | null |
NVIDIA__Megatron-LM__4319 | NVIDIA/Megatron-LM | 4,319 | defect | ded22f42849e679dd65c1fba832951d7c712a3c7 | 11c6fed3f55746416d2e4337f30875cb4a6de406 | SafeUnpickler class for safe pickle usage | # What does this PR do ?
Introduces `SafeUnpickler` class which has defined set of "safe" classes to load. Prevents loading vulnerable data and makes `pickle` ussage safer.
:warning: For major changes (either in lines of code or in its impact), please make sure to first share a design doc with the team. If you're u... | diff --git a/megatron/core/extensions/transformer_engine.py b/megatron/core/extensions/transformer_engine.py
index 419c85b404d..869e0099fce 100644
--- a/megatron/core/extensions/transformer_engine.py
+++ b/megatron/core/extensions/transformer_engine.py
@@ -1924,11 +1924,13 @@ def _encode_extra_state(self, state):
... | 1 | 1 | 1 | [{"id": "G0", "claim": "SafeUnpickler is security-critical but has no unit tests, so tests should be added to tests/unit_tests/dist_checkpointing/test_safe_globals.py verifying both that allowed types load successfully and that disallowed types raise pickle.UnpicklingError.", "category": "testing", "verdict": "supporte... | null |
NVIDIA__Megatron-LM__4328 | NVIDIA/Megatron-LM | 4,328 | defect | 1d344ae7fec596a021a4dd586ac5e9cb4b1e1e4e | 2f2f709f602cc79a06a4fc605cf7922211a5c404 | Make param_index_map always use unpacked (full numel) offsets | For NVFP4 buffers, param_index_map previously stored packed offsets (numel // 2). This was inconsistent with non-NVFP4 buffers and required callers to use get_unpacked_index_map() to get full-numel offsets.
Now param_index_map always stores unpacked offsets regardless of buffer type. The packed offsets are stored in... | diff --git a/megatron/core/distributed/param_and_grad_buffer.py b/megatron/core/distributed/param_and_grad_buffer.py
index 33eb335c1fa1..d12525767308 100644
--- a/megatron/core/distributed/param_and_grad_buffer.py
+++ b/megatron/core/distributed/param_and_grad_buffer.py
@@ -915,14 +915,16 @@ def _does_param_require_new... | 8 | 5 | 0 | [{"id": "G0", "claim": "The author noted that this line in distrib_optimizer.py (previously using packed indices) may need to use unpacked indices and should be checked with Qiyu.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The variable/parameter... | null |
NVIDIA__Megatron-LM__4420 | NVIDIA/Megatron-LM | 4,420 | defect | 7597a0d61ae6008beb5f23944999be4d302b8e80 | eb2b9ea19fa29dd6635abb7a2dad315ac14fe591 | fix: NVRx async compatibility and defer resiliency import | # What does this PR do ?
This PR tightens Megatron’s NVRx async checkpoint integration and removes
unnecessary resiliency dependencies from non-NVRx paths.
Summary:
- require the NVRx async checkpointing symbols Megatron actually depends on
- remove the local MCore fallback for CachedMetadataFileSystem... | diff --git a/megatron/core/dist_checkpointing/serialization.py b/megatron/core/dist_checkpointing/serialization.py
index 2ee7970f143..93d04e54c06 100644
--- a/megatron/core/dist_checkpointing/serialization.py
+++ b/megatron/core/dist_checkpointing/serialization.py
@@ -139,7 +139,12 @@ def load(
ckpt_sharded_me... | 3 | 1 | 0 | [{"id": "G0", "claim": "get_save_and_finalize_callbacks should default async_strategy to \"mcore\" like every other default in this PR, since a future caller relying on the default would silently get the nvrx path, which may fail if nvidia-resiliency-ext is not installed.", "category": "correctness", "verdict": "uncert... | null |
NVIDIA__Megatron-LM__4425 | NVIDIA/Megatron-LM | 4,425 | defect | afae25b5f0c04ae747d9d48e855bb7df2221ce52 | f5fca4659375052a991b75d756fff7f17850f5b5 | Add misc CUDA graph sugar to CudaGraphManager | # What does this PR do ?
<!-- Add a one line overview of what this PR aims to accomplish. -->
:warning: For major changes (either in lines of code or in its impact), please make sure to first share a design doc with the team. If you're unsure what's the best way to do so, contact the @mcore-oncall.
## Contributi... | diff --git a/megatron/core/transformer/cuda_graphs.py b/megatron/core/transformer/cuda_graphs.py
index 067f6055015b..d88a4ed540e7 100644
--- a/megatron/core/transformer/cuda_graphs.py
+++ b/megatron/core/transformer/cuda_graphs.py
@@ -575,18 +575,21 @@ def forward(ctx, runner, is_first_microbatch, *inputs):
... | 4 | 3 | 1 | [{"id": "G0", "claim": "For the full_iteration_inference scope the single-element tuple extraction is currently done inside the block level modules and should be removed from there.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The newly added inferen... | null |
NVIDIA__Megatron-LM__4448 | NVIDIA/Megatron-LM | 4,448 | defect | a52014ca000b52ea5772033e9639650896003415 | 2b540389bd6983e44ed65df2a6a0c538218951eb | Fix checkpoint loading with rerun state machine | # What does this PR do ?
Fix silent checkpoint corruption when `--ckpt-assume-constant-structure` is combined with the rerun state machine. `RerunStateMachine.state_dict()` now always emits the `rerun_state_machine_state` `ShardedObject` (with a sentinel payload in the steady state), so the cached `SavePlan` stays val... | diff --git a/megatron/core/rerun_state_machine.py b/megatron/core/rerun_state_machine.py
index 77a973401d5..1e18f0ed106 100644
--- a/megatron/core/rerun_state_machine.py
+++ b/megatron/core/rerun_state_machine.py
@@ -774,8 +774,13 @@ def state_dict(
data_iterator: the data iterator that needs to be checkpo... | 2 | 1 | 0 | [{"id": "G0", "claim": "Fix the comment typo in megatron/core/rerun_state_machine.py: change \"This is keep the\" to \"This keeps the\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "This change will break resuming older Megatron checkpoints (whi... | null |
NVIDIA__NVFlare__1184 | NVIDIA/NVFlare | 1,184 | defect | 62ac8c6bbfa0f1f2eb18a8996608a0b72e7ab756 | 880d0649cc268342b7d09376f8bdd06e1cc3f0e9 | Scheduler enhancement | Enhance the job scheduler with failed attempt slowdown and blocked jobs if more than maximum attempts. Added the scheduled attempt history information in the job meta. | diff --git a/nvflare/apis/event_type.py b/nvflare/apis/event_type.py
index 1d9a1342cf..03de482176 100644
--- a/nvflare/apis/event_type.py
+++ b/nvflare/apis/event_type.py
@@ -57,3 +57,9 @@ class EventType(object):
DEBUG_LOG_AVAILABLE = "_debug_log_available"
PRE_RUN_RESULT_AVAILABLE = "_pre_run_result_avail... | 2 | 2 | 1 | [{"id": "G0", "claim": "The user-facing RunStatus string should be changed from \"FINISHED:CANT_SCHEDULE\" to \"FINISHED:CAN_NOT_SCHEDULE\".", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request includes no unit tests covering the cases the sch... | null |
NVIDIA__NVFlare__2091 | NVIDIA/NVFlare | 2,091 | defect | 925a206eed14602419aa622b4e9025bf09900662 | fa38395b0fdee94b599b958b7a079888e8f8314b | Buffer List Support | ### Description
1. Added buffer list support in F3 and LOBS to reduce memory usage.
2. Added stats for streaming.
3. Changed connection wait timer to an event so it can be interrupt right away.
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not applicable items -->
- [x] Non... | diff --git a/nvflare/fuel/f3/cellnet/core_cell.py b/nvflare/fuel/f3/cellnet/core_cell.py
index 6dc14f7781d..48a413b5c18 100644
--- a/nvflare/fuel/f3/cellnet/core_cell.py
+++ b/nvflare/fuel/f3/cellnet/core_cell.py
@@ -460,7 +460,7 @@ def __init__(
)
self.sent_msg_size_pool = StatsPoolManager.add_msg_... | 4 | 1 | 1 | [{"id": "G0", "claim": "self.size is not updated when a buffer is appended, so get_size() and flatten() can return a stale size once buf_list has grown after construction.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "Flattening a list payload in C... | null |
NVIDIA__NVFlare__2128 | NVIDIA/NVFlare | 2,128 | defect | 6dbac1bf9972dc5fc1320ab926df1baa1cba1142 | 4f40645e453bb7018080fa8ca110b02fde736c83 | Job CLI Upgrade to support path notation | ### Description
1. expand the function to allow key in path format ( dot notation)
2. add new section on JOB CLI tutorial
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not applicable items -->
- [x] Non-breaking change (fix or new feature that would not break existing funct... | diff --git a/examples/tutorials/job_cli.ipynb b/examples/tutorials/job_cli.ipynb
index 694b3a1337..ae48b509d8 100644
--- a/examples/tutorials/job_cli.ipynb
+++ b/examples/tutorials/job_cli.ipynb
@@ -806,6 +806,8 @@
"\n",
"* Deploy different code pieces to different sites \n",
" You don't need to deploy ... | 2 | 1 | 1 | [{"id": "G0", "claim": "Two CLI keys sharing the same last segment (e.g. args.model.length and args.length) end up in one key_indices entry keyed by that segment, so the on-screen display shows only the last value (the written file itself is still correct).", "category": "correctness", "verdict": "opposed", "priority":... | null |
NVIDIA__NVFlare__2339 | NVIDIA/NVFlare | 2,339 | defect | 186f186d6ee22815075caf610da758d7208eb1b8 | f23d0b28bbfacc07270627cb7d022a30a4a15848 | Enable simulator to run HE | Fixes # .
### Description
Added the SecurityContentService.initialize() to enable simulator to run HE.
Usage:
- Use the provision tool to generate the server and client tenseal files.
- Place the tenseal files into the "startup" sub-folder in the simulator workspace.
### Types of changes
<!--- Put an ... | diff --git a/nvflare/private/fed/app/simulator/simulator_runner.py b/nvflare/private/fed/app/simulator/simulator_runner.py
index b6a84c4516..80e3bc1bae 100644
--- a/nvflare/private/fed/app/simulator/simulator_runner.py
+++ b/nvflare/private/fed/app/simulator/simulator_runner.py
@@ -46,6 +46,7 @@
from nvflare.fuel.f3.s... | 2 | 1 | 0 | [{"id": "G0", "claim": "The startup/security setup code added to simulator_worker.py is identical to the block added to simulator_runner.py, so a common function should be created and shared by both.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":... | null |
NVIDIA__NVFlare__2452 | NVIDIA/NVFlare | 2,452 | defect | d5d23db4d1f546dd5e4bffb4190a022f8b5ad607 | 6764a594fbab2d78b557de2191d0ac0fdc75e3be | [2.4] Improve reliable message | Fixes # .
### Description
This PR improves the ReliableMessage (RM) mechanism:
- Automatically enable RM so that user won't need to manually configure
- No need to set sender_id in XGB Executor configuration
- Added detailed log messages for tracing/debugging RM process
### Types of changes
<!--- Put an ... | diff --git a/nvflare/apis/fl_constant.py b/nvflare/apis/fl_constant.py
index 0c491ac338..07af9cf394 100644
--- a/nvflare/apis/fl_constant.py
+++ b/nvflare/apis/fl_constant.py
@@ -454,6 +454,15 @@ class ConfigVarName:
# client: timeout for submitTaskResult requests
SUBMIT_TASK_RESULT_TIMEOUT = "submit_task_res... | 4 | 4 | 1 | [{"id": "G0", "claim": "req_timeout in the XGB adaptors and msg_timeout in reliable_message appear to be the same thing, so if so the pull request should use the same name for both.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new config c... | null |
NVIDIA__NVFlare__2533 | NVIDIA/NVFlare | 2,533 | defect | 724140e7dc9081eca7a912a818817f89aadfef5d | 35020320749e40340d039e3a53eebc230aed69d3 | Fixed the simulator server workspace root dir | Fixes # .
### Description
Fixed the simulator server workspace root dir error.
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not applicable items -->
- [x] Non-breaking change (fix or new feature that would not break existing functionality).
- [ ] Breaking change (fix o... | diff --git a/nvflare/private/fed/app/simulator/simulator_runner.py b/nvflare/private/fed/app/simulator/simulator_runner.py
index 55ed138376..1d7057c295 100644
--- a/nvflare/private/fed/app/simulator/simulator_runner.py
+++ b/nvflare/private/fed/app/simulator/simulator_runner.py
@@ -468,7 +468,7 @@ def client_run(self, ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The workspace-root change in start_server_app has no associated unit tests and may break existing tests.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
NVIDIA__NVFlare__2536 | NVIDIA/NVFlare | 2,536 | defect | 724140e7dc9081eca7a912a818817f89aadfef5d | b1a0e024f5aaf9bc7b0b05ff5fdf8b4923ffdaf6 | Improve InProcessClientAPIExecutor | ### Description
Prob 1:
Current InProcessClientAPIExecutor requires user must have a main() function defined. The executor call main() to execute the training function. Although this is not major restrictions, but does require user to define the training script to a function, and function must be called "main()"
... | diff --git a/nvflare/app_common/executors/exec_task_fn_wrapper.py b/nvflare/app_common/executors/exec_task_fn_wrapper.py
index a197513788..c7103b661b 100644
--- a/nvflare/app_common/executors/exec_task_fn_wrapper.py
+++ b/nvflare/app_common/executors/exec_task_fn_wrapper.py
@@ -11,69 +11,67 @@
# WITHOUT WARRANTIES OR ... | 2 | 2 | 0 | [{"id": "G0", "claim": "The hardcoded result_check_interval=0.5 passed to InProcessClientAPI should be configurable.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The filenames exec_task_fn_wrapper.py and its test file should be renamed to reflect the n... | null |
NVIDIA__NVFlare__2558 | NVIDIA/NVFlare | 2,558 | defect | 1ea74d7728118221cecc5b7dc61775a5c7546a75 | 3457535ee8760c2fd40224b9f6c9b34290245c22 | BugFix: InProcessClientAPIExecutor's TaskScriptRunner |
### Description
1) find script full path need to use site_name to indicate which site script to avoid loading incorrect run script
2) make sure the task script failed will cause the client to return failure status to server, which will trigger job stop rather wait forever
3) add different unit tests
##... | diff --git a/examples/advanced/experiment-tracking/mlflow/jobs/hello-pt-mlflow/app/config/config_fed_server.conf b/examples/advanced/experiment-tracking/mlflow/jobs/hello-pt-mlflow/app/config/config_fed_server.conf
index 9bc187c8ab1..5b0f694a6af 100644
--- a/examples/advanced/experiment-tracking/mlflow/jobs/hello-pt-ml... | 7 | 4 | 1 | [{"id": "G0", "claim": "Implementing whole helper classes just for the unit test seems over-complicated; using mock objects would probably be a better approach.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new helper files belong to one test... | null |
NVIDIA__NVFlare__2564 | NVIDIA/NVFlare | 2,564 | defect | 17966af44be1946ccc0a539012f7dcd4ad8b686b | dafcbf878af5d3d7fc11b9c609c8c30866a77ab5 | [2.4] Fix get_target_names | correctly add Client.name to target_names
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not applicable items -->
- [x] Non-breaking change (fix or new feature that would not break existing functionality).
- [ ] Breaking change (fix or new feature that would cause existing funct... | diff --git a/nvflare/private/fed/utils/fed_utils.py b/nvflare/private/fed/utils/fed_utils.py
index 7bb43be35a..3867e64261 100644
--- a/nvflare/private/fed/utils/fed_utils.py
+++ b/nvflare/private/fed/utils/fed_utils.py
@@ -313,7 +313,7 @@ def get_target_names(targets):
continue
if name not in ta... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a small unit test for the get_target_names method.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
NVIDIA__NVFlare__2606 | NVIDIA/NVFlare | 2,606 | defect | 3e20b1434a2f133e7db01ef1695262a2921845e4 | 735a654d64ca4a87b729e880656c01f3910beba1 | Added target validation for job API | Fixes # .
### Description
- Added target validation for job API, also added the unit test.
1. must provide a target name
2. target name can not use special character
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not applicable items -->
- [x] Non-breaking change... | diff --git a/nvflare/job_config/fed_job.py b/nvflare/job_config/fed_job.py
index ac657bc99c..c95354636d 100644
--- a/nvflare/job_config/fed_job.py
+++ b/nvflare/job_config/fed_job.py
@@ -43,6 +43,8 @@
if torch_ok and tb_ok:
from nvflare.app_opt.tracking.tb.tb_receiver import TBAnalyticsReceiver
+SPECIAL_CHARACT... | 2 | 1 | 1 | [{"id": "G0", "claim": "The new test should also cover the target=None case, i.e. that FedJob.to raises when the target is None.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Target names containing '@' (e.g. 'hospital_site_1@general_hospital.com', by ... | null |
NVIDIA__NVFlare__2607 | NVIDIA/NVFlare | 2,607 | defect | 3e20b1434a2f133e7db01ef1695262a2921845e4 | 04615f9c970cf193b19a0bc024514230b9d02b32 | Job CLI bugs fix | Fixes # .
this PR fixes two bugs:
1) avoid use job folder to be the sub_dir or same dir of the source code directory
2) make sure the pyhocon path string need to quote for special character handling reported in https://github.com/NVIDIA/NVFlare/issues/2602
### Types of changes
<!--- Put an `x` in all the b... | diff --git a/nvflare/tool/job/job_cli.py b/nvflare/tool/job/job_cli.py
index ceab31fe58..c4cb4c1b5c 100644
--- a/nvflare/tool/job/job_cli.py
+++ b/nvflare/tool/job/job_cli.py
@@ -134,7 +134,7 @@ def create_job(cmd_args):
job_folder = cmd_args.job_folder
prepare_job_folder(cmd_args)
app_custom... | 1 | 1 | 0 | [{"id": "G0", "claim": "The error message should read \"job_folder must not be the same or sub directory of script_dir\" instead of the ungrammatical \"must not the same\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
NVIDIA__NVFlare__2626 | NVIDIA/NVFlare | 2,626 | defect | 265c21cd8728c00ad8d745ad6422f101b4bd0e7e | bf357ea0dda0c6cb4980bbdc9dff908d2c201aad | fixed TaskScriptRunner which may locate the wrong script | Fixes # .
### Description
Fixed several issues with the TaskScriptRunner:
- Instead of using the site_name for searching the script on the site, change to use the custom_dir from the site workspace.
- searching the script under the custom_dir, instead of the os.getcwd(), otherwise it may locate the script fro... | diff --git a/nvflare/app_common/executors/in_process_client_api_executor.py b/nvflare/app_common/executors/in_process_client_api_executor.py
index 15049e4177..16c78ad8fc 100644
--- a/nvflare/app_common/executors/in_process_client_api_executor.py
+++ b/nvflare/app_common/executors/in_process_client_api_executor.py
@@ -1... | 1 | 1 | 1 | [{"id": "G0", "claim": "There is no test case covering custom_dir being None and script_dir being None.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
NVIDIA__NVFlare__2648 | NVIDIA/NVFlare | 2,648 | defect | 3d1a509fc2d8b3127984f022d4a909f5443b542c | 10d7b43d03c01805bf9a70b4beef285bddb0e62c | FedAvg Early Stopping with ModelController | - FedAvg with early stopping, model selection, custom save/load using ModelController
- example with PTFedAvgEarlyStopping with Job API
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not applicable items -->
- [x] Non-breaking change (fix or new feature that would not break exis... | diff --git a/nvflare/app_common/utils/math_utils.py b/nvflare/app_common/utils/math_utils.py
new file mode 100644
index 00000000000..180ab0f681a
--- /dev/null
+++ b/nvflare/app_common/utils/math_utils.py
@@ -0,0 +1,56 @@
+# Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
+#
+# Licensed under the Apache Li... | 3 | 3 | 2 | [{"id": "G0", "claim": "The PR should also add save_model() to show that one can save a model without a persistor defined.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "An example (with a Readme) showing how this workflow is used should be added ... | null |
NVIDIA__NVFlare__2718 | NVIDIA/NVFlare | 2,718 | defect | a276dc032237427fd8141afaccf8e2364425e6c0 | 756df8e282f08c663f831b86ba03972b0500866d | Add FedJobAPI documentation | - Add FedJobAPI docs
- Clarify and add some docstrings
- Checks for target type for Controller and Executor
- Add misc 2.5.0 updates
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not applicable items -->
- [x] Non-breaking change (fix or new feature that would not break exis... | diff --git a/docs/getting_started.rst b/docs/getting_started.rst
index cee26e8f9e..898ca09cf8 100644
--- a/docs/getting_started.rst
+++ b/docs/getting_started.rst
@@ -175,6 +175,10 @@ Using any text editor to edit the Dockerfile and paste the following:
.. literalinclude:: resources/Dockerfile
:language: dockerfi... | 6 | 4 | 1 | [{"id": "G0", "claim": "The reviewer questions whether the added note telling users to set PYTORCH_IMAGE for nvflare 2.3 is needed at all and whether it would have to be repeated for every future version.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "clai... | null |
NVIDIA__NVFlare__2793 | NVIDIA/NVFlare | 2,793 | defect | 73b75c92fbed6ae3cfcc4dfb39ce450cda12544d | 331b8c4c3a84b51897e2cb693fece8de6ff58019 | Pre-trained Model and training_mode changes |
### Description
1. Added support for pre-trained model in XGBoost. The model must reside in custom/model.json.
2. Changed training_mode to split_mode and secure_training to align with XGBoost parameters.
3. Merged changes made to main and changed all the examples to use split_mode.
### Types of changes
<!---... | diff --git a/examples/advanced/vertical_xgboost/code/vertical_xgb/vertical_data_loader.py b/examples/advanced/vertical_xgboost/code/vertical_xgb/vertical_data_loader.py
index 096d428d2d..246824d819 100644
--- a/examples/advanced/vertical_xgboost/code/vertical_xgb/vertical_data_loader.py
+++ b/examples/advanced/vertical... | 6 | 4 | 3 | [{"id": "G0", "claim": "The changes to nvflare/app_opt/xgboost/tree_based/executor.py should be reverted because that file uses training_mode to differentiate cyclic vs bagging, not the new split_mode/secure_training split.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id":... | null |
NVIDIA__NVFlare__3062 | NVIDIA/NVFlare | 3,062 | defect | 773f7f515244eba00be9a8719cbb3481d4217d1c | cf0bbfb12d076b646df31b0732b082e858d66f17 | [2.5] Support one-way SSL | Fixes # .
### Description
So far, FL clients and the FL Server must connect via mTLS (i.e. two-way SSL). Customers have been asking for the support of one-way SSL between FL clients and the FL Server. This PR adds this support to Flare 2.5.
When provisioning a project, the Project Admin can now specify "connec... | diff --git a/nvflare/apis/fl_constant.py b/nvflare/apis/fl_constant.py
index b955b4435e..1d60b5fc25 100644
--- a/nvflare/apis/fl_constant.py
+++ b/nvflare/apis/fl_constant.py
@@ -411,6 +411,7 @@ class SecureTrainConst:
SSL_ROOT_CERT = "ssl_root_cert"
SSL_CERT = "ssl_cert"
PRIVATE_KEY = "ssl_private_key"
... | 3 | 1 | 0 | [{"id": "G0", "claim": "The ssl_required argument passed to add_connector should be renamed to ssl_mode.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The duplicated params[\"conn_sec\"] assignments should have their keys/values defined as constants becau... | null |
NVIDIA__NVFlare__3076 | NVIDIA/NVFlare | 3,076 | defect | e55c523612fa9cab56e448d72520254305cd7573 | 1c15ae218a906c60109c37ac5929f6d59792e016 | Add Simulator SP Aux message support | Fixes # .
### Description
Added Simulator SP Aux message support.
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not applicable items -->
- [x] Non-breaking change (fix or new feature that would not break existing functionality).
- [ ] Breaking change (fix or new feature t... | diff --git a/nvflare/private/fed/simulator/simulator_server.py b/nvflare/private/fed/simulator/simulator_server.py
index ff0c3de389..43512feae6 100644
--- a/nvflare/private/fed/simulator/simulator_server.py
+++ b/nvflare/private/fed/simulator/simulator_server.py
@@ -18,6 +18,7 @@
from nvflare.apis.fl_constant import F... | 2 | 2 | 1 | [{"id": "G0", "claim": "The newly added Workspace construction in FederatedServer.deploy() raises 'RuntimeError: invalid workspace ... missing site config folder' because the simulator workspace lacks the site config folder, so simulator setup fails.", "category": "correctness", "verdict": "supported", "priority": "P0"... | null |
NVIDIA__NVFlare__3088 | NVIDIA/NVFlare | 3,088 | defect | a184423db9f8d34d1d2eb57ff302759778b2e289 | 3cf01c480803a0ff834a1f544dbe63bc43240cc3 | Directly send tensor via jit serialization | Fixes # .
### Description
Directly send tensor without converting to numpy
Using jit serialization to avoid pickle
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not applicable items -->
- [x] Non-breaking change (fix or new feature that would not break existing functional... | diff --git a/examples/advanced/llm_hf/README.md b/examples/advanced/llm_hf/README.md
index 6cbe1ae994..831719eff9 100644
--- a/examples/advanced/llm_hf/README.md
+++ b/examples/advanced/llm_hf/README.md
@@ -99,7 +99,7 @@ Similar patterns can be observed from the PEFT curves, purple for centralized re
.
- Changed to make loading templates each builder's responsibility. ... | diff --git a/nvflare/dashboard/application/__init__.py b/nvflare/dashboard/application/__init__.py
index a100099f7b..5e548fb0f3 100644
--- a/nvflare/dashboard/application/__init__.py
+++ b/nvflare/dashboard/application/__init__.py
@@ -40,9 +40,13 @@ def init_app():
if credential is None:
p... | 1 | 1 | 1 | [{"id": "G0", "claim": "The zip command line built in _gen_kit depends on user-provided values (the download key flows from the request body), which is an uncontrolled command line that could be exploited.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
NVIDIA__NVFlare__341 | NVIDIA/NVFlare | 341 | defect | 22959723283866d5273790df4e9e321c83b90e96 | 3698752c529a52d9693b3dc0f5490ec5d6b2d0d9 | Storage improvements | - add automated S3 storage test using local minio server
- update storage spec and docstrings
- move validate args to utils | diff --git a/nvflare/apis/storage.py b/nvflare/apis/storage.py
index 01f7b0c85d..28077ce0fc 100644
--- a/nvflare/apis/storage.py
+++ b/nvflare/apis/storage.py
@@ -12,18 +12,21 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+from abc import ABC, abstractmeth... | 6 | 4 | 0 | [{"id": "G0", "claim": "The StorageSpec docstrings need not specify which exceptions are raised; raising the specified exceptions should be the implementations' job.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "URI_ROOT should be \"/\" because... | null |
NVIDIA__NVFlare__3478 | NVIDIA/NVFlare | 3,478 | defect | dbc7001c857d9bb6c5af2064576359380fc0874f | 8bb74171d75805381f47e25997b86941055cd72c | Update cc mgr and authorizers | Some clients can be in CC while some others are not CC-enabled.
Add this functionality and clean up codes.
### Description
CCManager:
- Remove unused variables in code
- Add "cc_enabled_sites"
- Add docstrings and type hints
Other codes:
- Add docstrings and type hints
### Types of changes
<!--- Put an ... | diff --git a/nvflare/app_opt/confidential_computing/cc_authorizer.py b/nvflare/app_opt/confidential_computing/cc_authorizer.py
index aaf610d88c8..2117fe01896 100644
--- a/nvflare/app_opt/confidential_computing/cc_authorizer.py
+++ b/nvflare/app_opt/confidential_computing/cc_authorizer.py
@@ -11,38 +11,42 @@
# WITHOUT ... | 2 | 1 | 1 | [{"id": "G0", "claim": "The token-verification mechanism may open the door for replay attacks because CCManager has no nonce-based freshness challenge of its own.", "category": "security", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "A paragraph should be added to the CCAutho... | null |
NVIDIA__NVFlare__3482 | NVIDIA/NVFlare | 3,482 | defect | 63917bbb80d3c5878f6f3811594606144caace4f | d17398f860e1a17ddc7f867e9b5692f4180632a4 | Add CC OnPrem CVM builder | Add CC Provision support with onprem use case
### Description
## Key Components
### 1. CCBuilder Interface
- Introduces a common interface (`CCBuilder`) for all CC-related builders
- Provides unified configuration and resource management for CC environments
- Supports multiple CC implementations (OnPremCVM,... | diff --git a/nvflare/lighter/cc_provision/build_cvm_image.sh b/nvflare/lighter/cc_provision/build_cvm_image.sh
new file mode 100755
index 00000000000..87231c3c5e1
--- /dev/null
+++ b/nvflare/lighter/cc_provision/build_cvm_image.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+echo "calling with args <cc_yaml> $1 <site_name> $2 <star... | 16 | 16 | 2 | [{"id": "G0", "claim": "The Python 3.9 unit test run fails.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The Azure file-name constants at cc_constants.py lines 17-27 are not needed now and should be dropped.", "category": "maintainability", "verdict":... | null |
NVIDIA__NVFlare__3639 | NVIDIA/NVFlare | 3,639 | defect | 4546eb48213594223aec314df0359d7908a17f0a | 1c504dfe226b540b219c2df0fe716ff0f92d6753 | CC provision with docker image workload | CC provision with docker image workload for a generic way to accommodate different applications in the future
### Description
CC provision with docker image workload for a generic way to accommodate different applications in the future
### Types of changes
<!--- Put an `x` in all the boxes that apply, and r... | diff --git a/examples/advanced/cc_provision/Dockerfile.base b/examples/advanced/cc_provision/Dockerfile.base
new file mode 100644
index 00000000000..6023222dfe1
--- /dev/null
+++ b/examples/advanced/cc_provision/Dockerfile.base
@@ -0,0 +1,10 @@
+ARG BASE_IMAGE=python:3.12
+
+FROM ${BASE_IMAGE}
+
+ENV PYTHONDONTWRITEBYT... | 7 | 7 | 2 | [{"id": "G0", "claim": "The DockerImageBuilder parameter name 'nvflare_url' is misleading given its default is a version string; it should be renamed (e.g. 'nvflare_version') or the docstring should clarify that it accepts both URLs and version strings.", "category": "maintainability", "verdict": "supported", "priority... | null |
NVIDIA__NVFlare__3652 | NVIDIA/NVFlare | 3,652 | defect | 6bb6be15d45e05149608b4008698b78245af9807 | ebe7b04a5825750f6695617e6b871e56e12ebfd6 | Add recipe enhancements | Add recipe enhancements
### Description
- Add "add_experiment_tracking" as a util method
- Remove "num_clients", "clients" arg in FedAvgRecipe
- Change arg to "startup_kit_location" and "username" to be consistent with Flare API
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the... | diff --git a/examples/hello-world/hello-cyclic/client.py b/examples/hello-world/hello-cyclic/client.py
index ecff8203f8..7e5543685d 100644
--- a/examples/hello-world/hello-cyclic/client.py
+++ b/examples/hello-world/hello-cyclic/client.py
@@ -21,6 +21,11 @@
def main():
+ flare.init()
+
+ sys_info = flare.sys... | 5 | 4 | 1 | [{"id": "G0", "claim": "The initial_model attribute is assigned twice in the FedAvgRecipe constructors (nvflare/app_opt/tf/recipes/fedavg.py and nvflare/app_opt/pt/recipes/fedavg.py) and the duplicate assignment should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_... | null |
NVIDIA__NVFlare__3719 | NVIDIA/NVFlare | 3,719 | defect | f60a9677d0c0468ded56499640749a803ddae12e | 2b955db7797b791d788ac0f098cfdda2ed8b2b73 | Update cc provision | Fix several bugs and add enhancements.
### Description
Changes:
- Remove using of pre-install and just build a docker image workload with custom code inside
- Move startup_kit outside of CVM image and then use @IsaacYangSLA 's verify_startup_kit method
- Undo changes to pre-install tool
- Move the update of l... | diff --git a/examples/advanced/cc_provision/cc_server1.yml b/examples/advanced/cc_provision/cc_server1.yml
index 8fbba108f2..3001471fbc 100644
--- a/examples/advanced/cc_provision/cc_server1.yml
+++ b/examples/advanced/cc_provision/cc_server1.yml
@@ -21,7 +21,8 @@ cc_issuers:
- id: snp_authorizer
path: nvflare.... | 6 | 4 | 2 | [{"id": "G0", "claim": "Commenting out os.remove(temp_cc_config_yaml) in the finally block disables the temporary-file cleanup, which could lead to accumulation of temporary files, and the cleanup should be restored (with error handling) or removed entirely if no longer needed.", "category": "correctness", "verdict": "... | null |
NVIDIA__NVFlare__3929 | NVIDIA/NVFlare | 3,929 | defect | 2d4fdd4ea82f8b704ac41dddd9a095d06eb94268 | 5a5d10d29c4477f9bdde7ebcd984d4b9c44a1670 | [2.7] Cherry pick of Fix preflight check and ci (#3917) | Preflight check tool was hardcoded to test against GRPC communication scheme.
We have added more schemes and now our default is HTTP so we should change accordingly
- Update preflight check
- Remove overseer test
- Update preflight check tests
<!--- Put an `x` in all the boxes that apply, and remove the not ap... | diff --git a/nvflare/tool/package_checker/check_rule.py b/nvflare/tool/package_checker/check_rule.py
index 9be6a9dd1b..6c3c19d130 100644
--- a/nvflare/tool/package_checker/check_rule.py
+++ b/nvflare/tool/package_checker/check_rule.py
@@ -20,7 +20,9 @@
NVFlareConfig,
NVFlareRole,
check_grpc_server_runnin... | 9 | 4 | 1 | [{"id": "G0", "claim": "get_communication_scheme only reads the scheme from the `servers` key of fed_xxx.json, so for fed_client.json (which has no `servers` key) it will always fall through to the default for clients; the function should check the config type and read from the appropriate key (`client` for fed_client.... | null |
NVIDIA__NVFlare__3934 | NVIDIA/NVFlare | 3,934 | defect | 224d6586fd55203f813e740e9c827f01533010c4 | ed846b523bf4a52877d6c83301ca58319d979827 | Fix path for FedAvgRecipe | Fix path for FedAvgRecipe.
### Description
Fix path for FedAvgRecipe.
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not applicable items -->
- [x] Non-breaking change (fix or new feature that would not break existing functionality).
- [ ] Breaking change (fix or new featu... | diff --git a/examples/advanced/experiment-tracking/README.md b/examples/advanced/experiment-tracking/README.md
index c5fd0a01b6..ef5d80d3ed 100644
--- a/examples/advanced/experiment-tracking/README.md
+++ b/examples/advanced/experiment-tracking/README.md
@@ -7,7 +7,7 @@ This section demonstrates how NVIDIA FLARE suppor... | 2 | 1 | 0 | [{"id": "G0", "claim": "Apply the same explicit import-path update to the 2.7 release branch, where the old import path already works via the re-exports in recipes/__init__.py.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "examples/hello-worl... | null |
NVIDIA__NVFlare__3954 | NVIDIA/NVFlare | 3,954 | defect | 1adbc1040e4208200ae61f6cd05542846dc45a62 | 045825960f20722a24c8effbb52c7e18248057b4 | [2.7] Expose launch_once option in ScriptRunner | Fixes # .
### Description
- Expose launch_once option in ScriptRunner to be used by recipes.
- Adds new unit tests.
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not applicable items -->
- [x] Non-breaking change (fix or new feature that would not break existing functiona... | diff --git a/nvflare/app_common/np/recipes/fedavg.py b/nvflare/app_common/np/recipes/fedavg.py
index d0e7efdbae..8c76454b8a 100644
--- a/nvflare/app_common/np/recipes/fedavg.py
+++ b/nvflare/app_common/np/recipes/fedavg.py
@@ -44,6 +44,8 @@ class _FedAvgValidator(BaseModel):
command: str = "python3 -u"
server... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new test file imports Mock from unittest.mock at line 18 but never uses it, so flake8 reports F401 'unittest.mock.Mock' imported but unused.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
NVIDIA__NVFlare__3962 | NVIDIA/NVFlare | 3,962 | defect | e922d2685a94322394856f49927377c61de93eab | 4b1d992e676ce8d565f3dcc5f5576d4ace29f347 | Enable custom key_metric for FedAvgRecipe | Fixes # .
### Description
Since this is the default recipe we want people to use, the current model selector is too limiting to the default, permitting "accuracy" only - users will need other metrics and our current setting will result in warning and wrong results - currently GNN and LLM examples have this issue.... | diff --git a/nvflare/recipe/fedavg.py b/nvflare/recipe/fedavg.py
index 038288a9f9..b4a6ed2970 100644
--- a/nvflare/recipe/fedavg.py
+++ b/nvflare/recipe/fedavg.py
@@ -17,6 +17,7 @@
from pydantic import BaseModel
from nvflare.apis.dxo import DataKind
+from nvflare.apis.fl_component import FLComponent
from nvflare.a... | 5 | 3 | 3 | [{"id": "G0", "claim": "Exposing the model_selector component itself (plus the negate_key_metric flag) on FedAvgRecipe should not be done; exposing the metric key alone should be enough.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Instead of adding ke... | null |
NVIDIA__NVFlare__3977 | NVIDIA/NVFlare | 3,977 | defect | d73f3262bb81c84beca8a25e716b813e4f847060 | 890563d1f9d6677c8bc3c4629790b5628dad1b67 | Expose launch_once option in ScriptRunner | Fixes # .
Cherry-pick https://github.com/NVIDIA/NVFlare/pull/3954
<!--- Put an `x` in all the boxes that apply, and remove the not applicable items -->
- [x] Non-breaking change (fix or new feature that would not break existing functionality).
- [ ] Breaking change (fix or new feature that would cause existing ... | diff --git a/nvflare/app_common/np/recipes/fedavg.py b/nvflare/app_common/np/recipes/fedavg.py
index 29a7cadabd..dea9f145e4 100644
--- a/nvflare/app_common/np/recipes/fedavg.py
+++ b/nvflare/app_common/np/recipes/fedavg.py
@@ -46,6 +46,8 @@ class _FedAvgValidator(BaseModel):
server_expected_format: ExchangeFormat ... | 2 | 2 | 1 | [{"id": "G0", "claim": "The launch_once docstring in nvflare/app_common/np/recipes/fedavg.py contains a duplicate documentation line (\"DIFF means that only the difference is sent. Defaults to TransferType.FULL.\") that repeats the line above and should be removed.", "category": "documentation", "verdict": "supported",... | null |
NVIDIA__NVFlare__3988 | NVIDIA/NVFlare | 3,988 | defect | 5ef7d8bbfe5df72753c1269b7eefc86f6755d034 | 58b052cc82f56f95461162d313a7a97f220faa78 | Fix hello-numpy-cross-val example | Fix hello-numpy-cross-val example.
### Description
Fix hello-numpy-cross-val example.
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not applicable items -->
- [x] Non-breaking change (fix or new feature that would not break existing functionality).
- [ ] Breaking change (... | diff --git a/examples/hello-world/hello-numpy-cross-val/client.py b/examples/hello-world/hello-numpy-cross-val/client.py
index 0e62a54b23..3e812a2f18 100644
--- a/examples/hello-world/hello-numpy-cross-val/client.py
+++ b/examples/hello-world/hello-numpy-cross-val/client.py
@@ -58,8 +58,14 @@ def main():
input... | 4 | 4 | 0 | [{"id": "G1", "claim": "The hardcoded size of 10 in the zero initialization may not match expected model dimensions in all scenarios; the reviewer asks to make it configurable, infer the size, or add a comment explaining it matches the mock model used in the example.", "category": "maintainability", "verdict": "support... | null |
NVIDIA__NVFlare__4007 | NVIDIA/NVFlare | 4,007 | defect | 090d16ccc31d8dd636997d35bbd258ffecee9c7b | b95e71726e904d06b83e5221ce66440a6127ada7 | [2.7] handle non exists file with absolute file path | If file not exists with abs path, we will print warning for production, raise error for sim and poc | diff --git a/nvflare/edge/tools/edge_fed_buff_recipe.py b/nvflare/edge/tools/edge_fed_buff_recipe.py
index 775afa603d7..33c1b0c90db 100644
--- a/nvflare/edge/tools/edge_fed_buff_recipe.py
+++ b/nvflare/edge/tools/edge_fed_buff_recipe.py
@@ -248,6 +248,9 @@ def _configure_simulation(job, c: SimulationConfig):
j... | 2 | 1 | 0 | [{"id": "G0", "claim": "The logger.warning added in nvflare/recipe/spec.py redundantly concatenates two f-strings and should be simplified to a single f-string.", "category": "style", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `framework = recipe.framework if hasattr(re... | null |
NVIDIA__NVFlare__4020 | NVIDIA/NVFlare | 4,020 | defect | 7684801a2172723fad40173e7b584bbed743d02b | e361f1a34c6160e74a64a3ce3033332553eb08cb | [2.7] Enhance weighted agg helper | Takes changes from https://github.com/NVIDIA/NVFlare/pull/3884
## Optimize WeightedAggregationHelper for Memory Efficiency
### Summary
Optimized `WeightedAggregationHelper` to use in-place tensor operations, reducing memory usage during aggregation by ~2x for large models. This benefits FedAvg, ScatterAndGather,... | diff --git a/nvflare/app_common/aggregators/weighted_aggregation_helper.py b/nvflare/app_common/aggregators/weighted_aggregation_helper.py
index c27974b70a..258c38546f 100644
--- a/nvflare/app_common/aggregators/weighted_aggregation_helper.py
+++ b/nvflare/app_common/aggregators/weighted_aggregation_helper.py
@@ -1,4 +... | 6 | 3 | 2 | [{"id": "G0", "claim": "get_result() uses .div_(), which mutates the tensor stored in self.total[k] in place and returns that same reference to the caller, so internal state holds divided values until reset_stats() and callers may observe or retain the mutated tensor; it should use v.div() to create a new tensor.", "ca... | null |
NVIDIA__NVFlare__4036 | NVIDIA/NVFlare | 4,036 | defect | 4eaccb3ca62fc8e0014f3582a3612362983c480a | 60e3487a39d2567248d61b0612de9d5d560e90d0 | Add server-side memory management with server_memory_gc_rounds parameter | ## Description
This PR adds server-side memory management capabilities to reduce RSS (Resident Set Size) growth in long-running federated learning jobs.
## Changes
### New Module
**`nvflare/fuel/utils/memory_utils.py`** (NEW)
- `cleanup_memory()`: Performs `gc.collect()` + `malloc_trim()` + optional `torch.c... | diff --git a/docs/programming_guide/memory_management.rst b/docs/programming_guide/memory_management.rst
new file mode 100644
index 0000000000..b5d84bfe65
--- /dev/null
+++ b/docs/programming_guide/memory_management.rst
@@ -0,0 +1,213 @@
+.. _memory_management:
+
+#############################
+Memory Management Best P... | 13 | 10 | 4 | [{"id": "G0", "claim": "The `import gc` was removed from cyclic_ctl.py and scatter_and_gather.py while `gc.collect()` is still called in `_process_result`/`_process_train_result`, which will raise a NameError at runtime; the leftover calls must be replaced.", "category": "correctness", "verdict": "supported", "priority... | null |
NVIDIA__NVFlare__4063 | NVIDIA/NVFlare | 4,063 | defect | d5328886e3901fdb7f5566a19deacb3d9c85ab1e | 3f87d0e29c649286b03ead710f09eb758ee9ccff | Increase BioNeMo external script init timeout | Fixes # .
### Description
Enable overwriting EXTERNAL_PRE_INIT_TIMEOUT for `flare.init()`. Required in some scripts starting heavy external processes, e.g. bionemo examples. Cherry-pick #4057.
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not applicable items -->
- [x] Non... | diff --git a/examples/advanced/bionemo/downstream/sabdab/job.py b/examples/advanced/bionemo/downstream/sabdab/job.py
index 0b59df2849..44e69a0f2b 100644
--- a/examples/advanced/bionemo/downstream/sabdab/job.py
+++ b/examples/advanced/bionemo/downstream/sabdab/job.py
@@ -22,6 +22,10 @@
from nvflare.app_opt.pt.recipes.f... | 1 | 1 | 1 | [{"id": "G0", "claim": "The executor should validate the config-provided EXTERNAL_PRE_INIT_TIMEOUT and reject negative or zero values.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
NVIDIA__NVFlare__4090 | NVIDIA/NVFlare | 4,090 | defect | 32a88fe76b67eb3a1404808d015e1092807c8df0 | f920bbcb05d7808885a5fdf13a80fbff803ae10f | [2.7] Fix federated_policy example | ### Description
This PR fixes the federated policy example.
1. migrating jobs to recipes
2. updating test_filter.py (change the argument `name` to `local_name`)
3. updating resources.json (for site_a)
4. updating privacy.json (also change the argument `name` of test_filter.py to `local_name`)
The argument `na... | diff --git a/examples/advanced/federated-policies/README.rst b/examples/advanced/federated-policies/README.rst
index 57a5476791b..fab1cf0f815 100644
--- a/examples/advanced/federated-policies/README.rst
+++ b/examples/advanced/federated-policies/README.rst
@@ -22,7 +22,7 @@ System Requirements
2. Install NVFlare
::... | 8 | 6 | 3 | [{"id": "G0", "claim": "job5.py is missing the line that sets the non-existent scope \"foo\", so it will behave like job4 (no scope defined) instead of demonstrating rejection by site_b as the README and its docstring intend.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"},... | null |
NVIDIA__NVFlare__4119 | NVIDIA/NVFlare | 4,119 | defect | 1f21c3a5ecfe2d8dc5cd6160e0d04f064ebb5811 | 33dae0edbbe6e8705d3d6e2014343882b424de54 | [2.7] Chapter 10 Fixes | Fixes # .
### Description
Update requirements order to avoid installation issues. Remove broken package dependency. Might need rebuild from scratch as described in README.
Adds missing utility files.
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not applicable items -->
-... | diff --git a/examples/tutorials/self-paced-training/part-4_advanced_federated_learning/chapter-10_federated_XGBoost/10.1_fed_xgboost/fed_xgboost.ipynb b/examples/tutorials/self-paced-training/part-4_advanced_federated_learning/chapter-10_federated_XGBoost/10.1_fed_xgboost/fed_xgboost.ipynb
index e7ccbd7fda4..5b485a2a25... | 5 | 3 | 1 | [{"id": "G0", "claim": "split_num_proportion is defined in prepare_data_base.py but never called there and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G4", "claim": "prepare_data_horizontal.py and prepare_data_vertical.py should add a con... | null |
NVIDIA__NVFlare__4120 | NVIDIA/NVFlare | 4,120 | defect | 1f21c3a5ecfe2d8dc5cd6160e0d04f064ebb5811 | 00a3a94711260ab67381010898d2310012543fe6 | [2.7] improve tensor streaming timeout | Equivalent of #4107
### Description
Equivalent of #4107
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not applicable items -->
- [x] Non-breaking change (fix or new feature that would not break existing functionality).
- [ ] Breaking change (fix or new feature that woul... | diff --git a/examples/advanced/tensor-stream/README.md b/examples/advanced/tensor-stream/README.md
index 0732c443553..be1f9085d40 100644
--- a/examples/advanced/tensor-stream/README.md
+++ b/examples/advanced/tensor-stream/README.md
@@ -247,7 +247,33 @@ server_streamer = TensorServerStreamer(
#### Timeout Configurat... | 6 | 3 | 2 | [{"id": "G0", "claim": "The README's `config_fed_client.json` example is fenced as `json` but contains `//` comments, making it invalid JSON that fails to parse if users copy it into a config file; the inline comments should be removed or the block relabeled.", "category": "documentation", "verdict": "supported", "prio... | null |
NVIDIA__NVFlare__4126 | NVIDIA/NVFlare | 4,126 | defect | 1405a5e1385fed84ae8ea076c4335dbe34b04294 | 84a744fda71ab2a678dac839aab04828d1743f55 | [2.7] Snapshot task data only | # Fix Data Corruption in Broadcast with `min_responses < total_clients`
## Problem
When using `min_responses < total_clients` with `InTimeAccumulateWeightedAggregator`, the server can proceed to aggregate and modify the global model **while slow clients are still downloading it**, causing data corruption.
**Wh... | diff --git a/nvflare/apis/impl/wf_comm_server.py b/nvflare/apis/impl/wf_comm_server.py
index ab2023db45..4c1d2b118c 100644
--- a/nvflare/apis/impl/wf_comm_server.py
+++ b/nvflare/apis/impl/wf_comm_server.py
@@ -279,7 +279,12 @@ def _do_process_task_request(self, client: Client, fl_ctx: FLContext) -> Tuple[s
... | 10 | 7 | 4 | [{"id": "G0", "claim": "The test mock's `current_round if default is None else default` returns current_round when default=None is explicitly passed instead of None, which could mask bugs where code expects None as a valid return value; the suggested `.get(key, default)` logic should be used.", "category": "testing", "... | null |
NVIDIA__NVFlare__4129 | NVIDIA/NVFlare | 4,129 | defect | e9671115a24a9c792489d545049480bdd84eeb5c | 4af49b9174d8cb8663b2697e8352e0f65f982f4a | Fix potential data corrupt | Cherry-pick of #4100 and #4126
### Description
Cherry-pick of #4100 and #4126
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not applicable items -->
- [x] Non-breaking change (fix or new feature that would not break existing functionality).
- [ ] Breaking change (fix or n... | diff --git a/nvflare/apis/impl/wf_comm_server.py b/nvflare/apis/impl/wf_comm_server.py
index c625476506..4d43513c9d 100644
--- a/nvflare/apis/impl/wf_comm_server.py
+++ b/nvflare/apis/impl/wf_comm_server.py
@@ -279,7 +279,27 @@ def _do_process_task_request(self, client: Client, fl_ctx: FLContext) -> Tuple[s
... | 7 | 3 | 2 | [{"id": "G0", "claim": "The broadcast snapshot behavior this PR introduces is untested and should be validated by adding the referenced tests/unit_test/apis/impl/test_broadcast_snapshot.py or a corresponding broadcast-method test verifying that all clients receive the same data even if task.data is modified after broad... | null |
NVIDIA__NVFlare__4150 | NVIDIA/NVFlare | 4,150 | defect | 9f84b4be2d8f1242185eb886b5a0637d289856a4 | 2c6454f796babf61d13cf8836d6604c4ece894bb | [2.7] Fix cifar10 integration tests | Fix cifar10 integration tests
### Description
Fix cifar10 integration tests
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not applicable items -->
- [x] Non-breaking change (fix or new feature that would not break existing functionality).
- [ ] Breaking change (fix or new... | diff --git a/tests/integration_test/data/test_configs/standalone_job/cifar_examples.yml b/tests/integration_test/data/test_configs/standalone_job/cifar_examples.yml
index 36ad6faaa59..be03597853f 100644
--- a/tests/integration_test/data/test_configs/standalone_job/cifar_examples.yml
+++ b/tests/integration_test/data/te... | 8 | 6 | 5 | [{"id": "G0", "claim": "The later CIFAR tests (FedOpt/FedProx/SCAFFOLD/custom-aggregator) have no requirements-install step in their setup, so in a clean CI environment export_recipe_job.py will fail importing torch/torchvision when it runs their job.py; add the same install step to each of their setups.", "category": ... | null |
NVIDIA__NVFlare__4162 | NVIDIA/NVFlare | 4,162 | defect | 20a9ffd5f412de9e79bf4c2bf2baeb4474ba6e35 | 5b0ef0b54d080dc27f0cefc8d38111de4b331485 | Cherry pick pr4008 add unit test | ### Description
Cherry-pick PR #4008 and add a few unit test cases in lighter's unit test file.
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not applicable items -->
- [x] Non-breaking change (fix or new feature that would not break existing functionality).
- [ ] Breaking c... | diff --git a/nvflare/lighter/utils.py b/nvflare/lighter/utils.py
index 1a22f397565..6ac037fb070 100644
--- a/nvflare/lighter/utils.py
+++ b/nvflare/lighter/utils.py
@@ -281,7 +281,7 @@ def verify_folder_signature(src_folder, root_ca_path, single_signer=False, signa
public_key = cert.public_key()
... | 5 | 1 | 0 | [{"id": "G0", "claim": "The inner handler in verify_folder_signature uses a bare `except:` which also catches KeyboardInterrupt/SystemExit and makes debugging harder; prefer `except Exception:` while still returning False for signature verification failures.", "category": "correctness", "verdict": "supported", "priorit... | null |
NVIDIA__NVFlare__4168 | NVIDIA/NVFlare | 4,168 | defect | b438e4b0c630183a09978627f947d2183ee5378d | e7acaa040d23124156197fda77ff84ba863cd494 | [2.7] Fix hello-numpy-cross-val example | Properly make hello-numpy-cross-val use branching to match other examples.
Fixes # .
### Description
Properly make hello-numpy-cross-val use branching to match other examples and ensure that there will no longer be any errors due to numpy_key.
### Types of changes
<!--- Put an `x` in all the boxes that app... | diff --git a/examples/hello-world/hello-numpy-cross-val/client.py b/examples/hello-world/hello-numpy-cross-val/client.py
index 6ffb47ab72..1f1bd7b5c9 100644
--- a/examples/hello-world/hello-numpy-cross-val/client.py
+++ b/examples/hello-world/hello-numpy-cross-val/client.py
@@ -53,41 +53,66 @@ def main():
print(... | 6 | 5 | 3 | [{"id": "G0", "claim": "When submit_model runs before any training, the client falls back to a hard-coded np.array([0.0] * 10) that may not match the real model shape and silently submits arbitrary weights; it should derive the shape from the last model or raise so the example fails loudly.", "category": "correctness",... | null |
NVIDIA__NVFlare__4171 | NVIDIA/NVFlare | 4,171 | defect | 12b0af15533913af7ab83e16c2dcdf74921f883d | a4cd40fe10c989067a1abee10a06cb9b9cadbb0e | [2.7] Fix stream pool starvation issue | Take changes from https://github.com/NVIDIA/NVFlare/pull/4169/ and issues found by @GeorgeWang-nv
### Description
Fix streaming pool starvation
Fixes deadlock when many blob receive callbacks run at once. Ex. Large model with many download chunks. Previously, handle_blob_cb ran on the stream pool and called blo... | diff --git a/nvflare/fuel/f3/streaming/blob_streamer.py b/nvflare/fuel/f3/streaming/blob_streamer.py
index 7b8e17a61f..701f8218a4 100644
--- a/nvflare/fuel/f3/streaming/blob_streamer.py
+++ b/nvflare/fuel/f3/streaming/blob_streamer.py
@@ -22,7 +22,7 @@
from nvflare.fuel.f3.streaming.byte_streamer import STREAM_CHUNK_S... | 4 | 3 | 2 | [{"id": "G0", "claim": "In the new pool-starvation test, mock_stream.read is not configured, so it returns a truthy MagicMock and _read_stream() may loop indefinitely or error in a background thread, making the test flaky or hanging; mock_stream.read should be configured to return b\"\"/EOS so the read loop terminates ... | null |
NVIDIA__NVFlare__4183 | NVIDIA/NVFlare | 4,183 | defect | 942f2d6c4acffac4228d67a9bde01ef2b8df86fe | 0d73fbf42e5067a73de8cc1787bd74834280dcad | [2.7] Replace job.to with alternative recipe apis | Fixes # .
### Description
And fix over-writing issue when client list is not explicitly given
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not applicable items -->
- [x] Non-breaking change (fix or new feature that would not break existing functionality).
- [ ] Breaking ... | diff --git a/examples/advanced/llm_hf/job.py b/examples/advanced/llm_hf/job.py
index ba07ac2abc..a32d8a2b2c 100644
--- a/examples/advanced/llm_hf/job.py
+++ b/examples/advanced/llm_hf/job.py
@@ -181,30 +181,24 @@ def main():
)
# Add client params to reduce timeout failures for longer LLM runs
- for site_... | 5 | 5 | 2 | [{"id": "G0", "claim": "Guard the direct access to the private FedJob._deploy_map in _get_existing_client_sites() with getattr/hasattr falling back to empty, and add a brief note explaining why the private attribute is needed, since the direct access is brittle if internals change.", "category": "maintainability", "ver... | null |
NVIDIA__NVFlare__4199 | NVIDIA/NVFlare | 4,199 | defect | 902bf98426ef6307a45b5e8af907c181e1cf70bb | cf0a5a0c0be1fb8241c663f16878b36e42e0c491 | Cherry-pick of [2.7] Fix cifar10 integration tests (#4150) | Fix cifar10 integration tests
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not applicable items -->
- [x] Non-breaking change (fix or new feature that would not break existing functionality).
- [ ] Breaking change (fix or new feature that would cause existing functionality to ... | diff --git a/ci/run_integration.sh b/ci/run_integration.sh
index 4c8bae5bb94..b073c70fb34 100755
--- a/ci/run_integration.sh
+++ b/ci/run_integration.sh
@@ -83,7 +83,6 @@ integration_test() {
add_dns_entries
testFolder="tests/integration_test"
pushd ${testFolder}
- pipenv run ./generate_test_configs_f... | 5 | 4 | 3 | [{"id": "G0", "claim": "Only the FedAvg test installs requirements, so the FedOpt, FedProx, SCAFFOLD and Custom Aggregators tests would fail with missing dependencies if they run in isolation or before FedAvg.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim... | null |
NVIDIA__NVFlare__4204 | NVIDIA/NVFlare | 4,204 | defect | 1b125ded5817baffec07b226fc03d5c80e949309 | ade324584b32129ad746116c1c789b730058d4ab | [2.7] Fix RxTask self-deadlock on stream error cleanup | ## Summary
- avoid calling `RxTask.stop()` while holding `RxTask.map_lock` in `find_or_create_task`
- stop the existing task only after leaving the map lock to prevent self-deadlock
- add a regression unit test for the existing-task error path
| diff --git a/nvflare/fuel/f3/streaming/byte_receiver.py b/nvflare/fuel/f3/streaming/byte_receiver.py
index 4f8dd71e8f..e25d8d9911 100644
--- a/nvflare/fuel/f3/streaming/byte_receiver.py
+++ b/nvflare/fuel/f3/streaming/byte_receiver.py
@@ -92,6 +92,7 @@ def find_or_create_task(cls, message: Message, cell: CoreCell) -> O... | 1 | 1 | 0 | [{"id": "G0", "claim": "The tests should be updated to cover the un-happy path, demonstrating that without the fix the code deadlocks, instead of only testing the post-fix happy path.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
NVIDIA__NVFlare__4213 | NVIDIA/NVFlare | 4,213 | defect | 0b7b8c7197cb97a635f2d39b111060b7b5ee094c | e7e688a9804cccf6917045cfeb988c69c53516d1 | Cherrypick from 2.7 #4004 Fix RxTask self-deadlock on stream error cleanup | ## Summary
- avoid calling `RxTask.stop()` while holding `RxTask.map_lock` in `find_or_create_task`
- stop the existing task only after leaving the map lock to prevent self-deadlock
- include regression coverage for both the pre-fix deadlock path and the fixed path
Related: #4204 (2.7 branch) | diff --git a/nvflare/fuel/f3/streaming/byte_receiver.py b/nvflare/fuel/f3/streaming/byte_receiver.py
index d1bae93079..752901ed34 100644
--- a/nvflare/fuel/f3/streaming/byte_receiver.py
+++ b/nvflare/fuel/f3/streaming/byte_receiver.py
@@ -92,6 +92,7 @@ def find_or_create_task(cls, message: Message, cell: CoreCell) -> O... | 1 | 1 | 0 | [{"id": "G0", "claim": "The test's pre-fix reproducer helper should key `RxTask.rx_task_map` by `sid` instead of `(origin, sid)` so it matches the actual implementation.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
NVIDIA__NVFlare__4224 | NVIDIA/NVFlare | 4,224 | defect | a65d8e6e6c990fec7767b4d181bc7c14aff839c2 | d7dabe2bddd56669a0955e0e1cef4d49f139debe | Skip unsupported metrics for aggregation (#4223) | Fixes # .
### Description
Skip non-aggregatable metrics during aggregation. Print a warning in that case, e.g. Cherry-pick #4223
```
Metric 'shap_metrics' (dict) skipped for aggregation.
```
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not applicable items -->
- [x] ... | diff --git a/nvflare/app_common/workflows/fedavg.py b/nvflare/app_common/workflows/fedavg.py
index 7ec09f3b42..3bf65be001 100644
--- a/nvflare/app_common/workflows/fedavg.py
+++ b/nvflare/app_common/workflows/fedavg.py
@@ -28,6 +28,25 @@
from .base_fedavg import BaseFedAvg
+def _is_aggregatable_metric_value(v: Any... | 5 | 5 | 1 | [{"id": "G0", "claim": "The per-metric skip warning is emitted once per non-aggregatable metric per client per round, which could be very noisy in large multi-round runs; log it at most once per metric key using a set of already-warned keys.", "category": "performance", "verdict": "supported", "priority": "P2", "scope"... | null |
NVIDIA__NVFlare__4229 | NVIDIA/NVFlare | 4,229 | defect | d0b99846249dbaca2ea8b7881025e34db194095b | e0e15363cc44a158081dfbcb9643ea962d06bd4c | Fix a security issue on FileRetriever | ### Description
Add more checks to block path traversal in FileRetriever.
Add unit test on this.
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not applicable items -->
- [x] Non-breaking change (fix or new feature that would not break existing functionality).
- [ ] Breaking... | diff --git a/nvflare/app_common/streamers/file_retriever.py b/nvflare/app_common/streamers/file_retriever.py
index 619503dd74f..e878a904eac 100644
--- a/nvflare/app_common/streamers/file_retriever.py
+++ b/nvflare/app_common/streamers/file_retriever.py
@@ -12,6 +12,7 @@
# See the License for the specific language gove... | 3 | 2 | 2 | [{"id": "G0", "claim": "Comparing `Path(self.source_dir)` (possibly relative) against the absolute resolved `normalized_path` will always fail when `source_dir` is configured relative (e.g. \"./source\" as used in examples), incorrectly rejecting all valid files; `source_dir` must be resolved to an absolute path before... | null |
NVIDIA__NVFlare__4230 | NVIDIA/NVFlare | 4,230 | defect | 14a94bb6f7ff3f6117d56cbc105e2e7571903ccb | 397f80aff79be5259af5da23badaca1d5a5f6991 | [2.7]: Fix a security issue on FileRetriever | ### Description
Cherry pick of PR #4229.
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not applicable items -->
- [x] Non-breaking change (fix or new feature that would not break existing functionality).
- [ ] Breaking change (fix or new feature that would cause existing fun... | diff --git a/nvflare/app_common/streamers/file_retriever.py b/nvflare/app_common/streamers/file_retriever.py
index 619503dd74f..e878a904eac 100644
--- a/nvflare/app_common/streamers/file_retriever.py
+++ b/nvflare/app_common/streamers/file_retriever.py
@@ -12,6 +12,7 @@
# See the License for the specific language gove... | 3 | 2 | 2 | [{"id": "G0", "claim": "The containment check compares an unresolved (possibly relative) source_dir against a resolved absolute path, so with a relative source_dir it may incorrectly reject valid requests; source_dir should be resolved before comparison.", "category": "correctness", "verdict": "supported", "priority": ... | null |
NVIDIA__NVFlare__4239 | NVIDIA/NVFlare | 4,239 | defect | 906d92b8fedd12577d68e59423ed134d15f70b9f | 21de73d58c0801f7cc944384aab4d7306184a31c | [2.7] Accept 'class_path' in component config for job API consistency | Fixes # .
### Description
Cherry-pick https://github.com/NVIDIA/NVFlare/pull/4237
Enables consistent use of class_path for all objects configured through the job API.
ComponentBuilder.get_class_path(): use 'path' or 'class_path' (path takes precedence)
ComponentBuilder.is_class_config(): treat 'class_path'... | diff --git a/docs/programming_guide/component_configuration.rst b/docs/programming_guide/component_configuration.rst
index 938ab9a3b6..d4e241fc0c 100644
--- a/docs/programming_guide/component_configuration.rst
+++ b/docs/programming_guide/component_configuration.rst
@@ -105,7 +105,7 @@ A FLARE job configuration defines... | 6 | 5 | 3 | [{"id": "G0", "claim": "In component_builder.get_class_path, a config with \"path\": None no longer raises the original 'path spec must be str' ConfigError and instead falls through to the name branch (less specific error, or silent name lookup when 'name' is present); guard with an explicit key-presence check so null ... | null |
NVIDIA__NVFlare__4240 | NVIDIA/NVFlare | 4,240 | defect | caa7254363b88e948d2630928236ef077bbc9186 | 9d0e043ef512b393d3279455d83ddc76f90822a9 | Accept 'class_path' in component config for job API consistency… | Fixes # .
### Description
Cherry-pick https://github.com/NVIDIA/NVFlare/pull/4239
Enables consistent use of class_path for all objects configured through the job API.
ComponentBuilder.get_class_path(): use 'path' or 'class_path' (path takes precedence)
ComponentBuilder.is_class_config(): treat 'class_path'... | diff --git a/docs/programming_guide/component_configuration.rst b/docs/programming_guide/component_configuration.rst
index 938ab9a3b6..f337d7fed6 100644
--- a/docs/programming_guide/component_configuration.rst
+++ b/docs/programming_guide/component_configuration.rst
@@ -105,7 +105,7 @@ A FLARE job configuration defines... | 3 | 3 | 1 | [{"id": "G0", "claim": "The license header of the new test file is missing the word \"ANY\" and should read \"WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\"", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In get_class_pa... | null |
NVIDIA__NVFlare__4249 | NVIDIA/NVFlare | 4,249 | defect | bc30390d862b29e00aa85f732cc74448174e388a | 90829bc6ec119658067bdefcd687e7620ed2bbb2 | [2.7] Enhancements on CI install_requirements | ### Description
Make integration tests' install_requirements more robust
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not applicable items -->
- [x] Non-breaking change (fix or new feature that would not break existing functionality).
- [ ] Breaking change (fix or new featu... | diff --git a/tests/integration_test/data/test_configs/standalone_job/cifar_examples.yml b/tests/integration_test/data/test_configs/standalone_job/cifar_examples.yml
index 5f35b65559..03acf93002 100644
--- a/tests/integration_test/data/test_configs/standalone_job/cifar_examples.yml
+++ b/tests/integration_test/data/test... | 4 | 4 | 4 | [{"id": "G0", "claim": "install_requirements.py passes each non-comment requirement line as a single argv element to `pip install`, so lines with inline comments fail with invalid package specifiers and whitespace-separated option/value constructs (e.g. `-r`, `--extra-index-url`) are broken; the script should strip com... | null |
NVIDIA__NVFlare__4254 | NVIDIA/NVFlare | 4,254 | defect | bc30390d862b29e00aa85f732cc74448174e388a | d7d1722affb37c189853f0ef7f00478110c8fef8 | [2.7] Add missing submit_model executor | Add missing submit_model executor.
### Description
Add missing submit_model executor to fix FLARE-2758. Added test and ensured that it passed to prevent missing this same path in the future.
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not applicable items -->
- [x] Non-b... | diff --git a/nvflare/app_common/np/np_validator.py b/nvflare/app_common/np/np_validator.py
index 80bc96dff1..4c9250074a 100755
--- a/nvflare/app_common/np/np_validator.py
+++ b/nvflare/app_common/np/np_validator.py
@@ -22,7 +22,9 @@
from nvflare.apis.fl_context import FLContext
from nvflare.apis.shareable import Shar... | 2 | 1 | 1 | [{"id": "G0", "claim": "FLModelUtils.to_shareable(FLModel()) always raises ValueError at runtime, so the new submit_model handler in NPValidator.execute always fails (the call sits outside the surrounding try/except); replace it with a reply such as make_reply instead.", "category": "correctness", "verdict": "supported... | null |
NVIDIA__NVFlare__4258 | NVIDIA/NVFlare | 4,258 | defect | cbed1b0ab3633258370919169d626531fbbfcb98 | 14e718eb26088077edafb5f8bc3169d830c5bbfd | [2.7] Improve FedAvg HE TenSEAL context provisioning guidance and validation | ## Summary
- add prominent TenSEAL provisioning guidance to `FedAvgRecipeWithHE` docstring, including a concrete code example to generate `server_context.tenseal` and `client_context.tenseal`
- add a SimEnv preflight validation in `FedAvgRecipeWithHE.process_env()` that checks required context files and raises a descri... | diff --git a/nvflare/app_opt/pt/recipes/fedavg_he.py b/nvflare/app_opt/pt/recipes/fedavg_he.py
index 9dc13e773a..792d0d5137 100644
--- a/nvflare/app_opt/pt/recipes/fedavg_he.py
+++ b/nvflare/app_opt/pt/recipes/fedavg_he.py
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limit... | 7 | 7 | 0 | [{"id": "G0", "claim": "The docstring should point users to provisioning to generate the context files instead of showing a section of TenSEAL code, since users are not meant to use TenSEAL directly.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "... | null |
NVIDIA__NVFlare__4259 | NVIDIA/NVFlare | 4,259 | defect | 6e924ba88618794de92cc38f8a1132660e3cbd18 | e4b1b9512cc1f5fa80e9a1f543e367deaf45eccb | [2.7] Improve et import | Fix: Graceful handling when `executorch` is not installed (ET FedBuff)
## Problem
`ETFedBuffRecipe` and `ETTaskProcessor` imported `executorch` at module level. Any environment without `executorch` installed would get a raw `ModuleNotFoundError` deep in the import chain — with no indication of what to install or ... | diff --git a/nvflare/edge/models/model.py b/nvflare/edge/models/model.py
index 8d03c6aea4..894269e9c5 100644
--- a/nvflare/edge/models/model.py
+++ b/nvflare/edge/models/model.py
@@ -14,10 +14,19 @@
import torch
import torch.nn as nn
-from executorch.exir import to_edge
from torch.export import export
from torch.... | 5 | 5 | 3 | [{"id": "G0", "claim": "The test-level skip flag checks find_spec(\"executorch\") while the recipe guard checks find_spec(\"executorch.extension.training\"), so in a partially-installed executorch environment TestETFedBuffRecipeSimBasic would not be skipped and would fail with an unexpected ImportError; the skip condit... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.