Skip to content

fix: retry transient parquet read failures in training#263

Open
Abhishek21g wants to merge 1 commit into
PrimeIntellect-ai:mainfrom
Abhishek21g:abhishek/retry-dataset-read
Open

fix: retry transient parquet read failures in training#263
Abhishek21g wants to merge 1 commit into
PrimeIntellect-ai:mainfrom
Abhishek21g:abhishek/retry-dataset-read

Conversation

@Abhishek21g

Copy link
Copy Markdown

Fixes #100

Problem

README notes HF hub / parquet reads can fail with transient HTTP errors (e.g. 443) and crash training. ParquetDataset had no retry on read.

Fix

  • _read_text_column() with exponential backoff (1s, 2s, … capped at 30s)
  • data.dataset_read_retries config knob (default 3)

Verification

uv run pytest tests/test_data.py::test_parquet_dataset_retries_transient_read_failure tests/test_data.py::test_parquet_dataset_read_failure_after_retries -v

ParquetDataset read errors (e.g. transient HTTP/IO while reading
hub-cached parquet) crash long training runs. Retry with exponential
backoff; configurable via data.dataset_read_retries (default 3).

Fixes PrimeIntellect-ai#100
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.

allow to retry when hf dataset fails

1 participant