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
Lightning-AI__litgpt__2086
Lightning-AI/litgpt
2,086
defect
50f6bc49e521aa4d28a5035478af4bc5e8392180
11ef960e49ffb5f5120646efacd55f9fea679ca1
finetune_lora upgrades
Integrated some improvements to **finetune_lora** based on @lantiga's reference implementation. Most of the optimizations are there, but I did not include the model registry feature because litgpt does not currently support litmodels and adding litmodels support is a PR in itself IMO. Still WIP as I need to run s...
diff --git a/litgpt/__main__.py b/litgpt/__main__.py index a92e2027c2..6f63f589a2 100644 --- a/litgpt/__main__.py +++ b/litgpt/__main__.py @@ -12,6 +12,7 @@ from litgpt.finetune.adapter_v2 import setup as finetune_adapter_v2_fn from litgpt.finetune.full import setup as finetune_full_fn from litgpt.finetune.lora impo...
3
3
3
[{"id": "G0", "claim": "A test should be added for the new parallelize_fn helper.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A test should be added for the new load_from_full_model_state_dict helper.", "category": "testing", "verdict": "supported", ...
null
Lightning-AI__litgpt__2195
Lightning-AI/litgpt
2,195
defect
df94ee2cae47d8d2fb20815c175e98fd1f64a27a
6b833325c587f848e57b7f0686b12dee72c7d4d5
fix: gemma-3 checkpoint conversion from litgpt to hf
## What does this PR do? Fixes #2194 ## Solution Add a check for Gemma-3 before the MLP fallback in `convert_lit_checkpoint.py`: ```python elif config.name.startswith("Gemma-3"): untie_weights = True copy_fn = partial(copy_weights_gemma_3, config, untie_weights=untie_weights) ``` _Note: `untie_weigh...
diff --git a/litgpt/scripts/convert_lit_checkpoint.py b/litgpt/scripts/convert_lit_checkpoint.py index d7ce885c55..c134a898d9 100644 --- a/litgpt/scripts/convert_lit_checkpoint.py +++ b/litgpt/scripts/convert_lit_checkpoint.py @@ -565,6 +565,9 @@ def convert_lit_checkpoint(checkpoint_dir: Path, output_dir: Path) -> Non...
6
4
0
[{"id": "G0", "claim": "The Gemma-3 dispatch branch should be moved below the Gemma-2 branch (around line 560) to keep the model conditions consistent.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks whether untie_weights needs ...
null
Lightning-AI__litgpt__2204
Lightning-AI/litgpt
2,204
defect
92627d71d47c24f7d3ef4d0b5721b34956819a95
edc8e82af9ce6a8d035a0c07852dff0e5340dc83
fix: default val_split_fraction to 0.05 for single-file JSON data
Migrated from https://github.com/Lightning-AI/litgpt/pull/2203 (original account: @fumadari). ## Summary - When a single JSON file is passed to the `JSON` data module without specifying `val_split_fraction`, it now defaults to `0.05` (5%) instead of raising a `ValueError` - This provides a sensible out-of-the-box exp...
diff --git a/litgpt/data/json_data.py b/litgpt/data/json_data.py index 44a729e6b1..f6353680c5 100644 --- a/litgpt/data/json_data.py +++ b/litgpt/data/json_data.py @@ -44,10 +44,7 @@ class JSON(DataModule): def __post_init__(self): super().__init__() if self.json_path.is_file() and self.val_split_...
1
1
1
[{"id": "G0", "claim": "Print a warning so the user knows that val_split_fraction is being defaulted to 0.05 for single-file JSON input and how to control the percentage themselves, and update the corresponding test.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Lightning-AI__litgpt__462
Lightning-AI/litgpt
462
defect
6384da18bde929a448582a60ab32076805c0d2d9
0e8a604f225ef1f3f2cd1c74d70f1f69f94b769c
Add script to prepare dataset from csv
This commit aims to add a simple script to prepare a dataset from csv An assumption that the script make is the csv must contain these three columns: "instruction", "input", "output" (all case sensitive) Fixes #329
diff --git a/scripts/prepare_csv.py b/scripts/prepare_csv.py new file mode 100644 index 0000000000..ba889facdd --- /dev/null +++ b/scripts/prepare_csv.py @@ -0,0 +1,182 @@ +import json +import logging +import sys +import warnings +from pathlib import Path +from typing import Optional + +import pandas as pd +from tqdm i...
12
10
1
[{"id": "G0", "claim": "The CSV path should be a user-provided value instead of the hardcoded module constant CSV_PATH = \"instruction.csv\".", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The prepare() docstring documents an `llm` argument that does not...
null
Lightning-AI__litgpt__472
Lightning-AI/litgpt
472
defect
d5da152a37b27342e973d65cd8c3d8f479350be7
fa65442da1473ccddfddb924e9874f5ecfe3a591
Add CodeLlama configs
**Pull Request Description:** This pull request introduces support for various CodeLlama models and their configurations. The following CodeLlama models have been integrated into our system: **Base Models:** - **CodeLlama-7b-hf:** This model's configuration can be found [here](https://huggingface.co/codellam...
diff --git a/README.md b/README.md index dde2971957..a4a1780dab 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ Hackable [implementation](lit_gpt/model.py) of state-of-the-art open-source larg Supports the following popular model checkpoints: + | Model and usage ...
10
9
4
[{"id": "G0", "claim": "Loading CodeLlama-7b-Python-hf with generate/base.py fails with a state_dict size mismatch because the model's lm_head/wte are built with 32016 rows while the checkpoint carries 32000.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "cl...
null
Lightning-AI__litgpt__503
Lightning-AI/litgpt
503
defect
38e23b8148e625e759fb3d979e2f5e9a1f4a6931
0cf13c28261aea3a05b0d6160441fda1c3bd0bd0
Add falcon-180B checkpoint support
Fixes #502
diff --git a/lit_gpt/config.py b/lit_gpt/config.py index 9d59e899af..491db2e1fa 100644 --- a/lit_gpt/config.py +++ b/lit_gpt/config.py @@ -228,6 +228,26 @@ def norm_class(self) -> Type: copy["name"] = c["name"].format(kind) configs.append(copy) +# https://huggingface.co/tiiuae/falcon-180b/blob/main/...
3
3
3
[{"id": "G0", "claim": "The new falcon-180B config should be verified by replicating the existing falcon tests: load the HF version and ours and compare the outputs with a reduced n_layer value, since inference on the real model is not feasible.", "category": "testing", "verdict": "supported", "priority": "P1", "scope"...
null
Lightning-AI__litgpt__585
Lightning-AI/litgpt
585
defect
1058848ccb4ce6e84e21ad0b3b104b2ff669376f
767a1818ad51a8fbdae6574bca2de4c4a09f7560
Support FSDP in generate scripts
Fixes #432 With this fix we're able to run ``` python generate/base.py --strategy=fsdp --devices=2 ``` and avoid the AttributeError. I verified manually (comparing to main) that the memory and loading time is not impacted by these changes.
diff --git a/lit_gpt/utils.py b/lit_gpt/utils.py index a7fd33e4a1..5c5c683d98 100644 --- a/lit_gpt/utils.py +++ b/lit_gpt/utils.py @@ -165,6 +165,7 @@ def __getattr__(self, name): "dtype", "grad", "grad_fn", + "is_meta", "layout", "names", ...
1
1
1
[{"id": "G0", "claim": "Calling load_state_dict() on the meta model does nothing, so loading this way would produce a randomly initialized model; the checkpoint must always be loaded after the model is materialized, as in the finetune scripts.", "category": "correctness", "verdict": "supported", "priority": "P0", "scop...
null
Lightning-AI__litgpt__673
Lightning-AI/litgpt
673
defect
41e287db71cbf944844f87c009583c1760438247
706f05801c5cbaaa7743ac337fffab4782eaa0bf
Make HF meta data an optional field in Config
Fixes #672
diff --git a/lit_gpt/config.py b/lit_gpt/config.py index 76537f9f08..c89543bad3 100644 --- a/lit_gpt/config.py +++ b/lit_gpt/config.py @@ -12,8 +12,8 @@ @dataclass class Config: - org: str = "Lightning-AI" name: str = "lit-GPT" + hf_config: Optional[dict] = None block_size: int = 4096 vocab_siz...
5
3
1
[{"id": "G0", "claim": "The new tests in tests/test_config.py should be parametrized rather than single plain test functions.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The shallow dict copy in from_name no longer works now that configs hold a neste...
null
Lightning-AI__litgpt__772
Lightning-AI/litgpt
772
defect
21c1c5941fd56216875a250fb2c03053ba649793
da3e652953c868f299242ee184dd99c97dee353d
Microsoft/Phi-1.5: Update convert script
Hi there 👋 Fixes #760 In one of the latest commits, the team at Microsoft [changed](https://huggingface.co/microsoft/phi-1_5/commit/271c3397ab4e1f8f4e49868b1e8ba0be95363c88) model's architecture (Phi-1.5 that is) to a more conventional one, instead of putting everything in a "layer" variable. This PR reflect...
diff --git a/scripts/convert_hf_checkpoint.py b/scripts/convert_hf_checkpoint.py index a0058db395..5088f5171e 100644 --- a/scripts/convert_hf_checkpoint.py +++ b/scripts/convert_hf_checkpoint.py @@ -179,36 +179,28 @@ def copy_weights_phi( dtype: Optional[torch.dtype] = None, ) -> None: weight_map = { - ...
3
3
1
[{"id": "G0", "claim": "The revision pinning map in scripts/download.py can be removed now.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add an error that detects the old (pre-Phi-1.5) weights and instructs the user to redownload the data.", "...
null
Lightning-AI__litgpt__900
Lightning-AI/litgpt
900
defect
93b0dc75158f287520db016a6e21f71de865104f
0436a42b2ec271011e45705210368d51f8602c2e
Fix LoRA indices for interleaved QKV weights
As discussed in #891, the Q, K, and V projections are interleaved in Llama2 checkpoints and so the `zero_pad` method of `LoRAQKVLinear` is not being correctly applied. This PR modifies `self.lora_ind` accordingly to handle this case. Test plan: - Updated the expected LoRA indices test_lora.py's `test_lora_mqa_gqa` ...
diff --git a/lit_gpt/lora.py b/lit_gpt/lora.py index 80da55a242..339f71b301 100644 --- a/lit_gpt/lora.py +++ b/lit_gpt/lora.py @@ -271,13 +271,42 @@ def __init__( # ________________________________________ # | query | key | value | # ------------------------------...
7
6
3
[{"id": "G0", "claim": "head_dim should be computed as out_features // (self.n_query_groups * slice_size) instead of dividing by num_kv_heads.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The variable slice_size should be renamed to query_group_si...
null
Lightning-AI__litgpt__941
Lightning-AI/litgpt
941
defect
43efa6810972ef1b63dcaea807e8ea1b1f6c031e
034afacae63c402007efc04d65ffe072dba48b05
Add Gemma checkpoint support
Adds the new Gemma models by Google. - [x] Implement model download - [x] Test tokenizer - [x] Implement HF checkpoint conversion - [x] 2B model - [x] 7B model - [x] Make sure `generate.py` produces reasonable outputs - [x] 2B model - [x] 7B model - [x] Add chat template for the `-it` (aka instruct)...
diff --git a/lit_gpt/config.py b/lit_gpt/config.py index 439bca71ca..399b24c280 100644 --- a/lit_gpt/config.py +++ b/lit_gpt/config.py @@ -781,6 +781,49 @@ def norm_class(self) -> Type: configs.append(copy) +############### +# Google Gemma +############### +gemma = [ + # https://huggingface.co/google/ge...
2
2
2
[{"id": "G0", "claim": "The Gemma MLP should be implemented by halving fc_1 and fc_2 inside GemmaMLP (with intermediate_size halved), matching Keras, instead of introducing a separate GEGLU class.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The Gemma-...
null
Lightning-AI__litgpt__989
Lightning-AI/litgpt
989
defect
7cc82f50e98325840d375c171ec324d0469df4c9
b048ace772fdf5598e7f0e489c67a9098273ad97
Avoid underscores for config args
Fixes #979 This is a breaking change, so I also included removal for some legacy args. Checkpoint configs will need to be regenerated. I believe this is okay since everything has changed anyways
diff --git a/lit_gpt/adapter_v2.py b/lit_gpt/adapter_v2.py index 51b826a224..a0074289bb 100644 --- a/lit_gpt/adapter_v2.py +++ b/lit_gpt/adapter_v2.py @@ -28,7 +28,7 @@ class Config(BaseConfig): @property def mlp_class(self) -> Type: - return getattr(lit_gpt.adapter_v2, self._mlp_class) + retur...
1
1
0
[{"id": "G0", "claim": "The config arg `mlp_class_str` should be renamed to `mlp_class_name`, which is one character longer but much clearer about what the argument stands for.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Lightning-AI__pytorch-lightning__20320
Lightning-AI/pytorch-lightning
20,320
defect
1e88899a51c78534aa6897489829be94d76ef28e
dfce07e2610c3df50ce2b0c5b198a86bea840991
Add learning rate scheduling support for `DeepSpeedStrategy`
## What does this PR do? - Adds learning rate scheduling support for `DeepSpeedStrategy` - Credit to [lvhoaa](https://github.com/lvhoaa) for suggesting this change to make Fabric's support for internal DeepSpeed features even more robust <!-- Does your PR introduce any breaking changes? If yes, please list them....
diff --git a/src/lightning/fabric/fabric.py b/src/lightning/fabric/fabric.py index 058e5e7c40751..3aee8a4691ec6 100644 --- a/src/lightning/fabric/fabric.py +++ b/src/lightning/fabric/fabric.py @@ -32,6 +32,7 @@ from lightning_utilities.core.overrides import is_overridden from torch import Tensor from torch.optim imp...
10
9
4
[{"id": "G0", "claim": "The new return annotation of `setup_module_and_optimizers` in deepspeed.py should use lowercase `tuple[...]` instead of `Tuple[...]`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new return annotation of `setup_modu...
null
Lightning-AI__pytorch-lightning__20379
Lightning-AI/pytorch-lightning
20,379
defect
61a403a512466d65ebe730b1cc0cf4a909a533f2
8aa1b9ab9f5128d7e77b06ec80545f81a31429d8
Ensure restarting from checkpoints leads to consistent internal counters
## What does this PR do? Fixes #14579 The following code ```python import torch from torch.utils.data import DataLoader, Dataset import lightning as L from lightning.pytorch.callbacks import ModelCheckpoint class RandomDataset(Dataset): def __init__(self, size, length): self.len = leng...
diff --git a/src/lightning/pytorch/loops/evaluation_loop.py b/src/lightning/pytorch/loops/evaluation_loop.py index 0ab3901cf072d..78573c45aab76 100644 --- a/src/lightning/pytorch/loops/evaluation_loop.py +++ b/src/lightning/pytorch/loops/evaluation_loop.py @@ -15,6 +15,7 @@ import shutil import sys from collections ...
4
1
0
[{"id": "G0", "claim": "Use `LightningEnum` for the `RestartStage` classes instead of a dataclass with string constants, for consistency with the rest of the codebase.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename the `restarted_on_epoch...
null
Lightning-AI__pytorch-lightning__20538
Lightning-AI/pytorch-lightning
20,538
defect
a944e7744e57a5a2c13f3c73b9735edf2f71e329
7059161f07d77b375f56546a7f56ab7572dd0434
Add checkpoint artifact path prefix to MLflow logger
## What does this PR do? Introduces a new `checkpoint_path_prefix ` argument to `MLFlowLogger` which customizes the prefix for the model artifacts. Fixes #20540 <details> <summary><b>Before submitting</b></summary> - Was this **discussed/agreed** via a GitHub issue? (not for typos and docs) - [x] Did yo...
diff --git a/docs/source-pytorch/visualize/loggers.rst b/docs/source-pytorch/visualize/loggers.rst index bdf95ec1b675e..361056b7a5a21 100644 --- a/docs/source-pytorch/visualize/loggers.rst +++ b/docs/source-pytorch/visualize/loggers.rst @@ -54,3 +54,37 @@ Track and Visualize Experiments </div> </div> + ...
6
5
1
[{"id": "G0", "claim": "The docs example should import Lightning as `import lightning as L` instead of `from lightning.pytorch import Trainer`.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The docs example should construct the trainer as `traine...
null
Lightning-AI__pytorch-lightning__20775
Lightning-AI/pytorch-lightning
20,775
defect
6da480d5e3304b91ac188b849ee06e369e878460
964651bf09bcffbd8d54b1b5bf03105bae3b3b9d
Fix double iteration bug when resumed from a checkpoint.
## What does this PR do? This PR fixes the double `iter()` bug discussed in #19427 <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. If we didn't discuss your PR in Github issues...
diff --git a/src/lightning/pytorch/loops/fit_loop.py b/src/lightning/pytorch/loops/fit_loop.py index 31d6724a043a32..065237c5dffcdb 100644 --- a/src/lightning/pytorch/loops/fit_loop.py +++ b/src/lightning/pytorch/loops/fit_loop.py @@ -204,6 +204,11 @@ def skip(self) -> bool: # so we cannot use it solely ...
9
7
2
[{"id": "G0", "claim": "In the new test file the Trainer should be imported as `from lightning.pytorch import Trainer` instead of `from lightning import Trainer`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment above the `iter()` guar...
null
Lightning-AI__pytorch-lightning__20780
Lightning-AI/pytorch-lightning
20,780
defect
dd2912a045f1a1a0c87528b41c9854fc7454d4b0
d844bf677f08404d2539243e18b1a3fc919c5d5e
Allow cross-device local checkpoints with `fsspec>=2025.5.0`
## What does this PR do? Cross-device transactions via fsspec (used for example in ModelCheckpoint) resulted in permission errors (#20270). The permission errors were caused by attempts to change file modes on different filesystem. This was fixed in fsspec 2025.5.0. This PR proposes to increase the minimum version t...
diff --git a/requirements/fabric/base.txt b/requirements/fabric/base.txt index 2561b2324b772..c046c12970724 100644 --- a/requirements/fabric/base.txt +++ b/requirements/fabric/base.txt @@ -2,7 +2,7 @@ # in case you want to preserve/enforce restrictions on the latest compatible version, add "strict" as an in-line comm...
1
1
1
[{"id": "G0", "claim": "The cross-device case should be covered by a new test function conditioned on `fsspec[http] >=2025.5.0`, instead of being folded into the existing test and aggressively denying older fsspec versions via the requirement bump.", "category": "design", "verdict": "supported", "priority": "P1", "scop...
null
Lightning-AI__pytorch-lightning__20808
Lightning-AI/pytorch-lightning
20,808
defect
ab7b1181ac0c489826a2383e5855edd9584bd134
937dedf2d1c003096d60ac8d05884d99956b9bdf
Torch-Tensorrt Integration with LightningModule
## What does this PR do? <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. If we didn't discuss your PR in Github issues there's a high chance it will not be merged. The followin...
diff --git a/requirements/pytorch/test.txt b/requirements/pytorch/test.txt index fd4237ef74e66..269a6c97f71b4 100644 --- a/requirements/pytorch/test.txt +++ b/requirements/pytorch/test.txt @@ -17,3 +17,5 @@ fastapi # for `ServableModuleValidator` # not setting version as re-defined in uvicorn # for `ServableModuleV...
4
3
3
[{"id": "G0", "claim": "torch-tensorrt cannot be tested in CI with the oldest supported torch (2.1.2), so the tests should only target recent torch versions - e.g. skip it for PT <= 2.4 - and carry a todo note.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "clai...
null
Lightning-AI__pytorch-lightning__20809
Lightning-AI/pytorch-lightning
20,809
defect
95ad9c25d12114005179b2d2c6e221cba588ad26
707f1c0002452577f9698ee7df4cd93aceb9e177
Fix advanced profiler for python >=3.12
## What does this PR do? Fixes #19983 - Was this **discussed/agreed** via a GitHub issue? (not for typos and docs) - [x] Did you read the [contributor guideline](https://github.com/Lightning-AI/lightning/blob/master/.github/CONTRIBUTING.md), **Pull Request** section? - [x] Did you make sure your **PR does only ...
diff --git a/src/lightning/pytorch/profilers/advanced.py b/src/lightning/pytorch/profilers/advanced.py index 41681fbd239f3..38a67b4dca25d 100644 --- a/src/lightning/pytorch/profilers/advanced.py +++ b/src/lightning/pytorch/profilers/advanced.py @@ -19,6 +19,7 @@ import os import pstats import tempfile +from collecti...
3
3
1
[{"id": "G0", "claim": "A test should be added covering this case (the profiler change for Python 3.12+), since none exists yet.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "teardown() should call self.profiled_actions.clear() instead of reassigning a...
null
Lightning-AI__pytorch-lightning__20811
Lightning-AI/pytorch-lightning
20,811
defect
23f02ce9794b4fd6f6f53c3c2bb8605cad1b4bac
e7342e38d992ce064c940d629a032a75e60f3d81
Allow to return ONNXProgram when calling `to_onnx(dynamo=True)`
## What does this PR do? <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. If we didn't discuss your PR in Github issues there's a high chance it will not be merged. The followin...
diff --git a/pyproject.toml b/pyproject.toml index 48439bee75332..d3f6b10673187 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -180,6 +180,7 @@ markers = [ ] filterwarnings = [ "error::FutureWarning", + "ignore::FutureWarning:onnxscript", # Temporary ignore until onnxscript is updated ] xfail_strict = ...
3
3
1
[{"id": "G0", "claim": "The new test_model_return_type should also verify that the exported ONNX model's output matches the PyTorch model's output within tolerance, not only check the return type.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The to_on...
null
Lightning-AI__pytorch-lightning__20825
Lightning-AI/pytorch-lightning
20,825
defect
01ba7a1489498858617690ab921e84d5479c2eb1
b7cef512f5f733bf8fb2c427de12f519e22fa902
Fix: Synchronize SIGTERM Handling in DDP to Prevent Deadlocks
**What does this PR do?** This PR resolves a critical issue in PyTorch Lightning's Distributed Data Parallel (DDP) training where a SIGTERM signal received by one rank (typically rank 0) can cause deadlocks due to unsynchronized termination behavior across ranks. **Problem Description** In DDP training, PyTorc...
diff --git a/src/lightning/pytorch/loops/training_epoch_loop.py b/src/lightning/pytorch/loops/training_epoch_loop.py index 7cdf7888bbfe2..470715244a9c7 100644 --- a/src/lightning/pytorch/loops/training_epoch_loop.py +++ b/src/lightning/pytorch/loops/training_epoch_loop.py @@ -16,6 +16,8 @@ from dataclasses import data...
2
1
1
[{"id": "G0", "claim": "Some tests on CPU appear to be failing (unhappy) because of this change.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G4", "claim": "The feature causes CPU-GPU synchronization at the end of each training step via torch.distributed.broadca...
null
Lightning-AI__pytorch-lightning__20872
Lightning-AI/pytorch-lightning
20,872
defect
6675932a6037aac15081279b0c24f94bfa17b8b4
4e8e86c4d2dd510cc1acf955b587cac616c3058d
bugfix: add support for `global_ordinal`, `local_ordinal`, `world_size` in xla
## What does this PR do? PyTorch XLA has deprecated several methods in PyTorch 2.7: - Remove torch_xla.core.xla_model.xrt_world_size, replace with torch_xla.runtime.world_size - Remove torch_xla.core.xla_model.get_ordinal, replace with torch_xla.runtime.global_ordinal See [here](https://github.com/pytorch/xla/r...
diff --git a/src/lightning/fabric/CHANGELOG.md b/src/lightning/fabric/CHANGELOG.md index f67eec28deeeb..0b5a653b68835 100644 --- a/src/lightning/fabric/CHANGELOG.md +++ b/src/lightning/fabric/CHANGELOG.md @@ -16,6 +16,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - +### Fixed...
3
2
1
[{"id": "G0", "claim": "The pull request's new XLA behaviour (world_size, global_ordinal, local_ordinal via torch_xla.runtime) has no test coverage and tests should be added to cover it.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The version gate in...
null
Lightning-AI__pytorch-lightning__20896
Lightning-AI/pytorch-lightning
20,896
defect
64b2b6adad2ceabe410c488185e86390ddb9fc0c
b6c17720f9897c17f1d24159cbd26cf7f6111c7e
feat: Default to `RichProgressBar` and `RichModelSummary` if `rich` is available
## What does this PR do? This PR implements automatic detection of the optional rich package. If rich is available in the environment, PyTorch Lightning will now default to using RichProgressBar and RichModelSummary for an enhanced visual experience during training and model summarization. If rich is not available, ...
diff --git a/src/lightning/pytorch/trainer/connectors/callback_connector.py b/src/lightning/pytorch/trainer/connectors/callback_connector.py index 5c351aeebc5646..e95f196d9ae433 100644 --- a/src/lightning/pytorch/trainer/connectors/callback_connector.py +++ b/src/lightning/pytorch/trainer/connectors/callback_connector....
7
5
2
[{"id": "G0", "claim": "Move the _RICH_AVAILABLE patch out of the test bodies into a test wrapper, i.e. use the @patch(...) decorator instead of the inline `with patch(...)` block.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The rich version ...
null
Lightning-AI__pytorch-lightning__20913
Lightning-AI/pytorch-lightning
20,913
defect
c85660c0da7777c667309a3ef937276353aacc27
2675c7b041052952c53429a4d91705cc2316e502
Fabric: Enable "auto" for `devices` and `accelerator` as cli arguments
## What does this PR do? Fixes #20451 This PR adds support for the `auto` variable for `accelerator` and `devices` in the Fabric CLI. - When `auto` is passed to `--accelerator` we now detect whether the machine has either `mps`, `cuda`, or `cpu` and dynamically runs on the available device, this is the sam...
diff --git a/src/lightning/fabric/cli.py b/src/lightning/fabric/cli.py index 2268614abb97b..14b276c161a14 100644 --- a/src/lightning/fabric/cli.py +++ b/src/lightning/fabric/cli.py @@ -34,7 +34,7 @@ _CLICK_AVAILABLE = RequirementCache("click") _LIGHTNING_SDK_AVAILABLE = RequirementCache("lightning_sdk") -_SUPPORTED...
1
1
0
[{"id": "G0", "claim": "Don't duplicate the auto-accelerator detection logic inline in `_get_num_processes`; reuse the already-written function from the accelerator connector.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Lightning-AI__pytorch-lightning__20916
Lightning-AI/pytorch-lightning
20,916
defect
39438bfca2cde879331981d377f228db7a3ba79b
ac33670c3af13988f21c17bb70c020bfd1893682
Add `save_on_exception` option to `ModelCheckpoint`
What does this PR do? This PR adds a `save_on_exception` option to the ModelCheckpoint callback. This some of this functionality is already implemented in the `OnExceptionCheckpoint` checkpoint, but I believe that bundling all checkpoint options in the ModelCheckpoint is more intuitive. Additionally, this leads to the...
diff --git a/src/lightning/pytorch/callbacks/model_checkpoint.py b/src/lightning/pytorch/callbacks/model_checkpoint.py index 6b7b2831a2e04..207d938e09a83 100644 --- a/src/lightning/pytorch/callbacks/model_checkpoint.py +++ b/src/lightning/pytorch/callbacks/model_checkpoint.py @@ -97,6 +97,7 @@ class ModelCheckpoint(Che...
8
6
1
[{"id": "G0", "claim": "Restructure on_exception to an early return (if not self._should_save_on_exception(trainer): return) instead of indenting the whole body under the positive condition.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Turn th...
null
Lightning-AI__pytorch-lightning__20921
Lightning-AI/pytorch-lightning
20,921
defect
6535de12826e6de67b97394dc52bb498147199ce
7d616917a984c29a2b77781b18e8d5a2104290bd
Fix: `no_grad` with AMP bug
Fixes #20644 Note however that this would affect performance for other users, so the question is whether it is worth optimizing for this edge case that is fundamentally a `torch` bug. cc @Borda <!-- readthedocs-preview pytorch-lightning start --> ---- 📚 Documentation preview 📚: https://pytorch-lightning--...
diff --git a/src/lightning/pytorch/plugins/precision/amp.py b/src/lightning/pytorch/plugins/precision/amp.py index 75e792af46b90..bd34ca83d5e2b 100644 --- a/src/lightning/pytorch/plugins/precision/amp.py +++ b/src/lightning/pytorch/plugins/precision/amp.py @@ -112,7 +112,9 @@ def clip_gradients( super().clip_g...
3
2
0
[{"id": "G0", "claim": "Rewrite autocast_context_manager to compute dtype in a local variable and pass it as dtype=dtype to torch.autocast instead of the inline conditional.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Disabling the autocast c...
null
Lightning-AI__pytorch-lightning__20952
Lightning-AI/pytorch-lightning
20,952
defect
afa7d56eb7d6566af1bacc644435b7bde2e50487
21f9f28dad927c1cfeeab34190a6f06729e9b09d
Make asyncio checkpointing work if validate/fit is called more than once
## What does this PR do? Currently if using async checkpointing if fit or validate is called than once it will crash (because the threadpool is shutdown and never re-created). - This PR modifies the test to induce the crash and fixes it. No. - Was this **discussed/agreed** via a GitHub issue? (not for typo...
diff --git a/src/lightning/pytorch/CHANGELOG.md b/src/lightning/pytorch/CHANGELOG.md index 5b364ac1c7a3e..39ef22c9694a4 100644 --- a/src/lightning/pytorch/CHANGELOG.md +++ b/src/lightning/pytorch/CHANGELOG.md @@ -25,7 +25,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). ### Fixed ...
3
3
0
[{"id": "G0", "claim": "The explanation of why executor setup is deferred (the inline comment block above `_ensure_setup`) should be put in the function's docstring instead.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The changelog entry for th...
null
Lightning-AI__pytorch-lightning__21051
Lightning-AI/pytorch-lightning
21,051
defect
6a09f27e23e81e2a3946a47e44c86e1cef18a1c9
82dba6f7c04f55c5a4d84165eba30bfa54619b32
Fix `save_hyperparameters` not crashing on `dataclass` with `init=False`
## What does this PR do? <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. If we didn't discuss your PR in Github issues there's a high chance it will not be merged. The followin...
diff --git a/src/lightning/pytorch/CHANGELOG.md b/src/lightning/pytorch/CHANGELOG.md index 01bbc0ff03fb0..dc007aed8961d 100644 --- a/src/lightning/pytorch/CHANGELOG.md +++ b/src/lightning/pytorch/CHANGELOG.md @@ -41,6 +41,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - Fix `save_...
2
2
0
[{"id": "G0", "claim": "The `rank_zero_warn` telling users to remove `init=False` and re-initialize in `__post_init__` is not useful and should be removed, because it instructs users to do exactly what they are already doing.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id...
null
Lightning-AI__pytorch-lightning__21076
Lightning-AI/pytorch-lightning
21,076
defect
2c74bee068a664e124cc025155ba4bd563b76630
3cb99b931f8d2ece352c317b545fb622a5e345a4
bump: try `deepspeed >=0.14.1,<=0.15.0`
## What does this PR do? 'Let''s see if we are fine with this bump <!-- Does your PR introduce any breaking changes? If yes, please list them. --> <details> <summary><b>Before submitting</b></summary> - Was this **discussed/agreed** via a GitHub issue? (not for typos and docs) - [x] Did you read the [co...
diff --git a/.actions/assistant.py b/.actions/assistant.py index 7b2d49423d622..a49041932a2df 100644 --- a/.actions/assistant.py +++ b/.actions/assistant.py @@ -341,33 +341,6 @@ def create_mirror_package(source_dir: str, package_mapping: dict[str, str]) -> N class AssistantCLI: - @staticmethod - def requirem...
2
1
0
[{"id": "G0", "claim": "The test test_memory_sharing_disabled[ddp_fork] failed on CI with an unrelated RuntimeError from torch.distributed.barrier (PrivateUse1HooksInterface), suggesting the failure is not caused by this PR.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"...
null
Lightning-AI__pytorch-lightning__21105
Lightning-AI/pytorch-lightning
21,105
defect
4ff8ff7d767231e6f788ba83159be988f32c2a47
9e46f024af5bb0235811e4eff15e0119781c4e0e
Add missing device id for pytorch 2.8
## What does this PR do? <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. If we didn't discuss your PR in Github issues there's a high chance it will not be merged. The followin...
diff --git a/src/lightning/fabric/strategies/ddp.py b/src/lightning/fabric/strategies/ddp.py index ce47e4e403c34..1e9e163533d6a 100644 --- a/src/lightning/fabric/strategies/ddp.py +++ b/src/lightning/fabric/strategies/ddp.py @@ -212,7 +212,12 @@ def _setup_distributed(self) -> None: self._set_world_ranks() ...
1
1
1
[{"id": "G0", "claim": "The pull request's new device_id argument passed to init_process_group ships with no test, and a test for it should be added.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Lightning-AI__pytorch-lightning__21106
Lightning-AI/pytorch-lightning
21,106
defect
e55650dcebe1cb9c50addab06d292a1704b1d288
6c1554a631dfadf2274caae0e5755e6ef06cf11c
fix(callbacks): Defer step/time-triggered ModelCheckpoint saves until validation metrics are available
# Defer step/time-triggered ModelCheckpoint saves until validation metrics are available Fixes #20919 ## Root cause - With `every_n_train_steps` (or `train_time_interval`), checkpoints could save at train-batch end before validation ran. The monitored validation metric was missing/stale, so `best_model_score` co...
diff --git a/src/lightning/fabric/strategies/deepspeed.py b/src/lightning/fabric/strategies/deepspeed.py index c11ae8589d1ff..13013a3a666ec 100644 --- a/src/lightning/fabric/strategies/deepspeed.py +++ b/src/lightning/fabric/strategies/deepspeed.py @@ -282,10 +282,10 @@ def __init__( sub_group_size=sub...
1
1
1
[{"id": "G0", "claim": "Deferring the DeepSpeed import and logging configuration means setLevel is done at multiple later points and may be missed under certain conditions; the reviewer asks to still import deepspeed and set the logging level in __init__, which also gives early errors on bad imports.", "category": "des...
null
Lightning-AI__pytorch-lightning__21116
Lightning-AI/pytorch-lightning
21,116
defect
b581924d9bc11d25f332d5b7ece96ff27b4f1b7e
9061e15154a1be174f23851f787aafcf1126752f
Fix `LightningCLI` not using `ckpt_path` hyperparameters to instantiate classes
## What does this PR do? <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. If we didn't discuss your PR in Github issues there's a high chance it will not be merged. The followin...
diff --git a/src/lightning/pytorch/CHANGELOG.md b/src/lightning/pytorch/CHANGELOG.md index 10d90d68fcd45..0cd3e99c5f476 100644 --- a/src/lightning/pytorch/CHANGELOG.md +++ b/src/lightning/pytorch/CHANGELOG.md @@ -42,6 +42,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - Fixed `...
5
3
0
[{"id": "G0", "claim": "If someone provides a path to a checkpoint that corresponds to a different model, the error would be confusing; better if the error starts with something like \"parsing of hyperparameters found in ckpt_path failed\".", "category": "correctness", "verdict": "supported", "priority": "P2", "scope":...
null
Lightning-AI__pytorch-lightning__21146
Lightning-AI/pytorch-lightning
21,146
defect
3d56296978f3bd4d1f0957dbf361b9a0a53731fd
5cfca21097c482fc453f2ae65d9b514e0d326a69
Warning on eval module
## What does this PR do? <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. If we didn't discuss your PR in Github issues there's a high chance it will not be merged. The followin...
diff --git a/src/lightning/pytorch/CHANGELOG.md b/src/lightning/pytorch/CHANGELOG.md index 176e34273d776..96fcf3daa6396 100644 --- a/src/lightning/pytorch/CHANGELOG.md +++ b/src/lightning/pytorch/CHANGELOG.md @@ -16,6 +16,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - Added Torc...
1
1
0
[{"id": "G0", "claim": "Drop the unneeded f-string prefix on the second line of the warning message, which contains no interpolation.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Lightning-AI__pytorch-lightning__21161
Lightning-AI/pytorch-lightning
21,161
defect
663b6ce3a858dfb2da4752cb80f5cee08af17dfe
c41c24bbb184c774a286cbbdd1eab6ccbe836aed
Respect `verbose=False` in `seed_everything` when no seed is provided
## What does this PR do? Updates Fabric’s `seed_everything` to respect the `verbose=False` flag when no seed is provided. Previously, even with `verbose=False`, the function emitted a warning (`"No seed found, seed set to 0"`). This PR ensures that: - When `verbose=False`, no warnings or logs are emitted if ...
diff --git a/src/lightning/fabric/CHANGELOG.md b/src/lightning/fabric/CHANGELOG.md index 9f55de94d9135..691e0d7d9dd31 100644 --- a/src/lightning/fabric/CHANGELOG.md +++ b/src/lightning/fabric/CHANGELOG.md @@ -28,6 +28,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). ### Fixed - F...
1
1
0
[{"id": "G0", "claim": "Add two blank lines after the new CHANGELOG entry, separating it from the following `---` separator per the suggestion block.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
Lightning-AI__pytorch-lightning__21162
Lightning-AI/pytorch-lightning
21,162
defect
cdc0db4898b8cad6dbc8611b8e722280bdf79ec6
4959be487024d1626702b8de41f2768245949fae
Tuner cleanup on error
## What does this PR do? <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. If we didn't discuss your PR in Github issues there's a high chance it will not be merged. The followin...
diff --git a/src/lightning/pytorch/CHANGELOG.md b/src/lightning/pytorch/CHANGELOG.md index b3c22a1b1f11f..2e8390bca761c 100644 --- a/src/lightning/pytorch/CHANGELOG.md +++ b/src/lightning/pytorch/CHANGELOG.md @@ -45,6 +45,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - Fixed `T...
2
2
0
[{"id": "G0", "claim": "The bare except/raise in _scale_batch_size should not use a single-letter exception variable; rename `e` to `ex`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The bare except/raise in _lr_find should not use a single-le...
null
Lightning-AI__pytorch-lightning__21163
Lightning-AI/pytorch-lightning
21,163
defect
cdc0db4898b8cad6dbc8611b8e722280bdf79ec6
03d3e0474b8e0cd59c7cb5a145abceb8d3a58810
Add new args to `BatchSizeFinder`
## What does this PR do? <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. If we didn't discuss your PR in Github issues there's a high chance it will not be merged. The followin...
diff --git a/src/lightning/pytorch/callbacks/batch_size_finder.py b/src/lightning/pytorch/callbacks/batch_size_finder.py index e348f4946e51b..a03251ec995b8 100644 --- a/src/lightning/pytorch/callbacks/batch_size_finder.py +++ b/src/lightning/pytorch/callbacks/batch_size_finder.py @@ -63,6 +63,10 @@ class BatchSizeFinde...
4
4
3
[{"id": "G0", "claim": "About 9 tests are failing with this pull request's change.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Give max_val a concrete default (1024) instead of None in BatchSizeFinder.__init__ and _scale_batch_size, so users don'...
null
Lightning-AI__pytorch-lightning__21186
Lightning-AI/pytorch-lightning
21,186
defect
cd30ce45810874a8d74cf61412e17d221a94dc4d
34305db056093ae0cbe3f897814445e864bfd957
Prevent recursive symlink creation iwhen `save_last='link'` and `save_top_k=-1`
## Fix ModelCheckpoint recursive symlink creation when save_last='link' and save_top_k=-1 ## What does this PR do? This PR fixes a bug in PyTorch Lightning's ModelCheckpoint callback where using `save_last='link'` with `save_top_k=-1` creates a recursive symlink (`last.ckpt -> last.ckpt`). This occurs when the la...
diff --git a/src/lightning/pytorch/callbacks/model_checkpoint.py b/src/lightning/pytorch/callbacks/model_checkpoint.py index dfc0cebb8d07d..415e1dcac309b 100644 --- a/src/lightning/pytorch/callbacks/model_checkpoint.py +++ b/src/lightning/pytorch/callbacks/model_checkpoint.py @@ -484,7 +484,7 @@ def _save_checkpoint(se...
2
1
0
[{"id": "G0", "claim": "The new test should use/import the BoringModel (and dataset) classes from src/lightning/pytorch/demos/boring_classes.py instead of redefining them locally.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "With save_last='li...
null
Lightning-AI__pytorch-lightning__21195
Lightning-AI/pytorch-lightning
21,195
defect
6765901e6a39574a7745a2fc93fe0a7f1c9a670a
52bb67d197c86c6c6793786b51289ed23e6f14b5
tests: fix skipif condition for `deepspeed`
## What does this PR do? seems it was falsely skipped, found while checking testing logs required for #21194 <!-- Does your PR introduce any breaking changes? If yes, please list them. --> <details> <summary><b>Before submitting</b></summary> - Was this **discussed/agreed** via a GitHub issue? (not for ...
diff --git a/.azure/gpu-tests-fabric.yml b/.azure/gpu-tests-fabric.yml index b2f8ab0447a20..d179370906abe 100644 --- a/.azure/gpu-tests-fabric.yml +++ b/.azure/gpu-tests-fabric.yml @@ -85,6 +85,7 @@ jobs: displayName: "extend env. vars 4 future" - bash: | + set -ex echo $(DEVICES) ...
4
2
0
[{"id": "G0", "claim": "The comment added to the GPU test jobs misspells 'todo' as 'toto' ('# toto: rather use devel base image') in .azure/gpu-tests-fabric.yml and .azure/gpu-tests-pytorch.yml; fix the typo.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "...
null
Lightning-AI__pytorch-lightning__21209
Lightning-AI/pytorch-lightning
21,209
defect
b7ca4d365978512ae053d7d8a8c2ddc99894e813
b2d30f1ba62a2d74451d23684bd427629a44f9fb
Add MPS accelerator support for mixed precision
## What does this PR do? This PR adds proper MPS (Apple Silicon GPU) accelerator support for mixed precision training by fixing device selection logic and adding comprehensive tests. Fixes #14358 > to be checked for: #20497 > fabric got it in #20876 <!-- Please include a summary of the change and which issu...
diff --git a/src/lightning/pytorch/trainer/connectors/accelerator_connector.py b/src/lightning/pytorch/trainer/connectors/accelerator_connector.py index 7f44de0589938..f42af42edf42f 100644 --- a/src/lightning/pytorch/trainer/connectors/accelerator_connector.py +++ b/src/lightning/pytorch/trainer/connectors/accelerator_...
2
2
0
[{"id": "G0", "claim": "The two-entry parametrize list mapping accelerator to an identical expected device is redundant and should be collapsed to a single parametrize of accelerator values.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The exp...
null
Lightning-AI__pytorch-lightning__21258
Lightning-AI/pytorch-lightning
21,258
defect
e21b1725f00c3a5b5f4d5e17f20a30caa159938e
f331b5de55e37e2cfce96dbc3913c570c244b37d
[Fabric] Ignore Keyword Arguments Outside of Callback Signature
## What does this PR do? <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. If we didn't discuss your PR in Github issues there's a high chance it will not be merged. The followin...
diff --git a/docs/source-fabric/guide/callbacks.rst b/docs/source-fabric/guide/callbacks.rst index 2a9a0e482d3ea..079ec5f27a6c2 100644 --- a/docs/source-fabric/guide/callbacks.rst +++ b/docs/source-fabric/guide/callbacks.rst @@ -83,6 +83,30 @@ The :meth:`~lightning.fabric.fabric.Fabric.call` calls the callback objects ...
1
1
0
[{"id": "G0", "claim": "The 'skip self' lines in _filter_kwargs_for_callback should be removed since self is not part of the inspected callback method's parameter signature.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Lightning-AI__pytorch-lightning__21260
Lightning-AI/pytorch-lightning
21,260
defect
f58a176513bd0cdafec0228b9828d9cc9c63f22d
8821df0d3128c0a49c98e50a12c0383e3c0ca086
Add `EMAWeightAveraging` callback to `weight_averaging.py`
## What does this PR do? Adds a default `EMAWeightAveraging` callback to `weight_averaging.py` for convenience. Now, users of `weight_averaging.py` can directly instantiate an EMA callback for model training with safe default hyperparameters chosen. <details> <summary><b>Before submitting</b></summary> - W...
diff --git a/src/lightning/pytorch/CHANGELOG.md b/src/lightning/pytorch/CHANGELOG.md index 99af24fe80b69..471b8c2827481 100644 --- a/src/lightning/pytorch/CHANGELOG.md +++ b/src/lightning/pytorch/CHANGELOG.md @@ -25,6 +25,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - Added supp...
3
3
3
[{"id": "G0", "claim": "The new EMAWeightAveraging callback ships without any tests, and the reviewer asks the author to write tests for it.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The checkpoint save/load test must set `model.crash_on_epoch = 2`...
null
Lightning-AI__pytorch-lightning__21300
Lightning-AI/pytorch-lightning
21,300
defect
c943c05c1425fb73cdaef8dee1bca65dabff626b
3628795275f035fdba7c17f4427815f78b2b8906
build(deps): bump torch & torchvision from 2.8.0 to 2.9.0 in /requirements with compatibility fixes
Bumps [torch](https://github.com/pytorch/pytorch) from 2.8.0 to 2.9.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/pytorch/pytorch/releases">torch's releases</a>.</em></p> <blockquote> <h2>2.9 Release Notes</h2> <h1>PyTorch 2.9.0 Release Notes</h1> <ul> <li><a href="https:...
diff --git a/requirements/fabric/base.txt b/requirements/fabric/base.txt index 0a7629151f6c15..ad36bc25fcc13b 100644 --- a/requirements/fabric/base.txt +++ b/requirements/fabric/base.txt @@ -1,7 +1,7 @@ # NOTE: the upper bound for the package version is only set for CI stability, and it is dropped while installing thi...
3
2
1
[{"id": "G0", "claim": "The tensorrt package appears to install CUDA 13 builds by default for torch 2.9.0 instead of the CUDA 12.6 builds it should install, causing the current CI issue.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The TensorRT GP...
null
Lightning-AI__pytorch-lightning__21307
Lightning-AI/pytorch-lightning
21,307
defect
7d0d0ad4e48a7ba0f9e63c5507c1017190d3de87
71d2ebd13b4e3332381a9bd9ee558ebcfe1fe09a
LRs updates are called at the end of a skipped epoch
## What does this PR do? This PR fixes learning rate not being updated at the end of epoch when `on_train_batch_start` returns -1. Fixes #21296 It postpones the existing `raise StopIteration` after the learning rate update. <!-- Does your PR introduce any breaking changes? If yes, please list them. --> <...
diff --git a/src/lightning/fabric/CHANGELOG.md b/src/lightning/fabric/CHANGELOG.md index 0e1cc944a3492..94fc998f1684a 100644 --- a/src/lightning/fabric/CHANGELOG.md +++ b/src/lightning/fabric/CHANGELOG.md @@ -27,7 +27,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). ### Fixed --...
3
2
1
[{"id": "G0", "claim": "The changelog entry uses double brackets [[#21296]] where a single-bracket link [#21296] is intended.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Asks what the logic is in changing self.batch_progress.increment_processed...
null
Lightning-AI__pytorch-lightning__21321
Lightning-AI/pytorch-lightning
21,321
defect
9bcba1c1e82b45e10f948dc28fc12f4cf04ab736
6c7108ee0f0730dcc0845739128f6c08471b8173
Improve RichProgreasBar speed performance
## What does this PR do? <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. If we didn't discuss your PR in Github issues there's a high chance it will not be merged. The followin...
diff --git a/src/lightning/pytorch/callbacks/progress/rich_progress.py b/src/lightning/pytorch/callbacks/progress/rich_progress.py index d4c3c916c7ed0..15cec555a93d1 100644 --- a/src/lightning/pytorch/callbacks/progress/rich_progress.py +++ b/src/lightning/pytorch/callbacks/progress/rich_progress.py @@ -12,6 +12,7 @@ ...
1
1
0
[{"id": "G0", "claim": "The refresh thread's hardcoded 0.005s polling interval should be made configurable, ideally by reusing the existing refresh_rate argument, so users can reduce the refresh frequency if required.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Lightning-AI__pytorch-lightning__21352
Lightning-AI/pytorch-lightning
21,352
defect
b15d394f2a9d36ccefba08328ac8dc2bd13e49b2
a0bf51b0b0dc3039559258f5931d6e6cecab20e1
test(ci): add pytorch version `2.9` for CPU tests
## What does this PR do? <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. If we didn't discuss your PR in Github issues there's a high chance it will not be merged. The followin...
diff --git a/.github/workflows/ci-tests-fabric.yml b/.github/workflows/ci-tests-fabric.yml index adf6ae5af1d80..e21468015d91c 100644 --- a/.github/workflows/ci-tests-fabric.yml +++ b/.github/workflows/ci-tests-fabric.yml @@ -40,23 +40,20 @@ jobs: matrix: os: [macOS-14, ubuntu-22.04, windows-2022] ...
2
2
0
[{"id": "G0", "claim": "The comment in .github/workflows/ci-tests-fabric.yml should drop the word 'standalone' and read 'Test \"fabric\" package with PyTorch 2.6-2.9', since 'standalone' is confusingly similar to 'standalone tests'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "intr...
null
Lightning-AI__pytorch-lightning__21361
Lightning-AI/pytorch-lightning
21,361
defect
b15d394f2a9d36ccefba08328ac8dc2bd13e49b2
1e63163b23481dee74146ffb38353efba8cc9cac
Fix FSDP mixed precision semantics and add user warning
## What does this PR do? <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. If we didn't discuss your PR in Github issues there's a high chance it will not be merged. The followin...
diff --git a/src/lightning/fabric/plugins/precision/fsdp.py b/src/lightning/fabric/plugins/precision/fsdp.py index 270a67e3a2338..3dd6c22d81b0a 100644 --- a/src/lightning/fabric/plugins/precision/fsdp.py +++ b/src/lightning/fabric/plugins/precision/fsdp.py @@ -24,6 +24,7 @@ from lightning.fabric.plugins.precision.amp ...
2
2
0
[{"id": "G0", "claim": "Don't warn in __init__ for every precision other than 32-true (\"let's not do this\").", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a warning in mixed_precision_config for 16-true and bf16-true that FSDP always keeps a full-...
null
Lightning-AI__pytorch-lightning__21380
Lightning-AI/pytorch-lightning
21,380
defect
8f702b3f762f6d24acba6c21871c7b447a83ef20
0ac7fcf1850fc535733dfed74c2a6e816598789f
Fix ModelCheckpoint file_exists OOM in DDP
## What does this PR do? - Use [strategy.reduce_boolean_decision] instead of [broadcast] in [ModelCheckpoint.file_exists]. - Ensure only global rank 0 touches the filesystem when checking for existing checkpoints. - Avoid `broadcast_object_list` for a simple boolean in DDP to reduce memory pressure in the checkp...
diff --git a/src/lightning/pytorch/callbacks/model_checkpoint.py b/src/lightning/pytorch/callbacks/model_checkpoint.py index 5357ee39a942a5..648158e7f7c0ed 100644 --- a/src/lightning/pytorch/callbacks/model_checkpoint.py +++ b/src/lightning/pytorch/callbacks/model_checkpoint.py @@ -999,8 +999,14 @@ def to_yaml(self, fi...
3
3
0
[{"id": "G0", "claim": "Always call `reduce_boolean_decision` (a no-op when `trainer.world_size == 1`) instead of returning early for single-process runs, for consistency.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a changelog entry for ...
null
Lightning-AI__pytorch-lightning__21384
Lightning-AI/pytorch-lightning
21,384
defect
79ffe5025e0ceababbe874d6269e2006145226c1
2e5ae5f423164493e88d4e0d8748d39d336af971
Fix ModelParallelStrategy fails with non-distributed checkpoint.
## What does this PR do? - Adds a CUDA-only integration test that mirrors the reporter’s compiled ModelParallel setup so the `KeyError('model.0.weight')` reproduces in CI. - Fixes [ModelParallelStrategy.optimizer_state] so when `torch.compile` wraps the module, optimizer states get rekeyed through both the compiled...
diff --git a/src/lightning/pytorch/CHANGELOG.md b/src/lightning/pytorch/CHANGELOG.md index 3558fe3cadc66..f8be6c68cd71a 100644 --- a/src/lightning/pytorch/CHANGELOG.md +++ b/src/lightning/pytorch/CHANGELOG.md @@ -6,19 +6,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). --- -## ...
1
1
1
[{"id": "G0", "claim": "The pull request unintentionally removed unrelated Unreleased changelog content (the [Unreleased] heading and the Added/Changed sections) during conflict resolution, and those sections should be restored.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduc...
null
Lightning-AI__pytorch-lightning__21395
Lightning-AI/pytorch-lightning
21,395
defect
79ffe5025e0ceababbe874d6269e2006145226c1
ab7d8fb3190a84a0fed883a587de55504b04a7de
Sanitize profile filename
## What does this PR do? <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. If we didn't discuss your PR in Github issues there's a high chance it will not be merged. The followin...
diff --git a/src/lightning/pytorch/CHANGELOG.md b/src/lightning/pytorch/CHANGELOG.md index 3558fe3cadc66..c7645c5ce5bcb 100644 --- a/src/lightning/pytorch/CHANGELOG.md +++ b/src/lightning/pytorch/CHANGELOG.md @@ -20,6 +20,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - +### ...
1
1
1
[{"id": "G0", "claim": "The `sanitize` flag on `_prepare_filename` looks like an internal switch with no way for a user to turn it off, so the profiler should either sanitize unconditionally or expose it as a proper configuration option passed through the constructor and stored as an instance attribute.", "category": "...
null
Lightning-AI__pytorch-lightning__21453
Lightning-AI/pytorch-lightning
21,453
defect
027455bcd9433f201b1136f68d54b1a07588abe3
c422d9bbc82d86933d072c9c6c52d9b8a2e90f24
Fix warning frequency in throughput monitor callback
## What does this PR do? <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. If we didn't discuss your PR in Github issues there's a high chance it will not be merged. The followin...
diff --git a/src/lightning/pytorch/callbacks/throughput_monitor.py b/src/lightning/pytorch/callbacks/throughput_monitor.py index d38928d33de75..ecd5349a3eb68 100644 --- a/src/lightning/pytorch/callbacks/throughput_monitor.py +++ b/src/lightning/pytorch/callbacks/throughput_monitor.py @@ -89,6 +89,7 @@ def __init__( ...
1
1
0
[{"id": "G0", "claim": "Please update the changelog too (add an entry for the ThroughputMonitor warning fix to the changelog).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Lightning-AI__pytorch-lightning__21467
Lightning-AI/pytorch-lightning
21,467
defect
affee2885b1913ca12e4c5dd5c0da82038918c40
0e06c06f04cf131ce96b7ae26d911bc7ef644ce7
Fix RichModelSummary model size display
## What does this PR do? `RichModelSummary` incorrectly passed `model_size` (already in MB) to `get_human_readable_count()`, which converts numbers to K/M/G format. This resulted in misleading output like "5.5 K" instead of the actual size "5,500.000". Now uses `get_formatted_model_size()` for consistency with `Model...
diff --git a/src/lightning/pytorch/callbacks/rich_model_summary.py b/src/lightning/pytorch/callbacks/rich_model_summary.py index 2843806ca595a0..e287361e7412a5 100644 --- a/src/lightning/pytorch/callbacks/rich_model_summary.py +++ b/src/lightning/pytorch/callbacks/rich_model_summary.py @@ -17,7 +17,7 @@ from lightni...
1
1
1
[{"id": "G0", "claim": "Add a test covering the pull request's change to how RichModelSummary renders model_size.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Lightning-AI__pytorch-lightning__21478
Lightning-AI/pytorch-lightning
21,478
defect
affee2885b1913ca12e4c5dd5c0da82038918c40
36601d93ffa693c2b672850c50c16bcc81f0cb4c
Fix LightningDataModule.load_from_checkpoint to restore subclass and hyperparameters
## What does this PR do? `LightningDataModule.load_from_checkpoint` currently fails to restore the concrete DataModule subclass and its hyperparameters from the checkpoint. This happens because `LightningDataModule.__init__` does not accept `*args` and `**kwargs`, causing the instantiator to filter out subclass-spec...
diff --git a/src/lightning/pytorch/core/datamodule.py b/src/lightning/pytorch/core/datamodule.py index 07ec02ef87bd8..83daeff162b7f 100644 --- a/src/lightning/pytorch/core/datamodule.py +++ b/src/lightning/pytorch/core/datamodule.py @@ -80,8 +80,8 @@ def teardown(self): CHECKPOINT_HYPER_PARAMS_NAME = "datamodule_h...
2
2
1
[{"id": "G0", "claim": "The datamodule constructor should not forward extra arguments to super().__init__(), since none of its superclasses (DataHooks and HyperparameterMixin) accept additional arguments.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim"...
null
Lightning-AI__pytorch-lightning__21616
Lightning-AI/pytorch-lightning
21,616
defect
612ab081e633861f6c7178b7e3e5eaf15b429b94
3d5a8d63d212382b3e1ffec19a54953743568d90
fix: restore cached AMP step context after no_grad workaround
## What does this PR do? Fixes #21611 This PR addresses the AMP memory regression introduced when #20921 changed `MixedPrecision.autocast_context_manager()` to use `cache_enabled=False` globally as a workaround for the nested `no_grad()` autocast cache-poisoning bug reported in #20644. That workarou...
diff --git a/src/lightning/pytorch/plugins/precision/amp.py b/src/lightning/pytorch/plugins/precision/amp.py index 5ea62233e1f69..8bbf14609136e 100644 --- a/src/lightning/pytorch/plugins/precision/amp.py +++ b/src/lightning/pytorch/plugins/precision/amp.py @@ -11,7 +11,7 @@ # limitations under the License. from colle...
1
1
0
[{"id": "G0", "claim": "The pull request should add CUDA tests, since the existing tests cover only CPU and CUDA coverage would be valuable for this AMP change.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Lightning-AI__pytorch-lightning__21623
Lightning-AI/pytorch-lightning
21,623
defect
6805188c711094339e76d81668a4037dd56f7c7a
359ea151e4249134939dad5c536ce28256edfdc5
fix: set nonzero exit code for SIGTERMException
## What does this PR do? Fixes #19916 `SIGTERMException` inherits from `SystemExit` but was raised without arguments, so `SystemExit.code` defaulted to `None` — which Python converts to exit code 0. This made it impossible for wrapper scripts or job schedulers (e.g. SLURM) to distinguish a SIGTERM kill from a clean e...
diff --git a/src/lightning/pytorch/CHANGELOG.md b/src/lightning/pytorch/CHANGELOG.md index d2a838c1ea24f..d4df3e31a435f 100644 --- a/src/lightning/pytorch/CHANGELOG.md +++ b/src/lightning/pytorch/CHANGELOG.md @@ -22,7 +22,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). ### Fixed ...
2
2
0
[{"id": "G0", "claim": "SIGTERMException should compute the exit code as `code = 128 + 15` with a comment pointing to the exit-codes reference instead of the magic number 143, since that provides more context.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1"...
null
Lightning-AI__pytorch-lightning__4230
Lightning-AI/pytorch-lightning
4,230
defect
7c4f80a1afe3d7b0f1e9ee834aacaf8439195cdf
8269a74f7649f56f0932c73a17b2ad015c890055
Fix COMET_EXPERIMENT_KEY environment variable usage in comet logger
## What does this PR do? <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. --> Fixes #4229 (issue) # Before submitting - [ ] Was this discussed/approved via a Github issue?...
diff --git a/pytorch_lightning/loggers/comet.py b/pytorch_lightning/loggers/comet.py index 553d5186a979d..a4926d29863a7 100644 --- a/pytorch_lightning/loggers/comet.py +++ b/pytorch_lightning/loggers/comet.py @@ -185,7 +185,8 @@ def experiment(self): if self._experiment is not None: return self._e...
4
2
1
[{"id": "G0", "claim": "Move the cleaning of `self._future_experiment_key` into the finally block (popping the env var and resetting the attribute there) so the additional `manual_set_experiment_key_environment_variable` variable is not needed.", "category": "maintainability", "verdict": "supported", "priority": "P2", ...
null
Lightning-AI__pytorch-lightning__4273
Lightning-AI/pytorch-lightning
4,273
defect
e0e402dbe6eeed16c80b637c04353d83229df8f9
984c73f7995e3b3d5c73d32353326baecd6aa77c
Skip replacing dataloader sampler if it's already a distributed sampler
## What does this PR do? <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. --> This PR skips replacing the dataloader's sampler if the sampler is already of type `DistributedSamp...
diff --git a/pytorch_lightning/trainer/data_loading.py b/pytorch_lightning/trainer/data_loading.py index bf85bb2c6122eb..5a570332cc3dd2 100644 --- a/pytorch_lightning/trainer/data_loading.py +++ b/pytorch_lightning/trainer/data_loading.py @@ -112,8 +112,9 @@ def auto_add_sampler(self, dataloader: DataLoader, train: boo...
10
10
3
[{"id": "G0", "claim": "s-rog asks whether a test already covers this new behavior and implies one should be added if not.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "awaelchli warns that with this change the `replace_sampler_ddp` docstring is slight...
null
Lightning-AI__pytorch-lightning__4278
Lightning-AI/pytorch-lightning
4,278
defect
5d1583d7f2c71471ee37c5e688b8db81fb8171d5
9b47abdbdecb70216917722d249b8e554414a43f
Fix bug comparing max_steps to global step which inits at 0
## What does this PR do? Fixes #4193 Just going to make a test before calling this ready for review. ## PR review - [ ] Is this pull request ready for review? (if not, please submit in draft mode) Anyone in the community is free to review the PR once the tests have passed. If we didn't discuss your ...
diff --git a/pytorch_lightning/trainer/trainer.py b/pytorch_lightning/trainer/trainer.py index 68eafe45ba392..2e157f182cd2f 100644 --- a/pytorch_lightning/trainer/trainer.py +++ b/pytorch_lightning/trainer/trainer.py @@ -481,7 +481,7 @@ def train(self): # run train epoch self.train_loo...
1
1
1
[{"id": "G0", "claim": "The `+ 1` added to the end-of-epoch max_steps check in trainer.py cannot be the fix, since that check runs only at the end of each epoch; the fix must be in the loop that runs over the training batches.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}...
null
Lightning-AI__pytorch-lightning__4281
Lightning-AI/pytorch-lightning
4,281
defect
3a38294d6db285f26f9a4f7c953f76500638c294
d0c96b195f5a22f454c9d73ce595e7911b9dafc1
[Metrics] Fix/4237 auc unstable reorder
## What does this PR do? Deprecates the `reorder` parameter to the `auc` metric because of `torch.argsort` being unstable. <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. --> ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 89e24d3011723f..fc2bbcf090c281 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). ### Deprecated +- Deprecated `reorder` parameter of the `auc` metric ([#4237](https://github.c...
2
2
0
[{"id": "G0", "claim": "Please also add a note to the `reorder` argument's entry in the `auc` docstring (the deprecation and its argsort inaccuracy caveat).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Please fix the pep8 issue at pytorch_lightn...
null
Lightning-AI__pytorch-lightning__4318
Lightning-AI/pytorch-lightning
4,318
defect
9823f97a84e6c54b182dce1aa2ad5434c3fc760b
decfc627688065d0b0fcfc4c9f7bd8e88c2af280
[Metrics] MetricCollection
## What does this PR do? <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. --> Adds generic `MetricCollection` object to chain together multiple `Metric` objects. I seen both on...
diff --git a/docs/source/metrics.rst b/docs/source/metrics.rst index dadf654b1ef67..ed3e92a051c3d 100644 --- a/docs/source/metrics.rst +++ b/docs/source/metrics.rst @@ -144,6 +144,61 @@ Example implementation: def compute(self): return self.correct.float() / self.total +**************** +MetricC...
5
4
1
[{"id": "G0", "claim": "The collection should filter keyword arguments based on each metric's method signature (via inspect) rather than passing all args and kwargs to every metric.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Sharing the same metric i...
null
Lightning-AI__pytorch-lightning__4344
Lightning-AI/pytorch-lightning
4,344
defect
c7511bcbb49565c5b24f368fa25862f740f3ec28
afdcb2a9977704dd072fbab0403119d80b8c0852
get help from docstring
## What does this PR do? Get help message of argparse from docstring. ``` ➜ python3 pl_examples/basic_examples/mnist.py --help usage: mnist.py [-h] [--batch_size BATCH_SIZE] [--logger [LOGGER]] [--checkpoint_callback [CHECKPOINT_CALLBACK]] [--default_root_dir DEFAULT_ROOT_DIR] ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d979b41893f5d..6955dda39e9522 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - Added `strict` option to the scheduler dictionary ([#3586](https://github.com/PyTorchLightning...
4
4
1
[{"id": "G0", "claim": "parse_args_from_docstring should also recognize the alternative section headers 'Arguments:' and 'Parameters:', not just 'Args:', to be a bit more general.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The CHANGELOG entry 'Added ...
null
Lightning-AI__pytorch-lightning__4382
Lightning-AI/pytorch-lightning
4,382
defect
8e3faa2da1e7c64a54072fa5115a242e71c49c4b
1a86f82c4f95e090caa086b7914a99b6c5a50a31
Enable DDP Plugin to pass through args to LightningDistributedDataParallel
## What does this PR do? <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. --> This makes the DDP Plugin more generic, so people don't have to subclass if they only want to chang...
diff --git a/pytorch_lightning/plugins/ddp_plugin.py b/pytorch_lightning/plugins/ddp_plugin.py index 27deeeddfdb45..654b99bff358b 100644 --- a/pytorch_lightning/plugins/ddp_plugin.py +++ b/pytorch_lightning/plugins/ddp_plugin.py @@ -1,12 +1,16 @@ -from pytorch_lightning.overrides.data_parallel import LightningDistribut...
2
2
1
[{"id": "G0", "claim": "Rename the new kwargs attribute to ddp_kwargs instead of _ddp_args.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "The typing import should be updated to include Dict and Any, as in `from typing import List, Dict, Any`.",...
null
Lightning-AI__pytorch-lightning__4559
Lightning-AI/pytorch-lightning
4,559
defect
6e5f232f5cec2b5e635ae34fa365c6b969d0902e
15b55cfd8f58a752ac005be373b4d35a5d9d921c
Unify attribute finding logic, fix not using dataloader when hparams present
Simple PR to fix #4558. Unifies attribute finding logic into `lightning_get_attr_holder`, which does what it says and returns the object or dict with the target attribute, or none if it can't find one. The lightning get/set/has attribute methods then use it. Changes the logic of attribute finding (in `lightnin...
diff --git a/pytorch_lightning/utilities/parsing.py b/pytorch_lightning/utilities/parsing.py index c8230205752d4b..611fd25d1b47bf 100644 --- a/pytorch_lightning/utilities/parsing.py +++ b/pytorch_lightning/utilities/parsing.py @@ -174,51 +174,48 @@ def __repr__(self): return out -def lightning_hasattr(mode...
12
6
2
[{"id": "G0", "claim": "The new attribute-finding function should keep a single return statement, which is easier to debug.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `elif hasattr(model.hparams, attribute)` branch is redundant because i...
null
Lightning-AI__pytorch-lightning__4861
Lightning-AI/pytorch-lightning
4,861
defect
204a0a2d03ce7dfb014e347f1d34a49ef5e86902
2c7927f3d499e01d6990aeeff50f1ae769862abc
Fix saved filename in ModelCheckpoint if it already exists
## What does this PR do? <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. If we didn't discuss your PR in Github issues there's a high chance it will not be merged. --> Fixes...
diff --git a/CHANGELOG.md b/CHANGELOG.md index c87c3811a8003..374877bfe97c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -63,6 +63,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). ### Fixed +- Fixed the saved filename in `ModelCheckpoint` when it already exists ([#4861](https...
7
6
1
[{"id": "G0", "claim": "The `assert len(ckpt_files) == len(expected)` check in the new test is unnecessary.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Parametrize the new test over epochs 2 and 3 to cover the reported from-run-to-run variability of ...
null
Lightning-AI__pytorch-lightning__4995
Lightning-AI/pytorch-lightning
4,995
defect
ab7c947961815e117fdda9652fc9c834a8ec5d98
0044d00a925536543bf4c9a7925d27f980de0781
enable testing DDP examples
## What does this PR do? enable DDP test for example Resolves #4694 ## Before submitting - [x] Was this discussed/approved via a Github issue? (no need for typos and docs improvements) - [x] Did you read the [contributor guideline](https://github.com/PyTorchLightning/pytorch-lightning/blob/master/.github/CO...
diff --git a/pl_examples/test_examples.py b/pl_examples/test_examples.py index da21384190163..22d29fe483df0 100644 --- a/pl_examples/test_examples.py +++ b/pl_examples/test_examples.py @@ -24,17 +24,12 @@ --accelerator dp \ """ -ARGS_DP_AMP = ARGS_DP + """ ---precision 16 \ -""" - ARGS_DDP = ARGS_DEFAULT + """ --...
3
2
1
[{"id": "G0", "claim": "The CI (Drone) checks are breaking, and the reviewer asked that this be resolved before approval.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The DDP example tests should not run on every commit/PR but only as a scheduled nigh...
null
Lightning-AI__pytorch-lightning__5008
Lightning-AI/pytorch-lightning
5,008
defect
239347435029c0a02b305201ebbfa39d62746ca8
00099b3abd2d91300a59d821155373167e835ce3
Start version suffixes at 1
## What does this PR do? It is assumed that `file.ckpt` would correspond to `-v0`. Chose not to rename it to `file-v0.ckpt` after the discussion at https://github.com/PyTorchLightning/pytorch-lightning/issues/5030#issuecomment-741763874 Fixes #5000 ## Before submitting - [x] Was this discussed/approved via a ...
diff --git a/pytorch_lightning/callbacks/model_checkpoint.py b/pytorch_lightning/callbacks/model_checkpoint.py index eb669736ada3a1..f7922aa8666a69 100644 --- a/pytorch_lightning/callbacks/model_checkpoint.py +++ b/pytorch_lightning/callbacks/model_checkpoint.py @@ -271,7 +271,7 @@ def __validate_init_configuration(sel...
4
2
0
[{"id": "G0", "claim": "The updates from `logged_metrics` and `progress_bar_metrics` in `_monitor_candidates` should not be needed because they are already included in `callback_metrics`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G3", "claim": "Nothing sh...
null
Lightning-AI__pytorch-lightning__5032
Lightning-AI/pytorch-lightning
5,032
defect
68ba4931f0f588c2795e77f0cb858de5e72cc526
ed5c940bff7fa23d591e8755740d3a8183ca2612
Mean Average Precision metric for Information Retrieval (1/5)
## What does this PR do? Integrate the first out of 5 new metrics for information retrieval into the metrics package. This PR contains both the class metrics and the functional version. This PR is the 1/5 of the PR resulted by splitting #4991. ## Before submitting - [x] Was this discussed/approved via a Githu...
diff --git a/docs/source/metrics.rst b/docs/source/metrics.rst index ee141dc74a679..16935e1e49395 100644 --- a/docs/source/metrics.rst +++ b/docs/source/metrics.rst @@ -561,6 +561,30 @@ bleu_score [func] .. autofunction:: pytorch_lightning.metrics.functional.nlp.bleu_score :noindex: +********************* +Info...
16
13
4
[{"id": "G0", "claim": "There is no reference metric the new retrieval AP implementation could be tested against.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The docs section heading 'Class Metrics (IR)' should not carry the '(IR)' suffix.", "categor...
null
Lightning-AI__pytorch-lightning__5050
Lightning-AI/pytorch-lightning
5,050
defect
cdbddbe99f5b77e253eb627edf98c3159add9583
ea4f88e496da324270b435f9214dfb1be705af8c
feat(wandb): offset logging step when resuming
## What does this PR do? <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. If we didn't discuss your PR in Github issues there's a high chance it will not be merged. --> When ...
diff --git a/pytorch_lightning/loggers/wandb.py b/pytorch_lightning/loggers/wandb.py index 24007c3a04307..3d0ec9a2e217e 100644 --- a/pytorch_lightning/loggers/wandb.py +++ b/pytorch_lightning/loggers/wandb.py @@ -31,6 +31,7 @@ from pytorch_lightning.loggers.base import LightningLoggerBase, rank_zero_experiment from...
4
4
1
[{"id": "G0", "claim": "The warning message should say 'Use `commit=False` when logging metrics manually' instead of 'if logging metrics manually'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The one-time-warning flag should be read and set on ...
null
Lightning-AI__pytorch-lightning__5106
Lightning-AI/pytorch-lightning
5,106
defect
3100b7839a8a4491ef6f270ece642f78657b74c8
53da0ea1959d2d0de39b1e60250c0a02a2a27909
Fix reset TensorRunningAccum
## What does this PR do? Fixes #5073
diff --git a/pytorch_lightning/trainer/supporters.py b/pytorch_lightning/trainer/supporters.py index 57747be0d51fb..b2ba92846b241 100644 --- a/pytorch_lightning/trainer/supporters.py +++ b/pytorch_lightning/trainer/supporters.py @@ -50,7 +50,7 @@ def __init__(self, window_length: int): def reset(self) -> None: ...
1
1
1
[{"id": "G0", "claim": "Tests for `TensorRunningAccum` should be added to verify it has the right behaviour, since none exist for the class and the PR changes `reset()`.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Lightning-AI__pytorch-lightning__5432
Lightning-AI/pytorch-lightning
5,432
defect
b5e7e030d4c049c9614672b3b83ac825894605eb
c350956f90d381dff85283b833298bb628396d5e
[tests/core] Updated with BoringModel and added BoringDataModule
## What does this PR do? <!-- IMPORTANT: We separated bug-fix PRs and feature PRs and they shall land in master and release/1.X-dev accordingly. By default all PR are targeted to master which is correct for bug-fixes, but need to be change for features. If you miss it we can still fix it for you, just ping us...
diff --git a/pytorch_lightning/trainer/configuration_validator.py b/pytorch_lightning/trainer/configuration_validator.py index 6e3e062e45a53..80d4c8952a1f3 100644 --- a/pytorch_lightning/trainer/configuration_validator.py +++ b/pytorch_lightning/trainer/configuration_validator.py @@ -88,8 +88,8 @@ def __verify_train_lo...
6
6
0
[{"id": "G0", "claim": "Tests that need `non_picklable` should subclass BoringDataModule and override setup(), rather than the base class setting a lambda attribute in setup().", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The on_save_checkpoint/on_load...
null
Lightning-AI__pytorch-lightning__5510
Lightning-AI/pytorch-lightning
5,510
defect
71d5cc11f13c1338fbe3f74a8d12e438cc6fddef
58441861ea121c1850e17741d208d495bce423b9
Ignore `step` param in Neptune logger's log_metric method
## What does this PR do? The `step` parameter is ignored in `log_metrics()` because Neptune requires strictly increasing step values, a condition which is sometimes violated in Lighting e.g. when `fit()` and `test()` are called one after another on some models. `step` could be enabled again once Lightning guarantees...
diff --git a/pytorch_lightning/loggers/neptune.py b/pytorch_lightning/loggers/neptune.py index 9f3c3787a417e..e55d2fd7d4956 100644 --- a/pytorch_lightning/loggers/neptune.py +++ b/pytorch_lightning/loggers/neptune.py @@ -251,13 +251,15 @@ def log_metrics( Args: metrics: Dictionary with metric na...
1
1
1
[{"id": "G0", "claim": "The two tests `test_neptune_additional_methods` and `test_logger_with_prefix_all` in tests/loggers/test_neptune.py and tests/loggers/test_all.py must be adjusted to match the changed neptune logger behaviour.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced...
null
Lightning-AI__pytorch-lightning__5591
Lightning-AI/pytorch-lightning
5,591
defect
24462dc5fdc079e909f214bb6f938bfe42dbcf43
270ca1a308ffac2251608017ae80d735fba8618a
define Yapf config
## What does this PR do? eventually, we would move to Yet-Another-Python-Formater so this is just setting rules, for illustration how it goes you can check Bolts codebase when we have already deployed it With deploy YAPF check we may drop ISORT which has atm incompatibility with PEP8, see https://github.com/PyCQA/i...
diff --git a/.github/workflows/code-formatting.yml b/.github/workflows/code-formatting.yml index 3e2f296226a48..bbca0fa5f86e6 100644 --- a/.github/workflows/code-formatting.yml +++ b/.github/workflows/code-formatting.yml @@ -22,21 +22,21 @@ jobs: - name: Run isort run: isort --settings-path=./pyproject....
5
2
2
[{"id": "G0", "claim": "Asks why yapf was chosen over alternative formatters such as black.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Requests that the yapf configuration avoid the hanging-indent continuation style where wrapped arguments are aligne...
null
Lightning-AI__pytorch-lightning__5920
Lightning-AI/pytorch-lightning
5,920
defect
4857546c259042fbc9b2ddc155cd9e6b5bf5d3ff
47e9a0b6d9d7b0b9ed8e14aed9e2f1e11ec42483
simplify skip-if tests >> 0/n
## What does this PR do? simplify chaining skip-if in pytests ```python @pytest.mark.skipif(**skipif_args(min_gpus=2, min_torch="99")) def test_skip(): ... ``` ## Before submitting - [ ] Was this discussed/approved via a GitHub issue? (not for typos and docs) - [x] Did you read the [contributor...
diff --git a/tests/__init__.py b/tests/__init__.py index c9642003d6ceb..1c039d6ff9af2 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -14,15 +14,13 @@ import os import numpy as np -import torch -from pytorch_lightning.utilities import _TORCH_LOWER_EQUAL_1_4, _TORCH_QUANTIZE_AVAILABLE +from tests.helpers...
16
9
2
[{"id": "G0", "claim": "Provide a named decorator (e.g. @skipIfNoGPUs or @gpu_required(2)/@device_required(gpus=2)) instead of applying @pytest.mark.skipif(**_SKIPIF_NO_GPUS)-style kwargs.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The replacement of t...
null
Lightning-AI__pytorch-lightning__6177
Lightning-AI/pytorch-lightning
6,177
defect
1b498d1f143820a3acb7154ec24bf9d33a5a60ef
f206a869f5c3313eb19d647dd7c00ed01ca6e323
Fix when _stable_1d_sort to work when n >= N
## What does this PR do? <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. If we didn't discuss your PR in Github issues there's a high chance it will not be merged. The follow...
diff --git a/pytorch_lightning/metrics/utils.py b/pytorch_lightning/metrics/utils.py index 8ee727ebcba75..5191b72cb678e 100644 --- a/pytorch_lightning/metrics/utils.py +++ b/pytorch_lightning/metrics/utils.py @@ -286,5 +286,8 @@ def _stable_1d_sort(x: torch, N: int = 2049): if N - n > 0: x_max = x.max() ...
1
1
0
[{"id": "G0", "claim": "carmocca suggests the added branching in _stable_1d_sort be replaced so that the padding happens inside the if, the sort is done once unconditionally, and the result is sliced to i = min(N, n).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Lightning-AI__pytorch-lightning__6877
Lightning-AI/pytorch-lightning
6,877
defect
19e67d18c472c3a03dec4dd9bfcef031e9ca8719
5555ca86e645ebe5fd954f31803401a7a7cd1848
[Fix] Ensure we set the eval/train flag correctly on accelerator model
## What does this PR do? Fixes #6876. This PR is ready, with more information underneath. We also require https://github.com/facebookresearch/fairscale/pull/587 to be merged and included in next release, but since we do not rely on the upstream release yet, this fix isn't going to change any FairScale related ...
diff --git a/pytorch_lightning/trainer/trainer.py b/pytorch_lightning/trainer/trainer.py index 46886ab39c85c..bfbdfd927af96 100644 --- a/pytorch_lightning/trainer/trainer.py +++ b/pytorch_lightning/trainer/trainer.py @@ -582,11 +582,11 @@ def run_train(self) -> None: self.checkpoint_connector.has_trained = Fal...
2
1
1
[{"id": "G0", "claim": "Add comments explaining when to use self.model versus when to use self.lightning_module in the trainer.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The self.model.eval() calls added directly in run_evaluation and run_pre...
null
Lightning-AI__pytorch-lightning__8421
Lightning-AI/pytorch-lightning
8,421
defect
74a09a23f17c498088f0cfe5b4b0ee7eb4081968
8d4b3bdc70e27ec044f0589c071b0da21521e454
Hash values in LightningEnum instead of name.
## What does this PR do? Fixes enums hash by name and not by value. For example: ``` TrainerFn.FITTING in (None, "fit") # True TrainerFn.FITTING in {None, "fit"} # False ``` Both should have the same result. ## Before submitting - [ ] Was this discussed/approved via a GitHub issue? (not for typos and do...
diff --git a/pytorch_lightning/utilities/enums.py b/pytorch_lightning/utilities/enums.py index dd71a7dc72415..1fd9d29fe0c6e 100644 --- a/pytorch_lightning/utilities/enums.py +++ b/pytorch_lightning/utilities/enums.py @@ -34,7 +34,7 @@ def __eq__(self, other: Union[str, Enum]) -> bool: def __hash__(self) -> int: ...
3
3
2
[{"id": "G0", "claim": "The hash must be case invariant like __eq__, so it should return hash(self.value.lower()).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The PR should add a test for the new hash behaviour, e.g. a doctest for DeviceType show...
null
Lightning-AI__pytorch-lightning__9769
Lightning-AI/pytorch-lightning
9,769
defect
ab207921b9149a2c20ff9f797b6381f61cb09b1e
e8d7909449b5e58777e297f8e71b4b59201da182
remove redundant accumulation normalization in manual optimization
## What does this PR do? This is a small code improvement. Passing `normalize=trainer.accumulate_grad_batches` is redundant as its value is always 1. In fact, a user setting a value greater than 1 is leading to an error message from the Trainer anyway, as this is an unsupported feature for manual optimization. ##...
diff --git a/pytorch_lightning/loops/optimization/manual_loop.py b/pytorch_lightning/loops/optimization/manual_loop.py index cc37217493c46..bf7e39c139070 100644 --- a/pytorch_lightning/loops/optimization/manual_loop.py +++ b/pytorch_lightning/loops/optimization/manual_loop.py @@ -55,7 +55,6 @@ def from_training_step_ou...
1
1
1
[{"id": "G0", "claim": "Since the call site no longer passes accumulate_grad_batches, the vestigial `normalize` input argument and the `.div(normalize)` it feeds should also be removed from ManualResult.from_training_step_output.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "intro...
null
LimeChain__Fruzhin__568
LimeChain/Fruzhin
568
defect
f6f43ad89ad41e99f4339fa5e49274a3d27e18e8
352c76bdf245027c3b8005ad6d4bb8bd57ead4b2
Implemented consensus message epoch state update
- What does this PR do? Implementa consensus message epoch state update during block announcement - Why are these changes needed? https://github.com/LimeChain/Fruzhin/issues/563 ## Checklist: - [x] I have read the [contributing guidelines](https://github.com/LimeChain/Fruzhin/blob/dev/CONTRIBUTING.md). - [x] ...
diff --git a/src/main/java/com/limechain/babe/consesus/BabeConsensusMessage.java b/src/main/java/com/limechain/babe/consesus/BabeConsensusMessage.java new file mode 100644 index 000000000..232379831 --- /dev/null +++ b/src/main/java/com/limechain/babe/consesus/BabeConsensusMessage.java @@ -0,0 +1,13 @@ +package com.lim...
6
5
1
[{"id": "G0", "claim": "The consensus-message handling should be extracted into a separate class (BabeSync/DigestHelper) or hook, so BlockAnnounceEngine stays single-responsibility.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The BabeConsensusMessage ...
null
LimeChain__Fruzhin__618
LimeChain/Fruzhin
618
defect
141ea588a662bb339f7f7c7c43358b98950594a0
6ac30a1b2902ee02b0ad21fa9e82948535bef46c
Implemented verify slot winner and fixed network
Implement verify slot winner and fix network block announce pears ## Checklist: - [x] I have read the [contributing guidelines](https://github.com/LimeChain/Fruzhin/blob/dev/CONTRIBUTING.md). - [x] My PR title matches the [Conventional Commits spec](https://www.conventionalcommits.org/). - [ ] My change requires ...
diff --git a/src/main/java/com/limechain/babe/Authorship.java b/src/main/java/com/limechain/babe/Authorship.java index 73de761ec..1f4fc4cc0 100644 --- a/src/main/java/com/limechain/babe/Authorship.java +++ b/src/main/java/com/limechain/babe/Authorship.java @@ -191,7 +191,7 @@ private static Integer getSecondarySlotAuth...
1
1
1
[{"id": "G0", "claim": "The isBelowThreshold check in BlockProductionVerifier.verifySlotWinner compares the raw VrfOutput against the threshold, but per the reviewer the compared value should be generated with Schnorrkel.makeBytes() (as done in Authorship.claimPrimarySlot), so the slot-winner verification may use the w...
null
LimeChain__Fruzhin__628
LimeChain/Fruzhin
628
defect
043402d6c68a6e1f8c0e0ef7fdf5acfe5319224e
7cc4d9861a943e84ea139a73638663e7420de79b
Implemented Verify Authorship Right algorithm without block equivocation
Implemented Verify Authorship Right algorithm without block equivocation ## Checklist: - [x] I have read the [contributing guidelines](https://github.com/LimeChain/Fruzhin/blob/dev/CONTRIBUTING.md). - [x] My PR title matches the [Conventional Commits spec](https://www.conventionalcommits.org/). - [ ] My change re...
diff --git a/src/main/java/com/limechain/babe/BlockProductionVerifier.java b/src/main/java/com/limechain/babe/BlockProductionVerifier.java index 3d02a28a7..03c624b71 100644 --- a/src/main/java/com/limechain/babe/BlockProductionVerifier.java +++ b/src/main/java/com/limechain/babe/BlockProductionVerifier.java @@ -1,9 +1,...
3
2
1
[{"id": "G0", "claim": "verifyAuthorship should drop its dependency on EpochState and instead take EpochData, EpochDescriptor, epochIndex and slotNumber as parameters, so any block for any epoch and slot can be verified.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G...
null
LimeChain__Fruzhin__630
LimeChain/Fruzhin
630
defect
372616735aa42d7b41e1d574044420dd320c3a4c
0c359e40a084809e3c9d0a25c6f029f4b9204e62
624 propagate block
# Description This PR extracts the functionalities of sending peer messages and handshakes in a separate class. This further isolates the `Network` class's responsibilities to solely manage the network and connected peers. The PR aims to implement broadcasting functionalities for newly produced or received block ann...
diff --git a/src/main/java/com/limechain/babe/BabeService.java b/src/main/java/com/limechain/babe/BabeService.java index b62517c9b..ce803899b 100644 --- a/src/main/java/com/limechain/babe/BabeService.java +++ b/src/main/java/com/limechain/babe/BabeService.java @@ -2,21 +2,17 @@ import com.limechain.babe.coordinator....
2
1
0
[{"id": "G0", "claim": "buildBlockAnnounceMessage should be made non-static so it is consistent with buildNeighbourMessage above it.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The author should check the Gradle build process because it is failing.", ...
null
LimeChain__Fruzhin__640
LimeChain/Fruzhin
640
defect
ea0c3aecc9637e08d388a5cb72ed29092cb39173
a486fcd5b59b982210a81a2fc7ae17d40f856e2a
Implemented Block equivocation without unit tests
Implemented Block equivocation via creating map per slot to keep information about produced blocks buy authorities in given slot. ## Checklist: - [x] I have read the [contributing guidelines](https://github.com/LimeChain/Fruzhin/blob/dev/CONTRIBUTING.md). - [x] My PR title matches the [Conventional Commits spec](htt...
diff --git a/src/main/java/com/limechain/babe/BlockProductionVerifier.java b/src/main/java/com/limechain/babe/BlockProductionVerifier.java index eab74400e..1b71cb7bd 100644 --- a/src/main/java/com/limechain/babe/BlockProductionVerifier.java +++ b/src/main/java/com/limechain/babe/BlockProductionVerifier.java @@ -1,5 +1,...
8
8
4
[{"id": "G0", "claim": "Use one hex-encoding helper consistently for the currentSlotAuthorBlockMap keys: the put uses StringUtils.toHexWithPrefix() (0x-prefixed) while the lookup uses HexUtils.toHexString(), so please choose one of them and use it consistently.", "category": "correctness", "verdict": "supported", "prio...
null
LimeChain__Fruzhin__661
LimeChain/Fruzhin
661
defect
b5775fffeb0f4b80c9c288539cfa466c4cb19530
d69aa86e61108e493f33b136257fa46e6684bd90
Implement GRANDPA-GHOST
# Description GHOST method identifies the "heaviest" block -> the block with the most cumulative votes, from the current voting round. The implementation ensures that the block selection adheres to the threshold of valid votes, recursively including ancestor blocks when direct votes are insufficient. Fixes https...
diff --git a/src/main/java/com/limechain/grandpa/GrandpaService.java b/src/main/java/com/limechain/grandpa/GrandpaService.java new file mode 100644 index 000000000..72bde1aed --- /dev/null +++ b/src/main/java/com/limechain/grandpa/GrandpaService.java @@ -0,0 +1,246 @@ +package com.limechain.grandpa; + +import com.limec...
4
4
2
[{"id": "G0", "claim": "Add a blank line between the class declaration and the first field for consistent formatting.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Rename getGrandpaGHOST() to getGrandpaGhost() to stick to the project's naming c...
null
LimeChain__Fruzhin__663
LimeChain/Fruzhin
663
defect
be7cbd08317437e0202e0cc7ca86e5c35b5cecb7
6f89cb84158ec3a6d78871dc28db9c25b7e8fb5a
Implemented functionality for reading grandpa consensus message
Implemented functionality for reading grandpa consensus message ## Checklist: - [x] I have read the [contributing guidelines](https://github.com/LimeChain/Fruzhin/blob/dev/CONTRIBUTING.md). - [x] My PR title matches the [Conventional Commits spec](https://www.conventionalcommits.org/). - [ ] My change requires a ...
diff --git a/src/main/java/com/limechain/network/protocol/grandpa/messages/consensus/GrandpaConsensusMessage.java b/src/main/java/com/limechain/network/protocol/grandpa/messages/consensus/GrandpaConsensusMessage.java new file mode 100644 index 000000000..3eb24563b --- /dev/null +++ b/src/main/java/com/limechain/network...
1
1
0
[{"id": "G0", "claim": "The field lastFinalizedBlock should be renamed (suggested forcedChangeBlockNumber, governanceBlockNumber, or delayStartBlockNumber) per the polkadot spec definition of the m field in the grandpa consensus message, and its type changed from long to BigInteger for consistency with the other block ...
null
LimeChain__Fruzhin__678
LimeChain/Fruzhin
678
defect
2e97cc9b519242e7f90f563dd8d93687cd1e6b6d
2a1b87c6b90f4220f7f1ae0edde946be4f76aa34
Implement Finalizable in GrandpaService
# Description - Polkadot Spec: https://spec.polkadot.network/sect-finality#algo-finalizable & https://spec.polkadot.network/sect-finality#defn-grandpa-completable - All variables containing pre-vote or pre-commits are renamed to ...PreVote... | ...PreCommit... Fixes https://github.com/LimeChain/Fruzhin/issues/39...
diff --git a/src/main/java/com/limechain/grandpa/GrandpaService.java b/src/main/java/com/limechain/grandpa/GrandpaService.java index 68063b6a3..d267b05ea 100644 --- a/src/main/java/com/limechain/grandpa/GrandpaService.java +++ b/src/main/java/com/limechain/grandpa/GrandpaService.java @@ -31,6 +31,93 @@ public GrandpaSe...
1
1
0
[{"id": "G0", "claim": "In isCompletable's loop over Ghost descendants, the variables currentBlockHash and observedVotesForCurrentBlock should be renamed to descendantBlockHash and observedVotesForDescendantBlock to make explicit which block they refer to.", "category": "maintainability", "verdict": "supported", "prior...
null
LimeChain__Fruzhin__679
LimeChain/Fruzhin
679
defect
e9fae70482656f74df1617e635c8965dd15ddcfe
6c8eceae5ac544695b20082cd64b2a556ef1eba1
Implemented Best PreVote Candidate algorithm
Implemented Best PreVote Candidate algorithm. https://spec.polkadot.network/sect-finality#algo-best-prevote-candidate ## Checklist: - [x] I have read the [contributing guidelines](https://github.com/LimeChain/Fruzhin/blob/dev/CONTRIBUTING.md). - [x] My PR title matches the [Conventional Commits spec](https://www....
diff --git a/src/main/java/com/limechain/grandpa/GrandpaService.java b/src/main/java/com/limechain/grandpa/GrandpaService.java index d9e9cbccf..08f83d99a 100644 --- a/src/main/java/com/limechain/grandpa/GrandpaService.java +++ b/src/main/java/com/limechain/grandpa/GrandpaService.java @@ -4,7 +4,9 @@ import com.limecha...
5
5
4
[{"id": "G0", "claim": "RoundState mixes set data (voters, setId, roundNumber) with round data (votes, equivocations, primary proposal) and its voteMessage field is overwritten on every handled vote message, so set and round state should be separated into a GrandpaSetState and a GrandpaRound held by the state.", "categ...
null
LimeChain__Fruzhin__681
LimeChain/Fruzhin
681
defect
e9fae70482656f74df1617e635c8965dd15ddcfe
b7e13822213683a7ca1d139f72f21c2cb935530e
680: Persist and Fetch GRANDPA Data with Refactoring from Previous Class
### Description - Added new methods to persist and fetch GRANDPA-related data in the database. - Refactored the code to eliminate duplicate data by moving relevant fields from SyncState to RoundState (Grandpa state). - Refactored WarpSyncMachine.java and WarpSyncState.java to accommodate these changes. **P.S. A...
diff --git a/src/main/java/com/limechain/grandpa/state/RoundState.java b/src/main/java/com/limechain/grandpa/state/RoundState.java index 0702b259d..a18da6bbe 100644 --- a/src/main/java/com/limechain/grandpa/state/RoundState.java +++ b/src/main/java/com/limechain/grandpa/state/RoundState.java @@ -1,18 +1,27 @@ package ...
9
8
0
[{"id": "G0", "claim": "The pull request should not use wildcard (star) imports, e.g. `import static com.limechain.storage.StateUtil.*;` in RoundState.java and `import java.util.*;` in WarpSyncMachine.java, and IntelliJ should be configured so they are not introduced.", "category": "maintainability", "verdict": "suppor...
null
LimeChain__Fruzhin__691
LimeChain/Fruzhin
691
defect
df4f627c7dc2eea9a05eabaa97399e35de74d74e
37949277b6ac96d8d07a51425351b25854b3eb36
687 populate grandpa and babe states from runtime
# Description feat: Add ServiceConsensusState interface with populateFromRuntime() method - Introduced `ServiceConsensusState` interface to define the initializeFromRuntime() method for RoundState and EpochState as requiring runtime data. - Implemented populateFromRuntime() - Integrated these state initializati...
diff --git a/src/main/java/com/limechain/ServiceConsensusState.java b/src/main/java/com/limechain/ServiceConsensusState.java new file mode 100644 index 000000000..3ce8f5fcf --- /dev/null +++ b/src/main/java/com/limechain/ServiceConsensusState.java @@ -0,0 +1,14 @@ +package com.limechain; + +import com.limechain.runtime...
9
2
0
[{"id": "G0", "claim": "The ServiceConsensusState javadoc should say \"This\" instead of \"The {ServiceConsensusState}\", capitalize BEEFY, and drop the comma before 'BABE'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Asks whether the initializ...
null
LimeChain__Fruzhin__702
LimeChain/Fruzhin
702
defect
d0fd452df93e4cc0ae64151f2d34e583429c06c1
938788dcd95cc51aeafa76d3dfb2b33fd2341096
Fix grandpa initialization issues
Fix grandpa initialization issues ## Checklist: - [x] I have read the [contributing guidelines](https://github.com/LimeChain/Fruzhin/blob/dev/CONTRIBUTING.md). - [x] My PR title matches the [Conventional Commits spec](https://www.conventionalcommits.org/). - [ ] My change requires a change to the documentation. ...
diff --git a/src/main/java/com/limechain/grandpa/GrandpaService.java b/src/main/java/com/limechain/grandpa/GrandpaService.java index 82c3e16db..8f09fb626 100644 --- a/src/main/java/com/limechain/grandpa/GrandpaService.java +++ b/src/main/java/com/limechain/grandpa/GrandpaService.java @@ -26,9 +26,9 @@ public class Gran...
3
3
1
[{"id": "G0", "claim": "Remove the @PostConstruct annotation from GrandpaSetState.initialize() so that it does not execute for every node start.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Group the injected beans together and leave the remaining fiel...
null
LimeChain__Fruzhin__703
LimeChain/Fruzhin
703
defect
d0fd452df93e4cc0ae64151f2d34e583429c06c1
fe3ae1809729261bf54c84acf03330b66a1bd9da
399 Attempt to finalize at round
# Description - Implement Attempt-To-Finalize-At-Round by the polkadot spec definition -> https://spec.polkadot.network/sect-finality#algo-attempt-to%E2%80%93finalize - Rename ```getBestFinalCandidate```, ```getGrandpaGhost``` and ```getBestPreVoteCandidate``` to ```findBestFinalCandidate```, ```findGrandpaGhost```...
diff --git a/src/main/java/com/limechain/grandpa/GrandpaService.java b/src/main/java/com/limechain/grandpa/GrandpaService.java index 82c3e16db..326fd8dd1 100644 --- a/src/main/java/com/limechain/grandpa/GrandpaService.java +++ b/src/main/java/com/limechain/grandpa/GrandpaService.java @@ -31,6 +31,35 @@ public GrandpaSe...
2
1
0
[{"id": "G0", "claim": "The 2/3 voter-threshold numbers in attemptToFinalizeAt look like magic numbers and should get a comment, a link, or an inline explanation of how they were chosen.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "cleanCommitMe...
null
LimeChain__Fruzhin__707
LimeChain/Fruzhin
707
defect
d0fd452df93e4cc0ae64151f2d34e583429c06c1
22bdf1cafd93de94a2783bcd8a1244e76b7c732d
feat: Implement broadcasting commit messages and added unit tests.
# Description Implement broadcasting commit messages. The logic is being used in Play Grandpa Round when we are the primary validator in the current round. A commit message is constructed, based on the best final candidate determined from the previous round. Commit message is broadcasted to network peers. Fixes #69...
diff --git a/src/main/java/com/limechain/grandpa/GrandpaService.java b/src/main/java/com/limechain/grandpa/GrandpaService.java index 82c3e16db..01b151386 100644 --- a/src/main/java/com/limechain/grandpa/GrandpaService.java +++ b/src/main/java/com/limechain/grandpa/GrandpaService.java @@ -4,10 +4,13 @@ import com.limec...
5
5
2
[{"id": "G0", "claim": "CommitMessageScaleWriter should keep its constructor private and be used as a single shared instance (CommitMessageScaleWriter.getInstance()) instead of being publicly constructed per call.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cl...
null
LimeChain__Fruzhin__722
LimeChain/Fruzhin
722
defect
b7b105ada70d4abf69d5eaad8668b885f02f6d02
a0f5ff1f3f17d88da45b657b2345916cee203292
403 process catchup request
# Description - Implemented handling of catch up requests and introduced last finalized round reference to GrandpaSetState as per spec (It will be used in Play Grandpa Round and Process Catch-up Responses, too) - Added catch up threshold when sending catch up request as per spec - Extracted handling and sending of...
diff --git a/src/main/java/com/limechain/grandpa/state/GrandpaSetState.java b/src/main/java/com/limechain/grandpa/state/GrandpaSetState.java index 11cffeb8c..e55b97dc0 100644 --- a/src/main/java/com/limechain/grandpa/state/GrandpaSetState.java +++ b/src/main/java/com/limechain/grandpa/state/GrandpaSetState.java @@ -4,1...
4
4
1
[{"id": "G0", "claim": "Store the last finalized round as a BigInteger round number instead of keeping a GrandpaRound lastFinalizedRound field and calling lastFinalizedRound.getRoundNumber() on it.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The lastF...
null
LimeChain__Fruzhin__723
LimeChain/Fruzhin
723
defect
b7b105ada70d4abf69d5eaad8668b885f02f6d02
8506b5c7a2687d4ae09e785f82e267f9d52c66d5
Implemented broadcasting Vote Message
Implemented broadcasting Vote Message ## Checklist: - [x] I have read the [contributing guidelines](https://github.com/LimeChain/Fruzhin/blob/dev/CONTRIBUTING.md). - [x] My PR title matches the [Conventional Commits spec](https://www.conventionalcommits.org/). - [ ] My change requires a change to the documentatio...
diff --git a/src/main/java/com/limechain/grandpa/GrandpaService.java b/src/main/java/com/limechain/grandpa/GrandpaService.java index c1eeaefce..8107ad47f 100644 --- a/src/main/java/com/limechain/grandpa/GrandpaService.java +++ b/src/main/java/com/limechain/grandpa/GrandpaService.java @@ -8,14 +8,25 @@ import com.limec...
1
1
0
[{"id": "G0", "claim": "FullVoteScaleWriter's constructor should take no parameters and directly assign new UInt64Writer() and new VoteScaleWriter() internally, so callers can simply write new FullVoteScaleWriter() instead of passing the writers in.", "category": "design", "verdict": "supported", "priority": "P2", "sco...
null
LimeChain__Fruzhin__727
LimeChain/Fruzhin
727
defect
d1172cb1a388718e8d698a77071ec20bb44d3782
b86b017a5e4eb1d40c0f06694148c8bdd6ed0983
Update justification verification
# Description - JustificationVerifier.verify() method now has Justification as an input parameter and also executes block ancestry validation - JustificationVerifier.verify() method checks if there are more than 3 votes cast by single authority. The vote with the smaller block number is considered as the valid vote...
diff --git a/src/main/java/com/limechain/grandpa/GrandpaService.java b/src/main/java/com/limechain/grandpa/GrandpaService.java index b95981aff..03e4ddd8c 100644 --- a/src/main/java/com/limechain/grandpa/GrandpaService.java +++ b/src/main/java/com/limechain/grandpa/GrandpaService.java @@ -14,7 +14,6 @@ import com.limec...
2
2
1
[{"id": "G0", "claim": "The class should use Lombok's @UtilityClass instead of @NoArgsConstructor(access = PRIVATE), and then the static flag can be removed from the methods.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Per the GRANDPA spec,...
null
LimeChain__Fruzhin__739
LimeChain/Fruzhin
739
defect
564abe9ddc7959e03a7c4b881d9b6793f8a81e6d
043d0f07fb043b9a5736f76ac4a5f8f06b90d8db
738 handle grandpa messages in new class
# Description - Introduced new GrandpaMessageHandler class, where all the messages, received from GrandpaEngine will be passed. - It will handle the grandpa messages. - Extracted logic, related to grandpa messages from WarpSyncState to GrandpaMessageHandler. - Fixed tests. Fixes #738 >
diff --git a/src/main/java/com/limechain/grandpa/state/GrandpaSetState.java b/src/main/java/com/limechain/grandpa/state/GrandpaSetState.java index 016e94399..69c2ad538 100644 --- a/src/main/java/com/limechain/grandpa/state/GrandpaSetState.java +++ b/src/main/java/com/limechain/grandpa/state/GrandpaSetState.java @@ -3,1...
2
2
0
[{"id": "G0", "claim": "Remove the extra blank space (duplicated empty line) after the fields in GrandpaMessageHandler.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add a blank line between the constant declaration and the other fields in Gran...
null
LimeChain__Fruzhin__760
LimeChain/Fruzhin
760
defect
0f756aef91e7e3823096a3a1d28fa2f0b99ec19b
89ad477322b2f506821a49577151c8c811a5ee9c
feat: Updated vote message handling with the newly introduced logic f…
# Description - Updated vote message handling with the newly introduced logic for updating ghost and estimate candidates. - Removed equivocation searching when subround is primary proposal. - Added handleVoteMessage calling on broadcasting preVotes and preCommits. - Refactored handleVoteMessage method. Fi...
diff --git a/src/main/java/com/limechain/grandpa/round/GrandpaRound.java b/src/main/java/com/limechain/grandpa/round/GrandpaRound.java index 60b80d81d..d3c7202c8 100644 --- a/src/main/java/com/limechain/grandpa/round/GrandpaRound.java +++ b/src/main/java/com/limechain/grandpa/round/GrandpaRound.java @@ -9,6 +9,7 @@ im...
4
1
0
[{"id": "G0", "claim": "The change making SubRound.getByStage return UNKNOWN(-1) instead of null should be checked against project usages, because callers that expect null may no longer work.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The repeat...
null
LimeChain__Fruzhin__786
LimeChain/Fruzhin
786
defect
4f6dcf85b90ec04aed611878f5f819f651f83823
fa338e59a35d627717e1107a4ca7d8d1f0c065fb
BEEFY consensus message scale classes
# Description - Added BeefyConsensusMessage and BeefyConsensusMessageFormat(enum class) classes - Implemented scale reading. - Introduced beefy consensus message processing in addBlockToTree() method (without implementation of the handler) Fixes #771
diff --git a/src/main/java/com/limechain/network/protocol/beefy/messages/consensus/BeefyConsensusMessage.java b/src/main/java/com/limechain/network/protocol/beefy/messages/consensus/BeefyConsensusMessage.java new file mode 100644 index 000000000..51b2b8f89 --- /dev/null +++ b/src/main/java/com/limechain/network/protoco...
2
2
1
[{"id": "G0", "claim": "Create a named constant for the magic number 33 used as the authority public key length in BeefyConsensusMessageReader.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Because a header can contain more than one digest of t...
null
LimeChain__Fruzhin__828
LimeChain/Fruzhin
828
defect
4eeeafa38d1c23dc6734d0433562b6382cdeaa92
e69a7969d5ac7d8bff7703acdbb0ad15825224b1
feat: Implement ForkTree
# Description - Implement only the necessary methods in the ForkTree for forced/scheduled authority set changes. - Add tests to ensure that the tree functions correctly. Partly Fixes #814
diff --git a/src/main/java/com/limechain/chain/lightsyncstate/AuthoritySet.java b/src/main/java/com/limechain/chain/lightsyncstate/AuthoritySet.java index e393c50e3..b7369bf4d 100644 --- a/src/main/java/com/limechain/chain/lightsyncstate/AuthoritySet.java +++ b/src/main/java/com/limechain/chain/lightsyncstate/Authority...
1
1
0
[{"id": "G0", "claim": "ForkTreeNode's values are never set anywhere after creation, so the class could use Lombok's @Value instead of @Getter/@Setter, and the no-arg constructor may not be needed for tests.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
LimeChain__Fruzhin__851
LimeChain/Fruzhin
851
defect
99f205a9fe030780633e17ae1373232be3f98a49
47e6a79390e9251cddcc1ce9e8beb12a9aa60386
Implemented method for triaging incoming justifications
# Description - Implemented method for triaging incoming justifications - Implemented method for determining RoundAction based on the specified block number - Added structure for accumulating pending justifications Fixes #845
diff --git a/src/main/java/com/limechain/consensus/beefy/BeefyService.java b/src/main/java/com/limechain/consensus/beefy/BeefyService.java index aacdf87f1..e5a587670 100644 --- a/src/main/java/com/limechain/consensus/beefy/BeefyService.java +++ b/src/main/java/com/limechain/consensus/beefy/BeefyService.java @@ -5,11 +5...
3
3
0
[{"id": "G0", "claim": "The DROP-branch log statement should be replaced with log.fine(String.format(...)) using a %d placeholder instead of log.log(Level.INFO, ...) with string concatenation.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The E...
null
LimeChain__Fruzhin__860
LimeChain/Fruzhin
860
defect
25400c7de7722ebdf6d3885a9f09cf37c95559a2
da1506d17a4c71b164d0edf9dd39c68a21c4f8ea
feat: persist beefy state
# Description - Add Beefy- and GrandpaSetRepository which should be responsible for fetching and persisting data to the KVRepository - Add methods for fetching & persisting needed fields from the BeefyState - We persist the state from BeefyService when: 1) FinalizedBlockChangeEvent is received and the grandpaFina...
diff --git a/src/main/java/com/limechain/client/AuthoringNode.java b/src/main/java/com/limechain/client/AuthoringNode.java index f6912827c..ba50824a5 100644 --- a/src/main/java/com/limechain/client/AuthoringNode.java +++ b/src/main/java/com/limechain/client/AuthoringNode.java @@ -1,6 +1,7 @@ package com.limechain.clie...
2
2
1
[{"id": "G0", "claim": "The roundNumber field is probably not needed and should not be persisted — remove it, since it had already been agreed not to persist that field.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The pull request should keep the di...
null
LimeChain__Fruzhin__865
LimeChain/Fruzhin
865
defect
d8fe573329c3be291876a86d7513e685656a2a00
917281aa3be5b9f78f5ce33fc628a656c5b0d5db
feat: implement signing of beefy message
# Description - Add creation of a vote in the vote method if we have a private key for any of the public keys in the authority list - Decrease the vertical complexity of the vote method Fixes https://github.com/LimeChain/Fruzhin/issues/816 ## Checklist: - [x] I have read the [contributing guidelines](https:/...
diff --git a/src/main/java/com/limechain/consensus/beefy/BeefyService.java b/src/main/java/com/limechain/consensus/beefy/BeefyService.java index c02318070..c659686c6 100644 --- a/src/main/java/com/limechain/consensus/beefy/BeefyService.java +++ b/src/main/java/com/limechain/consensus/beefy/BeefyService.java @@ -1,5 +1,...
3
3
1
[{"id": "G0", "claim": "handleBeefyVote should use the key pair and authority set from the session retrieved earlier in the method (the head of the session queue) instead of re-fetching them from beefyState.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cla...
null