id int64 599M 3.18B | number int64 1 7.65k | title stringlengths 1 290 | state stringclasses 2
values | body stringlengths 0 228k | is_pull_request bool 1
class | created_at stringdate 2020-04-14 10:18:02 2025-06-26 12:23:48 | updated_at stringdate 2020-04-27 16:04:17 2025-06-26 14:02:38 | closed_at stringlengths 20 20 ⌀ | user_login stringlengths 3 26 | author_association stringclasses 4
values | pr_url stringlengths 46 49 ⌀ | pr_merged_at stringlengths 20 20 ⌀ | comments_count int64 0 70 | reactions_total int64 0 61 | reactions_plus1 int64 0 39 | reactions_heart int64 0 22 | draft bool 2
classes | locked bool 1
class | labels listlengths 0 4 | html_url stringlengths 46 51 | is_pr_url bool 2
classes | comments listlengths 0 30 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2,244,898,824 | 6,812 | Run CI | closed | true | 2024-04-16T01:12:36Z | 2024-04-16T01:14:16Z | 2024-04-16T01:12:41Z | charliermarsh | NONE | https://github.com/huggingface/datasets/pull/6812 | null | 1 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6812 | true | [
"(Sorry, meant to open this against my own fork. I'm attempting to debug this issue (https://github.com/astral-sh/uv/issues/1921#issuecomment-2058056192) reported by `huggingface/datasets` on the uv repo.)"
] | |
2,243,656,096 | 6,811 | add allow_primitive_to_str and allow_decimal_to_str instead of allow_number_to_str | closed | Fix #6805 | true | 2024-04-15T13:14:38Z | 2024-07-03T14:59:42Z | 2024-04-16T17:03:17Z | Modexus | CONTRIBUTOR | https://github.com/huggingface/datasets/pull/6811 | 2024-04-16T17:03:17Z | 6 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6811 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6811). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.",
"@mariosasko pytest seems to be missing on windows?",
"CI is not behaving well today �... |
2,242,968,745 | 6,810 | Allow deleting a subset/config from a no-script dataset | closed | As proposed by @BramVanroy, it would be neat to have this functionality through the API. | true | 2024-04-15T07:53:26Z | 2025-01-11T18:40:40Z | 2024-04-30T09:44:25Z | albertvillanova | MEMBER | null | null | 3 | 0 | 0 | 0 | null | false | [
"enhancement"
] | https://github.com/huggingface/datasets/issues/6810 | false | [
"Probably best to implement this as a CLI command?",
"Thanks for your comment, @mariosasko. Or maybe both (in Python and as CLI command)? The Python command would be just the reverse of `push_to_hub`...\r\n\r\nI am working on a draft implementation, so we can discuss about the API and UX.",
"2nd time I've come ... |
2,242,956,297 | 6,809 | Make convert_to_parquet CLI command create script branch | closed | Make convert_to_parquet CLI command create a "script" branch and keep the script file on it.
This PR proposes the simplest UX approach: whenever `--revision` is not explicitly passed (i.e., when the script is in the main branch), try to create a "script" branch from the "main" branch; if the "script" branch exists a... | true | 2024-04-15T07:47:26Z | 2024-04-17T08:44:26Z | 2024-04-17T08:38:18Z | albertvillanova | MEMBER | https://github.com/huggingface/datasets/pull/6809 | 2024-04-17T08:38:18Z | 3 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6809 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6809). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.",
"@huggingface/datasets once this PR is merged, I would suggest making a release. Do you ... |
2,242,843,611 | 6,808 | Make convert_to_parquet CLI command create script branch | closed | As proposed by @severo, maybe we should add this functionality as well to the CLI command to convert a script-dataset to Parquet. See: https://github.com/huggingface/datasets/pull/6795#discussion_r1562819168
> When providing support, we sometimes suggest that users store their script in a script branch. What do you th... | true | 2024-04-15T06:46:07Z | 2024-04-17T08:38:19Z | 2024-04-17T08:38:19Z | albertvillanova | MEMBER | null | null | 0 | 0 | 0 | 0 | null | false | [
"enhancement"
] | https://github.com/huggingface/datasets/issues/6808 | false | [] |
2,239,435,074 | 6,806 | Fix hf-internal-testing/dataset_with_script commit SHA in CI test | closed | Fix test using latest commit SHA in hf-internal-testing/dataset_with_script dataset: https://huggingface.co/datasets/hf-internal-testing/dataset_with_script/commits/refs%2Fconvert%2Fparquet
Fix #6796. | true | 2024-04-12T08:47:50Z | 2024-04-12T09:08:23Z | 2024-04-12T09:02:12Z | albertvillanova | MEMBER | https://github.com/huggingface/datasets/pull/6806 | 2024-04-12T09:02:12Z | 2 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6806 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6806). 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>... |
2,239,034,951 | 6,805 | Batched mapping of existing string column casts boolean to string | closed | ### Describe the bug
Let the dataset contain a column named 'a', which is of the string type.
If 'a' is converted to a boolean using batched mapping, the mapper automatically casts the boolean to a string (e.g., True -> 'true').
It only happens when the original column and the mapped column name are identical.
Th... | true | 2024-04-12T04:21:41Z | 2024-07-03T15:00:07Z | 2024-07-03T15:00:07Z | starmpcc | NONE | null | null | 7 | 0 | 0 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6805 | false | [
"This seems to be hardcoded behavior in table.py `array_cast`.\r\n```python\r\nif (\r\n not allow_number_to_str\r\n and pa.types.is_string(pa_type)\r\n and (pa.types.is_floating(array.type) or pa.types.is_integer(array.type))\r\n ):\r\n raise TypeError(\r\n ... |
2,238,035,124 | 6,804 | Fix --repo-type order in cli upload docs | closed | true | 2024-04-11T15:39:09Z | 2024-04-11T16:24:57Z | 2024-04-11T16:18:47Z | lhoestq | MEMBER | https://github.com/huggingface/datasets/pull/6804 | 2024-04-11T16:18:47Z | 2 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6804 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6804). 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>... | |
2,237,933,090 | 6,803 | #6791 Improve type checking around FAISS | closed | Fixes #6791
Small PR to raise a better error when a dataset is not embedded properly. | true | 2024-04-11T14:54:30Z | 2024-04-11T15:44:09Z | 2024-04-11T15:38:04Z | Dref360 | CONTRIBUTOR | https://github.com/huggingface/datasets/pull/6803 | 2024-04-11T15:38:04Z | 3 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6803 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6803). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.",
"CI failures are unrelated.",
"<details>\n<summary>Show benchmarks</summary>\n\nPyArro... |
2,237,365,489 | 6,802 | Fix typo in docs (upload CLI) | closed | Related to https://huggingface.slack.com/archives/C04RG8YRVB8/p1712643948574129 (interal)
Positional args must be placed before optional args.
Feel free to merge whenever it's ready. | true | 2024-04-11T10:05:05Z | 2024-04-11T16:19:00Z | 2024-04-11T13:19:43Z | Wauplin | CONTRIBUTOR | https://github.com/huggingface/datasets/pull/6802 | 2024-04-11T13:19:43Z | 4 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6802 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6802). 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>... |
2,236,911,556 | 6,801 | got fileNotFound | closed | ### Describe the bug
When I use load_dataset to load the nyanko7/danbooru2023 data set, the cache is read in the form of a symlink. There may be a problem with the arrow_dataset initialization process and I get FileNotFoundError: [Errno 2] No such file or directory: '2945000.jpg'
### Steps to reproduce the bug
#code... | true | 2024-04-11T04:57:41Z | 2024-04-12T16:47:43Z | 2024-04-12T16:47:43Z | laoniandisko | NONE | null | null | 2 | 0 | 0 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6801 | false | [
"Hi! I'll open a PR on the Hub to fix this, but please use the Hub's [Community tab](https://huggingface.co/datasets/nyanko7/danbooru2023/discussions) to report such issues in the future.",
"I've opened a [PR](https://huggingface.co/datasets/nyanko7/danbooru2023/discussions/8) in the repo, so let's continue the d... |
2,236,431,288 | 6,800 | High overhead when loading lots of subsets from the same dataset | open | ### Describe the bug
I have a multilingual dataset that contains a lot of subsets. Each subset corresponds to a pair of languages, you can see here an example with 250 subsets: [https://hf.co/datasets/loicmagne/open-subtitles-250-bitext-mining](). As part of the MTEB benchmark, we may need to load all the subsets of t... | true | 2024-04-10T21:08:57Z | 2024-04-24T13:48:05Z | null | loicmagne | NONE | null | null | 6 | 1 | 1 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6800 | false | [
"Hi !\r\n\r\nIt's possible to multiple files at once:\r\n\r\n```python\r\ndata_files = \"data/*.jsonl\"\r\n# Or pass a list of files\r\nlangs = ['ka-ml', 'br-sr', 'ka-pt', 'id-ko', ..., 'fi-ze_zh', 'he-kk', 'ka-tr']\r\ndata_files = [f\"data/{lang}.jsonl\" for lang in langs]\r\nds = load_dataset(\"loicmagne/open-sub... |
2,236,124,531 | 6,799 | fix `DatasetBuilder._split_generators` incomplete type annotation | closed | solve #6798:
add missing `StreamingDownloadManager` type annotation to the `dl_manager` argument of the `DatasetBuilder._split_generators` function | true | 2024-04-10T17:46:08Z | 2024-04-11T15:41:06Z | 2024-04-11T15:34:58Z | JonasLoos | CONTRIBUTOR | https://github.com/huggingface/datasets/pull/6799 | 2024-04-11T15:34:58Z | 3 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6799 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6799). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.",
"The CI failures are unrelated to the changes",
"<details>\n<summary>Show benchmarks</... |
2,235,768,891 | 6,798 | `DatasetBuilder._split_generators` incomplete type annotation | closed | ### Describe the bug
The [`DatasetBuilder._split_generators`](https://github.com/huggingface/datasets/blob/0f27d7b77c73412cfc50b24354bfd7a3e838202f/src/datasets/builder.py#L1449) function has currently the following signature:
```python
class DatasetBuilder:
def _split_generators(self, dl_manager: DownloadMan... | true | 2024-04-10T14:38:50Z | 2024-04-11T15:34:59Z | 2024-04-11T15:34:59Z | JonasLoos | CONTRIBUTOR | null | null | 3 | 0 | 0 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6798 | false | [
"Good catch! Feel free to open a PR with the suggested fix :).",
"There is also the [`MockDownloadManager`](https://github.com/JonasLoos/datasets/blob/main/src/datasets/download/mock_download_manager.py#L33), which seems like it might get passed here too. However, to me, it doesn't really seem relevant to the use... |
2,234,890,097 | 6,797 | Fix CI test_load_dataset_distributed_with_script | closed | Fix #6796. | true | 2024-04-10T06:57:48Z | 2024-04-10T08:25:00Z | 2024-04-10T08:18:01Z | albertvillanova | MEMBER | https://github.com/huggingface/datasets/pull/6797 | null | 2 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6797 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6797). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.",
"Finally:\r\n- the initial issue seems it was temporary\r\n- there is a different issue ... |
2,234,887,618 | 6,796 | CI is broken due to hf-internal-testing/dataset_with_script | closed | CI is broken for test_load_dataset_distributed_with_script. See: https://github.com/huggingface/datasets/actions/runs/8614926216/job/23609378127
```
FAILED tests/test_load.py::test_load_dataset_distributed_with_script[None] - assert False
+ where False = all(<generator object test_load_dataset_distributed_with_scr... | true | 2024-04-10T06:56:02Z | 2024-04-12T09:02:13Z | 2024-04-12T09:02:13Z | albertvillanova | MEMBER | null | null | 4 | 0 | 0 | 0 | null | false | [
"bug"
] | https://github.com/huggingface/datasets/issues/6796 | false | [
"Finally:\r\n- the initial issue seems it was temporary\r\n- there is a different issue now: https://github.com/huggingface/datasets/actions/runs/8627153993/job/23646584590?pr=6797\r\n```\r\nFAILED tests/test_load.py::ModuleFactoryTest::test_HubDatasetModuleFactoryWithParquetExport - datasets.utils._dataset_viewer.... |
2,233,618,719 | 6,795 | Add CLI function to convert script-dataset to Parquet | closed | Close #6690. | true | 2024-04-09T14:45:12Z | 2024-04-17T08:41:23Z | 2024-04-12T15:27:04Z | albertvillanova | MEMBER | https://github.com/huggingface/datasets/pull/6795 | 2024-04-12T15:27:04Z | 3 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6795 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6795). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.",
"@huggingface/datasets once this PR is merged, I would suggest making a release. Do you ... |
2,233,202,088 | 6,794 | Multithreaded downloads | closed | ...for faster dataset download when there are many many small files (e.g. imagefolder, audiofolder)
### Behcnmark
for example on [lhoestq/tmp-images-writer_batch_size](https://hf.co/datasets/lhoestq/tmp-images-writer_batch_size) (128 images)
| | duration of the download step in `load_dataset()` |
|--| ----... | true | 2024-04-09T11:13:19Z | 2024-04-15T21:24:13Z | 2024-04-15T21:18:08Z | lhoestq | MEMBER | https://github.com/huggingface/datasets/pull/6794 | 2024-04-15T21:18:08Z | 4 | 1 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6794 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6794). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.",
"CI is failing because of the missing parquet export of one test dataset, PR to fix this... |
2,231,400,200 | 6,793 | Loading just one particular split is not possible for imagenet-1k | open | ### Describe the bug
I'd expect the following code to download just the validation split but instead I get all data on my disk (train, test and validation splits)
`
from datasets import load_dataset
dataset = load_dataset("imagenet-1k", split="validation", trust_remote_code=True)
`
Is it expected to work li... | true | 2024-04-08T14:39:14Z | 2025-06-23T09:55:08Z | null | PaulPSta | NONE | null | null | 2 | 5 | 5 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6793 | false | [
"+1",
"+1\n"
] |
2,231,318,682 | 6,792 | Fix cache conflict in `_check_legacy_cache2` | closed | It was reloading from the wrong cache dir because of a bug in `_check_legacy_cache2`. This function should not trigger if there are config_kwars like `sample_by=`
fix https://github.com/huggingface/datasets/issues/6758 | true | 2024-04-08T14:05:42Z | 2024-04-09T11:34:08Z | 2024-04-09T11:27:58Z | lhoestq | MEMBER | https://github.com/huggingface/datasets/pull/6792 | 2024-04-09T11:27:57Z | 2 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6792 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6792). 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>... |
2,230,102,332 | 6,791 | `add_faiss_index` raises ValueError: not enough values to unpack (expected 2, got 1) | closed | ### Describe the bug
Calling `add_faiss_index` on a `Dataset` with a column argument raises a ValueError. The following is the trace
```python
214 def replacement_add(self, x):
215 """Adds vectors to the index.
216 The index must be trained before vectors can be added to it.
217 Th... | true | 2024-04-08T01:57:03Z | 2024-04-11T15:38:05Z | 2024-04-11T15:38:05Z | NeuralFlux | NONE | null | null | 3 | 0 | 0 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6791 | false | [
"I realized I was passing a string column to this instead of float. Is it possible to add a warning or error to prevent users from falsely believing there's a bug?",
"Hello!\r\n\r\nI agree that we could add some safeguards around the type of `ds[column]`. At least for FAISS, we need the column to be made of embed... |
2,229,915,236 | 6,790 | PyArrow 'Memory mapping file failed: Cannot allocate memory' bug | open | ### Describe the bug
Hello,
I've been struggling with a problem using Huggingface datasets caused by PyArrow memory allocation. I finally managed to solve it, and thought to document it since similar issues have been raised here before (https://github.com/huggingface/datasets/issues/5710, https://github.com/huggi... | true | 2024-04-07T19:25:39Z | 2025-06-12T07:31:44Z | null | lasuomela | NONE | null | null | 3 | 3 | 3 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6790 | false | [
"Thanks for a very clean explanation. This happened to me too, and I don't have sudo access to update the value. I wonder if there might be another workaround.",
"One option is to just have more data in each file - /proc/sys/vm/max_map_count limits the maximum number of concurrently open files, but I don't know i... |
2,229,527,001 | 6,789 | Issue with map | open | ### Describe the bug
Map has been taking extremely long to preprocess my data.
It seems to process 1000 examples (which it does really fast in about 10 seconds), then it hangs for a good 1-2 minutes, before it moves on to the next batch of 1000 examples.
It also keeps eating up my hard drive space for some reaso... | true | 2024-04-07T02:52:06Z | 2024-07-23T12:41:38Z | null | Nsohko | NONE | null | null | 8 | 0 | 0 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6789 | false | [
"Default `writer_batch_size `is set to 1000 (see [map](https://huggingface.co/docs/datasets/v2.16.1/en/package_reference/main_classes#datasets.Dataset.map)).\r\nThe \"tmp1335llua\" is probably the temp file it creates while writing to disk.\r\nMaybe try lowering the `writer_batch_size`.\r\n\r\nFor multi-processing ... |
2,229,207,521 | 6,788 | A Question About the Map Function | closed | ### Describe the bug
Hello,
I have a question regarding the map function in the Hugging Face datasets.
The situation is as follows: when I load a jsonl file using load_dataset(..., streaming=False), and then utilize the map function to process it, I specify that the returned example should be of type Torch.ten... | true | 2024-04-06T11:45:23Z | 2024-04-11T05:29:35Z | 2024-04-11T05:29:35Z | lifeprompter | NONE | null | null | 2 | 0 | 0 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6788 | false | [
"All data is saved in the arrow format on disk.\r\nIf you return a tensor it gets converted to arrow before saving to disk when using map.\r\n\r\nTo get a tensor when you access data elements you can use `dataset.set_format(\"pt\")`.\r\nNote that this just changes how the data is loaded, not how it is stored.",
"... |
2,229,103,264 | 6,787 | TimeoutError in map | open | ### Describe the bug
```python
from datasets import Dataset
def worker(example):
while True:
continue
example['a'] = 100
return example
data = Dataset.from_list([{"a": 1}, {"a": 2}])
data = data.map(worker)
print(data[0])
```
I'm implementing a worker function whose runtime will de... | true | 2024-04-06T06:25:39Z | 2024-08-14T02:09:57Z | null | Jiaxin-Wen | CONTRIBUTOR | null | null | 7 | 0 | 0 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6787 | false | [
"From my current understanding, this timeout is only used when we need to get the results.\r\n\r\nOne of:\r\n1. All tasks are done\r\n2. One worker died\r\n\r\nYour function should work fine and it's definitely a bug if it doesn't.",
"When one of the `map`'s worker processes crashes, the linked code re-raises an ... |
2,228,463,776 | 6,786 | Make Image cast storage faster | open | PR for issue #6782.
Makes `cast_storage` of the `Image` class faster by removing the slow call to `.pylist`.
Instead directly convert each `ListArray` item to either `Array2DExtensionType` or `Array3DExtensionType`.
This also preserves the `dtype` removing the warning if the array is already `uint8`. | true | 2024-04-05T17:00:46Z | 2024-10-01T09:09:14Z | null | Modexus | CONTRIBUTOR | https://github.com/huggingface/datasets/pull/6786 | null | 8 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6786 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6786). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.",
"Hi ! Thanks for diving into this, this conversion to python lists is indeed quite slow.... |
2,228,429,852 | 6,785 | rename datasets-server to dataset-viewer | closed | See https://github.com/huggingface/dataset-viewer/issues/2650
Tell me if it's OK, or if it's a breaking change that must be handled differently.
Also note that the docs page is still https://huggingface.co/docs/datasets-server/, so I didn't change it.
And the API URL is still https://datasets-server.huggingfac... | true | 2024-04-05T16:37:05Z | 2024-04-08T12:41:13Z | 2024-04-08T12:35:02Z | severo | COLLABORATOR | https://github.com/huggingface/datasets/pull/6785 | 2024-04-08T12:35:02Z | 2 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6785 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6785). 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>... |
2,228,390,504 | 6,784 | Extract data on the fly in packaged builders | closed | Instead of waiting for data files to be extracted in the packaged builders, we can prepend the compression prefix and extract them as they are being read (using `fsspec`). This saves disk space (deleting extracted archives is not set by default) and slightly speeds up dataset generation (less disk reads) | true | 2024-04-05T16:12:25Z | 2024-04-16T16:37:47Z | 2024-04-16T16:31:29Z | mariosasko | COLLABORATOR | https://github.com/huggingface/datasets/pull/6784 | 2024-04-16T16:31:29Z | 3 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6784 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6784). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.",
"CI failures are unrelated, so this is ready for the review",
"<details>\n<summary>Sho... |
2,228,179,466 | 6,783 | AttributeError: module 'numpy' has no attribute 'object'. in Kaggle Notebook | closed | ### Describe the bug
# problem
I can't resample audio dataset in Kaggle Notebook. It looks like some code in `datasets` library use aliases that were deprecated in NumPy 1.20.
## code for resampling
```
from datasets import load_dataset, Audio
from transformers import AutoFeatureExtractor
from transformers imp... | true | 2024-04-05T14:31:48Z | 2024-04-11T17:18:53Z | 2024-04-11T17:18:53Z | petrov826 | NONE | null | null | 2 | 0 | 0 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6783 | false | [
"Hi! You can fix this by updating the `datasets` package with `pip install -U datasets` and restarting the notebook.\r\n",
"Kaggle removed the problematic `datasets==2.1.0` pin last week, so I'm closing this issue (now it pre-installs the latest version)."
] |
2,228,081,955 | 6,782 | Image cast_storage very slow for arrays (e.g. numpy, tensors) | open | Update: see comments below
### Describe the bug
Operations that save an image from a path are very slow.
I believe the reason for this is that the image data (`numpy`) is converted into `pyarrow` format but then back to python using `.pylist()` before being converted to a numpy array again.
`pylist` is alread... | true | 2024-04-05T13:46:54Z | 2024-04-10T14:36:13Z | null | Modexus | CONTRIBUTOR | null | null | 3 | 0 | 0 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6782 | false | [
"This may be a solution that only changes `cast_storage` of `Image`.\r\nHowever, I'm not totally sure that the assumptions hold that are made about the `ListArray`.\r\n\r\n```python\r\nelif pa.types.is_list(storage.type):\r\n from .features import Array3DExtensionType\r\n\r\n def get_shapes(arr):\r\n s... |
2,228,026,497 | 6,781 | Remove get_inferred_type from ArrowWriter write_batch | closed | Inferring the type seems to be unnecessary given that the pyarrow array has already been created.
Because pyarrow array creation is sometimes extremely slow this doubles the time write_batch takes. | true | 2024-04-05T13:21:05Z | 2024-04-09T07:49:11Z | 2024-04-09T07:49:11Z | Modexus | CONTRIBUTOR | https://github.com/huggingface/datasets/pull/6781 | null | 2 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6781 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6781). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.",
"Close in favor of #6786."
] |
2,226,160,096 | 6,780 | Fix CI | closed | Updates the `wmt_t2t` test to pin the `revision` to the version with a loading script (cc @albertvillanova).
Additionally, it replaces the occurrences of the `lhoestq/test` repo id with `hf-internal-testing/dataset_with_script` and re-enables logging checks in the `Dataset.from_sql` tests. | true | 2024-04-04T17:45:04Z | 2024-04-04T18:46:04Z | 2024-04-04T18:23:34Z | mariosasko | COLLABORATOR | https://github.com/huggingface/datasets/pull/6780 | 2024-04-04T18:23:34Z | 2 | 1 | 1 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6780 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6780). 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>... |
2,226,075,551 | 6,779 | Install dependencies with `uv` in CI | closed | `diffusers` (https://github.com/huggingface/diffusers/pull/7116) and `huggingface_hub` (https://github.com/huggingface/huggingface_hub/pull/2072) also use `uv` to install their dependencies, so we can do the same here.
It seems to make the "Install dependencies" step in the `ubuntu` jobs 5-8x faster and 1.5-2x in th... | true | 2024-04-04T17:02:51Z | 2024-04-08T13:34:01Z | 2024-04-08T13:27:44Z | mariosasko | COLLABORATOR | https://github.com/huggingface/datasets/pull/6779 | 2024-04-08T13:27:43Z | 2 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6779 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6779). 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>... |
2,226,040,636 | 6,778 | Dataset.to_csv() missing commas in columns with lists | open | ### Describe the bug
The `to_csv()` method does not output commas in lists. So when the Dataset is loaded back in the data structure of the column with a list is not correct.
Here's an example:
Obviously, it's not as trivial as inserting commas in the list, since its a comma-separated file. But hopefully there... | true | 2024-04-04T16:46:13Z | 2024-04-08T15:24:41Z | null | mpickard-dataprof | NONE | null | null | 1 | 0 | 0 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6778 | false | [
"Hello!\r\n\r\nThis is due to how pandas write numpy arrays to csv. [Source](https://stackoverflow.com/questions/54753179/to-csv-saves-np-array-as-string-instead-of-as-a-list)\r\nTo fix this, you can convert them to list yourselves.\r\n\r\n```python\r\ndf = ds.to_pandas()\r\ndf['int'] = df['int'].apply(lambda arr: ... |
2,224,611,247 | 6,777 | .Jsonl metadata not detected | open | ### Describe the bug
Hi I have the following directory structure:
|--dataset
| |-- images
| |-- metadata1000.csv
| |-- metadata1000.jsonl
| |-- padded_images
Example of metadata1000.jsonl file
{"caption": "a drawing depicts a full shot of a black t-shirt with a triangular pattern on the front there is a white... | true | 2024-04-04T06:31:53Z | 2024-04-05T21:14:48Z | null | nighting0le01 | NONE | null | null | 5 | 0 | 0 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6777 | false | [
"Hi! `metadata.jsonl` (or `metadata.csv`) is the only allowed name for the `imagefolder`'s metadata files.",
"@mariosasko hey i tried with metadata.jsonl also and it still doesn't get the right columns",
"@mariosasko it says metadata.csv not found\r\n<img width=\"1150\" alt=\"image\" src=\"https://github.com/hu... |
2,223,457,792 | 6,775 | IndexError: Invalid key: 0 is out of bounds for size 0 | open | ### Describe the bug
I am trying to fine-tune llama2-7b model in GCP. The notebook I am using for this can be found [here](https://github.com/GoogleCloudPlatform/vertex-ai-samples/blob/main/notebooks/community/model_garden/model_garden_pytorch_llama2_peft_finetuning.ipynb).
When I use the dataset given in the exa... | true | 2024-04-03T17:06:30Z | 2024-04-08T01:24:35Z | null | kk2491 | NONE | null | null | 7 | 0 | 0 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6775 | false | [
"Same problem.",
"Hi! You should be able to fix this by passing `remove_unused_columns=False` to the `transformers` `TrainingArguments` as explained in https://github.com/huggingface/peft/issues/1299.\r\n\r\n(I'm not familiar with Vertex AI, but I'd assume `remove_unused_columns` can be passed as a flag to the do... |
2,222,164,316 | 6,774 | Generating split is very slow when Image format is PNG | open | ### Describe the bug
When I create a dataset, it gets stuck while generating cached data.
The image format is PNG, and it will not get stuck when the image format is jpeg.

After debugging, I know that it is b... | true | 2024-04-03T07:47:31Z | 2024-04-10T17:28:17Z | null | Tramac | NONE | null | null | 1 | 0 | 0 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6774 | false | [
"I think this is due to the speed of reading a `png` image using pillow compared to a `jpg` image.\r\nNotably the same is true with `tiff`, it is even faster than `jpg` in my case."
] |
2,221,049,121 | 6,773 | Dataset on Hub re-downloads every time? | closed | ### Describe the bug
Hi, I have a dataset on the hub [here](https://huggingface.co/datasets/manestay/borderlines). It has 1k+ downloads, which I sure is mostly just me and my colleagues working with it. It should have far fewer, since I'm using the same machine with a properly set up HF_HOME variable. However, whene... | true | 2024-04-02T17:23:22Z | 2024-04-08T18:43:45Z | 2024-04-08T18:43:45Z | manestay | NONE | null | null | 5 | 0 | 0 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6773 | false | [
"The caching works as expected when I try to reproduce this locally or on Colab...",
"hi @mariosasko , Thank you for checking. I also tried running this again just now, and it seems like the `load_dataset()` caches properly (though I'll double check later).\r\n\r\nI think the issue might be in the caching of the ... |
2,220,851,533 | 6,772 | `remove_columns`/`rename_columns` doc fixes | closed | Use more consistent wording in `remove_columns` to explain why it's faster than `map` and update `remove_columns`/`rename_columns` docstrings to fix in-place calls.
Reported in https://github.com/huggingface/datasets/issues/6700 | true | 2024-04-02T15:41:28Z | 2024-04-02T16:28:45Z | 2024-04-02T16:17:46Z | mariosasko | COLLABORATOR | https://github.com/huggingface/datasets/pull/6772 | 2024-04-02T16:17:46Z | 2 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6772 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6772). 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>... |
2,220,131,457 | 6,771 | Datasets FileNotFoundError when trying to generate examples. | closed | ### Discussed in https://github.com/huggingface/datasets/discussions/6768
<div type='discussions-op-text'>
<sup>Originally posted by **RitchieP** April 1, 2024</sup>
Currently, I have a dataset hosted on Huggingface with a custom script [here](https://huggingface.co/datasets/RitchieP/VerbaLex_voice).
I'm loa... | true | 2024-04-02T10:24:57Z | 2024-04-04T14:22:03Z | 2024-04-04T14:22:03Z | RitchieP | NONE | null | null | 2 | 0 | 0 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6771 | false | [
"Hi! I've opened a PR in the repo to fix this issue: https://huggingface.co/datasets/RitchieP/VerbaLex_voice/discussions/6",
"@mariosasko Thanks for the PR and help! Guess I could close the issue for now. Appreciate the help!"
] |
2,218,991,883 | 6,770 | [Bug Report] `datasets==2.18.0` is not compatible with `fsspec==2023.12.2` | closed | ### Describe the bug
`Datasets==2.18.0` is not compatible with `fsspec==2023.12.2`.
I have to downgrade fsspec to `fsspec==2023.10.0` to make `Datasets==2.18.0` work properly.
### Steps to reproduce the bug
To reproduce the bug:
1. Make sure that `Datasets==2.18.0` and `fsspec==2023.12.2`.
2. Run the following ... | true | 2024-04-01T20:17:48Z | 2024-04-11T17:31:44Z | 2024-04-11T17:31:44Z | fshp971 | NONE | null | null | 1 | 1 | 1 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6770 | false | [
"You should be able to fix this by updating `huggingface_hub` with `pip install -U huggingface_hub`. We use this package under the hood to resolve the Hub's files."
] |
2,218,242,015 | 6,769 | (Willing to PR) Datasets with custom python objects | open | ### Feature request
Hi thanks for the library! I would like to have a huggingface Dataset, and one of its column is custom (non-serializable) Python objects. For example, a minimal code:
```
class MyClass:
pass
dataset = datasets.Dataset.from_list([
dict(a=MyClass(), b='hello'),
])
```
It gives... | true | 2024-04-01T13:18:47Z | 2024-04-01T13:36:58Z | null | fzyzcjy | CONTRIBUTOR | null | null | 0 | 1 | 0 | 0 | null | false | [
"enhancement"
] | https://github.com/huggingface/datasets/issues/6769 | false | [] |
2,217,065,412 | 6,767 | fixing the issue 6755(small typo) | closed | Fixed the issue #6755 on the typo mistake | true | 2024-03-31T16:13:37Z | 2024-04-02T14:14:02Z | 2024-04-02T14:01:18Z | JINO-ROHIT | CONTRIBUTOR | https://github.com/huggingface/datasets/pull/6767 | 2024-04-02T14:01:18Z | 2 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6767 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6767). 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>... |
2,215,933,515 | 6,765 | Compatibility issue between s3fs, fsspec, and datasets | closed | ### Describe the bug
Here is the full error stack when installing:
```
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
datasets 2.18.0 requires fsspec[http]<=2024.2.0,>=2023.1.0, but you ... | true | 2024-03-29T19:57:24Z | 2024-11-12T14:50:48Z | 2024-04-03T14:33:12Z | njbrake | NONE | null | null | 4 | 1 | 1 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6765 | false | [
"Hi! Instead of running `pip install` separately for each package, you should pass all the packages to a single `pip install` call (in this case, `pip install datasets s3fs`) to let `pip` properly resolve their versions.",
"> Hi! Instead of running `pip install` separately for each package, you should pass all th... |
2,215,767,119 | 6,764 | load_dataset can't work with symbolic links | open | ### Feature request
Enable the `load_dataset` function to load local datasets with symbolic links.
E.g, this dataset can be loaded:
├── example_dataset/
│ ├── data/
│ │ ├── train/
│ │ │ ├── file0
│ │ │ ├── file1
│ │ ├── dev/
│ │ │ ├── file2
│ │ │ ├── file3
│ ├── metad... | true | 2024-03-29T17:49:28Z | 2025-04-29T15:06:28Z | null | VladimirVincan | NONE | null | null | 1 | 11 | 8 | 0 | null | false | [
"enhancement"
] | https://github.com/huggingface/datasets/issues/6764 | false | [
"In fact,You can use a hard link instead of a symbolic link.Hard link works"
] |
2,213,440,804 | 6,763 | Fix issue with case sensitivity when loading dataset from local cache | open | When a dataset with upper-cases in its name is first loaded using `load_dataset()`, the local cache directory is created with all lowercase letters.
However, upon subsequent loads, the current version attempts to locate the cache directory using the dataset's original name, which includes uppercase letters. This di... | true | 2024-03-28T14:52:35Z | 2024-04-20T12:16:45Z | null | Sumsky21 | NONE | https://github.com/huggingface/datasets/pull/6763 | null | 1 | 1 | 1 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6763 | true | [
"I also need this feature for [\"Cnam-LMSSC/vibravox \"](https://huggingface.co/datasets/Cnam-LMSSC/vibravox)\r\n\r\n\r\nEDIT: Upgrading to `2.19.0` fixed my problem thanks to [this PR](https://github.com/huggingface/datasets/pull/6754)"
] |
2,213,275,468 | 6,762 | Allow polars as valid output type | closed | I was trying out polars as an output for a map function and found that it wasn't a valid return type in `validate_function_output`. Thought that we should accommodate this by creating and adding it to the `allowed_processed_input_types` variable. | true | 2024-03-28T13:40:28Z | 2024-08-16T15:54:37Z | 2024-08-16T13:10:37Z | psmyth94 | CONTRIBUTOR | https://github.com/huggingface/datasets/pull/6762 | 2024-08-16T13:10:37Z | 3 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6762 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6762). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.",
"Hello @lhoestq, I added the test and modified [update_data](https://github.com/huggingf... |
2,212,805,108 | 6,761 | Remove deprecated code | closed | What does this PR do?
1. remove `list_files_info` in favor of `list_repo_tree`. As of `0.23`, `list_files_info` will be removed for good. `datasets` had a utility to support both pre-0.20 and post-0.20 versions. Since `hfh` version is already pinned to `>=0.21.2`, I removed the legacy part.
2. `preupload_lfs_files` h... | true | 2024-03-28T09:57:57Z | 2024-03-29T13:27:26Z | 2024-03-29T13:18:13Z | Wauplin | CONTRIBUTOR | https://github.com/huggingface/datasets/pull/6761 | 2024-03-29T13:18:13Z | 5 | 1 | 0 | 1 | false | false | [] | https://github.com/huggingface/datasets/pull/6761 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6761). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.",
"Thanks for cleaning this :) I'm also fine with renaming `hf_dataset_url` (and not `get_... |
2,212,288,122 | 6,760 | Load codeparrot/apps raising UnicodeDecodeError in datasets-2.18.0 | open | ### Describe the bug
This happens with datasets-2.18.0; I downgraded the version to 2.14.6 fixing this temporarily.
```
Traceback (most recent call last):
File "/home/xxx/miniconda3/envs/py310/lib/python3.10/site-packages/datasets/load.py", line 2556, in load_dataset
builder_instance = load_dataset_builder... | true | 2024-03-28T03:44:26Z | 2024-06-19T07:06:40Z | null | yucc-leon | NONE | null | null | 4 | 0 | 0 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6760 | false | [
"The same error with mteb datasets.",
"Unfortunately, I'm unable to reproduce this error locally or on Colab.",
"Here is the requirements.txt from a clean virtual environment (managed by conda) where I only install `datasets` by \r\n`pip install datasets`. \r\nThe pip list:\r\n```\r\naiohttp==3.9.3\r\naiosignal... |
2,208,892,891 | 6,759 | Persistent multi-process Pool | open | ### Feature request
Running .map and filter functions with `num_procs` consecutively instantiates several multiprocessing pools iteratively.
As instantiating a Pool is very resource intensive it can be a bottleneck to performing iteratively filtering.
My ideas:
1. There should be an option to declare `persist... | true | 2024-03-26T17:35:25Z | 2024-03-26T17:35:25Z | null | fostiropoulos | NONE | null | null | 0 | 0 | 0 | 0 | null | false | [
"enhancement"
] | https://github.com/huggingface/datasets/issues/6759 | false | [] |
2,208,494,302 | 6,758 | Passing `sample_by` to `load_dataset` when loading text data does not work | closed | ### Describe the bug
I have a dataset that consists of a bunch of text files, each representing an example. There is an undocumented `sample_by` argument for the `TextConfig` class that is used by `Text` to decide whether to split files into lines, paragraphs or take them whole. Passing `sample_by=“document”` to `load... | true | 2024-03-26T14:55:33Z | 2024-04-09T11:27:59Z | 2024-04-09T11:27:59Z | ntoxeg | NONE | null | null | 1 | 0 | 0 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6758 | false | [
"Thanks for reporting! We are working on a fix."
] |
2,206,280,340 | 6,757 | Test disabling transformers containers in docs CI | open | Related to https://github.com/huggingface/doc-builder/pull/487 and [internal slack thread](https://huggingface.slack.com/archives/C04F8N7FQNL/p1711384899462349?thread_ts=1711041424.720769&cid=C04F8N7FQNL). There is now a `custom_container` option when building docs in CI. When set to `""` (instead of `"huggingface/tran... | true | 2024-03-25T17:16:11Z | 2024-03-27T16:26:35Z | null | Wauplin | CONTRIBUTOR | https://github.com/huggingface/datasets/pull/6757 | null | 3 | 1 | 0 | 1 | true | false | [] | https://github.com/huggingface/datasets/pull/6757 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6757). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.",
"On slack it was mentioned that it was actually slower for `datasets`, should we close t... |
2,205,557,725 | 6,756 | Support SQLite files? | closed | ### Feature request
Support loading a dataset from a SQLite file
https://huggingface.co/datasets/severo/test_iris_sqlite/tree/main
### Motivation
SQLite is a popular file format.
### Your contribution
See discussion on slack: https://huggingface.slack.com/archives/C04L6P8KNQ5/p1702481859117909 (internal)
In ... | true | 2024-03-25T11:48:05Z | 2024-03-26T16:09:32Z | 2024-03-26T16:09:32Z | severo | COLLABORATOR | null | null | 3 | 1 | 1 | 0 | null | false | [
"enhancement"
] | https://github.com/huggingface/datasets/issues/6756 | false | [
"You can use `Dataset.from_sql(path_to_sql_file)` already. Though we haven't added the Sql dataset builder to the `_PACKAGED_DATASETS_MODULES` list or in `_EXTENSION_TO_MODULE` to map `.sqlite` to the Sql dataset builder\r\n\r\nThis would allow to load a dataset repository with a `.sqlite` file using `load_dataset`... |
2,204,573,289 | 6,755 | Small typo on the documentation | closed | ### Describe the bug
There is a small typo on https://github.com/huggingface/datasets/blob/d5468836fe94e8be1ae093397dd43d4a2503b926/src/datasets/dataset_dict.py#L938
It should be `caching is enabled`.
### Steps to reproduce the bug
Please visit
https://github.com/huggingface/datasets/blob/d5468836fe94e... | true | 2024-03-24T21:47:52Z | 2024-04-02T14:01:19Z | 2024-04-02T14:01:19Z | fostiropoulos | NONE | null | null | 3 | 0 | 0 | 0 | null | false | [
"good first issue"
] | https://github.com/huggingface/datasets/issues/6755 | false | [
"Thanks for reporting @fostiropoulos! I've edited your comment to fix the link to the problematic line.\r\n",
"@mariosasko can i take this up?",
"#self-assign"
] |
2,204,214,595 | 6,754 | Fix cache path to snakecase for `CachedDatasetModuleFactory` and `Cache` | closed | Fix https://github.com/huggingface/datasets/issues/6750#issuecomment-2016678729
I didn't find a guideline on how to run the tests, so i just run the following steps to make sure that this bug is fixed.
1. `python test.py`,
2. then `HF_DATASETS_OFFLINE=1 python test.py`
The `test.py` is
```
import datasets
... | true | 2024-03-24T06:59:15Z | 2024-04-15T15:45:44Z | 2024-04-15T15:38:51Z | izhx | CONTRIBUTOR | https://github.com/huggingface/datasets/pull/6754 | 2024-04-15T15:38:51Z | 6 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6754 | true | [
"@lhoestq hi 😃, is there something else I need to do to check this change?",
"I added two tests and passed them on my server.\r\n\r\n```\r\npytest tests/packaged_modules/test_cache.py \r\n========================================================================== test session starts ==============================... |
2,204,155,091 | 6,753 | Type error when importing datasets on Kaggle | closed | ### Describe the bug
When trying to run
```
import datasets
print(datasets.__version__)
```
It generates the following error
```
TypeError: expected string or bytes-like object
```
It looks like It cannot find the valid versions of `fsspec`
though fsspec version is fine when I checked Via command
... | true | 2024-03-24T03:01:30Z | 2024-10-02T11:49:35Z | 2024-03-30T00:23:49Z | jtv199 | NONE | null | null | 8 | 0 | 0 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6753 | false | [
"I have the same problem \r\nIt seems that it only appears when you are using GPU \r\nIt seems to work fine with the 2.17 version though",
"Same here.",
"> I have the same problem\r\n> It seems that it only appears when you are using GPU\r\n> It seems to work fine with the 2.17 version though\r\n\r\nI downgrade... |
2,204,043,839 | 6,752 | Precision being changed from float16 to float32 unexpectedly | open | ### Describe the bug
I'm loading a HuggingFace Dataset for images.
I'm running a preprocessing (map operation) step that runs a few operations, one of them being conversion to float16. The Dataset features also say that the 'img' is of type float16. Whenever I take an image from that HuggingFace Dataset instance... | true | 2024-03-23T20:53:56Z | 2024-04-10T15:21:33Z | null | gcervantes8 | NONE | null | null | 1 | 0 | 0 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6752 | false | [
"This is because of the formatter (`torch` in this case).\r\nIt defaults to `float32`.\r\n\r\nYou can load it in `float16` using `dataset.set_format(\"torch\", dtype=torch.float16)`."
] |
2,203,951,501 | 6,751 | Use 'with' operator for some download functions | closed | Some functions in `streaming_download_manager.py` are not closing the file they open which lead to `Unclosed file` warnings in our code. This fixes a few of them. | true | 2024-03-23T16:32:08Z | 2024-03-26T00:40:57Z | 2024-03-26T00:40:57Z | Moisan | NONE | https://github.com/huggingface/datasets/pull/6751 | null | 2 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6751 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6751). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.",
"I was mistaken on the intent of those functions, closing the PR."
] |
2,203,590,658 | 6,750 | `load_dataset` requires a network connection for local download? | closed | ### Describe the bug
Hi all - I see that in the past a network dependency has been mistakenly introduced into `load_dataset` even for local loads. Is it possible this has happened again?
### Steps to reproduce the bug
```
>>> import datasets
>>> datasets.load_dataset("hh-rlhf")
Repo card metadata block was not ... | true | 2024-03-23T01:06:32Z | 2024-04-15T15:38:52Z | 2024-04-15T15:38:52Z | MiroFurtado | NONE | null | null | 3 | 1 | 1 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6750 | false | [
"Are you using `HF_DATASETS_OFFLINE=1` ?",
"> Are you using `HF_DATASETS_OFFLINE=1` ?\r\n\r\nThis doesn't work for me. `datasets=2.18.0`\r\n\r\n`test.py`:\r\n```\r\nimport datasets\r\n\r\ndatasets.utils.logging.set_verbosity_info()\r\n\r\nds = datasets.load_dataset('C-MTEB/AFQMC', revision='b44c3b011063adb25877c1... |
2,202,310,116 | 6,749 | Fix fsspec tqdm callback | closed | Following changes at https://github.com/fsspec/filesystem_spec/pull/1497 for `fsspec>=2024.2.0` | true | 2024-03-22T11:44:11Z | 2024-03-22T14:51:45Z | 2024-03-22T14:45:39Z | lhoestq | MEMBER | https://github.com/huggingface/datasets/pull/6749 | 2024-03-22T14:45:39Z | 2 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6749 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6749). 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>... |
2,201,517,348 | 6,748 | Strange slicing behavior | open | ### Describe the bug
I have loaded a dataset, and then slice first 300 samples using `:` ops, however, the resulting dataset is not expected, as the output below:
```bash
len(dataset)=1050324
len(dataset[:300])=2
len(dataset[0:300])=2
len(dataset.select(range(300)))=300
```
### Steps to reproduce the bug
loa... | true | 2024-03-22T01:49:13Z | 2024-03-22T16:43:57Z | null | Luciennnnnnn | NONE | null | null | 1 | 0 | 0 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6748 | false | [
"As explained in the [docs](https://huggingface.co/docs/datasets/v2.18.0/en/access#slicing), slicing a `Dataset` returns a dictionary that maps its column names to their values. So, `len(dataset[:300])=2` is expected, assuming your dataset has 2 columns (the returned dict has 2 keys, but each value in the dict has ... |
2,201,219,384 | 6,747 | chore(deps): bump fsspec | closed | There were a few fixes released recently, some DVC ecosystem packages require newer version of `fsspec`. | true | 2024-03-21T21:25:49Z | 2024-03-22T16:40:15Z | 2024-03-22T16:28:40Z | shcheklein | CONTRIBUTOR | https://github.com/huggingface/datasets/pull/6747 | 2024-03-22T16:28:40Z | 2 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6747 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6747). 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>... |
2,198,993,949 | 6,746 | ExpectedMoreSplits error when loading C4 dataset | closed | ### Describe the bug
I encounter bug when running the example command line
```python
python main.py \
--model decapoda-research/llama-7b-hf \
--prune_method wanda \
--sparsity_ratio 0.5 \
--sparsity_type unstructured \
--save out/llama_7b/unstructured/wanda/
```
The bug occurred ... | true | 2024-03-21T02:53:04Z | 2024-09-18T19:57:14Z | 2024-07-29T07:21:08Z | billwang485 | NONE | null | null | 8 | 0 | 0 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6746 | false | [
"Hi ! We updated the `allenai/c4` repository to allow people to specify which language to load easily (the the [c4 dataset page](https://huggingface.co/datasets/allenai/c4))\r\n\r\nTo fix this issue **you can update** `datasets` and remove the mention of the legacy configuration name \"allenai--c4\":\r\n\r\n```pyth... |
2,198,541,732 | 6,745 | Scraping the whole of github including private repos is bad; kindly stop | closed | ### Feature request
https://github.com/bigcode-project/opt-out-v2 - opt out is not consent. kindly quit this ridiculous nonsense.
### Motivation
[EDITED: insults not tolerated]
### Your contribution
[EDITED: insults not tolerated] | true | 2024-03-20T20:54:06Z | 2024-03-21T12:28:04Z | 2024-03-21T10:24:56Z | ghost | NONE | null | null | 1 | 0 | 0 | 0 | null | false | [
"enhancement"
] | https://github.com/huggingface/datasets/issues/6745 | false | [
"It's not twitter here"
] |
2,197,910,168 | 6,744 | Option to disable file locking | open | ### Feature request
Commands such as `load_dataset` creates file locks with `filelock.FileLock`. It would be good if there was a way to disable this.
### Motivation
File locking doesn't work on all file-systems (in my case NFS mounted Weka). If the `cache_dir` only had small files then it would be possible to point ... | true | 2024-03-20T15:59:45Z | 2024-03-20T15:59:45Z | null | VRehnberg | NONE | null | null | 0 | 10 | 10 | 0 | null | false | [
"enhancement"
] | https://github.com/huggingface/datasets/issues/6744 | false | [] |
2,195,481,697 | 6,743 | Allow null values in dict columns | closed | Fix #6738 | true | 2024-03-19T16:54:22Z | 2024-04-08T13:08:42Z | 2024-03-19T20:05:19Z | mariosasko | COLLABORATOR | https://github.com/huggingface/datasets/pull/6743 | 2024-03-19T20:05:19Z | 3 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6743 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6743). 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>... |
2,195,134,854 | 6,742 | Fix missing download_config in get_data_patterns | closed | Reported in https://github.com/huggingface/datasets-server/issues/2607 | true | 2024-03-19T14:29:25Z | 2024-03-19T18:24:39Z | 2024-03-19T18:15:13Z | lhoestq | MEMBER | https://github.com/huggingface/datasets/pull/6742 | 2024-03-19T18:15:13Z | 2 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6742 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6742). 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>... |
2,194,626,108 | 6,741 | Fix offline mode with single config | closed | Reported in https://github.com/huggingface/datasets/issues/4760
The cache was not able to reload a dataset with a single config form the cache if the config name is not specificed
For example
```python
from datasets import load_dataset, config
config.HF_DATASETS_OFFLINE = True
load_dataset("openai_human... | true | 2024-03-19T10:48:32Z | 2024-03-25T16:35:21Z | 2024-03-25T16:23:59Z | lhoestq | MEMBER | https://github.com/huggingface/datasets/pull/6741 | 2024-03-25T16:23:59Z | 2 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6741 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6741). 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>... |
2,193,172,074 | 6,740 | Support for loading geotiff files as a part of the ImageFolder | closed | ### Feature request
Request for adding rasterio support to load geotiff as a part of ImageFolder, instead of using PIL
### Motivation
As of now, there are many datasets in HuggingFace Hub which are predominantly focussed towards RemoteSensing or are from RemoteSensing. The current ImageFolder (if I have understood c... | true | 2024-03-18T20:00:39Z | 2024-03-27T18:19:48Z | 2024-03-27T18:19:20Z | sunny1401 | NONE | null | null | 0 | 0 | 0 | 0 | null | false | [
"enhancement"
] | https://github.com/huggingface/datasets/issues/6740 | false | [] |
2,192,730,134 | 6,739 | Transpose images with EXIF Orientation tag | closed | Closes https://github.com/huggingface/datasets/issues/6252 | true | 2024-03-18T16:43:06Z | 2024-03-19T15:35:57Z | 2024-03-19T15:29:42Z | mariosasko | COLLABORATOR | https://github.com/huggingface/datasets/pull/6739 | 2024-03-19T15:29:41Z | 2 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6739 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6739). 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>... |
2,192,386,536 | 6,738 | Dict feature is non-nullable while nested dict feature is | closed | When i try to create a `Dataset` object with None values inside a dict column, like this:
```python
from datasets import Dataset, Features, Value
Dataset.from_dict(
{
"dict": [{"a": 0, "b": 0}, None],
}, features=Features(
{"dict": {"a": Value("int16"), "b": Value("int16")}}
)
)
... | true | 2024-03-18T14:31:47Z | 2024-03-20T10:24:15Z | 2024-03-19T20:05:20Z | polinaeterna | CONTRIBUTOR | null | null | 3 | 0 | 0 | 0 | null | false | [
"bug"
] | https://github.com/huggingface/datasets/issues/6738 | false | [
"It looks like a bug, by default every feature should be nullable.",
"I've linked a PR with a fix :)",
"@mariosasko awesome thank you!"
] |
2,190,198,425 | 6,737 | Invalid pattern: '**' can only be an entire path component | closed | ### Describe the bug
ValueError: Invalid pattern: '**' can only be an entire path component
when loading any dataset
### Steps to reproduce the bug
import datasets
ds = datasets.load_dataset("TokenBender/code_instructions_122k_alpaca_style")
### Expected behavior
loading the dataset successfully
### Environm... | true | 2024-03-16T19:28:46Z | 2024-07-23T14:23:28Z | 2024-05-13T11:32:57Z | JPonsa | NONE | null | null | 7 | 9 | 9 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6737 | false | [
"I couldn't reproduce the issue on my side on MacOS, I guess the issue comes from the recent `fsspec` on Windows.\r\n\r\nCan you try downgrading to `fsspec==2023.9.2` for now ? It would also be great to investigate this and see if we need a fix in `datasets` or `fsspec`",
"I had the same issue! \r\nDowngrading t... |
2,190,181,422 | 6,736 | Mosaic Streaming (MDS) Support | open | ### Feature request
I'm a huge fan of the current HF Datasets `webdataset` integration (especially the built-in streaming support). However, I'd love to upload some robotics and multimodal datasets I've processed for use with [Mosaic Streaming](https://docs.mosaicml.com/projects/streaming/en/stable/), specifically the... | true | 2024-03-16T18:42:04Z | 2024-03-18T15:13:34Z | null | siddk | NONE | null | null | 1 | 1 | 1 | 0 | null | false | [
"enhancement"
] | https://github.com/huggingface/datasets/issues/6736 | false | [
"Hi ! that would be great :) Though note that `datasets` doesn't implement format-specific resuming when streaming, so in general I think it's better if users can use the mosaic-streaming library to read their MDS datasets. I wonder if they support `hf://` paths though...\r\n\r\nAnyway for those interested, the cod... |
2,189,132,932 | 6,735 | Add `mode` parameter to `Image` feature | closed | Fix https://github.com/huggingface/datasets/issues/6675 | true | 2024-03-15T17:21:12Z | 2024-03-18T15:47:48Z | 2024-03-18T15:41:33Z | mariosasko | COLLABORATOR | https://github.com/huggingface/datasets/pull/6735 | 2024-03-18T15:41:33Z | 2 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6735 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6735). 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>... |
2,187,646,694 | 6,734 | Tokenization slows towards end of dataset | open | ### Describe the bug
Mapped tokenization slows down substantially towards end of dataset.
train set started off very slow, caught up to 20k then tapered off til the end.
what's particularly strange is that the tokenization crashed a few times before due to errors with invalid tokens somewhere or corrupted down... | true | 2024-03-15T03:27:36Z | 2025-02-20T17:40:54Z | null | ethansmith2000 | NONE | null | null | 4 | 3 | 2 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6734 | false | [
"Hi ! First note that if the dataset is not heterogeneous / shuffled, there might be places in the data with shorter texts that are faster to tokenize.\r\n\r\nMoreover, the way `num_proc` works is by slicing the dataset and passing each slice to a process to run the `map()` function. So at the very end of `map()`, ... |
2,186,811,724 | 6,733 | EmptyDatasetError when loading dataset downloaded with HuggingFace cli | open | ### Describe the bug
I am using a cluster that does not have access to the internet when given a job. I tried downloading the dataset using the huggingface-cli command and then loading it with load_dataset but I get an error:
```raise EmptyDatasetError(f"The directory at {base_path} doesn't contain any data files... | true | 2024-03-14T16:41:27Z | 2024-03-15T18:09:02Z | null | StwayneXG | NONE | null | null | 1 | 0 | 0 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6733 | false | [
"Hi! `datasets` is not compatible with `huggingface_hub`'s cache structure, hence the error.\r\n\r\nYou can track https://github.com/huggingface/datasets/issues/5080 to get notified when this is implemented."
] |
2,182,844,673 | 6,731 | Unexpected behavior when using load_dataset with streaming=True in a for loop | closed | ### Describe the bug
### My Code
```
from datasets import load_dataset
res=[]
for i in [0,1]:
di=load_dataset(
"json",
data_files='path_to.json',
split='train',
streaming=True,
).map(lambda x: {"source": i})
res.append(di)
for e in res[... | true | 2024-03-12T23:26:43Z | 2024-04-16T00:00:00Z | 2024-04-16T00:00:00Z | uApiv | NONE | null | null | 2 | 0 | 0 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6731 | false | [
"This is normal behavior in python when using `lambda`: the `i` defined in your `lambda` refers to the global variable `i` in your loop, and `i` equals to `1` when you run your `for e in res[0]` line.\r\n\r\nYou should pass `fn_kwargs` that will be passed to your `lambda` instead of using the global variable:\r\n\r... |
2,181,881,499 | 6,730 | Deprecate Pandas builder | closed | The Pandas packaged builder is undocumented and relies on `pickle` to read the data, making it **unsafe**. Moreover, I haven't seen a single instance of this builder being used (not even using the GH/Hub search), so we should deprecate it. | true | 2024-03-12T15:12:13Z | 2024-03-12T17:42:33Z | 2024-03-12T17:36:24Z | mariosasko | COLLABORATOR | https://github.com/huggingface/datasets/pull/6730 | 2024-03-12T17:36:24Z | 2 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6730 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6730). 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>... |
2,180,237,159 | 6,729 | Support zipfiles that span multiple disks? | closed | See https://huggingface.co/datasets/PhilEO-community/PhilEO-downstream
The dataset viewer gives the following error:
```
Error code: ConfigNamesError
Exception: BadZipFile
Message: zipfiles that span multiple disks are not supported
Traceback: Traceback (most recent call last):
F... | true | 2024-03-11T21:07:41Z | 2024-06-26T05:08:59Z | 2024-06-26T05:05:28Z | severo | COLLABORATOR | null | null | 6 | 0 | 0 | 0 | null | false | [
"enhancement",
"question"
] | https://github.com/huggingface/datasets/issues/6729 | false | [
"@severo were you able to solve it?",
"No. cc @albertvillanova @lhoestq @polinaeterna for an evaluation of what it would take to support this feature.",
"The underlying issue issue is that the dataset repository has used split ZIP archive files: https://huggingface.co/datasets/PhilEO-community/PhilEO-downstream... |
2,178,607,012 | 6,728 | Issue Downloading Certain Datasets After Setting Custom `HF_ENDPOINT` | closed | ### Describe the bug
This bug is triggered under the following conditions:
- datasets repo ids without organization names trigger errors, such as `bookcorpus`, `gsm8k`, `wikipedia`, rather than in the form of `A/B`.
- If `HF_ENDPOINT` is set and the hostname is not in the form of `(hub-ci.)?huggingface.co`.
- T... | true | 2024-03-11T09:06:38Z | 2024-03-15T14:52:07Z | 2024-03-15T14:52:07Z | padeoe | NONE | null | null | 3 | 0 | 0 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6728 | false | [
"Through debugging, I found a potential solution is to modify the code in the error handling module of `huggingface_hub`: https://github.com/huggingface/huggingface_hub/commit/56d6c798c44e83d2a3167e74c022737d8fcbe822 ",
"@Wauplin ",
"Thanks for investigating and reporting the bug @padeoe! I've opened a PR in `h... |
2,177,826,110 | 6,727 | Using a registry instead of calling globals for fetching feature types | closed | Hello,
When working with bio-data, each feature often has metadata associated with it (e.g. species, lineage, snp position, etc). To store this, I like to use the feature classes with the added `metadata` attribute. However, when saving or loading with custom features, you get an error since that class doesn't exist... | true | 2024-03-10T17:47:51Z | 2024-03-13T12:08:49Z | 2024-03-13T10:46:02Z | psmyth94 | CONTRIBUTOR | https://github.com/huggingface/datasets/pull/6727 | 2024-03-13T10:46:02Z | 6 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6727 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6727). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.",
"looks like some files are missing in your google storage",
"cc @mariosasko is it rela... |
2,177,097,232 | 6,726 | Profiling for HF Filesystem shows there are easy performance gains to be made | open | ### Describe the bug
# Let's make it faster
First, an evidence...

Figure 1: CProfile for loading 3 files from cerebras/SlimPajama-627B train split, and 3 files from test split using streaming=True. X axis is 1106... | true | 2024-03-09T07:08:45Z | 2024-03-09T07:11:08Z | null | awgr | NONE | null | null | 2 | 1 | 0 | 1 | null | false | [] | https://github.com/huggingface/datasets/issues/6726 | false | [
"FWIW I debugged this while waiting for it to go",
"Oh I forgot to mention you can also cache resolve_pattern, and that seemed to also substantially improves things, if you want to load a dataset twice for whatever reason."
] |
2,175,527,530 | 6,725 | Request for a comparison of huggingface datasets compared with other data format especially webdataset | open | ### Feature request
Request for a comparison of huggingface datasets compared with other data format especially webdataset
### Motivation
I see huggingface datasets uses Apache Arrow as its backend, it seems to be great, but I'm curious about how it is good compared with other dataset format, like webdataset, what's... | true | 2024-03-08T08:23:01Z | 2024-03-08T08:23:01Z | null | Luciennnnnnn | NONE | null | null | 0 | 0 | 0 | 0 | null | false | [
"enhancement"
] | https://github.com/huggingface/datasets/issues/6725 | false | [] |
2,174,398,227 | 6,724 | Dataset with loading script does not work in renamed repos | open | ### Describe the bug
My data repository was first called `BramVanroy/hplt-mono-v1-2` but I then renamed to use underscores instead of dashes. However, it seems that `datasets` retrieves the old repo name when it checks whether the repo contains data loading scripts in this line.
https://github.com/huggingface/dat... | true | 2024-03-07T17:38:38Z | 2024-03-07T20:06:25Z | null | BramVanroy | CONTRIBUTOR | null | null | 0 | 0 | 0 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6724 | false | [] |
2,174,344,456 | 6,723 | get_dataset_default_config_name docstring | closed | fix https://github.com/huggingface/datasets/pull/6722 | true | 2024-03-07T17:09:29Z | 2024-03-07T17:27:29Z | 2024-03-07T17:21:20Z | lhoestq | MEMBER | https://github.com/huggingface/datasets/pull/6723 | 2024-03-07T17:21:20Z | 2 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6723 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6723). 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>... |
2,174,332,127 | 6,722 | Add details in docstring | closed | see https://github.com/huggingface/datasets-server/pull/2554#discussion_r1516516867 | true | 2024-03-07T17:02:07Z | 2024-03-07T17:21:10Z | 2024-03-07T17:21:08Z | severo | COLLABORATOR | https://github.com/huggingface/datasets/pull/6722 | null | 1 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6722 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6722). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update."
] |
2,173,931,714 | 6,721 | Hi,do you know how to load the dataset from local file now? | open | Hi, if I want to load the dataset from local file, then how to specify the configuration name?
_Originally posted by @WHU-gentle in https://github.com/huggingface/datasets/issues/2976#issuecomment-1333455222_ | true | 2024-03-07T13:58:40Z | 2024-03-31T08:09:25Z | null | Gera001 | NONE | null | null | 3 | 0 | 0 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6721 | false | [
"\r\n@Gera001\r\n# Loading Dataset from Local Files Using 🤗Hugging Face.\r\n\r\nTo load a dataset from local files using the Hugging Face datasets library, you can use the `load_dataset` function.\r\n\r\n```\r\nfrom datasets import load_dataset\r\ndataset = load_dataset('csv', data_files={'train': 'path/to/train.c... |
2,173,603,459 | 6,720 | TypeError: 'str' object is not callable | closed | ### Describe the bug
I am trying to get the HPLT datasets on the hub. Downloading/re-uploading would be too time- and resource consuming so I wrote [a dataset loader script](https://huggingface.co/datasets/BramVanroy/hplt_mono_v1_2/blob/main/hplt_mono_v1_2.py). I think I am very close but for some reason I always get ... | true | 2024-03-07T11:07:09Z | 2024-03-08T07:34:53Z | 2024-03-07T15:13:58Z | BramVanroy | CONTRIBUTOR | null | null | 2 | 0 | 0 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6720 | false | [
"Hi ! I opened a PR to fix an issue in the Features defined in your code\r\n\r\nBasically changing\r\n```python\r\nSequence(\"float32\")\r\n```\r\n\r\nto\r\n```python\r\nSequence(Value(\"float32\"))\r\n```\r\n\r\n\r\nhttps://huggingface.co/datasets/BramVanroy/hplt_mono_v1_2/discussions/1",
"D'oh! Was wondering wh... |
2,169,585,727 | 6,719 | Is there any way to solve hanging of IterableDataset using split by node + filtering during inference | open | ### Describe the bug
I am using an iterable dataset in a multi-node setup, trying to do training/inference while filtering the data on the fly. I usually do not use `split_dataset_by_node` but it is very slow using the IterableDatasetShard in `accelerate` and `transformers`. When I filter after applying `split_dataset... | true | 2024-03-05T15:55:13Z | 2024-03-05T15:55:13Z | null | ssharpe42 | NONE | null | null | 0 | 4 | 4 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6719 | false | [] |
2,169,468,488 | 6,718 | Fix concurrent script loading with force_redownload | closed | I added `lock_importable_file` in `get_dataset_builder_class` and `extend_dataset_builder_for_streaming` to fix the issue, and I also added a test
cc @clefourrier | true | 2024-03-05T15:04:20Z | 2024-03-07T14:05:53Z | 2024-03-07T13:58:04Z | lhoestq | MEMBER | https://github.com/huggingface/datasets/pull/6718 | 2024-03-07T13:58:04Z | 2 | 2 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6718 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6718). 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>... |
2,168,726,432 | 6,717 | `remove_columns` method used with a streaming enable dataset mode produces a LibsndfileError on multichannel audio | open | ### Describe the bug
When loading a HF dataset in streaming mode and removing some columns, it is impossible to load a sample if the audio contains more than one channel. I have the impression that the time axis and channels are swapped or concatenated.
### Steps to reproduce the bug
Minimal error code:
```python
... | true | 2024-03-05T09:33:26Z | 2024-08-14T17:54:20Z | null | jhauret | NONE | null | null | 2 | 1 | 1 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6717 | false | [
"And it also works well with `dataset = dataset.select_columns([\"audio\"])`",
"Same issue here, disable stream=True fix the problem"
] |
2,168,706,558 | 6,716 | Non-deterministic `Dataset.builder_name` value | closed | ### Describe the bug
I'm not sure if this is a bug, but `print(ds.builder_name)` in the following code sometimes prints out `rotten_tomatoes` instead of `parquet`:
```python
import datasets
for _ in range(100):
ds = datasets.load_dataset("rotten_tomatoes", split="train")
print(ds.builder_name) # pr... | true | 2024-03-05T09:23:21Z | 2024-03-19T07:58:14Z | 2024-03-19T07:58:14Z | harupy | NONE | null | null | 6 | 0 | 0 | 0 | null | false | [] | https://github.com/huggingface/datasets/issues/6716 | false | [
"When `rotten_tomatoes` is printed out, the following warning message is also printed out:\r\n\r\n```\r\nYou can avoid this message in future by passing the argument `trust_remote_code=True`.\r\nPassing `trust_remote_code=True` will be mandatory to load this dataset from the next major release of `datasets`.\r\n```... |
2,167,747,095 | 6,715 | Fix sliced ConcatenationTable pickling with mixed schemas vertically | closed | A sliced + pickled ConcatenationTable could end up with a different schema than the original schema, if the slice only contains blocks with only a subset of the columns.
This can lead to issues when saving datasets from a concatenation of datasets with mixed schemas
Reported in https://discuss.huggingface.co/t/da... | true | 2024-03-04T21:02:07Z | 2024-03-05T11:23:05Z | 2024-03-05T11:17:04Z | lhoestq | MEMBER | https://github.com/huggingface/datasets/pull/6715 | 2024-03-05T11:17:04Z | 2 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6715 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6715). 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>... |
2,167,569,080 | 6,714 | Expand no-code dataset info with datasets-server info | closed | E.g., to have info about a dataset's number of examples for more informative TQDM bars. | true | 2024-03-04T19:18:10Z | 2024-03-04T20:28:30Z | 2024-03-04T20:22:15Z | mariosasko | COLLABORATOR | https://github.com/huggingface/datasets/pull/6714 | 2024-03-04T20:22:15Z | 2 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6714 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6714). 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>... |
2,166,797,560 | 6,713 | Bump huggingface-hub lower version to 0.21.2 | closed | This should fix the version compatibility issue when using `huggingface_hub` < 0.21.2 and latest fsspec (>=2023.12.0).
See my comment: https://github.com/huggingface/datasets/pull/6687#issuecomment-1976493336
>> EDIT: the fix has been released in `huggingface_hub` 0.21.2 - I removed my commits that were using `hugg... | true | 2024-03-04T13:00:52Z | 2024-03-04T18:14:03Z | 2024-03-04T18:06:05Z | albertvillanova | MEMBER | https://github.com/huggingface/datasets/pull/6713 | 2024-03-04T18:06:05Z | 4 | 1 | 0 | 1 | false | false | [] | https://github.com/huggingface/datasets/pull/6713 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6713). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.",
"@lhoestq if you agree, I could make a patch release tomorrow morning.",
"sure :)",
... |
2,166,588,373 | 6,712 | fix CastError pickling | closed | reported in https://discuss.huggingface.co/t/datasetdict-save-to-disk-with-num-proc-1-seems-to-hang-with-error/75595 | true | 2024-03-04T11:14:18Z | 2024-03-04T20:23:47Z | 2024-03-04T20:17:17Z | lhoestq | MEMBER | https://github.com/huggingface/datasets/pull/6712 | 2024-03-04T20:17:17Z | 2 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6712 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6712). 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>... |
2,165,507,817 | 6,711 | 3x Faster Text Preprocessing | open | I was preparing some datasets for AI training and noticed that `datasets` by HuggingFace uses the conventional `open` mechanism to read the file and split it into chunks. I thought it can be significantly accelerated, and [started with a benchmark](https://gist.github.com/ashvardanian/55c2052e9f78b05b8d614aa90cb12347):... | true | 2024-03-03T19:03:04Z | 2024-06-26T06:28:14Z | null | ashvardanian | NONE | https://github.com/huggingface/datasets/pull/6711 | null | 3 | 8 | 8 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6711 | true | [
"Unfortunately, that won't improve the performance. StringZilla repository has extensive benchmarks comparing against different built-in functionality of several programming languages. Using `re.finditer` for tokenization is practically the slowest anti-pattern I've encountered in any language. The gap between that... |
2,164,781,564 | 6,710 | Persist IterableDataset epoch in workers | closed | Use shared memory for the IterableDataset epoch.
This way calling `ds.set_epoch()` in the main process will update the epoch in the DataLoader workers as well.
This is useful especially because the epoch is used to compute the `effective_seed` used for shuffling.
I used torch's shared memory in case users want t... | true | 2024-03-02T12:08:50Z | 2024-07-01T17:51:25Z | 2024-07-01T17:45:30Z | lhoestq | MEMBER | https://github.com/huggingface/datasets/pull/6710 | 2024-07-01T17:45:30Z | 2 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6710 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6710). 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>... |
2,164,169,913 | 6,709 | set dev version | closed | true | 2024-03-01T21:01:14Z | 2024-03-01T21:07:35Z | 2024-03-01T21:01:23Z | lhoestq | MEMBER | https://github.com/huggingface/datasets/pull/6709 | 2024-03-01T21:01:23Z | 2 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6709 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6709). 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>... | |
2,164,158,579 | 6,708 | Release: 2.18.0 | closed | true | 2024-03-01T20:52:17Z | 2024-03-01T21:03:01Z | 2024-03-01T20:56:50Z | lhoestq | MEMBER | https://github.com/huggingface/datasets/pull/6708 | 2024-03-01T20:56:50Z | 2 | 0 | 0 | 0 | false | false | [] | https://github.com/huggingface/datasets/pull/6708 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6708). 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>... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.