Repository navigation
docs: say fast_dev_run=True runs one batch in the debugging guide - #22030
Open
ZainnQureshii wants to merge 1 commit into
Open
ZainnQureshii wants to merge 1 commit into
ZainnQureshii wants to merge 1 commit into
Conversation
`fast_dev_run=True` sets each batch limit to `int(True)`, one batch, as the Trainer reference already says. The debugging guide said five. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ZainnQureshii
requested review from
ethanwharris,
justusschock and
tchaton
as code owners
October 19, 2026 15:45
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
docs/source-pytorch/debug/debugging_basic.rst:48saysTrainer(fast_dev_run=True)"runs 5 batch of training, validation, test and prediction data". It runs one:_init_debugging_flagssets the batch limits tonum_batches = int(fast_dev_run)(src/lightning/pytorch/trainer/setup.py:61-68), andint(True)is 1. The Trainer reference already says "1 if set toTrue" (docs/source-pytorch/common/trainer.rst:559).This PR changes "5 batch" to "1 batch". The integer example below it (
fast_dev_run=7) is already right.Counted the
training_stepandvalidation_stepcalls of aBoringModelunderTrainer(fast_dev_run=..., accelerator="cpu").fit(...)withlightning2.6.6:The docs build was not run locally.
Docs only, so no linked issue, tests or CHANGELOG entry.
Before submitting
PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing, make sure you have read the review guidelines. In short, see the following bullet-list:
Reviewer checklist
Prepared with AI assistance (Claude Code) and reviewed with GitHub Copilot.
🤖 Generated with Claude Code