Skip to content

feat: add generic Hugging Face dataset converter - #9653

Closed
joseph-isaacs wants to merge 5 commits into
developfrom
ji/hf-dataset-vortex-converter
Closed

feat: add generic Hugging Face dataset converter#9653
joseph-isaacs wants to merge 5 commits into
developfrom
ji/hf-dataset-vortex-converter

Conversation

@joseph-isaacs

@joseph-isaacs joseph-isaacs commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add a resumable converter for Parquet shards in any Hugging Face dataset repository
  • support Parquet Zstd, Vortex, and compact Vortex outputs with deterministic destination paths
  • require Xet-backed source and destination repositories and expose bounded Xet download concurrency
  • harden plan/apply orchestration, bounded pipelines, live telemetry, retries, and checkpoint compatibility
  • batch Hub commits, verify downloads, and delete local outputs only after successful commits
  • add reliability and regression coverage for both converter implementations
  • add scripts/ as a non-package uv workspace project with declared converter dependencies

Validation

  • uv run --project scripts python -m unittest scripts/tests/test_hf_parquet_convert.py (23 tests, 1 skipped)
  • uv run --project scripts python -m unittest scripts/tests/test_hf_parquet_convert_v2.py (23 tests, 1 skipped)
  • uv run --project scripts scripts/huggingface-convert.py --help
  • git diff --check

The converter has also been exercised against a large FineWeb upload, but it contains no FineWeb-specific repository or path assumptions.

Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
@codspeed-hq

codspeed-hq Bot commented Aug 27, 2026

Copy link
Copy Markdown

Merging this PR will improve performance by 35.78%

⚠️ Unknown Walltime execution environment detected

Using the Walltime instrument on standard Hosted Runners will lead to inconsistent data.

For the most accurate results, we recommend using CodSpeed Macro Runners: bare-metal machines fine-tuned for performance measurement consistency.

⚡ 2 improved benchmarks
✅ 2155 untouched benchmarks
⏩ 106 skipped benchmarks1
🗄️ 4 archived benchmarks run2

Performance Changes

Mode Benchmark BASE HEAD Efficiency
WallTime arrow_checked_add_u32_neon[16384] 20.5 µs 13.3 µs +53.3%
WallTime arrow_checked_add_u32_avx2[16384] 21.3 µs 17.7 µs +20.27%

Tip

Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.


Comparing ji/hf-dataset-vortex-converter (0366a8a) with develop (68e2aee)

Open in CodSpeed

Footnotes

  1. 106 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

  2. 4 benchmarks were run, but are now archived. If they were deleted in another branch, consider rebasing to remove them from the report. Instead if they were added back, click here to restore them.

Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
joseph-isaacs added a commit to vortex-data/datasets that referenced this pull request Aug 27, 2026
Cleaned-up port of scripts/huggingface-convert.py from vortex-data/vortex#9653.
The script now takes a list of external source repositories (--sources JSON or
a single --repo), diffs each selected Parquet shard against the same-named path
in the destination vortex-data repository, and downloads/converts/uploads only
the missing files. Adds --dry-run diff reporting, per-source checkpoints and
metrics, a sources.example.json, tests, and a README.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GzCzGvYf8WQcyUnQLc7cZS
Add plan/apply orchestration, adaptive bounded pipelines, live telemetry, Xet timeout retries, local validation coverage, and operational learnings.

Signed-off-by: "Joe Isaacs" <joe.isaacs@live.co.uk>
Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
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.

1 participant