Skip to content

Validate batch size and worker count before loading data - #29

Merged
MWesselkamp merged 1 commit into
developfrom
rz/validate-training-loader-settings
Dec 3, 2026
Merged

MWesselkamp merged 1 commit into
developfrom
rz/validate-training-loader-settings

Conversation

@Raminyazdani

Copy link
Copy Markdown
Collaborator

Closes #19.

I added two checks to the existing config validator so invalid Hydra settings give a clear error before data loading. Batch size must be a positive integer, and the worker count can be zero or a positive integer.

I reran the config, training paths and DataLoader tests on the latest develop base. 95 passed and one was skipped because it needs a saved experiment.

Check batch size and worker count in the existing config validator. Keep zero workers valid and reject bad values before train or fine-tune builds a dataset. Cover the checks with Hydra config tests.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified in the DataLoader configuration validation changes.

No open issues 🎉

What changed in this PR

Extends the existing configuration validator to reject invalid DataLoader settings before data loading, addressing #19 without changing valid training settings.

Changes:

  • Requires a positive integer batch size and a non-negative integer worker count.
  • Adds field-specific errors and tests for valid boundaries, invalid values, and wrong types.
File Description
tests/​test_config.py Tests valid boundary values and rejection of invalid loader settings.
deep_lst/​utils/​config.py Validates batch size and worker count; updates the validator docstring.

Review effort: Balanced

@MWesselkamp
MWesselkamp merged commit aa8d606 into develop Dec 3, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants