number
int64
2.59k
7.1k
title
stringlengths
1
290
body
stringlengths
0
36.2k
labels
listlengths
0
4
pull_request
dict
is_pull_request
bool
2 classes
comments
listlengths
0
30
6,484
[Feature Request] Dataset versioning
**Is your feature request related to a problem? Please describe.** I am working on a project, where I would like to test different preprocessing methods for my ML-data. Thus, I would like to work a lot with revisions and compare them. Currently, I was not able to make it work with the revision keyword because it was n...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "Hello @kenfus, this is meant to be possible to do yes. Let me ping @lhoestq or @mariosasko from the `datasets` team (`huggingface_hub` is only the underlying library to download files from the Hub but here it looks more like a `datasets` problem). ", "Hi! https://github.com/huggingface/datasets/pull/6459 will fi...
6,482
Fix max lock length on unix
reported in https://github.com/huggingface/datasets/pull/6482
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6482", "html_url": "https://github.com/huggingface/datasets/pull/6482", "diff_url": "https://github.com/huggingface/datasets/pull/6482.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6482.patch", "merged_at": "2023-12-12T11:47...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6482). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "I'm getting `AttributeError: module 'os' has no attribute 'statvfs'` on windows - rever...
6,481
using torchrun, save_to_disk suddenly shows SIGTERM
### Describe the bug When I run my code using the "torchrun" command, when the code reaches the "save_to_disk" part, suddenly I get the following warning and error messages: Because the dataset is too large, the "save_to_disk" function splits it into 70 parts for saving. However, an error occurs suddenly when it reac...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
6,480
Add IterableDataset `__repr__`
Example for glue sst2: Dataset ``` DatasetDict({ test: Dataset({ features: ['sentence', 'label', 'idx'], num_rows: 1821 }) train: Dataset({ features: ['sentence', 'label', 'idx'], num_rows: 67349 }) validation: Dataset({ features: ['sentence',...
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6480", "html_url": "https://github.com/huggingface/datasets/pull/6480", "diff_url": "https://github.com/huggingface/datasets/pull/6480.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6480.patch", "merged_at": "2023-12-08T13:26...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6480). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>...
6,479
More robust preupload retry mechanism
null
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6479", "html_url": "https://github.com/huggingface/datasets/pull/6479", "diff_url": "https://github.com/huggingface/datasets/pull/6479.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6479.patch", "merged_at": "2023-12-06T19:41...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6479). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>...
6,478
How to load data from lakefs
My dataset is stored on the company's lakefs server. How can I write code to load the dataset? It would be great if I could provide code examples or provide some references
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "You can create a `pandas` DataFrame following [this](https://lakefs.io/data-version-control/dvc-using-python/) tutorial, and then convert this DataFrame to a `Dataset` with `datasets.Dataset.from_pandas`. For larger datasets (to memory map them), you can use `Dataset.from_generator` with a generator function that ...
6,477
Fix PermissionError on Windows CI
Fix #6476.
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6477", "html_url": "https://github.com/huggingface/datasets/pull/6477", "diff_url": "https://github.com/huggingface/datasets/pull/6477.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6477.patch", "merged_at": "2023-12-06T09:17...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6477). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>...
6,476
CI on windows is broken: PermissionError
See: https://github.com/huggingface/datasets/actions/runs/7104781624/job/19340572394 ``` FAILED tests/test_load.py::test_loading_from_the_datasets_hub - NotADirectoryError: [WinError 267] The directory name is invalid: 'C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\tmpfcnps56i\\hf-internal-testing___dataset_with_script\...
[ { "id": 1935892857, "node_id": "MDU6TGFiZWwxOTM1ODkyODU3", "url": "https://api.github.com/repos/huggingface/datasets/labels/bug", "name": "bug", "color": "d73a4a", "default": true, "description": "Something isn't working" } ]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
6,475
laion2B-en failed to load on Windows with PrefetchVirtualMemory failed
### Describe the bug I have downloaded laion2B-en, and I'm receiving the following error trying to load it: ``` Resolving data files: 100%|██████████| 128/128 [00:00<00:00, 1173.79it/s] Traceback (most recent call last): File "D:\Art-Workspace\src\artworkspace\tokeneval\compute_frequencies.py", line 31, in <mo...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "~~You will see this error if the cache dir filepath contains relative `..` paths. Use `os.path.realpath(_CACHE_DIR)` before passing it to the `load_dataset` function.~~", "This is a real issue and not related to paths.", "Based on the StackOverflow answer, this causes the error to go away:\r\n```diff\r\ndiff -...
6,474
Deprecate Beam API and download from HF GCS bucket
Deprecate the Beam API and download from the HF GCS bucked. TODO: - [x] Convert the Beam-based [`wikipedia`](https://huggingface.co/datasets/wikipedia) to an Arrow-based dataset ([Hub PR](https://huggingface.co/datasets/wikipedia/discussions/19)) - [x] Make [`natural_questions`](https://huggingface.co/datasets/na...
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6474", "html_url": "https://github.com/huggingface/datasets/pull/6474", "diff_url": "https://github.com/huggingface/datasets/pull/6474.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6474.patch", "merged_at": "2024-03-12T14:50...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6474). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>...
6,473
Fix CI quality
Fix #6472.
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6473", "html_url": "https://github.com/huggingface/datasets/pull/6473", "diff_url": "https://github.com/huggingface/datasets/pull/6473.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6473.patch", "merged_at": "2023-12-05T18:08...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6473). All of your documentation changes will be reflected on that endpoint.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchma...
6,472
CI quality is broken
See: https://github.com/huggingface/datasets/actions/runs/7100835633/job/19327734359 ``` Would reformat: src/datasets/features/image.py 1 file would be reformatted, 253 files left unchanged ```
[ { "id": 1935892857, "node_id": "MDU6TGFiZWwxOTM1ODkyODU3", "url": "https://api.github.com/repos/huggingface/datasets/labels/bug", "name": "bug", "color": "d73a4a", "default": true, "description": "Something isn't working" }, { "id": 4296013012, "node_id": "LA_kwDODunzps8AAAAB...
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
6,471
Remove delete doc CI
null
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6471", "html_url": "https://github.com/huggingface/datasets/pull/6471", "diff_url": "https://github.com/huggingface/datasets/pull/6471.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6471.patch", "merged_at": "2023-12-05T12:38...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6471). All of your documentation changes will be reflected on that endpoint.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchma...
6,470
If an image in a dataset is corrupted, we get unescapable error
### Describe the bug Example discussed in detail here: https://huggingface.co/datasets/sasha/birdsnap/discussions/1 ### Steps to reproduce the bug ``` from datasets import load_dataset, VerificationMode dataset = load_dataset( 'sasha/birdsnap', split="train", verification_mode=VerificationMode.ALL_C...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
6,469
Don't expand_info in HF glob
Finally fix https://github.com/huggingface/datasets/issues/5537
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6469", "html_url": "https://github.com/huggingface/datasets/pull/6469", "diff_url": "https://github.com/huggingface/datasets/pull/6469.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6469.patch", "merged_at": "2023-12-15T13:12...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6469). All of your documentation changes will be reflected on that endpoint.", "Merging this one for now, but lmk if you had other optimizations in mind for the next version of `huggingface_hub`", "<details>\n<summary>Show be...
6,468
Use auth to get parquet export
added `token` to the `_datasets_server` functions
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6468", "html_url": "https://github.com/huggingface/datasets/pull/6468", "diff_url": "https://github.com/huggingface/datasets/pull/6468.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6468.patch", "merged_at": "2023-12-04T17:15...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6468). All of your documentation changes will be reflected on that endpoint.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchma...
6,467
New version release request
### Feature request Hi! I am using `datasets` in library `xtuner` and am highly interested in the features introduced since v2.15.0. To avoid installation from source in our pypi wheels, we are eagerly waiting for the new release. So, Does your team have a new release plan for v2.15.1 and could you please share ...
[ { "id": 1935892871, "node_id": "MDU6TGFiZWwxOTM1ODkyODcx", "url": "https://api.github.com/repos/huggingface/datasets/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "We will publish it soon (we usually do it in intervals of 1-2 months, so probably next week)", "Thanks!" ]
6,466
Can't align optional features of struct
### Describe the bug Hello! I'm currently experiencing an issue where I can't concatenate datasets if an inner field of a Feature is Optional. I have a column named `speaker`, and this holds some information about a speaker. ```python @dataclass class Speaker: name: str email: Optional[str] ``` ...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "Friendly bump, I would be happy to work on this issue once I get the go-ahead from the dev team. ", "Thanks for the PR!\r\n\r\nI'm struggling with this as well and would love to see this PR merged. My case is slightly different, with keys completely missing rather than being `None`:\r\n\r\n```\r\nds = Dataset.fr...
6,465
`load_dataset` uses out-of-date cache instead of re-downloading a changed dataset
### Describe the bug When a dataset is updated on the hub, using `load_dataset` will load the locally cached dataset instead of re-downloading the updated dataset ### Steps to reproduce the bug Here is a minimal example script to 1. create an initial dataset and upload 2. download it so it is stored in cache 3. c...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "Hi, thanks for reporting! https://github.com/huggingface/datasets/pull/6459 will fix this." ]
6,464
Add concurrent loading of shards to datasets.load_from_disk
In some file systems (like luster), memory mapping arrow files takes time. This can be accelerated by performing the mmap in parallel on processes or threads. - Threads seem to be faster than processes when gathering the list of tables from the workers (see https://github.com/huggingface/datasets/issues/2252). - I'...
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6464", "html_url": "https://github.com/huggingface/datasets/pull/6464", "diff_url": "https://github.com/huggingface/datasets/pull/6464.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6464.patch", "merged_at": "2024-01-26T15:10...
true
[ "If we use multithreading no need to ask for `num_proc`. And maybe we the same numbers of threads as tqdm by default (IIRC it's `max(32, cpu_count() + 4)`) - you can even use `tqdm.contrib.concurrent.thread_map` directly to simplify the code\r\n\r\nAlso you can ignore the `IN_MEMORY_MAX_SIZE` config for this. This ...
6,463
Disable benchmarks in PRs
In order to keep PR pages less spammy / more readable. Having the benchmarks on commits on `main` is enough imo
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6463", "html_url": "https://github.com/huggingface/datasets/pull/6463", "diff_url": "https://github.com/huggingface/datasets/pull/6463.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6463.patch", "merged_at": "2023-12-01T12:03...
true
[ "It's a way to detect regressions in performance sensitive methods like map, and find the commit that lead to the regression", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_bat...
6,462
Missing DatasetNotFoundError
continuation of https://github.com/huggingface/datasets/pull/6431 this should fix the CI in https://github.com/huggingface/datasets/pull/6458 too
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6462", "html_url": "https://github.com/huggingface/datasets/pull/6462", "diff_url": "https://github.com/huggingface/datasets/pull/6462.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6462.patch", "merged_at": "2023-11-30T18:30...
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
6,461
Fix shard retry mechanism in `push_to_hub`
When it fails, `preupload_lfs_files` throws a [`RuntimeError`](https://github.com/huggingface/huggingface_hub/blob/5eefebee2c150a2df950ab710db350e96c711433/src/huggingface_hub/_commit_api.py#L402) error and chains the original HTTP error. This PR modifies the retry mechanism's error handling to account for that. Fix...
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6461", "html_url": "https://github.com/huggingface/datasets/pull/6461", "diff_url": "https://github.com/huggingface/datasets/pull/6461.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6461.patch", "merged_at": "2023-12-01T17:51...
true
[ "@Wauplin Maybe `504` should be added to the `retry_on_status_codes` tuple [here](https://github.com/huggingface/huggingface_hub/blob/5eefebee2c150a2df950ab710db350e96c711433/src/huggingface_hub/lfs.py#L300) to guard against https://github.com/huggingface/datasets/issues/3872", "We could but I'm not sure to have ...
6,460
jsonlines files don't load with `load_dataset`
### Describe the bug While [the docs](https://huggingface.co/docs/datasets/upload_dataset#upload-dataset) seem to state that `.jsonl` is a supported extension for `datasets`, loading the dataset results in a `JSONDecodeError`. ### Steps to reproduce the bug Code: ``` from datasets import load_dataset dset = load_...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "Hi @serenalotreck,\r\n\r\nWe use Apache Arrow `pyarrow` to read jsonlines and it throws an error when trying to load your data files:\r\n```python\r\nIn [1]: import pyarrow as pa\r\n\r\nIn [2]: data = pa.json.read_json(\"train.jsonl\")\r\n---------------------------------------------------------------------------\...
6,459
Retrieve cached datasets that were pushed to hub when offline
I drafted the logic to retrieve a no-script dataset in the cache. For example it can reload datasets that were pushed to hub if they exist in the cache. example: ```python >>> Dataset.from_dict({"a": [1, 2]}).push_to_hub("lhoestq/tmp") >>> load_dataset("lhoestq/tmp") DatasetDict({ train: Dataset({ ...
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6459", "html_url": "https://github.com/huggingface/datasets/pull/6459", "diff_url": "https://github.com/huggingface/datasets/pull/6459.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6459.patch", "merged_at": null }
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
6,458
Lazy data files resolution
Related to discussion at https://github.com/huggingface/datasets/pull/6255 this makes this code run in 2sec instead of >10sec ```python from datasets import load_dataset ds = load_dataset("glue", "sst2", streaming=True, trust_remote_code=False) ``` For some datasets with many configs and files it can be u...
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6458", "html_url": "https://github.com/huggingface/datasets/pull/6458", "diff_url": "https://github.com/huggingface/datasets/pull/6458.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6458.patch", "merged_at": null }
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
6,457
`TypeError`: huggingface_hub.hf_file_system.HfFileSystem.find() got multiple values for keyword argument 'maxdepth'
### Describe the bug Please see https://github.com/huggingface/huggingface_hub/issues/1872 ### Steps to reproduce the bug Please see https://github.com/huggingface/huggingface_hub/issues/1872 ### Expected behavior Please see https://github.com/huggingface/huggingface_hub/issues/1872 ### Environment info Please s...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "Updating `fsspec>=2023.10.0` did solve the issue.", "May be it should be pinned somewhere?", "> Maybe this should go in datasets directly... anyways you can easily fix this error by updating datasets>=2.15.1.dev0.\r\n\r\n@lhoestq @mariosasko for what I understand this is a bug fixed in `datasets` already, righ...
6,456
Don't require trust_remote_code in inspect_dataset
don't require `trust_remote_code` in (deprecated) `inspect_dataset` (it defeats its purpose) (not super important but we might as well keep it until the next major release) this is needed to fix the tests in https://github.com/huggingface/datasets/pull/6448
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6456", "html_url": "https://github.com/huggingface/datasets/pull/6456", "diff_url": "https://github.com/huggingface/datasets/pull/6456.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6456.patch", "merged_at": "2023-11-30T10:34...
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | rea...
6,454
Refactor `dill` logic
Refactor the `dill` logic to make it easier to maintain (and fix some issues along the way) It makes the following improvements to the serialization API: * consistent order of a `dict`'s keys * support for hashing `torch.compile`-ed modules and functions * deprecates `datasets.fingerprint.hashregister` as the `ha...
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6454", "html_url": "https://github.com/huggingface/datasets/pull/6454", "diff_url": "https://github.com/huggingface/datasets/pull/6454.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6454.patch", "merged_at": "2023-11-28T16:29...
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
6,453
Update hub-docs reference
Follow up to huggingface/huggingface.js#296
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6453", "html_url": "https://github.com/huggingface/datasets/pull/6453", "diff_url": "https://github.com/huggingface/datasets/pull/6453.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6453.patch", "merged_at": "2023-11-27T10:17...
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | rea...
6,452
Praveen_repo_pull_req
null
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6452", "html_url": "https://github.com/huggingface/datasets/pull/6452", "diff_url": "https://github.com/huggingface/datasets/pull/6452.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6452.patch", "merged_at": null }
true
[]
6,451
Unable to read "marsyas/gtzan" data
Hi, this is my code and the error: ``` from datasets import load_dataset gtzan = load_dataset("marsyas/gtzan", "all") ``` [error_trace.txt](https://github.com/huggingface/datasets/files/13464397/error_trace.txt) [audio_yml.txt](https://github.com/huggingface/datasets/files/13464410/audio_yml.txt) Python 3.11.5 ...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "Hi! We've merged a [PR](https://huggingface.co/datasets/marsyas/gtzan/discussions/1) that fixes the script's path logic on Windows.", "I have transferred the discussion to the corresponding dataset: https://huggingface.co/datasets/marsyas/gtzan/discussions/2\r\n\r\nLet's continue there.", "@mariosasko @albertv...
6,450
Support multiple image/audio columns in ImageFolder/AudioFolder
### Feature request Have a metadata.csv file with multiple columns that point to relative image or audio files. ### Motivation Currently, ImageFolder allows one column, called `file_name`, pointing to relative image files. On the same model, AudioFolder allows one column, called `file_name`, pointing to relative aud...
[ { "id": 1935892865, "node_id": "MDU6TGFiZWwxOTM1ODkyODY1", "url": "https://api.github.com/repos/huggingface/datasets/labels/duplicate", "name": "duplicate", "color": "cfd3d7", "default": true, "description": "This issue or pull request already exists" }, { "id": 1935892871, "...
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "A duplicate of https://github.com/huggingface/datasets/issues/5760" ]
6,449
Fix metadata file resolution when inferred pattern is `**`
Refetch metadata files in case they were dropped by `filter_extensions` in the previous step. Fix #6442
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6449", "html_url": "https://github.com/huggingface/datasets/pull/6449", "diff_url": "https://github.com/huggingface/datasets/pull/6449.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6449.patch", "merged_at": "2023-11-24T17:13...
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
6,448
Use parquet export if possible
The idea is to make this code work for datasets with scripts if they have a Parquet export ```python ds = load_dataset("squad", trust_remote_code=False) ``` And more generally, it means we use the Parquet export whenever it's possible (it's safer and faster than dataset scripts). I also added a `config.USE_P...
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6448", "html_url": "https://github.com/huggingface/datasets/pull/6448", "diff_url": "https://github.com/huggingface/datasets/pull/6448.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6448.patch", "merged_at": "2023-12-01T17:50...
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
6,447
Support one dataset loader per config when using YAML
### Feature request See https://huggingface.co/datasets/datasets-examples/doc-unsupported-1 I would like to use CSV loader for the "csv" config, JSONL loader for the "jsonl" config, etc. ### Motivation It would be more flexible for the users ### Your contribution No specific contribution
[ { "id": 1935892871, "node_id": "MDU6TGFiZWwxOTM1ODkyODcx", "url": "https://api.github.com/repos/huggingface/datasets/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
6,446
Speech Commands v2 dataset doesn't match AST-v2 config
### Describe the bug [According](https://huggingface.co/MIT/ast-finetuned-speech-commands-v2) to `MIT/ast-finetuned-speech-commands-v2`, the model was trained on the Speech Commands v2 dataset. However, while the model config says the model should have 35 class labels, the dataset itself has 36 class labels. Moreover,...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "You can use `.align_labels_with_mapping` on the dataset to align the labels with the model config.\r\n\r\nRegarding the number of labels, only the special `_silence_` label corresponding to noise is missing, which is consistent with the model paper (reports training on 35 labels). You can run a `.filter` to drop ...
6,445
Use `filelock` package for file locking
Use the `filelock` package instead of `datasets.utils.filelock` for file locking to be consistent with `huggingface_hub` and not to be responsible for improving the `filelock` capabilities 🙂. (Reverts https://github.com/huggingface/datasets/pull/859, but these `INFO` logs are not printed by default (anymore?), so ...
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6445", "html_url": "https://github.com/huggingface/datasets/pull/6445", "diff_url": "https://github.com/huggingface/datasets/pull/6445.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6445.patch", "merged_at": "2023-11-23T18:41...
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
6,444
Remove `Table.__getstate__` and `Table.__setstate__`
When using distributed training, the code of `os.remove(filename)` may be executed separately by each rank, leading to `FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmprxxxxxxx.arrow'` ```python from torch import distributed as dist if dist.get_rank() == 0: dataset = process_dataset(*args, ...
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6444", "html_url": "https://github.com/huggingface/datasets/pull/6444", "diff_url": "https://github.com/huggingface/datasets/pull/6444.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6444.patch", "merged_at": "2023-11-23T15:13...
true
[ "Thanks for working on this! The [issue](https://bugs.python.org/issue24658) with pickling objects larger than 4GB seems to be patched in Python 3.8 (the minimal supported version was 3.6 at the time of implementing this), so a simple solution would be removing the `Table.__setstate__` and `Table.__getstate__` over...
6,443
Trouble loading files defined in YAML explicitly
Look at https://huggingface.co/datasets/severo/doc-yaml-2 It's a reproduction of the example given in the docs at https://huggingface.co/docs/hub/datasets-manual-configuration ``` You can select multiple files per split using a list of paths: my_dataset_repository/ ├── README.md ├── data/ │ ├── abc.csv ...
[ { "id": 1935892857, "node_id": "MDU6TGFiZWwxOTM1ODkyODU3", "url": "https://api.github.com/repos/huggingface/datasets/labels/bug", "name": "bug", "color": "d73a4a", "default": true, "description": "Something isn't working" } ]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "There is a typo in one of the file names - `data/edf.csv` should be renamed to `data/def.csv` 🙂. ", "wow, I reviewed it twice to avoid being ashamed like that, but... I didn't notice the typo.\r\n\r\n---\r\n\r\nBesides this: do you think we would be able to improve the error message to make this clearer?" ]
6,442
Trouble loading image folder with additional features - metadata file ignored
### Describe the bug Loading image folder with a caption column using `load_dataset(<image_folder_path>)` doesn't load the captions. When loading a local image folder with captions using `datasets==2.13.0` ``` from datasets import load_dataset data = load_dataset(<image_folder_path>) data.column_names ``` ...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "I reproduced too:\r\n- root: metadata file is ignored (https://huggingface.co/datasets/severo/doc-image-3)\r\n- data/ dir: metadata file is ignored (https://huggingface.co/datasets/severo/doc-image-4)\r\n- train/ dir: works (https://huggingface.co/datasets/severo/doc-image-5)" ]
6,441
Trouble Loading a Gated Dataset For User with Granted Permission
### Describe the bug I have granted permissions to several users to access a gated huggingface dataset. The users accepted the invite and when trying to load the dataset using their access token they get `FileNotFoundError: Couldn't find a dataset script at .....` . Also when they try to click the url link for the d...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "> Also when they try to click the url link for the dataset they get a 404 error.\r\n\r\nThis seems to be a Hub error then (cc @SBrandeis)", "Could you report this to https://discuss.huggingface.co/c/hub/23, providing the URL of the dataset, or at least if the dataset is public or private?", "Thanks for the rep...
6,440
`.map` not hashing under python 3.9
### Describe the bug The `.map` function cannot hash under python 3.9. Tried to use [the solution here](https://github.com/huggingface/datasets/issues/4521#issuecomment-1205166653), but still get the same message: `Parameter 'function'=<function map_to_pred at 0x7fa0b49ead30> of the transform datasets.arrow_data...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "Tried to upgrade Python to 3.11 - still get this message. A partial solution is to NOT use `num_proc` at all. It will be considerably longer to finish the job.", "Hi! The `model = torch.compile(model)` line is problematic for our hashing logic. We would have to merge https://github.com/huggingface/datasets/pull/...
6,439
Download + preparation speed of datasets.load_dataset is 20x slower than huggingface hub snapshot and manual loding
### Describe the bug I am working with a dataset I am trying to publish. The path is Antreas/TALI. It's a fairly large dataset, and contains images, video, audio and text. I have been having multiple problems when the dataset is being downloaded using the load_dataset function -- even with 64 workers takin...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
6,438
Support GeoParquet
### Feature request Support the GeoParquet format ### Motivation GeoParquet (https://geoparquet.org/) is a common format for sharing vectorial geospatial data on the cloud, along with "traditional" data columns. It would be nice to be able to load this format with datasets, and more generally, in the Datasets Hub...
[ { "id": 1935892871, "node_id": "MDU6TGFiZWwxOTM1ODkyODcx", "url": "https://api.github.com/repos/huggingface/datasets/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "Thank you, @severo ! I would be more than happy to help in any way I can. I am not familiar with this repo's codebase, but I would be eager to contribute. :)\r\n\r\nFor the preview in Datasets Hub, I think it makes sense to just display the geospatial column as text. If there were a dataset loader, though, I think...
6,437
Problem in training iterable dataset
### Describe the bug I am using PyTorch DDP (Distributed Data Parallel) to train my model. Since the data is too large to load into memory at once, I am using load_dataset to read the data as an iterable dataset. I have used datasets.distributed.split_dataset_by_node to distribute the dataset. However, I have notice...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "Has anyone ever encountered this problem before?", "`split_dataset_by_node` doesn't give the exact same number of examples to each node in the case of iterable datasets, though it tries to be as equal as possible. In particular if your dataset is sharded and you have a number of shards that is a factor of the nu...
6,436
TypeError: <lambda>() takes 0 positional arguments but 1 was given
### Describe the bug ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) [<ipython-input-35-7b6becee3685>](https://localhost:8080/#) in <cell line: 1>() ----> 1 from datasets import Dataset 9 frames [/usr/lo...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "This looks like a problem with your environment rather than `datasets`.", "I meet the same problem,\r\nand originally use\r\n```python\r\nlocale.getpreferredencoding = lambda : \"UTF-8\"\r\n```\r\nand change to\r\n```\r\nlocale.getpreferredencoding = lambda x: \"UTF-8\"\r\n```\r\nand it works." ]
6,435
Cannot re-initialize CUDA in forked subprocess. To use CUDA with multiprocessing, you must use the 'spawn' start method
### Describe the bug 1. I ran dataset mapping with `num_proc=6` in it and got this error: `RuntimeError: Cannot re-initialize CUDA in forked subprocess. To use CUDA with multiprocessing, you must use the 'spawn' start method` I can't actually find a way to run multi-GPU dataset mapping. Can you help? ### Steps to...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "[This doc section](https://huggingface.co/docs/datasets/main/en/process#multiprocessing) explains how to modify the script to avoid this error.", "@mariosasko thank you very much, i'll check it", "@mariosasko no it does not\r\n\r\n`Dataset.filter() got an unexpected keyword argument 'with_rank'`" ]
6,434
Use `ruff` for formatting
Use `ruff` instead of `black` for formatting to be consistent with `transformers` ([PR](https://github.com/huggingface/transformers/pull/27144)) and `huggingface_hub` ([PR 1](https://github.com/huggingface/huggingface_hub/pull/1783) and [PR 2](https://github.com/huggingface/huggingface_hub/pull/1789)).
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6434", "html_url": "https://github.com/huggingface/datasets/pull/6434", "diff_url": "https://github.com/huggingface/datasets/pull/6434.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6434.patch", "merged_at": "2023-11-21T14:13...
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
6,433
Better `tqdm` wrapper
This PR aligns the `tqdm` logic with `huggingface_hub` (without introducing breaking changes), as the current one is error-prone. Additionally, it improves the doc page about the `datasets`' utilities, and the handling of local `fsspec` paths in `cached_path`. Fix #6409
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6433", "html_url": "https://github.com/huggingface/datasets/pull/6433", "diff_url": "https://github.com/huggingface/datasets/pull/6433.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6433.patch", "merged_at": "2023-11-22T16:42...
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | rea...
6,432
load_dataset does not load all of the data in my input file
### Describe the bug I have 127 elements in my input dataset. When I do a len on the dataset after loaded, it is only 124 elements. ### Steps to reproduce the bug train_dataset = nlp.load_dataset(data_args.dataset_path, name=data_args.qg_format, split=nlp.Split.TRAIN) valid_dataset = nlp.load_dataset(data_...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "You should use `datasets.load_dataset` instead of `nlp.load_dataset`, as the `nlp` package is outdated.\r\n\r\nIf switching to `datasets.load_dataset` doesn't fix the issue, sharing the JSON file (feel free to replace the data with dummy data) would be nice so that we can reproduce it ourselves." ]
6,431
Create DatasetNotFoundError and DataFilesNotFoundError
Create `DatasetNotFoundError` and `DataFilesNotFoundError`. Fix #6397. CC: @severo
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6431", "html_url": "https://github.com/huggingface/datasets/pull/6431", "diff_url": "https://github.com/huggingface/datasets/pull/6431.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6431.patch", "merged_at": "2023-11-22T15:12...
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
6,429
Add trust_remote_code argument
Draft about adding `trust_remote_code` to `load_dataset`. ```python ds = load_dataset(..., trust_remote_code=True) # run remote code (current default) ``` It would default to `True` (current behavior) and in the next major release it will prompt the user to check the code before running it (we'll communicate o...
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6429", "html_url": "https://github.com/huggingface/datasets/pull/6429", "diff_url": "https://github.com/huggingface/datasets/pull/6429.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6429.patch", "merged_at": "2023-11-28T16:03...
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
6,428
Set dev version
null
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6428", "html_url": "https://github.com/huggingface/datasets/pull/6428", "diff_url": "https://github.com/huggingface/datasets/pull/6428.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6428.patch", "merged_at": "2023-11-16T08:13...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6428). All of your documentation changes will be reflected on that endpoint.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchma...
6,427
Release: 2.15.0
null
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6427", "html_url": "https://github.com/huggingface/datasets/pull/6427", "diff_url": "https://github.com/huggingface/datasets/pull/6427.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6427.patch", "merged_at": "2023-11-16T07:43...
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | rea...
6,426
More robust temporary directory deletion
While fixing the Windows errors in #6362, I noticed that `PermissionError` can still easily be thrown on the session exit by the temporary cache directory's finalizer (we would also have to keep track of intermediate datasets, copies, etc.). ~~Due to the low usage of `datasets` on Windows, this PR takes a simpler appro...
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6426", "html_url": "https://github.com/huggingface/datasets/pull/6426", "diff_url": "https://github.com/huggingface/datasets/pull/6426.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6426.patch", "merged_at": "2023-12-01T15:31...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6426). All of your documentation changes will be reflected on that endpoint.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchma...
6,425
Fix deprecation warning when building conda package
When building/releasing conda package, we get this deprecation warning: ``` /usr/share/miniconda/envs/build-datasets/bin/conda-build:11: DeprecationWarning: conda_build.cli.main_build.main is deprecated and will be removed in 4.0.0. Use `conda build` instead. ``` This PR fixes the deprecation warning by using `co...
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6425", "html_url": "https://github.com/huggingface/datasets/pull/6425", "diff_url": "https://github.com/huggingface/datasets/pull/6425.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6425.patch", "merged_at": "2023-12-13T14:16...
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
6,424
[docs] troubleshooting guide
Hi all! This is a PR adding a troubleshooting guide for Datasets docs. I went through the library's GitHub Issues and Forum questions and identified a few issues that are common enough that I think it would be valuable to include them in the troubleshooting guide. These are: - creating a dataset from a folder and n...
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6424", "html_url": "https://github.com/huggingface/datasets/pull/6424", "diff_url": "https://github.com/huggingface/datasets/pull/6424.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6424.patch", "merged_at": "2023-11-30T17:23...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6424). All of your documentation changes will be reflected on that endpoint.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchma...
6,423
Fix conda release by adding pyarrow-hotfix dependency
Fix conda release by adding pyarrow-hotfix dependency. Note that conda release failed in latest 2.14.7 release: https://github.com/huggingface/datasets/actions/runs/6874667214/job/18696761723 ``` Traceback (most recent call last): File "/usr/share/miniconda/envs/build-datasets/conda-bld/datasets_1700036460222/t...
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6423", "html_url": "https://github.com/huggingface/datasets/pull/6423", "diff_url": "https://github.com/huggingface/datasets/pull/6423.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6423.patch", "merged_at": "2023-11-15T17:09...
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | rea...
6,422
Allow to choose the `writer_batch_size` when using `save_to_disk`
### Feature request Add an argument in `save_to_disk` regarding batch size, which would be passed to `shard` and other methods. ### Motivation The `Dataset.save_to_disk` method currently calls `shard` without passing a `writer_batch_size` argument, thus implicitly using the default value (1000). This can result in R...
[ { "id": 1935892871, "node_id": "MDU6TGFiZWwxOTM1ODkyODcx", "url": "https://api.github.com/repos/huggingface/datasets/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "We have a config variable that controls the batch size in `save_to_disk`:\r\n```python\r\nimport datasets\r\ndatasets.config.DEFAULT_MAX_BATCH_SIZE = <smaller_batch_size>\r\n...\r\nds.save_to_disk(...)\r\n```", "Thank you for your answer!\r\n\r\nFrom what I am reading in `https://github.com/huggingface/datasets/...
6,421
Add pyarrow-hotfix to release docs
Add `pyarrow-hotfix` to release docs.
[ { "id": 4296013012, "node_id": "LA_kwDODunzps8AAAABAA_01A", "url": "https://api.github.com/repos/huggingface/datasets/labels/maintenance", "name": "maintenance", "color": "d4c5f9", "default": false, "description": "Maintenance tasks" } ]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6421", "html_url": "https://github.com/huggingface/datasets/pull/6421", "diff_url": "https://github.com/huggingface/datasets/pull/6421.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6421.patch", "merged_at": "2023-11-15T13:38...
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
6,420
Set dev version
null
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6420", "html_url": "https://github.com/huggingface/datasets/pull/6420", "diff_url": "https://github.com/huggingface/datasets/pull/6420.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6420.patch", "merged_at": "2023-11-15T08:22...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6420). All of your documentation changes will be reflected on that endpoint.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchma...
6,419
Release: 2.14.7
Release 2.14.7.
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6419", "html_url": "https://github.com/huggingface/datasets/pull/6419", "diff_url": "https://github.com/huggingface/datasets/pull/6419.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6419.patch", "merged_at": "2023-11-15T08:12...
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
6,418
Remove token value from warnings
Fix #6412
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6418", "html_url": "https://github.com/huggingface/datasets/pull/6418", "diff_url": "https://github.com/huggingface/datasets/pull/6418.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6418.patch", "merged_at": "2023-11-14T22:19...
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | rea...
6,417
Bug: LayoutLMv3 finetuning on FUNSD Notebook; Arrow Error
### Describe the bug Arrow issues when running the example Notebook laptop locally on Mac with M1. Works on Google Collab. **Notebook**: https://github.com/NielsRogge/Transformers-Tutorials/blob/master/LayoutLMv3/Fine_tune_LayoutLMv3_on_FUNSD_(HuggingFace_Trainer).ipynb **Error**: `ValueError: Arrow type extensi...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "Very strange: `datasets-cli env`\r\n> \r\n> Copy-and-paste the text below in your GitHub issue.\r\n> \r\n> - `datasets` version: 2.9.0\r\n> - Platform: macOS-14.0-arm64-arm-64bit\r\n> - Python version: 3.9.13\r\n> - PyArrow version: 8.0.0\r\n> - Pandas version: 1.3.5\r\n\r\nAfter updating datasets and pyarrow on b...
6,416
Rename audio_classificiation.py to audio_classification.py
null
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6416", "html_url": "https://github.com/huggingface/datasets/pull/6416", "diff_url": "https://github.com/huggingface/datasets/pull/6416.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6416.patch", "merged_at": "2023-11-15T11:53...
true
[ "Oh good catch. Can you also rename it in `src/datasets/tasks/__init__.py` ?", "Fixed! \r\n\r\n(I think, tough word to spell right TBH)", "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show...
6,415
Fix multi gpu map example
- use `orch.cuda.set_device` instead of `CUDA_VISIBLE_DEVICES ` - add `if __name__ == "__main__"` fix https://github.com/huggingface/datasets/issues/6186
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6415", "html_url": "https://github.com/huggingface/datasets/pull/6415", "diff_url": "https://github.com/huggingface/datasets/pull/6415.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6415.patch", "merged_at": "2023-11-22T15:42...
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
6,414
Set `usedforsecurity=False` in hashlib methods (FIPS compliance)
Related to https://github.com/huggingface/transformers/issues/27034 and https://github.com/huggingface/huggingface_hub/pull/1782. **TL;DR:** `hashlib` is not a secure library for cryptography-related stuff. We are only using `hashlib` for non-security-related purposes in `datasets` so it's fine. From Python 3.9 we s...
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6414", "html_url": "https://github.com/huggingface/datasets/pull/6414", "diff_url": "https://github.com/huggingface/datasets/pull/6414.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6414.patch", "merged_at": "2023-11-17T14:17...
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
6,412
User token is printed out!
This line prints user token on command line! Is it safe? https://github.com/huggingface/datasets/blob/12ebe695b4748c5a26e08b44ed51955f74f5801d/src/datasets/load.py#L2091
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "Indeed, this is not a good practice. I've opened a PR that removes the token value from the (deprecation) warning." ]
6,411
Fix dependency conflict within CI build documentation
Manually fix dependency conflict on `typing-extensions` version originated by `apache-beam` + `pydantic` (now a dependency of `huggingface-hub`). This is a temporary hot fix of our CI build documentation until we stop using `apache-beam`. Fix #6406.
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6411", "html_url": "https://github.com/huggingface/datasets/pull/6411", "diff_url": "https://github.com/huggingface/datasets/pull/6411.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6411.patch", "merged_at": "2023-11-14T10:05...
true
[ "_The documentation is not available anymore as the PR was closed or merged._" ]
6,410
Datasets does not load HuggingFace Repository properly
### Describe the bug Dear Datasets team, We just have published a dataset on Huggingface: https://huggingface.co/ai4privacy However, when trying to read it using the Dataset library we get an error. As I understand jsonl files are compatible, could you please clarify how we can solve the issue? Please let me ...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "Hi! You can avoid the error by requesting only the `jsonl` files. `dataset = load_dataset(\"ai4privacy/pii-masking-200k\", data_files=[\"*.jsonl\"])`.\r\n\r\nOur data file inference does not filter out (incompatible) `json` files because `json` and `jsonl` use the same builder. Still, I think the inference should...
6,409
using DownloadManager to download from local filesystem and disable_progress_bar, there will be an exception
### Describe the bug i'm using datasets.download.download_manager.DownloadManager to download files like "file:///a/b/c.txt", and i disable_progress_bar() to disable bar. there will be an exception as follows: `AttributeError: 'function' object has no attribute 'close' Exception ignored in: <function TqdmCallback....
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
6,408
`IterableDataset` lost but not keep columns when map function adding columns with names in `remove_columns`
### Describe the bug IterableDataset lost but not keep columns when map function adding columns with names in remove_columns, Dataset not. May be related to the code below: https://github.com/huggingface/datasets/blob/06c3ffb8d068b6307b247164b10f7c7311cefed4/src/datasets/iterable_dataset.py#L750-L756 ### Steps t...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
6,407
Loading the dataset from private S3 bucket gives "TypeError: cannot pickle '_contextvars.Context' object"
### Describe the bug I'm trying to read the parquet file from the private s3 bucket using the `load_dataset` function, but I receive `TypeError: cannot pickle '_contextvars.Context' object` error I'm working on a machine with `~/.aws/credentials` file. I can't give credentials and the path to a file in a private bu...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "I have encountered the same problem with `datasets-2.20.0`. \r\n\r\nI found the following workaround for this issue (including the fix from #6598):\r\n1. specify the AWS profile name in the `storage_options` instead of passing an existing session object\r\n2. use a custom `DownloadConfig` object to fix #6598\r\n3....
6,406
CI Build PR Documentation is broken: ImportError: cannot import name 'TypeAliasType' from 'typing_extensions'
Our CI Build PR Documentation is broken. See: https://github.com/huggingface/datasets/actions/runs/6799554060/job/18486828777?pr=6390 ``` ImportError: cannot import name 'TypeAliasType' from 'typing_extensions' ```
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
6,405
ConfigNamesError on a simple CSV file
See https://huggingface.co/datasets/Nguyendo1999/mmath/discussions/1 ``` Error code: ConfigNamesError Exception: TypeError Message: __init__() missing 1 required positional argument: 'dtype' Traceback: Traceback (most recent call last): File "/src/services/worker/src/worker/job_runn...
[ { "id": 1935892857, "node_id": "MDU6TGFiZWwxOTM1ODkyODU3", "url": "https://api.github.com/repos/huggingface/datasets/labels/bug", "name": "bug", "color": "d73a4a", "default": true, "description": "Something isn't working" } ]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "The viewer is working now. \r\n\r\nBased on the repo commit history, the bug was due to the incorrect format of the `features` field in the README YAML (`Value` requires `dtype`, e.g., `Value(\"string\")`, but it was not specified)", "Feel free to close the issue", "Oh, OK! Thanks. So, there was no reason to o...
6,404
Support pyarrow 14.0.1 and fix vulnerability CVE-2023-47248
Support `pyarrow` 14.0.1 and fix vulnerability [CVE-2023-47248](https://github.com/advisories/GHSA-5wvp-7f3h-6wmm). Fix #6396.
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6404", "html_url": "https://github.com/huggingface/datasets/pull/6404", "diff_url": "https://github.com/huggingface/datasets/pull/6404.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6404.patch", "merged_at": "2023-11-14T10:23...
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
6,403
Cannot import datasets on google colab (python 3.10.12)
### Describe the bug I'm trying A full colab demo notebook of zero-shot-distillation from https://github.com/huggingface/transformers/tree/main/examples/research_projects/zero-shot-distillation but i got this type of error when importing datasets on my google colab (python version is 3.10.12) ![image](https://gith...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "You are most likely using an outdated version of `datasets` in the notebook, which can be verified with the `!datasets-cli env` command. You can run `!pip install -U datasets` to update the installation.", "okay, it works! thank you so much! 😄 " ]
6,402
Update torch_formatter.py
Ensure PyTorch images are converted to (C, H, W) instead of (H, W, C). See #6394 for motivation.
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6402", "html_url": "https://github.com/huggingface/datasets/pull/6402", "diff_url": "https://github.com/huggingface/datasets/pull/6402.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6402.patch", "merged_at": "2024-03-15T11:25...
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6402). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>...
6,401
dataset = load_dataset("Hyperspace-Technologies/scp-wiki-text") not working
### Describe the bug ``` (datasets) mruserbox@guru-X99:/media/10TB_HHD/_LLM_DATASETS$ python dataset.py Downloading readme: 100%|███████████████████████████████████| 360/360 [00:00<00:00, 2.16MB/s] Downloading data: 100%|█████████████████████████████████| 65.1M/65.1M [00:19<00:00, 3.38MB/s] Downloading data: 100...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "Seems like it's a problem with the dataset, since in the [README](https://huggingface.co/datasets/Hyperspace-Technologies/scp-wiki-text/blob/main/README.md) the validation is not specified. Try cloning the dataset, removing the README (or validation split), and loading it locally/ ", "@VarunNSrivastava thanks br...
6,400
Safely load datasets by disabling execution of dataset loading script
### Feature request Is there a way to disable execution of dataset loading script using `load_dataset`? This is a security vulnerability that could lead to arbitrary code execution. Any suggested workarounds are welcome as well. ### Motivation This is a security vulnerability that could lead to arbitrary code e...
[ { "id": 1935892871, "node_id": "MDU6TGFiZWwxOTM1ODkyODcx", "url": "https://api.github.com/repos/huggingface/datasets/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "great idea IMO\r\n\r\nthis could be a `trust_remote_code=True` flag like in transformers. We could also default to loading the Parquet conversion rather than executing code (for dataset repos that have both)", "@julien-c that would be great!", "We added the `trust_remote_code` argument to `load_dataset()` in `...
6,399
TypeError: Cannot convert pyarrow.lib.ChunkedArray to pyarrow.lib.Array
### Describe the bug Hi, I am preprocessing a large custom dataset with numpy arrays. I am running into this TypeError during writing in a dataset.map() function. I've tried decreasing writer batch size, but this error persists. This error does not occur for smaller datasets. Thank you! ### Steps to repro...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "Seconding encountering this issue." ]
6,398
Remove redundant condition in builders
Minor refactoring to remove redundant condition.
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6398", "html_url": "https://github.com/huggingface/datasets/pull/6398", "diff_url": "https://github.com/huggingface/datasets/pull/6398.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6398.patch", "merged_at": "2023-11-14T10:43...
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
6,397
Raise a different exception for inexisting dataset vs files without known extension
See https://github.com/huggingface/datasets-server/issues/2082#issuecomment-1805716557 We have the same error for: - https://huggingface.co/datasets/severo/a_dataset_that_does_not_exist: a dataset that does not exist - https://huggingface.co/datasets/severo/test_files_without_extension: a dataset with files withou...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
6,396
Issue with pyarrow 14.0.1
See https://github.com/huggingface/datasets-server/pull/2089 for reference ``` from datasets import (Array2D, Dataset, Features) feature_type = Array2D(shape=(2, 2), dtype="float32") content = [[0.0, 0.0], [0.0, 0.0]] features = Features({"col": feature_type}) dataset = Dataset.from_dict({"col": [content]}, fea...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "Looks like we should stop using `PyExtensionType` and use `ExtensionType` instead\r\n\r\nsee https://github.com/apache/arrow/commit/f14170976372436ec1d03a724d8d3f3925484ecf", "https://github.com/huggingface/datasets-server/pull/2089#pullrequestreview-1724449532\r\n\r\n> Yes, I understand now: they have disabled ...
6,395
Add ability to set lock type
### Feature request Allow setting file lock type, maybe from an environment variable Currently, it only depends on whether fnctl is available: https://github.com/huggingface/datasets/blob/12ebe695b4748c5a26e08b44ed51955f74f5801d/src/datasets/utils/filelock.py#L463-L470C16 ### Motivation In my environment...
[ { "id": 1935892871, "node_id": "MDU6TGFiZWwxOTM1ODkyODcx", "url": "https://api.github.com/repos/huggingface/datasets/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "We've replaced our filelock implementation with the `filelock` package, so their repo is the right place to request this feature.\r\n\r\nIn the meantime, the following should work: \r\n```python\r\nimport filelock\r\nfilelock.FileLock = filelock.SoftFileLock\r\n\r\nimport datasets\r\n...\r\n```" ]
6,394
TorchFormatter images (H, W, C) instead of (C, H, W) format
### Describe the bug Using .set_format("torch") leads to images having shape (H, W, C), the same as in numpy. However, pytorch normally uses (C, H, W) format. Maybe I'm missing something but this makes the format a lot less useful as I then have to permute it anyways. If not using the format it is possible to ...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "Here's a PR for that. https://github.com/huggingface/datasets/pull/6402\r\n\r\nIt's not backward compatible, unfortunately. ", "Just ran into this working on data lib that's attempting to achieve common interfaces across hf datasets, webdataset, native torch style datasets. The defacto standards for image tensor...
6,393
Filter occasionally hangs
### Describe the bug A call to `.filter` occasionally hangs (after the filter is complete, according to tqdm) There is a trace produced ``` Exception ignored in: <function Dataset.__del__ at 0x7efb48130c10> Traceback (most recent call last): File "/usr/lib/python3/dist-packages/datasets/arrow_dataset.py", l...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "It looks like I may not be the first to encounter this: https://github.com/huggingface/datasets/issues/3172", "Adding some more information, it seems to occur more frequently with large (millions of samples) datasets.", "More information. My code is structured as (1) load (2) map (3) filter (4) filter. It was ...
6,392
`push_to_hub` is not robust to hub closing connection
### Describe the bug Like to #6172, `push_to_hub` will crash if Hub resets the connection and raise the following error: ``` Pushing dataset shards to the dataset hub: 32%|███▏ | 54/171 [06:38<14:23, 7.38s/it] Traceback (most recent call last): File "/admin/home-piraka9011/.virtualenvs/w2v2/lib/python3.8/...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "Hi! We made some improvements to `push_to_hub` to make it more robust a couple of weeks ago but haven't published a release in the meantime, so it would help if you could install `datasets` from `main` (`pip install https://github.com/huggingface/datasets`) and let us know if this improved version of `push_to_hub`...
6,391
Webdataset dataset builder
Allow `load_dataset` to support the Webdataset format. It allows users to download/stream data from local files or from the Hugging Face Hub. Moreover it will enable the Dataset Viewer for Webdataset datasets on HF. ## Implementation details - I added a new Webdataset builder - dataset with TAR files are n...
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6391", "html_url": "https://github.com/huggingface/datasets/pull/6391", "diff_url": "https://github.com/huggingface/datasets/pull/6391.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6391.patch", "merged_at": "2023-11-28T16:33...
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "I added an error message if the first examples don't appear to be in webdataset format\r\n```\r\n\"The TAR archives of the dataset should be in Webdataset format, \"\r\n\"but the files in the archive don't share the same prefix or th...
6,390
handle future deprecation argument
getting this error: ``` /root/miniconda3/envs/py3.10/lib/python3.10/site-packages/datasets/table.py:1387: FutureWarning: promote has been superseded by mode='default'. return cls._concat_blocks(pa_tables_to_concat_vertically, axis=0) ``` Since datasets supports arrow greater than 8.0.0, we need to handle both ...
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6390", "html_url": "https://github.com/huggingface/datasets/pull/6390", "diff_url": "https://github.com/huggingface/datasets/pull/6390.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6390.patch", "merged_at": "2023-11-14T15:15...
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
6,389
Index 339 out of range for dataset of size 339 <-- save_to_file()
### Describe the bug When saving out some Audio() data. The data is audio recordings with associated 'sentences'. (They use the audio 'bytes' approach because they're clips within audio files). Code is below the traceback (I can't upload the voice audio/text (it's not even me)). ``` Traceback (most recent call ...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "Hi! Can you make the above reproducer self-contained by adding code that generates the data?", "I managed a workaround eventually but I don't know what it was (I made a lot of changes to seq2seq). I'll try to include generating code in the future. (If I close, I don't know if you see it. Feel free to close; I'l...
6,388
How to create 3d medical imgae dataset?
### Feature request I am newer to huggingface, after i look up `datasets` docs, I can't find how to create the dataset contains 3d medical image (ends with '.mhd', '.dcm', '.nii') ### Motivation help us to upload 3d medical dataset to huggingface! ### Your contribution I'll submit a PR if I find a way to...
[ { "id": 1935892871, "node_id": "MDU6TGFiZWwxOTM1ODkyODcx", "url": "https://api.github.com/repos/huggingface/datasets/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[]
6,387
How to load existing downloaded dataset ?
Hi @mariosasko @lhoestq @katielink Thanks for your contribution and hard work. ### Feature request First, I download a dataset as normal by: ``` from datasets import load_dataset dataset = load_dataset('username/data_name', cache_dir='data') ``` The dataset format in `data` directory will be: ``` ...
[ { "id": 1935892871, "node_id": "MDU6TGFiZWwxOTM1ODkyODcx", "url": "https://api.github.com/repos/huggingface/datasets/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "Feel free to use `dataset.save_to_disk(...)`, then scp the directory containing the saved dataset and reload it on your other machine using `dataset = load_from_disk(...)`" ]
6,386
Formatting overhead
### Describe the bug Hi! I very recently noticed that my training time is dominated by batch formatting. Using Lightning's profilers, I located the bottleneck within `datasets.formatting.formatting` and then narrowed it down with `line-profiler`. It turns out that almost all of the overhead is due to creating new inst...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "Ah I think the `line-profiler` log is off-by-one and it is in fact the `extract_batch` method that's taking forever. Will investigate further.", "I tracked it down to a quirk of my setup. Apologies." ]
6,385
Get an error when i try to concatenate the squad dataset with my own dataset
### Describe the bug Hello, I'm new here and I need to concatenate the squad dataset with my own dataset i created. I find the following error when i try to do it: Traceback (most recent call last): Cell In[9], line 1 concatenated_dataset = concatenate_datasets([train_dataset, dataset1]) File ~\ana...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "The `answers.text` field in the JSON dataset needs to be a list of strings, not a string.\r\n\r\nSo, here is the fixed code:\r\n```python\r\nfrom huggingface_hub import notebook_login\r\nfrom datasets import load_dataset\r\n\r\n\r\n\r\nnotebook_login(\"mymailadresse\", \"mypassword\")\r\nsquad = load_dataset(\"squ...
6,384
Load the local dataset folder from other place
This is from https://github.com/huggingface/diffusers/issues/5573
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "Solved" ]
6,383
imagenet-1k downloads over and over
### Describe the bug What could be causing this? ``` $ python3 Python 3.8.13 (default, Mar 28 2022, 11:38:47) [GCC 7.5.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information. >>> from datasets import load_dataset >>> load_dataset("imagenet-1k") Downloading builder ...
[]
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "Have you solved this problem?" ]
6,382
Add CheXpert dataset for vision
### Feature request ### Name **CheXpert: A Large Chest Radiograph Dataset with Uncertainty Labels and Expert Comparison** ### Paper https://arxiv.org/abs/1901.07031 ### Data https://stanfordaimi.azurewebsites.net/datasets/8cbd9ed4-2eb9-4565-affc-111cf4f7ebe2 ### Motivation CheXpert is one of the fund...
[ { "id": 1935892871, "node_id": "MDU6TGFiZWwxOTM1ODkyODcx", "url": "https://api.github.com/repos/huggingface/datasets/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" }, { "id": 2067376369, "node_id": "MDU6...
{ "url": null, "html_url": null, "diff_url": null, "patch_url": null, "merged_at": null }
false
[ "Hey @SauravMaheshkar ! Just responded to your email.\r\n\r\n_For transparency, copying part of my response here:_\r\nI agree, it would be really great to have this and other BenchMD datasets easily accessible on the hub.\r\n\r\nI think the main limiting factor is that the ChexPert dataset is currently hosted on th...
6,381
Add my dataset
## medical data **Description:** This dataset, named "medical data," is a collection of text data from various sources, carefully curated and cleaned for use in natural language processing (NLP) tasks. It consists of a diverse range of text, including articles, books, and online content, covering topics from scienc...
[]
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/6381", "html_url": "https://github.com/huggingface/datasets/pull/6381", "diff_url": "https://github.com/huggingface/datasets/pull/6381.diff", "patch_url": "https://github.com/huggingface/datasets/pull/6381.patch", "merged_at": null }
true
[ "Hi! We do not host datasets in this repo. Instead, you should use `dataset.push_to_hub` to upload the dataset to the HF Hub.", "@mariosasko could you provide me proper guide to push data on HF hub ", "You can find this info here: https://huggingface.co/docs/datasets/upload_dataset. Also, check https://huggingf...