Lightning-AI / Lightning-AI/pytorch-lightning

`limit_val_batches` as sequence

Open
#20,773 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature trainer
Dominant language
Python
Stars
31.4k
Forks
3.8k
Avg merge
6d 7h
Merged PRs (30d)
6

Description

### Description & Motivation

Support sequence inputs to `limit_val_batches` in order to apply the limits to each val dataloader separately. E.g., `limit_val_batches=[10, 20]` could be interpreted as limit to 10 batches from the first val dataloader and 20 batches from the second.

### Pitch

No response

### Alternatives

No response

### Additional context

No response

cc @lantiga @borda @justusschock

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named. Start by locating the existing limit_val_batches handling and the validation-loop tests, then trace how multiple validation dataloaders are limited. Done means sequence values apply to each validation dataloader separately while the existing scalar behavior remains supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
machine-learning
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.