Repository navigation
[Rust][Benchmark] Load HF datasets from parquet shards via hf-hub, fixing truncated-cache sampling #51570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Rust][Benchmark] Load HF datasets from parquet shards via hf-hub, fixing truncated-cache sampling #51570
Changes from 1 commit
fcc2216
99f925b
cf1644e
a58b63a
b004d38
0180cd0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -69,6 +69,7 @@ openai-harmony = { package = "oss-harmony", git = "https://github.com/oss-harmon | |
| openai-protocol = "1.6.0" | ||
| openssl = "0.10" | ||
| parking_lot = "0.12.5" | ||
| parquet = { version = "59.2.0", default-features = false, features = ["json", "snap", "zstd", "flate2", "flate2-rust_backend", "lz4"] } | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 rust/Cargo.toml:72 enables the Extended reasoning...What the bug is. parquet = { version = "59.2.0", default-features = false, features = ["json", "snap", "zstd", "flate2", "flate2-rust_backend", "lz4"] }The Code path that triggers it. Why existing code doesn't prevent it. The PR's whole design assumes shards downloaded via hf-hub can always be decoded locally by the embedded Impact. For a dataset whose parquet columns are Brotli-compressed, Step-by-step proof:
Fix. Add parquet = { version = "59.2.0", default-features = false, features = ["json", "snap", "zstd", "flate2", "flate2-rust_backend", "lz4", "brotli"] }The parquet crate's |
||
| paste = "1.0.15" | ||
| prometheus-client = "0.24.0" | ||
| prometheus-client-derive-encode = "0.5.0" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When a dataset-viewer export or native private-dataset shard uses Parquet's Brotli compression,
SerializedFileReaderwill reject it becausedefault-featuresare disabled and thebrotlicodec feature is omitted here. This regresses those datasets from the previous/rowspath, where decompression happened server-side, and causes the entire HF benchmark to abort; enable the Parquet Brotli feature or retain a compatible fallback.Useful? React with 👍 / 👎.