[DOC] Document checkpoint resuming on lightning 2.6 and use pytorch_forecasting Tuner in examples #2464
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.40) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 315 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.344
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #2464"
general
weight: 0.35
phoeenniixx
Fixes #2463. Related: #2000 and #2027.
Change
On Lightning >=2.6 with PyTorch >=2.6,
Trainer.fit(..., ckpt_path=...)rejects v1 checkpoints because the default weights-only loader cannot restore the fitted encoders, normalizers, losses and metrics they contain.ckpt_path, and passweights_only=Falsefor trusted checkpoints. The FAQ entry now points there; the stallion tutorial note stays.README.md, Getting Started and Models examples fromlightning.pytorch.tuner.Tunertopytorch_forecasting.tuning.Tuner. Lightning'sTuner.lr_findhas noweights_onlyargument and fails on these checkpoints; ours patches the loader (#2000). The tutorials already use it.Scope
Documentation, example imports and a test of an existing workaround. Runtime loading behavior is unchanged; default loading still fails without the explicit keyword. The
pytorch_forecasting.tuning.Tunerwrapper is still needed: in Lightning 2.6.6, the latest release,Tuner.lr_findhas noweights_onlyargument. v2 uses a separate representation and is out of scope. Only trusted checkpoints should be loaded this way, as unpickling can execute code.Validation
Lightning 2.6.6, PyTorch 2.14.1, Windows CPU:
1 passed); skipped on Lightning 2.5.6.weights_only=Falsepasses.Tuner.lr_findfails with the sameUnpicklingErrorandpytorch_forecasting.tuning.Tuner.lr_findpasses. TheLearningRateFindercallback fails even withtrainer.fit(..., weights_only=False). A plainLightningModulecheckpoint resumes with the default.0acb5a0: 201 passed and 5 skipped across a parallel run and serial retries of 23 environment failures (Tk backend, memory).Review focus
Placement of the note in the Models usage section, and whether the Tuner import changes belong in this PR.