id int64 1.9B 3.25B | title stringlengths 2 244 | state stringclasses 2
values | body stringlengths 3 58.6k โ | created_at timestamp[s]date 2023-09-15 14:23:33 2025-07-22 09:33:54 | updated_at timestamp[s]date 2023-09-18 16:20:09 2025-07-22 10:44:03 | closed_at timestamp[s]date 2023-09-18 16:20:09 2025-07-19 22:45:08 โ | html_url stringlengths 49 51 | pull_request dict | number int64 6.24k 7.7k | is_pull_request bool 2
classes | comments listlengths 0 24 |
|---|---|---|---|---|---|---|---|---|---|---|---|
2,205,557,725 | 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 ... | 2024-03-25T11:48:05 | 2024-03-26T16:09:32 | 2024-03-26T16:09:32 | https://github.com/huggingface/datasets/issues/6756 | null | 6,756 | 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 | 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... | 2024-03-24T21:47:52 | 2024-04-02T14:01:19 | 2024-04-02T14:01:19 | https://github.com/huggingface/datasets/issues/6755 | null | 6,755 | 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 | 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
... | 2024-03-24T06:59:15 | 2024-04-15T15:45:44 | 2024-04-15T15:38:51 | https://github.com/huggingface/datasets/pull/6754 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6754",
"html_url": "https://github.com/huggingface/datasets/pull/6754",
"diff_url": "https://github.com/huggingface/datasets/pull/6754.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6754.patch",
"merged_at": "2024-04-15T15:38... | 6,754 | 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 | 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
... | 2024-03-24T03:01:30 | 2024-10-02T11:49:35 | 2024-03-30T00:23:49 | https://github.com/huggingface/datasets/issues/6753 | null | 6,753 | 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 | 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... | 2024-03-23T20:53:56 | 2024-04-10T15:21:33 | null | https://github.com/huggingface/datasets/issues/6752 | null | 6,752 | 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 | 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. | 2024-03-23T16:32:08 | 2024-03-26T00:40:57 | 2024-03-26T00:40:57 | https://github.com/huggingface/datasets/pull/6751 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6751",
"html_url": "https://github.com/huggingface/datasets/pull/6751",
"diff_url": "https://github.com/huggingface/datasets/pull/6751.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6751.patch",
"merged_at": null
} | 6,751 | 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 | `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 ... | 2024-03-23T01:06:32 | 2024-04-15T15:38:52 | 2024-04-15T15:38:52 | https://github.com/huggingface/datasets/issues/6750 | null | 6,750 | 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 | Fix fsspec tqdm callback | closed | Following changes at https://github.com/fsspec/filesystem_spec/pull/1497 for `fsspec>=2024.2.0` | 2024-03-22T11:44:11 | 2024-03-22T14:51:45 | 2024-03-22T14:45:39 | https://github.com/huggingface/datasets/pull/6749 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6749",
"html_url": "https://github.com/huggingface/datasets/pull/6749",
"diff_url": "https://github.com/huggingface/datasets/pull/6749.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6749.patch",
"merged_at": "2024-03-22T14:45... | 6,749 | 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 | 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... | 2024-03-22T01:49:13 | 2024-03-22T16:43:57 | null | https://github.com/huggingface/datasets/issues/6748 | null | 6,748 | 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 | chore(deps): bump fsspec | closed | There were a few fixes released recently, some DVC ecosystem packages require newer version of `fsspec`. | 2024-03-21T21:25:49 | 2024-03-22T16:40:15 | 2024-03-22T16:28:40 | https://github.com/huggingface/datasets/pull/6747 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6747",
"html_url": "https://github.com/huggingface/datasets/pull/6747",
"diff_url": "https://github.com/huggingface/datasets/pull/6747.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6747.patch",
"merged_at": "2024-03-22T16:28... | 6,747 | 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 | 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 ... | 2024-03-21T02:53:04 | 2024-09-18T19:57:14 | 2024-07-29T07:21:08 | https://github.com/huggingface/datasets/issues/6746 | null | 6,746 | 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 | 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] | 2024-03-20T20:54:06 | 2024-03-21T12:28:04 | 2024-03-21T10:24:56 | https://github.com/huggingface/datasets/issues/6745 | null | 6,745 | false | [
"It's not twitter here"
] |
2,197,910,168 | 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 ... | 2024-03-20T15:59:45 | 2024-03-20T15:59:45 | null | https://github.com/huggingface/datasets/issues/6744 | null | 6,744 | false | [] |
2,195,481,697 | Allow null values in dict columns | closed | Fix #6738 | 2024-03-19T16:54:22 | 2024-04-08T13:08:42 | 2024-03-19T20:05:19 | https://github.com/huggingface/datasets/pull/6743 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6743",
"html_url": "https://github.com/huggingface/datasets/pull/6743",
"diff_url": "https://github.com/huggingface/datasets/pull/6743.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6743.patch",
"merged_at": "2024-03-19T20:05... | 6,743 | 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 | Fix missing download_config in get_data_patterns | closed | Reported in https://github.com/huggingface/datasets-server/issues/2607 | 2024-03-19T14:29:25 | 2024-03-19T18:24:39 | 2024-03-19T18:15:13 | https://github.com/huggingface/datasets/pull/6742 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6742",
"html_url": "https://github.com/huggingface/datasets/pull/6742",
"diff_url": "https://github.com/huggingface/datasets/pull/6742.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6742.patch",
"merged_at": "2024-03-19T18:15... | 6,742 | 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 | 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... | 2024-03-19T10:48:32 | 2024-03-25T16:35:21 | 2024-03-25T16:23:59 | https://github.com/huggingface/datasets/pull/6741 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6741",
"html_url": "https://github.com/huggingface/datasets/pull/6741",
"diff_url": "https://github.com/huggingface/datasets/pull/6741.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6741.patch",
"merged_at": "2024-03-25T16:23... | 6,741 | 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 | 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... | 2024-03-18T20:00:39 | 2024-03-27T18:19:48 | 2024-03-27T18:19:20 | https://github.com/huggingface/datasets/issues/6740 | null | 6,740 | false | [] |
2,192,730,134 | Transpose images with EXIF Orientation tag | closed | Closes https://github.com/huggingface/datasets/issues/6252 | 2024-03-18T16:43:06 | 2025-07-03T11:33:18 | 2024-03-19T15:29:42 | https://github.com/huggingface/datasets/pull/6739 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6739",
"html_url": "https://github.com/huggingface/datasets/pull/6739",
"diff_url": "https://github.com/huggingface/datasets/pull/6739.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6739.patch",
"merged_at": "2024-03-19T15:29... | 6,739 | 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 | 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")}}
)
)
... | 2024-03-18T14:31:47 | 2024-03-20T10:24:15 | 2024-03-19T20:05:20 | https://github.com/huggingface/datasets/issues/6738 | null | 6,738 | 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 | 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... | 2024-03-16T19:28:46 | 2024-07-23T14:23:28 | 2024-05-13T11:32:57 | https://github.com/huggingface/datasets/issues/6737 | null | 6,737 | 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 | 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... | 2024-03-16T18:42:04 | 2024-03-18T15:13:34 | null | https://github.com/huggingface/datasets/issues/6736 | null | 6,736 | 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 | Add `mode` parameter to `Image` feature | closed | Fix https://github.com/huggingface/datasets/issues/6675 | 2024-03-15T17:21:12 | 2024-03-18T15:47:48 | 2024-03-18T15:41:33 | https://github.com/huggingface/datasets/pull/6735 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6735",
"html_url": "https://github.com/huggingface/datasets/pull/6735",
"diff_url": "https://github.com/huggingface/datasets/pull/6735.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6735.patch",
"merged_at": "2024-03-18T15:41... | 6,735 | 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 | 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... | 2024-03-15T03:27:36 | 2025-02-20T17:40:54 | null | https://github.com/huggingface/datasets/issues/6734 | null | 6,734 | 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 | 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... | 2024-03-14T16:41:27 | 2024-03-15T18:09:02 | null | https://github.com/huggingface/datasets/issues/6733 | null | 6,733 | 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 | 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[... | 2024-03-12T23:26:43 | 2024-04-16T00:00:00 | 2024-04-16T00:00:00 | https://github.com/huggingface/datasets/issues/6731 | null | 6,731 | 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 | 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. | 2024-03-12T15:12:13 | 2024-03-12T17:42:33 | 2024-03-12T17:36:24 | https://github.com/huggingface/datasets/pull/6730 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6730",
"html_url": "https://github.com/huggingface/datasets/pull/6730",
"diff_url": "https://github.com/huggingface/datasets/pull/6730.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6730.patch",
"merged_at": "2024-03-12T17:36... | 6,730 | 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 | 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... | 2024-03-11T21:07:41 | 2024-06-26T05:08:59 | 2024-06-26T05:05:28 | https://github.com/huggingface/datasets/issues/6729 | null | 6,729 | 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 | 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... | 2024-03-11T09:06:38 | 2024-03-15T14:52:07 | 2024-03-15T14:52:07 | https://github.com/huggingface/datasets/issues/6728 | null | 6,728 | 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 | 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... | 2024-03-10T17:47:51 | 2024-03-13T12:08:49 | 2024-03-13T10:46:02 | https://github.com/huggingface/datasets/pull/6727 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6727",
"html_url": "https://github.com/huggingface/datasets/pull/6727",
"diff_url": "https://github.com/huggingface/datasets/pull/6727.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6727.patch",
"merged_at": "2024-03-13T10:46... | 6,727 | 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 | 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... | 2024-03-09T07:08:45 | 2024-03-09T07:11:08 | null | https://github.com/huggingface/datasets/issues/6726 | null | 6,726 | 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 | 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... | 2024-03-08T08:23:01 | 2024-03-08T08:23:01 | null | https://github.com/huggingface/datasets/issues/6725 | null | 6,725 | false | [] |
2,174,398,227 | 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... | 2024-03-07T17:38:38 | 2024-03-07T20:06:25 | null | https://github.com/huggingface/datasets/issues/6724 | null | 6,724 | false | [] |
2,174,344,456 | get_dataset_default_config_name docstring | closed | fix https://github.com/huggingface/datasets/pull/6722 | 2024-03-07T17:09:29 | 2024-03-07T17:27:29 | 2024-03-07T17:21:20 | https://github.com/huggingface/datasets/pull/6723 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6723",
"html_url": "https://github.com/huggingface/datasets/pull/6723",
"diff_url": "https://github.com/huggingface/datasets/pull/6723.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6723.patch",
"merged_at": "2024-03-07T17:21... | 6,723 | 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 | Add details in docstring | closed | see https://github.com/huggingface/datasets-server/pull/2554#discussion_r1516516867 | 2024-03-07T17:02:07 | 2024-03-07T17:21:10 | 2024-03-07T17:21:08 | https://github.com/huggingface/datasets/pull/6722 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6722",
"html_url": "https://github.com/huggingface/datasets/pull/6722",
"diff_url": "https://github.com/huggingface/datasets/pull/6722.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6722.patch",
"merged_at": null
} | 6,722 | 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 | 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_
| 2024-03-07T13:58:40 | 2024-03-31T08:09:25 | null | https://github.com/huggingface/datasets/issues/6721 | null | 6,721 | 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 | 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 ... | 2024-03-07T11:07:09 | 2024-03-08T07:34:53 | 2024-03-07T15:13:58 | https://github.com/huggingface/datasets/issues/6720 | null | 6,720 | 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 | 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... | 2024-03-05T15:55:13 | 2024-03-05T15:55:13 | null | https://github.com/huggingface/datasets/issues/6719 | null | 6,719 | false | [] |
2,169,468,488 | 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 | 2024-03-05T15:04:20 | 2024-03-07T14:05:53 | 2024-03-07T13:58:04 | https://github.com/huggingface/datasets/pull/6718 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6718",
"html_url": "https://github.com/huggingface/datasets/pull/6718",
"diff_url": "https://github.com/huggingface/datasets/pull/6718.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6718.patch",
"merged_at": "2024-03-07T13:58... | 6,718 | 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 | `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
... | 2024-03-05T09:33:26 | 2024-08-14T17:54:20 | null | https://github.com/huggingface/datasets/issues/6717 | null | 6,717 | 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 | 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... | 2024-03-05T09:23:21 | 2024-03-19T07:58:14 | 2024-03-19T07:58:14 | https://github.com/huggingface/datasets/issues/6716 | null | 6,716 | 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 | 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... | 2024-03-04T21:02:07 | 2024-03-05T11:23:05 | 2024-03-05T11:17:04 | https://github.com/huggingface/datasets/pull/6715 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6715",
"html_url": "https://github.com/huggingface/datasets/pull/6715",
"diff_url": "https://github.com/huggingface/datasets/pull/6715.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6715.patch",
"merged_at": "2024-03-05T11:17... | 6,715 | 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 | 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. | 2024-03-04T19:18:10 | 2024-03-04T20:28:30 | 2024-03-04T20:22:15 | https://github.com/huggingface/datasets/pull/6714 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6714",
"html_url": "https://github.com/huggingface/datasets/pull/6714",
"diff_url": "https://github.com/huggingface/datasets/pull/6714.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6714.patch",
"merged_at": "2024-03-04T20:22... | 6,714 | 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 | 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... | 2024-03-04T13:00:52 | 2024-03-04T18:14:03 | 2024-03-04T18:06:05 | https://github.com/huggingface/datasets/pull/6713 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6713",
"html_url": "https://github.com/huggingface/datasets/pull/6713",
"diff_url": "https://github.com/huggingface/datasets/pull/6713.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6713.patch",
"merged_at": "2024-03-04T18:06... | 6,713 | 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 | 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 | 2024-03-04T11:14:18 | 2024-03-04T20:23:47 | 2024-03-04T20:17:17 | https://github.com/huggingface/datasets/pull/6712 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6712",
"html_url": "https://github.com/huggingface/datasets/pull/6712",
"diff_url": "https://github.com/huggingface/datasets/pull/6712.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6712.patch",
"merged_at": "2024-03-04T20:17... | 6,712 | 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 | 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):... | 2024-03-03T19:03:04 | 2024-06-26T06:28:14 | null | https://github.com/huggingface/datasets/pull/6711 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6711",
"html_url": "https://github.com/huggingface/datasets/pull/6711",
"diff_url": "https://github.com/huggingface/datasets/pull/6711.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6711.patch",
"merged_at": null
} | 6,711 | 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 | 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... | 2024-03-02T12:08:50 | 2024-07-01T17:51:25 | 2024-07-01T17:45:30 | https://github.com/huggingface/datasets/pull/6710 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6710",
"html_url": "https://github.com/huggingface/datasets/pull/6710",
"diff_url": "https://github.com/huggingface/datasets/pull/6710.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6710.patch",
"merged_at": "2024-07-01T17:45... | 6,710 | 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 | set dev version | closed | null | 2024-03-01T21:01:14 | 2024-03-01T21:07:35 | 2024-03-01T21:01:23 | https://github.com/huggingface/datasets/pull/6709 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6709",
"html_url": "https://github.com/huggingface/datasets/pull/6709",
"diff_url": "https://github.com/huggingface/datasets/pull/6709.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6709.patch",
"merged_at": "2024-03-01T21:01... | 6,709 | 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 | Release: 2.18.0 | closed | null | 2024-03-01T20:52:17 | 2024-03-01T21:03:01 | 2024-03-01T20:56:50 | https://github.com/huggingface/datasets/pull/6708 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6708",
"html_url": "https://github.com/huggingface/datasets/pull/6708",
"diff_url": "https://github.com/huggingface/datasets/pull/6708.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6708.patch",
"merged_at": "2024-03-01T20:56... | 6,708 | 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>... |
2,163,799,868 | Silence ruff deprecation messages | closed | null | 2024-03-01T16:52:29 | 2024-03-01T17:32:14 | 2024-03-01T17:25:46 | https://github.com/huggingface/datasets/pull/6707 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6707",
"html_url": "https://github.com/huggingface/datasets/pull/6707",
"diff_url": "https://github.com/huggingface/datasets/pull/6707.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6707.patch",
"merged_at": "2024-03-01T17:25... | 6,707 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6707). 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,163,783,123 | Update ruff | closed | null | 2024-03-01T16:44:58 | 2024-03-01T17:02:13 | 2024-03-01T16:52:17 | https://github.com/huggingface/datasets/pull/6706 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6706",
"html_url": "https://github.com/huggingface/datasets/pull/6706",
"diff_url": "https://github.com/huggingface/datasets/pull/6706.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6706.patch",
"merged_at": "2024-03-01T16:52... | 6,706 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6706). 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,163,768,640 | Fix data_files when passing data_dir | closed | This code should not return empty data files
```python
from datasets import load_dataset_builder
revision = "3d406e70bc21c3ca92a9a229b4c6fc3ed88279fd"
b = load_dataset_builder("bigcode/the-stack-v2-dedup", data_dir="data/Dockerfile", revision=revision)
print(b.config.data_files)
```
Previously it would ret... | 2024-03-01T16:38:53 | 2024-03-01T18:59:06 | 2024-03-01T18:52:49 | https://github.com/huggingface/datasets/pull/6705 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6705",
"html_url": "https://github.com/huggingface/datasets/pull/6705",
"diff_url": "https://github.com/huggingface/datasets/pull/6705.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6705.patch",
"merged_at": "2024-03-01T18:52... | 6,705 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6705). 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,163,752,391 | Improve default patterns resolution | closed | Separate the default patterns that match directories from the ones matching files and ensure directories are checked first (reverts the change from https://github.com/huggingface/datasets/pull/6244, which merged these patterns). Also, ensure that the glob patterns do not overlap to avoid duplicates in the result.
A... | 2024-03-01T16:31:25 | 2024-04-23T09:43:09 | 2024-03-15T15:22:03 | https://github.com/huggingface/datasets/pull/6704 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6704",
"html_url": "https://github.com/huggingface/datasets/pull/6704",
"diff_url": "https://github.com/huggingface/datasets/pull/6704.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6704.patch",
"merged_at": "2024-03-15T15:22... | 6,704 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6704). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.",
"Awesome !\r\n\r\nNote that it can still create duplicates if a path matches several dir... |
2,163,250,590 | Unable to load dataset that was saved with `save_to_disk` | closed | ### Describe the bug
I get the following error message: You are trying to load a dataset that was saved using `save_to_disk`. Please use `load_from_disk` instead.
### Steps to reproduce the bug
1. Save a dataset with `save_to_disk`
2. Try to load it with `load_datasets`
### Expected behavior
I am ab... | 2024-03-01T11:59:56 | 2024-03-04T13:46:20 | 2024-03-04T13:46:20 | https://github.com/huggingface/datasets/issues/6703 | null | 6,703 | false | [
"`save_to_disk` uses a special serialization that can only be read using `load_from_disk`.\r\n\r\nContrary to `load_dataset`, `load_from_disk` directly loads Arrow files and uses the dataset directory as cache.\r\n\r\nOn the other hand `load_dataset` does a conversion step to get Arrow files from the raw data files... |
2,161,938,484 | Push samples to dataset on hub without having the dataset locally | closed | ### Feature request
Say I have the following code:
```
from datasets import Dataset
import pandas as pd
new_data = {
"column_1": ["value1", "value2"],
"column_2": ["value3", "value4"],
}
df_new = pd.DataFrame(new_data)
dataset_new = Dataset.from_pandas(df_new)
# add these samples to a remote datase... | 2024-02-29T19:17:12 | 2024-03-08T21:08:38 | 2024-03-08T21:08:38 | https://github.com/huggingface/datasets/issues/6702 | null | 6,702 | false | [
"Hi ! For now I would recommend creating a new Parquet file using `dataset_new.to_parquet()` and upload it to HF using `huggingface_hub` every time you get a new batch of data. You can name the Parquet files `0000.parquet`, `0001.parquet`, etc.\r\n\r\nThough maybe make sure to not upload one file per sample since t... |
2,161,448,017 | Base parquet batch_size on parquet row group size | closed | This allows to stream datasets like [Major-TOM/Core-S2L2A](https://huggingface.co/datasets/Major-TOM/Core-S2L2A) which have row groups with few rows (one row is ~10MB). Previously the cold start would take a lot of time and OOM because it would download many row groups before yielding the first example.
I tried on O... | 2024-02-29T14:53:01 | 2024-02-29T15:15:18 | 2024-02-29T15:08:55 | https://github.com/huggingface/datasets/pull/6701 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6701",
"html_url": "https://github.com/huggingface/datasets/pull/6701",
"diff_url": "https://github.com/huggingface/datasets/pull/6701.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6701.patch",
"merged_at": "2024-02-29T15:08... | 6,701 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6701). 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,158,871,038 | remove_columns is not in-place but the doc shows it is in-place | closed | ### Describe the bug
The doc of `datasets` v2.17.0/v2.17.1 shows that `remove_columns` is in-place. [link](https://huggingface.co/docs/datasets/v2.17.1/en/package_reference/main_classes#datasets.DatasetDict.remove_columns)
In the text classification example of transformers v4.38.1, the columns are not removed.
h... | 2024-02-28T12:36:22 | 2024-04-02T17:15:28 | 2024-04-02T17:15:28 | https://github.com/huggingface/datasets/issues/6700 | null | 6,700 | false | [
"Good catch! I've opened a PR with a fix in the `transformers` repo.",
"@mariosasko Thanks!\r\n\r\nWill the doc of `datasets` be updated?\r\n\r\nI find some possible mistakes in doc about whether `remove_columns` is in-place.\r\n1. [You can also remove a column using map() with remove_columns but the present meth... |
2,158,152,341 | `Dataset` unexpected changed dict data and may cause error | open | ### Describe the bug
Will unexpected get keys with `None` value in the parsed json dict.
### Steps to reproduce the bug
```jsonl test.jsonl
{"id": 0, "indexs": {"-1": [0, 10]}}
{"id": 1, "indexs": {"-1": [0, 10]}}
```
```python
dataset = Dataset.from_json('.test.jsonl')
print(dataset[0])
```
Result:
```... | 2024-02-28T05:30:10 | 2024-02-28T19:14:36 | null | https://github.com/huggingface/datasets/issues/6699 | null | 6,699 | false | [
"If `test.jsonl` contains more lines like:\r\n```\r\n{\"id\": 0, \"indexs\": {\"-1\": [0, 10]}}\r\n{\"id\": 1, \"indexs\": {\"-1\": [0, 10]}}\r\n{\"id\": 2, \"indexs\": {\"-2\": [0, 10]}}\r\n...\r\n{\"id\": n, \"indexs\": {\"-9999\": [0, 10]}}\r\n```\r\n\r\n`Dataset.from_json` will just raise an error:\r\n```\r\nAn... |
2,157,752,392 | Faster `xlistdir` | closed | Pass `detail=False` to the `fsspec` `listdir` to avoid unnecessarily fetching expensive metadata about the paths. | 2024-02-27T22:55:08 | 2024-02-27T23:44:49 | 2024-02-27T23:38:14 | https://github.com/huggingface/datasets/pull/6698 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6698",
"html_url": "https://github.com/huggingface/datasets/pull/6698",
"diff_url": "https://github.com/huggingface/datasets/pull/6698.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6698.patch",
"merged_at": "2024-02-27T23:38... | 6,698 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6698). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.",
"CI failure is unrelated to the changes.",
"<details>\n<summary>Show benchmarks</summa... |
2,157,322,224 | Unable to Load Dataset in Kaggle | closed | ### Describe the bug
Having installed the latest versions of transformers==4.38.1 and datasets==2.17.1 Unable to load the dataset in a kaggle notebook.
Get this Error:
```
---------------------------------------------------------------------------
ValueError Traceback (most recen... | 2024-02-27T18:19:34 | 2024-02-29T17:32:42 | 2024-02-29T17:32:41 | https://github.com/huggingface/datasets/issues/6697 | null | 6,697 | false | [
"FWIW, I run `load_dataset(\"llm-blender/mix-instruct\")` and it ran successfully.\r\nCan you clear your cache and try again?\r\n\r\n\r\n### Environment Info\r\n\r\n- `datasets` version: 2.17.0\r\n- Platform: Linux-6.2.6-76060206-generic-x86_64-with-glibc2.35\r\n- Python version: 3.9.13\r\n- `huggingface_hub` versi... |
2,154,161,357 | Make JSON builder support an array of strings | closed | Support JSON file with an array of strings.
Fix #6695. | 2024-02-26T13:18:31 | 2024-02-28T06:45:23 | 2024-02-28T06:39:12 | https://github.com/huggingface/datasets/pull/6696 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6696",
"html_url": "https://github.com/huggingface/datasets/pull/6696",
"diff_url": "https://github.com/huggingface/datasets/pull/6696.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6696.patch",
"merged_at": "2024-02-28T06:39... | 6,696 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6696). 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,154,075,509 | Support JSON file with an array of strings | closed | Support loading a dataset from a JSON file with an array of strings.
See: https://huggingface.co/datasets/CausalLM/Refined-Anime-Text/discussions/1 | 2024-02-26T12:35:11 | 2024-03-08T14:16:25 | 2024-02-28T06:39:13 | https://github.com/huggingface/datasets/issues/6695 | null | 6,695 | false | [
"https://huggingface.co/datasets/CausalLM/Refined-Anime-Text/discussions/1 has been fixed, but how can we check if there are other datasets with the same error, in datasets-server's database? I don't know how to get the list of erroneous cache entries, since we only copied `Error code: JobManagerCrashedError`, bu... |
2,153,086,984 | __add__ for Dataset, IterableDataset | open | It's too cumbersome to write this command every time we perform a dataset merging operation. ```pythonfrom datasets import concatenate_datasets``` We have added a simple `__add__` magic method to each class using `concatenate_datasets.`
```python
from datasets import load_dataset
bookcorpus = load_dataset("bookc... | 2024-02-26T01:46:55 | 2024-02-29T16:52:58 | null | https://github.com/huggingface/datasets/pull/6694 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6694",
"html_url": "https://github.com/huggingface/datasets/pull/6694",
"diff_url": "https://github.com/huggingface/datasets/pull/6694.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6694.patch",
"merged_at": null
} | 6,694 | true | [
"Hi! You can find a reason why we are against this feature in https://github.com/huggingface/datasets/issues/3449. \r\n\r\n> It's too cumbersome to write this command every time we perform a dataset merging operation\r\n\r\nExplicit is better than implicit, so this isn't a good enough reason. \r\n\r\nThanks for the... |
2,152,887,712 | Update the print message for chunked_dataset in process.mdx | closed | Update documentation to align with `Dataset.__repr__` change after #423 | 2024-02-25T18:37:07 | 2024-02-25T19:57:12 | 2024-02-25T19:51:02 | https://github.com/huggingface/datasets/pull/6693 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6693",
"html_url": "https://github.com/huggingface/datasets/pull/6693",
"diff_url": "https://github.com/huggingface/datasets/pull/6693.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6693.patch",
"merged_at": "2024-02-25T19:51... | 6,693 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6693). 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,152,270,987 | Enhancement: Enable loading TSV files in load_dataset() | closed | Fix #6691 | 2024-02-24T11:38:59 | 2024-02-26T15:33:50 | 2024-02-26T07:14:03 | https://github.com/huggingface/datasets/pull/6692 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6692",
"html_url": "https://github.com/huggingface/datasets/pull/6692",
"diff_url": "https://github.com/huggingface/datasets/pull/6692.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6692.patch",
"merged_at": null
} | 6,692 | true | [
"Hi @harsh1504660,\r\n\r\nThanks for your work, but this functionality already exists. See my comment in the corresponding issue: https://github.com/huggingface/datasets/issues/6691#issuecomment-1963449923\r\n\r\nNext time you would like to contribute, I would suggest you take on an issue that is previously validat... |
2,152,134,041 | load_dataset() does not support tsv | closed | ### Feature request
the load_dataset() for local functions support file types like csv, json etc but not of type tsv (tab separated values).
### Motivation
cant easily load files of type tsv, have to convert them to another type like csv then load
### Your contribution
Can try by raising a PR with a little help, c... | 2024-02-24T05:56:04 | 2024-02-26T07:15:07 | 2024-02-26T07:09:35 | https://github.com/huggingface/datasets/issues/6691 | null | 6,691 | false | [
"#self-assign",
"Hi @dipsivenkatesh,\r\n\r\nPlease note that this functionality is already implemented. Our CSV builder uses `pandas.read_csv` under the hood, and you can pass the parameter `delimiter=\"\\t\"` to read TSV files.\r\n\r\nSee the list of CSV config parameters in our docs: https://huggingface.co/docs... |
2,150,800,065 | Add function to convert a script-dataset to Parquet | closed | Add function to convert a script-dataset to Parquet and push it to the Hub, analogously to the Space: "Convert a Hugging Face dataset to Parquet" | 2024-02-23T10:28:20 | 2024-04-12T15:27:05 | 2024-04-12T15:27:05 | https://github.com/huggingface/datasets/issues/6690 | null | 6,690 | false | [] |
2,149,581,147 | .load_dataset() method defaults to zstandard | closed | ### Describe the bug
Regardless of what method I use, datasets defaults to zstandard for unpacking my datasets.
This is poor behavior, because not only is zstandard not a dependency in the huggingface package (and therefore, your dataset loading will be interrupted while it asks you to install the package), but it ... | 2024-02-22T17:39:27 | 2024-03-07T14:54:16 | 2024-03-07T14:54:15 | https://github.com/huggingface/datasets/issues/6689 | null | 6,689 | false | [
"The dataset is made of JSON files compressed using zstandard, as you can see here: https://huggingface.co/datasets/cerebras/SlimPajama-627B/tree/main/test/chunk1\r\n\r\nThat's why it asks for zstandard to be installed.\r\n\r\nThough I'm intrigued that you manage to load the dataset without zstandard installed. May... |
2,148,609,859 | Tensor type (e.g. from `return_tensors`) ignored in map | open | ### Describe the bug
I don't know if it is a bug or an expected behavior, but the tensor type seems to be ignored after applying map. For example, mapping over to tokenize text with a transformers' tokenizer always returns lists and it ignore the `return_tensors` argument.
If this is an expected behaviour (e.g., fo... | 2024-02-22T09:27:57 | 2024-02-22T15:56:21 | null | https://github.com/huggingface/datasets/issues/6688 | null | 6,688 | false | [
"Hi, this is expected behavior since all the tensors are converted to Arrow data (the storage type behind a Dataset).\r\n\r\nTo get pytorch tensors back, you can set the dataset format to \"torch\":\r\n\r\n```python\r\nds = ds.with_format(\"torch\")\r\n```",
"Thanks. Just one additional question. During the pipel... |
2,148,554,178 | fsspec: support fsspec>=2023.12.0 glob changes | closed | - adds support for the `fs.glob` changes introduced in `fsspec==2023.12.0` and unpins the current upper bound
Should close #6644
Should close #6645
The `test_data_files` glob/pattern tests pass for me in:
- `fsspec==2023.10.0` (the pinned max version in datasets `main`)
- `fsspec==2023.12.0` (#6644)
- `fsspec... | 2024-02-22T08:59:32 | 2024-03-04T12:59:42 | 2024-02-29T15:12:17 | https://github.com/huggingface/datasets/pull/6687 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6687",
"html_url": "https://github.com/huggingface/datasets/pull/6687",
"diff_url": "https://github.com/huggingface/datasets/pull/6687.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6687.patch",
"merged_at": "2024-02-29T15:12... | 6,687 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6687). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.",
"Looking into the CI failure, this PR is incompatible with `huggingface-hub>=0.20.0`. It... |
2,147,795,103 | Question: Is there any way for uploading a large image dataset? | open | I am uploading an image dataset like this:
```
dataset = load_dataset(
"json",
data_files={"train": "data/custom_dataset/train.json", "validation": "data/custom_dataset/val.json"},
)
dataset = dataset.cast_column("images", Sequence(Image()))
dataset.push_to_hub("StanfordAIMI/custom_dataset", max_shard_si... | 2024-02-21T22:07:21 | 2024-05-02T03:44:59 | null | https://github.com/huggingface/datasets/issues/6686 | null | 6,686 | false | [
"```\r\nimport pandas as pd\r\nfrom datasets import Dataset, Image\r\n\r\n# Read the CSV file\r\ndata = pd.read_csv(\"XXXX.csv\")\r\n\r\n# Create a Hugging Face Dataset\r\ndataset = Dataset.from_pandas(data)\r\ndataset = dataset.cast_column(\"file_name\", Image())\r\n\r\n# Upload to Hugging Face Hub (make sure auth... |
2,145,570,006 | Updated Quickstart Notebook link | closed | Fixed Quickstart Notebook Link in the [Overview notebook](https://github.com/huggingface/datasets/blob/main/notebooks/Overview.ipynb) | 2024-02-21T01:04:18 | 2024-03-12T21:31:04 | 2024-02-25T18:48:08 | https://github.com/huggingface/datasets/pull/6685 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6685",
"html_url": "https://github.com/huggingface/datasets/pull/6685",
"diff_url": "https://github.com/huggingface/datasets/pull/6685.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6685.patch",
"merged_at": "2024-02-25T18:48... | 6,685 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6685). 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,144,092,388 | Improve error message for gated datasets on load | closed | Internal Slack discussion: https://huggingface.slack.com/archives/C02V51Q3800/p1708424971135029 | 2024-02-20T10:51:27 | 2024-02-20T15:40:52 | 2024-02-20T15:33:56 | https://github.com/huggingface/datasets/pull/6684 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6684",
"html_url": "https://github.com/huggingface/datasets/pull/6684",
"diff_url": "https://github.com/huggingface/datasets/pull/6684.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6684.patch",
"merged_at": "2024-02-20T15:33... | 6,684 | true | [
"Thank you ! Should we also add the link to the dataset page ?",
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6684). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.",
"> Thank you ! Should... |
2,142,751,955 | Fix imagefolder dataset url | closed | null | 2024-02-19T16:26:51 | 2024-02-19T17:24:25 | 2024-02-19T17:18:10 | https://github.com/huggingface/datasets/pull/6683 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6683",
"html_url": "https://github.com/huggingface/datasets/pull/6683",
"diff_url": "https://github.com/huggingface/datasets/pull/6683.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6683.patch",
"merged_at": "2024-02-19T17:18... | 6,683 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6683). 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,142,000,800 | Update GitHub Actions to Node 20 | closed | Update GitHub Actions to Node 20.
Fix #6679. | 2024-02-19T10:10:50 | 2024-02-28T07:02:40 | 2024-02-28T06:56:34 | https://github.com/huggingface/datasets/pull/6682 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6682",
"html_url": "https://github.com/huggingface/datasets/pull/6682",
"diff_url": "https://github.com/huggingface/datasets/pull/6682.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6682.patch",
"merged_at": "2024-02-28T06:56... | 6,682 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6682). 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,141,985,239 | Update release instructions | closed | Update release instructions. | 2024-02-19T10:03:08 | 2024-02-28T07:23:49 | 2024-02-28T07:17:22 | https://github.com/huggingface/datasets/pull/6681 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6681",
"html_url": "https://github.com/huggingface/datasets/pull/6681",
"diff_url": "https://github.com/huggingface/datasets/pull/6681.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6681.patch",
"merged_at": "2024-02-28T07:17... | 6,681 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6681). 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,141,979,527 | Set dev version | closed | null | 2024-02-19T10:00:31 | 2024-02-19T10:06:43 | 2024-02-19T10:00:40 | https://github.com/huggingface/datasets/pull/6680 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6680",
"html_url": "https://github.com/huggingface/datasets/pull/6680",
"diff_url": "https://github.com/huggingface/datasets/pull/6680.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6680.patch",
"merged_at": "2024-02-19T10:00... | 6,680 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6680). 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,141,953,981 | Node.js 16 GitHub Actions are deprecated | closed | `Node.js` 16 GitHub Actions are deprecated. See: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/
We should update them to Node 20.
See warnings in our CI, e.g.: https://github.com/huggingface/datasets/actions/runs/7957295009?pr=6678
> Node.js 16 actions are deprecat... | 2024-02-19T09:47:37 | 2024-02-28T06:56:35 | 2024-02-28T06:56:35 | https://github.com/huggingface/datasets/issues/6679 | null | 6,679 | false | [] |
2,141,902,154 | Release: 2.17.1 | closed | null | 2024-02-19T09:24:29 | 2024-02-19T10:03:00 | 2024-02-19T09:56:52 | https://github.com/huggingface/datasets/pull/6678 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6678",
"html_url": "https://github.com/huggingface/datasets/pull/6678",
"diff_url": "https://github.com/huggingface/datasets/pull/6678.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6678.patch",
"merged_at": "2024-02-19T09:56... | 6,678 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6678). 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,141,244,167 | Pass through information about location of cache directory. | closed | If cache directory is set, information is not passed through.
Pass download config in as an arg too. | 2024-02-18T23:48:57 | 2024-02-28T18:57:39 | 2024-02-28T18:51:15 | https://github.com/huggingface/datasets/pull/6677 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6677",
"html_url": "https://github.com/huggingface/datasets/pull/6677",
"diff_url": "https://github.com/huggingface/datasets/pull/6677.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6677.patch",
"merged_at": "2024-02-28T18:51... | 6,677 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6677). 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,140,648,619 | Can't Read List of JSON Files Properly | open | ### Describe the bug
Trying to read a bunch of JSON files into Dataset class but default approach doesn't work. I don't get why it works when I read it one by one but not when I pass as a list :man_shrugging:
The code fails with
```
ArrowInvalid: JSON parse error: Invalid value. in row 0
UnicodeDecodeError... | 2024-02-17T22:58:15 | 2024-03-02T20:47:22 | null | https://github.com/huggingface/datasets/issues/6676 | null | 6,676 | false | [
"Found the issue, if there are other files in the directory, it gets caught into this `*` so essentially it should be `*.json`. Could we possibly to check for list of files to make sure the pattern matches json files and raise error if not?",
"I don't think we should filter for `*.json` as this might silently rem... |
2,139,640,381 | Allow image model (color conversion) to be specified as part of datasets Image() decode | closed | ### Feature request
Typical torchvision / torch Datasets in image applications apply color conversion in the Dataset portion of the code as part of image decode, separately from the image transform stack. This is true for PIL.Image where convert is usually called in dataset, for native torchvision https://pytorch.or... | 2024-02-16T23:43:20 | 2024-03-18T15:41:34 | 2024-03-18T15:41:34 | https://github.com/huggingface/datasets/issues/6675 | null | 6,675 | false | [
"It would be a great addition indeed :)\r\n\r\nThis can be implemented the same way we have `sampling_rate` for Audio(): we just add a new parameter to the Image() type and take this parameter into account in `Image.decode_example`\r\n\r\nEDIT: adding an example of how it can be used:\r\n\r\n```python\r\nds = ds.ca... |
2,139,595,576 | Depprcated Overview.ipynb Link to new Quickstart Notebook invalid | closed | ### Describe the bug
For the dreprecated notebook found [here](https://github.com/huggingface/datasets/blob/main/notebooks/Overview.ipynb). The link to the new notebook is broken.
### Steps to reproduce the bug
Click the [Quickstart notebook](https://github.com/huggingface/notebooks/blob/main/datasets_doc/quicksta... | 2024-02-16T22:51:35 | 2024-02-25T18:48:09 | 2024-02-25T18:48:09 | https://github.com/huggingface/datasets/issues/6674 | null | 6,674 | false | [
"Good catch! Feel free to open a PR to fix the link."
] |
2,139,522,827 | IterableDataset `set_epoch` is ignored when DataLoader `persistent_workers=True` | closed | ### Describe the bug
When persistent workers are enabled, the epoch that's set via the IterableDataset instance held by the training process is ignored by the workers as they are disconnected across processes.
PyTorch samplers for non-iterable datasets have a mechanism to sync this, datasets.IterableDataset does ... | 2024-02-16T21:38:12 | 2024-07-01T17:45:31 | 2024-07-01T17:45:31 | https://github.com/huggingface/datasets/issues/6673 | null | 6,673 | false | [] |
2,138,732,288 | Remove deprecated verbose parameter from CSV builder | closed | Remove deprecated `verbose` parameter from CSV builder.
Note that the `verbose` parameter is deprecated since pandas 2.2.0. See:
- https://github.com/pandas-dev/pandas/pull/56556
- https://github.com/pandas-dev/pandas/pull/57450
Fix #6671. | 2024-02-16T14:26:21 | 2024-02-19T09:26:34 | 2024-02-19T09:20:22 | https://github.com/huggingface/datasets/pull/6672 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6672",
"html_url": "https://github.com/huggingface/datasets/pull/6672",
"diff_url": "https://github.com/huggingface/datasets/pull/6672.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6672.patch",
"merged_at": "2024-02-19T09:20... | 6,672 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6672). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.",
"I am merging this PR (so that it is included in the next patch release) to remove the d... |
2,138,727,870 | CSV builder raises deprecation warning on verbose parameter | closed | CSV builder raises a deprecation warning on `verbose` parameter:
```
FutureWarning: The 'verbose' keyword in pd.read_csv is deprecated and will be removed in a future version.
```
See:
- https://github.com/pandas-dev/pandas/pull/56556
- https://github.com/pandas-dev/pandas/pull/57450 | 2024-02-16T14:23:46 | 2024-02-19T09:20:23 | 2024-02-19T09:20:23 | https://github.com/huggingface/datasets/issues/6671 | null | 6,671 | false | [] |
2,138,372,958 | ValueError | closed | ### Describe the bug
ValueError Traceback (most recent call last)
[<ipython-input-11-9b99bc80ec23>](https://localhost:8080/#) in <cell line: 11>()
9 import numpy as np
10 import matplotlib.pyplot as plt
---> 11 from datasets import DatasetDict, Dataset
12 from transf... | 2024-02-16T11:05:17 | 2024-02-17T04:26:34 | 2024-02-16T14:43:53 | https://github.com/huggingface/datasets/issues/6670 | null | 6,670 | false | [
"Hi @prashanth19bolukonda,\r\n\r\nYou have to restart the notebook runtime session after the installation of `datasets`.\r\n\r\nDuplicate of:\r\n- #5923",
"Thank you soo much\r\n\r\nOn Fri, Feb 16, 2024 at 8:14โฏPM Albert Villanova del Moral <\r\n***@***.***> wrote:\r\n\r\n> Closed #6670 <https://github.com/huggin... |
2,138,322,662 | attribute error when writing trainer.train() | closed | ### Describe the bug
AttributeError Traceback (most recent call last)
Cell In[39], line 2
1 # Start the training process
----> 2 trainer.train()
File /opt/conda/lib/python3.10/site-packages/transformers/trainer.py:1539, in Trainer.train(self, resume_from_checkpoint, trial, ignore... | 2024-02-16T10:40:49 | 2024-03-01T10:58:00 | 2024-02-29T17:25:17 | https://github.com/huggingface/datasets/issues/6669 | null | 6,669 | false | [
"Hi! Kaggle notebooks use an outdated version of `datasets`, so you should update the `datasets` installation (with `!pip install -U datasets`) to avoid the error.",
"Thank you for your response\r\n\r\nOn Thu, Feb 29, 2024 at 10:55โฏPM Mario ล aลกko ***@***.***>\r\nwrote:\r\n\r\n> Closed #6669 <https://github.com/hu... |
2,137,859,935 | Chapter 6 - Issue Loading `cnn_dailymail` dataset | open | ### Describe the bug
So I am getting this bug when I try to run cell 4 of the Chapter 6 notebook code:
`dataset = load_dataset("ccdv/cnn_dailymail", version="3.0.0")`
Error Message:
```
---------------------------------------------------------------------------
ValueError Tracebac... | 2024-02-16T04:40:56 | 2024-02-16T04:40:56 | null | https://github.com/huggingface/datasets/issues/6668 | null | 6,668 | false | [] |
2,137,769,552 | Default config for squad is incorrect | open | ### Describe the bug
If you download Squad, it will download the plain_text version, but the config still specifies "default", so if you set the offline mode the cache will try to look it up according to the config_id which is "default" and this will say;
ValueError: Couldn't find cache for squad for config 'default'... | 2024-02-16T02:36:55 | 2024-02-23T09:10:00 | null | https://github.com/huggingface/datasets/issues/6667 | null | 6,667 | false | [
"you can try: pip install datasets==2.16.1"
] |
2,136,136,425 | Allow SplitDict setitem to replace existing SplitInfo | closed | Fix this code provided by @clefourrier
```python
import datasets
import os
token = os.getenv("TOKEN")
results = datasets.load_dataset("gaia-benchmark/results_public", "2023", token=token, download_mode=datasets.DownloadMode.FORCE_REDOWNLOAD)
results["test"] = datasets.Dataset.from_list([row for row in resu... | 2024-02-15T10:17:08 | 2024-03-01T16:02:46 | 2024-03-01T15:56:38 | https://github.com/huggingface/datasets/pull/6665 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6665",
"html_url": "https://github.com/huggingface/datasets/pull/6665",
"diff_url": "https://github.com/huggingface/datasets/pull/6665.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6665.patch",
"merged_at": "2024-03-01T15:56... | 6,665 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6665). 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,135,483,978 | Revert the changes in `arrow_writer.py` from #6636 | closed | #6636 broke `write_examples_on_file` and `write_batch` from the class `ArrowWriter`. I'm undoing these changes. See #6663.
Note the current implementation doesn't keep the order of the columns and the schema, thus setting a wrong schema for each column. | 2024-02-15T01:47:33 | 2024-02-16T14:02:39 | 2024-02-16T02:31:11 | https://github.com/huggingface/datasets/pull/6664 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6664",
"html_url": "https://github.com/huggingface/datasets/pull/6664",
"diff_url": "https://github.com/huggingface/datasets/pull/6664.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6664.patch",
"merged_at": "2024-02-16T02:31... | 6,664 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6664). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.",
"> Hi! We can't revert this as the \"reverted\" implementation has quadratic time comple... |
2,135,480,811 | `write_examples_on_file` and `write_batch` are broken in `ArrowWriter` | closed | ### Describe the bug
`write_examples_on_file` and `write_batch` are broken in `ArrowWriter` since #6636. The order between the columns and the schema is not preserved anymore. So these functions don't work anymore unless the order happens to align well.
### Steps to reproduce the bug
Try to do `write_batch` with any... | 2024-02-15T01:43:27 | 2024-02-16T09:25:00 | 2024-02-16T09:25:00 | https://github.com/huggingface/datasets/issues/6663 | null | 6,663 | false | [
"Thanks for reporting! I've left some comments on the PR on how to fix this recent change rather than reverting it.",
"> Thanks for reporting! I've left some comments on the PR on how to fix this recent change rather than reverting it.\r\n\r\nI feel that'd be good, but it'd be great to release a hotfix ASAP (a re... |
2,132,425,812 | fix: show correct package name to install biopython | closed | When you try to download a dataset that uses [biopython](https://github.com/biopython/biopython), like `load_dataset("InstaDeepAI/multi_species_genomes")`, you get the error:
```
>>> from datasets import load_dataset
>>> dataset = load_dataset("InstaDeepAI/multi_species_genomes")
/home/j.vangoey/.pyenv/versions/m... | 2024-02-13T14:15:04 | 2024-03-01T17:49:48 | 2024-03-01T17:43:39 | https://github.com/huggingface/datasets/pull/6662 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6662",
"html_url": "https://github.com/huggingface/datasets/pull/6662",
"diff_url": "https://github.com/huggingface/datasets/pull/6662.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6662.patch",
"merged_at": "2024-03-01T17:43... | 6,662 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6662). 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,132,296,267 | Import error on Google Colab | closed | ### Describe the bug
Cannot be imported on Google Colab, the import throws the following error:
ValueError: pyarrow.lib.IpcWriteOptions size changed, may indicate binary incompatibility. Expected 88 from C header, got 72 from PyObject
### Steps to reproduce the bug
1. `! pip install -U datasets`
2. `import dataset... | 2024-02-13T13:12:40 | 2024-02-25T16:37:54 | 2024-02-14T08:04:47 | https://github.com/huggingface/datasets/issues/6661 | null | 6,661 | false | [
"Hi! This can happen if an incompatible `pyarrow` version (`pyarrow<12.0.0`) has been imported before the `datasets` installation and the Colab session hasn't been restarted afterward. To avoid the error, go to \"Runtime -> Restart session\" after `!pip install -U datasets` and before `import datasets`, or insert t... |
2,131,977,011 | Automatic Conversion for uint16/uint32 to Compatible PyTorch Dtypes | closed | This PR addresses an issue encountered when utilizing uint16 or uint32 datatypes with datasets, followed by attempting to convert these datasets into PyTorch-compatible formats. Currently, doing so results in a TypeError due to incompatible datatype conversion, as illustrated by the following example:
```python
from ... | 2024-02-13T10:24:33 | 2024-03-01T19:01:57 | 2024-03-01T18:52:37 | https://github.com/huggingface/datasets/pull/6660 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6660",
"html_url": "https://github.com/huggingface/datasets/pull/6660",
"diff_url": "https://github.com/huggingface/datasets/pull/6660.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6660.patch",
"merged_at": "2024-03-01T18:52... | 6,660 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6660). 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,129,229,810 | Change default compression argument for JsonDatasetWriter | closed | Change default compression type from `None` to "infer", to align with pandas' defaults.
Documentation asks the user to supply `to_json_kwargs` with arguments suitable for pandas' `to_json` method. At the same time, while pandas' by default uses ["infer"](https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.... | 2024-02-11T23:49:07 | 2024-03-01T17:51:50 | 2024-03-01T17:44:55 | https://github.com/huggingface/datasets/pull/6659 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6659",
"html_url": "https://github.com/huggingface/datasets/pull/6659",
"diff_url": "https://github.com/huggingface/datasets/pull/6659.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6659.patch",
"merged_at": "2024-03-01T17:44... | 6,659 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6659). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.",
"Can someone check this out?",
"<details>\n<summary>Show benchmarks</summary>\n\nPyArr... |
2,129,158,371 | [Resumable IterableDataset] Add IterableDataset state_dict | closed | A simple implementation of a mechanism to resume an IterableDataset.
It works by restarting at the latest shard and skip samples. It provides fast resuming (though not instantaneous).
Example:
```python
from datasets import Dataset, concatenate_datasets
ds = Dataset.from_dict({"a": range(5)}).to_iterable_d... | 2024-02-11T20:35:52 | 2024-10-01T10:19:38 | 2024-06-03T19:15:39 | https://github.com/huggingface/datasets/pull/6658 | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/6658",
"html_url": "https://github.com/huggingface/datasets/pull/6658",
"diff_url": "https://github.com/huggingface/datasets/pull/6658.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/6658.patch",
"merged_at": "2024-06-03T19:15... | 6,658 | true | [
"The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6658). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.",
"would be nice to have this feature in the new dataset release!",
"Before finalising t... |
2,129,147,085 | Release not pushed to conda channel | closed | ### Describe the bug
The github actions step to publish the release 2.17.0 to conda channel has failed due to expired token. Can some one please update the anaconda token rerun the failed action? @albertvillanova ?
:
File "/miniconda3/envs/conda-env/lib/python3.10/site-packages/datasets/builder.py", line 1989, in _prepare_split_single
writer.write_table(table)
... | 2024-02-09T15:14:21 | 2024-11-29T10:06:57 | null | https://github.com/huggingface/datasets/issues/6656 | null | 6,656 | false | [
"I get similar when dealing with a large jsonl file (6k lines), \r\n\r\n> TypeError: Couldn't cast array of type timestamp[us] to null\r\n\r\nYet when I split it into 1k lines, files, load_dataset works fine!\r\n\r\nhttps://github.com/huggingface/course/issues/692\r\n\r\n",
"What's the proposed solution? :-)"
] |
2,127,020,042 | Cannot load the dataset go_emotions | open | ### Describe the bug
When I run the following code I get an exception;
`go_emotions = load_dataset("go_emotions")`
> AttributeError Traceback (most recent call last)
Cell In[6], [line 1](vscode-notebook-cell:?execution_count=6&line=1)
----> [1](vscode-notebook-cell:?execution_count=6&l... | 2024-02-09T12:15:39 | 2024-02-12T09:35:55 | null | https://github.com/huggingface/datasets/issues/6655 | null | 6,655 | false | [
"Thanks for reporting, @arame.\r\n\r\nI guess you have an old version of `transformers` (that submodule is present in `transformers` since version 3.0.1, since nearly 4 years ago). If you update it, the error should disappear:\r\n```shell\r\npip install -U transformers\r\n```\r\n\r\nOn the other hand, I am wonderin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.