html_url stringlengths 48 51 | title stringlengths 5 280 | comments stringlengths 63 51.8k | body stringlengths 0 36.2k ⌀ | comment_length int64 16 1.52k | text stringlengths 159 54.1k | embeddings listlengths 768 768 |
|---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/6775 | IndexError: Invalid key: 0 is out of bounds for size 0 | 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.
(I'm not familiar with Vertex AI, but I'd assume `remove_unused_columns` can be passed as a flag to the docker container) | ### 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... | 39 | IndexError: Invalid key: 0 is out of bounds for size 0
### 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_finetu... | [
-0.28066593408584595,
-0.47747936844825745,
0.019472308456897736,
0.3315136432647705,
0.0059850625693798065,
-0.030505608767271042,
0.08925245702266693,
0.33032339811325073,
0.032530248165130615,
0.1563732624053955,
-0.2661375105381012,
0.060142435133457184,
-0.09422646462917328,
0.4449833... |
https://github.com/huggingface/datasets/issues/6775 | IndexError: Invalid key: 0 is out of bounds for size 0 | I had the same problem, but I spent a whole day trying different combination with my own dataset with the example data set and found the reason: the example data is multi-turn conversation between human and assistant, so # Humman or # Assistant appear at least twice. If your own custom data only has single turn conver... | ### 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... | 142 | IndexError: Invalid key: 0 is out of bounds for size 0
### 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_finetu... | [
-0.28066593408584595,
-0.47747936844825745,
0.019472308456897736,
0.3315136432647705,
0.0059850625693798065,
-0.030505608767271042,
0.08925245702266693,
0.33032339811325073,
0.032530248165130615,
0.1563732624053955,
-0.2661375105381012,
0.060142435133457184,
-0.09422646462917328,
0.4449833... |
https://github.com/huggingface/datasets/issues/6775 | IndexError: Invalid key: 0 is out of bounds for size 0 | > Hi! You should be able to fix this by passing `remove_unused_columns=False` to the `transformers` `TrainingArguments` as explained in [huggingface/peft#1299](https://github.com/huggingface/peft/issues/1299).
>
> (I'm not familiar with Vertex AI, but I'd assume `remove_unused_columns` can be passed as a flag to the... | ### 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... | 83 | IndexError: Invalid key: 0 is out of bounds for size 0
### 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_finetu... | [
-0.28066593408584595,
-0.47747936844825745,
0.019472308456897736,
0.3315136432647705,
0.0059850625693798065,
-0.030505608767271042,
0.08925245702266693,
0.33032339811325073,
0.032530248165130615,
0.1563732624053955,
-0.2661375105381012,
0.060142435133457184,
-0.09422646462917328,
0.4449833... |
https://github.com/huggingface/datasets/issues/6775 | IndexError: Invalid key: 0 is out of bounds for size 0 | > I had the same problem, but I spent a whole day trying different combination with my own dataset with the example data set and found the reason: the example data is multi-turn conversation between human and assistant, so # Humman or # Assistant appear at least twice. If your own custom data only has single turn conve... | ### 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... | 200 | IndexError: Invalid key: 0 is out of bounds for size 0
### 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_finetu... | [
-0.28066593408584595,
-0.47747936844825745,
0.019472308456897736,
0.3315136432647705,
0.0059850625693798065,
-0.030505608767271042,
0.08925245702266693,
0.33032339811325073,
0.032530248165130615,
0.1563732624053955,
-0.2661375105381012,
0.060142435133457184,
-0.09422646462917328,
0.4449833... |
https://github.com/huggingface/datasets/issues/6775 | IndexError: Invalid key: 0 is out of bounds for size 0 | > > I had the same problem, but I spent a whole day trying different combination with my own dataset with the example data set and found the reason: the example data is multi-turn conversation between human and assistant, so # Humman or # Assistant appear at least twice. If your own custom data only has single turn con... | ### 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... | 708 | IndexError: Invalid key: 0 is out of bounds for size 0
### 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_finetu... | [
-0.28066593408584595,
-0.47747936844825745,
0.019472308456897736,
0.3315136432647705,
0.0059850625693798065,
-0.030505608767271042,
0.08925245702266693,
0.33032339811325073,
0.032530248165130615,
0.1563732624053955,
-0.2661375105381012,
0.060142435133457184,
-0.09422646462917328,
0.4449833... |
https://github.com/huggingface/datasets/issues/6775 | IndexError: Invalid key: 0 is out of bounds for size 0 | @cyberyu **Thank you so much, You saved my day (+ so many days)**.
I tried the example you provided above, and the training is successfully completed in Vertex-AI (through GUI).
I never thought there would be constraints on the length of the samples and also on the number of turns.
I will update my complete d... | ### 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... | 68 | IndexError: Invalid key: 0 is out of bounds for size 0
### 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_finetu... | [
-0.28066593408584595,
-0.47747936844825745,
0.019472308456897736,
0.3315136432647705,
0.0059850625693798065,
-0.030505608767271042,
0.08925245702266693,
0.33032339811325073,
0.032530248165130615,
0.1563732624053955,
-0.2661375105381012,
0.060142435133457184,
-0.09422646462917328,
0.4449833... |
https://github.com/huggingface/datasets/issues/6774 | Generating split is very slow when Image format is PNG | I think this is due to the speed of reading a `png` image using pillow compared to a `jpg` image.
Notably the same is true with `tiff`, it is even faster than `jpg` in my case. | ### 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... | 36 | Generating split is very slow when Image format is PNG
### 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.
` caches properly (though I'll double check later).
I think the issue might be in the caching of the function output for `territories.map(lambda row: {'Claimants': row['Claimants'].split(';')})`. M... | ### 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... | 108 | Dataset on Hub re-downloads every time?
### 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 proper... | [
-0.2759879529476166,
-0.12056708335876465,
0.04106386378407478,
0.37259286642074585,
-0.04802778363227844,
-0.04825824871659279,
0.48405343294143677,
0.1776006817817688,
0.509155809879303,
-0.14426784217357635,
-0.2950863540172577,
0.2489885538816452,
0.35557642579078674,
-0.01124634593725... |
https://github.com/huggingface/datasets/issues/6773 | Dataset on Hub re-downloads every time? | This issue seems similar to https://github.com/huggingface/datasets/issues/6184 (`dill` serializes objects defined outside the `__main__` module by reference). You should be able to work around this limitation by defining the lambdas outside of `load_borderlines_hf` (as module variables) and then setting their `__modul... | ### 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... | 64 | Dataset on Hub re-downloads every time?
### 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 proper... | [
-0.2759879529476166,
-0.12056708335876465,
0.04106386378407478,
0.37259286642074585,
-0.04802778363227844,
-0.04825824871659279,
0.48405343294143677,
0.1776006817817688,
0.509155809879303,
-0.14426784217357635,
-0.2950863540172577,
0.2489885538816452,
0.35557642579078674,
-0.01124634593725... |
https://github.com/huggingface/datasets/issues/6773 | Dataset on Hub re-downloads every time? | Thank you, I'll give this a try. Your fix makes sense to me, so this issue can be closed for now.
Unrelated comment -- for "Downloads last month" on the hub page, I'm assuming for this project that each downloaded CSV is 1 download? The dataset consists of 51 CSVs, so I'm trying to see why it's incrementing so quick... | ### 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... | 67 | Dataset on Hub re-downloads every time?
### 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 proper... | [
-0.2759879529476166,
-0.12056708335876465,
0.04106386378407478,
0.37259286642074585,
-0.04802778363227844,
-0.04825824871659279,
0.48405343294143677,
0.1776006817817688,
0.509155809879303,
-0.14426784217357635,
-0.2950863540172577,
0.2489885538816452,
0.35557642579078674,
-0.01124634593725... |
https://github.com/huggingface/datasets/issues/6771 | Datasets FileNotFoundError when trying to generate examples. | @mariosasko Thanks for the PR and help! Guess I could close the issue for now. Appreciate the help! | ### 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... | 18 | Datasets FileNotFoundError when trying to generate examples.
### 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... | [
-0.27704334259033203,
-0.07210198789834976,
0.0195186547935009,
0.3475953936576843,
0.26319271326065063,
0.11979939788579941,
0.2685096561908722,
0.3378804326057434,
0.013867110013961792,
0.2252742499113083,
0.010754437185823917,
0.09313718229532242,
-0.19975227117538452,
-0.01139810867607... |
https://github.com/huggingface/datasets/issues/6770 | [Bug Report] `datasets==2.18.0` is not compatible with `fsspec==2023.12.2` | 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. | ### 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 ... | 27 | [Bug Report] `datasets==2.18.0` is not compatible with `fsspec==2023.12.2`
### 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... | [
-0.6085851788520813,
0.04668770730495453,
-0.08293451368808746,
0.17726293206214905,
0.24817615747451782,
-0.04743963107466698,
0.09981110692024231,
0.39784231781959534,
-0.31554001569747925,
0.31441277265548706,
0.026782501488924026,
0.5403881669044495,
0.09309377521276474,
0.431184858083... |
https://github.com/huggingface/datasets/issues/6765 | Compatibility issue between s3fs, fsspec, and datasets | 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. | ### 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 ... | 36 | Compatibility issue between s3fs, fsspec, and datasets
### 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.... | [
-0.2145080268383026,
0.05141748487949371,
-0.11407479643821716,
0.44768309593200684,
0.0963214859366417,
-0.30690237879753113,
-0.11762954294681549,
0.1704910397529602,
-0.15889768302440643,
0.01165984570980072,
0.1124238520860672,
0.702254056930542,
0.1701168417930603,
0.2622492015361786,... |
https://github.com/huggingface/datasets/issues/6765 | Compatibility issue between s3fs, fsspec, and datasets | > 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.
Thanks so much! My inexperience with pip is showing 😆 🙈 | ### 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 ... | 48 | Compatibility issue between s3fs, fsspec, and datasets
### 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.... | [
-0.2077006846666336,
0.010491222143173218,
-0.11634887754917145,
0.4619513750076294,
0.10029921680688858,
-0.30013683438301086,
-0.1435176432132721,
0.15162542462348938,
-0.14734475314617157,
0.014978870749473572,
0.136674702167511,
0.7176003456115723,
0.17941242456436157,
0.23967169225215... |
https://github.com/huggingface/datasets/issues/6765 | Compatibility issue between s3fs, fsspec, and datasets | > 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.
you are awesome bro | ### 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 ... | 41 | Compatibility issue between s3fs, fsspec, and datasets
### 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.... | [
-0.21253354847431183,
0.0397123247385025,
-0.1161235123872757,
0.4506732225418091,
0.10362973064184189,
-0.3032476603984833,
-0.11845283210277557,
0.1645442247390747,
-0.16454802453517914,
0.010245010256767273,
0.10515247285366058,
0.7001554369926453,
0.1645832508802414,
0.2848645746707916... |
https://github.com/huggingface/datasets/issues/6760 | Load codeparrot/apps raising UnicodeDecodeError in datasets-2.18.0 | Here is the requirements.txt from a clean virtual environment (managed by conda) where I only install `datasets` by
`pip install datasets`.
The pip list:
```
aiohttp==3.9.3
aiosignal==1.3.1
attrs==23.2.0
certifi==2024.2.2
charset-normalizer==3.3.2
datasets==2.18.0
dill==0.3.8
filelock==3.13.3
frozenlist==... | ### 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... | 204 | Load codeparrot/apps raising UnicodeDecodeError in datasets-2.18.0
### 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", li... | [
-0.4005688726902008,
0.20541945099830627,
-0.05042307823896408,
0.3017098307609558,
0.4103245735168457,
0.06695821136236191,
0.3023069202899933,
0.3237931728363037,
-0.3200613260269165,
0.020805619657039642,
0.29079321026802063,
0.3435957431793213,
-0.1630995124578476,
0.03766073286533356,... |
https://github.com/huggingface/datasets/issues/6760 | Load codeparrot/apps raising UnicodeDecodeError in datasets-2.18.0 | > Here is the requirements.txt from a clean virtual environment (managed by conda) where I only install `datasets` by `pip install datasets`. The pip list:
>
> ```
> aiohttp==3.9.3
> aiosignal==1.3.1
> attrs==23.2.0
> certifi==2024.2.2
> charset-normalizer==3.3.2
> datasets==2.18.0
> dill==0.3.8
> filelock==... | ### 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... | 263 | Load codeparrot/apps raising UnicodeDecodeError in datasets-2.18.0
### 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", li... | [
-0.4005688726902008,
0.20541945099830627,
-0.05042307823896408,
0.3017098307609558,
0.4103245735168457,
0.06695821136236191,
0.3023069202899933,
0.3237931728363037,
-0.3200613260269165,
0.020805619657039642,
0.29079321026802063,
0.3435957431793213,
-0.1630995124578476,
0.03766073286533356,... |
https://github.com/huggingface/datasets/issues/6756 | Support SQLite files? | 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
This would allow to load a dataset repository with a `.sqlite` file using `load_dataset` and enab... | ### 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 ... | 47 | Support SQLite files?
### 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/p1702481859... | [
-0.6961444020271301,
-0.029209665954113007,
-0.03673972561955452,
0.32284408807754517,
0.048361632972955704,
0.23912319540977478,
-0.12631085515022278,
0.5097777843475342,
0.095565065741539,
0.04004529118537903,
-0.2469336986541748,
0.6184216737747192,
-0.13654939830303192,
0.4112380743026... |
https://github.com/huggingface/datasets/issues/6756 | Support SQLite files? | Considering `Dataset.from_sql`'s (extremely) low usage, I don't think many users are interested in using this format for their datasets. Also, SQLite files are hard/impossible to stream efficiently and require custom logic to define splits/subsets, so IMO we shouldn't encourage people to use SQLite on the Hub.
@seve... | ### 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 ... | 59 | Support SQLite files?
### 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/p1702481859... | [
-0.5623488426208496,
-0.26838648319244385,
-0.06109265238046646,
0.33228981494903564,
-0.019835900515317917,
0.23736318945884705,
-0.11461873352527618,
0.41820529103279114,
0.13700570166110992,
0.08801745623350143,
-0.23408222198486328,
0.42525923252105713,
-0.13285236060619354,
0.45195719... |
https://github.com/huggingface/datasets/issues/6755 | Small typo on the documentation | Thanks for reporting @fostiropoulos! I've edited your comment to fix the link to the problematic line.
| ### 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... | 16 | Small typo on the documentation
### 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/huggi... | [
-0.14334550499916077,
-0.4649059772491455,
-0.03588692098855972,
0.23592206835746765,
0.2400730550289154,
-0.06276527047157288,
0.1922130584716797,
0.09662668406963348,
0.13380374014377594,
0.09644681215286255,
-0.12876884639263153,
0.12284111231565475,
-0.015786945819854736,
0.22396422922... |
https://github.com/huggingface/datasets/issues/6753 | Type error when importing datasets on Kaggle | I have the same problem
It seems that it only appears when you are using GPU
It seems to work fine with the 2.17 version though | ### 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
... | 26 | Type error when importing datasets on Kaggle
### 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 fssp... | [
-0.26136472821235657,
-0.33415448665618896,
-0.027415717020630836,
0.36076289415359497,
0.4714803695678711,
0.025852128863334656,
0.08765425533056259,
0.2872433662414551,
0.2096555531024933,
0.12113531678915024,
0.01578827016055584,
0.6355251669883728,
-0.12476203590631485,
0.6620275974273... |
https://github.com/huggingface/datasets/issues/6753 | Type error when importing datasets on Kaggle | > I have the same problem
> It seems that it only appears when you are using GPU
> It seems to work fine with the 2.17 version though
I downgraded from 2.18 to 2.17, and it works with CPU/GPU .. except now pyarrow complains
```
...
File /opt/conda/lib/python3.10/site-packages/pyarrow/array.pxi:830, in pyarrow... | ### 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
... | 64 | Type error when importing datasets on Kaggle
### 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 fssp... | [
-0.26136472821235657,
-0.33415448665618896,
-0.027415717020630836,
0.36076289415359497,
0.4714803695678711,
0.025852128863334656,
0.08765425533056259,
0.2872433662414551,
0.2096555531024933,
0.12113531678915024,
0.01578827016055584,
0.6355251669883728,
-0.12476203590631485,
0.6620275974273... |
https://github.com/huggingface/datasets/issues/6753 | Type error when importing datasets on Kaggle | I think you should remain open this issue. It works at the previous version but not the latter versions. It is possible as a bug that the maintainer could take note for. | ### 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
... | 32 | Type error when importing datasets on Kaggle
### 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 fssp... | [
-0.26136472821235657,
-0.33415448665618896,
-0.027415717020630836,
0.36076289415359497,
0.4714803695678711,
0.025852128863334656,
0.08765425533056259,
0.2872433662414551,
0.2096555531024933,
0.12113531678915024,
0.01578827016055584,
0.6355251669883728,
-0.12476203590631485,
0.6620275974273... |
https://github.com/huggingface/datasets/issues/6753 | Type error when importing datasets on Kaggle | > Solved for me by downgrading `!pip install -U datasets==2.16.0` Works with gpu as well
Verified it's working w/ GPU if I make these 3 updates.
```
datasets==2.16.0
fsspec==2023.10.0
gcsfs==2023.10.0
```
but the issue shouldn't be closed, this is just a workaround until they get the issue with 2.18.0 reso... | ### 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
... | 53 | Type error when importing datasets on Kaggle
### 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 fssp... | [
-0.26136472821235657,
-0.33415448665618896,
-0.027415717020630836,
0.36076289415359497,
0.4714803695678711,
0.025852128863334656,
0.08765425533056259,
0.2872433662414551,
0.2096555531024933,
0.12113531678915024,
0.01578827016055584,
0.6355251669883728,
-0.12476203590631485,
0.6620275974273... |
https://github.com/huggingface/datasets/issues/6753 | Type error when importing datasets on Kaggle | > > Solved for me by downgrading `!pip install -U datasets==2.16.0` Works with gpu as well
>
> Verified it's working w/ GPU if I make these 3 updates.
>
> ```
> datasets==2.16.0
> fsspec==2023.10.0
> gcsfs==2023.10.0
> ```
>
> but the issue shouldn't be closed, this is just a workaround until they get the ... | ### 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
... | 72 | Type error when importing datasets on Kaggle
### 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 fssp... | [
-0.26136472821235657,
-0.33415448665618896,
-0.027415717020630836,
0.36076289415359497,
0.4714803695678711,
0.025852128863334656,
0.08765425533056259,
0.2872433662414551,
0.2096555531024933,
0.12113531678915024,
0.01578827016055584,
0.6355251669883728,
-0.12476203590631485,
0.6620275974273... |
https://github.com/huggingface/datasets/issues/6752 | Precision being changed from float16 to float32 unexpectedly | This is because of the formatter (`torch` in this case).
It defaults to `float32`.
You can load it in `float16` using `dataset.set_format("torch", dtype=torch.float16)`. | ### 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... | 23 | Precision being changed from float16 to float32 unexpectedly
### 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. ... | [
-0.17743724584579468,
-0.672585129737854,
-0.01951872557401657,
0.1344832479953766,
0.5093412399291992,
-0.11940473318099976,
0.2055831253528595,
0.07493767142295837,
-0.1030128002166748,
0.1838420033454895,
-0.02054315246641636,
0.15689395368099213,
0.16301490366458893,
-0.245680063962936... |
https://github.com/huggingface/datasets/issues/6750 | `load_dataset` requires a network connection for local download? | > Are you using `HF_DATASETS_OFFLINE=1` ?
This doesn't work for me. `datasets=2.18.0`
`test.py`:
```
import datasets
datasets.utils.logging.set_verbosity_info()
ds = datasets.load_dataset('C-MTEB/AFQMC', revision='b44c3b011063adb25877c13823db83bb193913c4')
print(ds)
```
run `python test.py`
```
G... | ### 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 ... | 246 | `load_dataset` requires a network connection for local download?
### 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
>>> ... | [
-0.41168439388275146,
0.31381863355636597,
-0.01289613451808691,
0.17014291882514954,
0.27653050422668457,
-0.015546474605798721,
0.5256739854812622,
0.09215858578681946,
0.21692651510238647,
-0.10878269374370575,
0.016505425795912743,
0.39275413751602173,
0.22251856327056885,
0.1687614470... |
https://github.com/huggingface/datasets/issues/6750 | `load_dataset` requires a network connection for local download? | I was having similar inexplicable issues.
Doing this I *think* helped, but, `datasets` still *clearly* does not want to respect the cache:
```python
pip install --upgrade datasets # now it is 2.18.0
HF_DATASETS_OFFLINE="1" python blah.py
```
Or similarly, I must spacify that env var to resuse the cache, IE... | ### 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 ... | 79 | `load_dataset` requires a network connection for local download?
### 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
>>> ... | [
-0.41168439388275146,
0.31381863355636597,
-0.01289613451808691,
0.17014291882514954,
0.27653050422668457,
-0.015546474605798721,
0.5256739854812622,
0.09215858578681946,
0.21692651510238647,
-0.10878269374370575,
0.016505425795912743,
0.39275413751602173,
0.22251856327056885,
0.1687614470... |
https://github.com/huggingface/datasets/issues/6748 | Strange slicing behavior | 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 300 i... | ### 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... | 45 | Strange slicing behavior
### 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
```
### Step... | [
-0.022191021591424942,
-0.4173964858055115,
-0.03937358036637306,
0.21162284910678864,
0.3818480372428894,
-0.22799047827720642,
0.27848371863365173,
0.12123659253120422,
-0.1306924968957901,
0.449577271938324,
-0.1268230825662613,
0.5206926465034485,
0.047084104269742966,
0.41319209337234... |
https://github.com/huggingface/datasets/issues/6746 | ExpectedMoreSplits error when loading C4 dataset | 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))
To fix this issue **you can update** `datasets` and remove the mention of the legacy configuration name "allenai--c4":
```python
traindata =... | ### 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 ... | 54 | ExpectedMoreSplits error when loading C4 dataset
### 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/llam... | [
-0.2093273401260376,
-0.08629315346479416,
0.005980711430311203,
0.5380087494850159,
0.549832284450531,
-0.1093844622373581,
0.09734025597572327,
0.16330640017986298,
0.05141580477356911,
0.3361155092716217,
0.20857207477092743,
0.14479252696037292,
-0.33590787649154663,
0.0738957822322845... |
https://github.com/huggingface/datasets/issues/6737 | Invalid pattern: '**' can only be an entire path component | I couldn't reproduce the issue on my side on MacOS, I guess the issue comes from the recent `fsspec` on Windows.
Can 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` | ### 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... | 49 | Invalid pattern: '**' can only be an entire path component
### 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")
### Expec... | [
-0.3025323152542114,
-0.04351227730512619,
0.018823906779289246,
0.2451896071434021,
0.35056746006011963,
-0.3282299041748047,
0.2884999215602875,
0.3534834384918213,
-0.08888503909111023,
0.029443316161632538,
0.20205074548721313,
0.31757164001464844,
-0.21063332259655,
0.3732446432113647... |
https://github.com/huggingface/datasets/issues/6737 | Invalid pattern: '**' can only be an entire path component | I had the same issue!
Downgrading to fsspec from 2023.10.0 to 2023.9.2 solved it for me.
(env: python 3.11.7, datasets version: 2.15.0, Windows 10 22H2, Build 19045.4170)
Thanks a lot! | ### 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... | 30 | Invalid pattern: '**' can only be an entire path component
### 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")
### Expec... | [
-0.2605041265487671,
-0.1179552972316742,
0.03574439510703087,
0.3273494243621826,
0.35942989587783813,
-0.3289887607097626,
0.3662753999233246,
0.33789050579071045,
-0.1032349169254303,
0.068104088306427,
0.18261969089508057,
0.3011226952075958,
-0.12948967516422272,
0.44747740030288696,
... |
https://github.com/huggingface/datasets/issues/6737 | Invalid pattern: '**' can only be an entire path component | Ubuntu 20.04 had the same issue
python 3.9
File "/home/delight-gpu/Workspace2/azuryl/FLAP/main.py", line 112, in <module>
main()
File "/home/delight-gpu/Workspace2/azuryl/FLAP/main.py", line 85, in main
prune_flap(args, model, tokenizer, device)
File "/home/delight-gpu/Workspace2/azuryl/FLAP/lib/p... | ### 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... | 169 | Invalid pattern: '**' can only be an entire path component
### 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")
### Expec... | [
-0.1276732236146927,
-0.20990151166915894,
0.05513617768883705,
0.28894224762916565,
0.21175365149974823,
-0.3680422306060791,
0.4355716407299042,
0.422148197889328,
-0.15210570394992828,
0.04226110875606537,
0.14200562238693237,
0.35292762517929077,
-0.1570034921169281,
0.3986522257328033... |
https://github.com/huggingface/datasets/issues/6737 | Invalid pattern: '**' can only be an entire path component | on ubuntu you just need to have the latest `datasets` and `fsspec`
```
pip install -U datasets fsspec
``` | ### 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... | 19 | Invalid pattern: '**' can only be an entire path component
### 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")
### Expec... | [
-0.3318611681461334,
-0.15121078491210938,
-0.026008201763033867,
0.3540918231010437,
0.3105986714363098,
-0.2765226364135742,
0.3181052505970001,
0.35003605484962463,
-0.046847619116306305,
0.04758822172880173,
0.1681751310825348,
0.3472265303134918,
-0.18957993388175964,
0.37525680661201... |
https://github.com/huggingface/datasets/issues/6737 | Invalid pattern: '**' can only be an entire path component | The issue was caused by an incompatibility between the versions of `datasets`, `huggingface-hub` and `fsspec`.
The issue was fixed in:
- huggingface-hub-0.21.2: https://github.com/huggingface/huggingface_hub/pull/2056
- and datasets-2.18.0: https://github.com/huggingface/datasets/pull/6687
- datasets-2.19.1 fix... | ### 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... | 37 | Invalid pattern: '**' can only be an entire path component
### 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")
### Expec... | [
-0.2559811472892761,
-0.2970866560935974,
0.03356429189443588,
0.3065558671951294,
0.3228911757469177,
-0.2919846177101135,
0.260703980922699,
0.3723161518573761,
-0.10775737464427948,
0.03460223227739334,
0.06914541870355606,
0.2735200524330139,
-0.19906926155090332,
0.3654455244541168,
... |
https://github.com/huggingface/datasets/issues/6736 | Mosaic Streaming (MDS) Support | 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...
Anyway for those interested, the code for Web... | ### 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... | 99 | Mosaic Streaming (MDS) Support
### 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/stream... | [
-0.4146052300930023,
-0.04355272650718689,
-0.032325077801942825,
-0.4573640823364258,
0.020029135048389435,
-0.13412955403327942,
0.30479830503463745,
0.23967790603637695,
0.005834711715579033,
-0.10335679352283478,
-0.5010004043579102,
-0.3480696976184845,
-0.34583404660224915,
0.5153269... |
https://github.com/huggingface/datasets/issues/6734 | Tokenization slows towards end of dataset | 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.
Moreover, 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()`, some proc... | ### 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... | 78 | Tokenization slows towards end of dataset
### 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 wit... | [
-0.44143927097320557,
0.04940517246723175,
-0.08252695947885513,
0.10362903773784637,
0.3059098720550537,
-0.17579758167266846,
0.24827998876571655,
0.37538379430770874,
-0.3185052275657654,
0.14226257801055908,
0.18136216700077057,
0.49972817301750183,
-0.111054427921772,
-0.1634110063314... |
https://github.com/huggingface/datasets/issues/6734 | Tokenization slows towards end of dataset | I did see some comments about how num_proc=None could help and outputting numpy arrays can also help in the docs, but this seems quite odd now dropping down to 1it/s
```bash
Running tokenizer on dataset (num_proc=48): 99%|█████████▉| 46048888/46390354 [12:33:30<4:20:32, 21.84 examples/s]
Running tokenizer on data... | ### 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... | 112 | Tokenization slows towards end of dataset
### 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 wit... | [
-0.44143927097320557,
0.04940517246723175,
-0.08252695947885513,
0.10362903773784637,
0.3059098720550537,
-0.17579758167266846,
0.24827998876571655,
0.37538379430770874,
-0.3185052275657654,
0.14226257801055908,
0.18136216700077057,
0.49972817301750183,
-0.111054427921772,
-0.1634110063314... |
https://github.com/huggingface/datasets/issues/6733 | EmptyDatasetError when loading dataset downloaded with HuggingFace cli | Hi! `datasets` is not compatible with `huggingface_hub`'s cache structure, hence the error.
You can track https://github.com/huggingface/datasets/issues/5080 to get notified when this is implemented. | ### 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... | 23 | EmptyDatasetError when loading dataset downloaded with HuggingFace cli
### 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 EmptyD... | [
-0.15917807817459106,
-0.2600245475769043,
0.08427518606185913,
0.4541172385215759,
0.15736033022403717,
0.016504593193531036,
0.127852201461792,
0.22305187582969666,
0.451858252286911,
0.16147887706756592,
-0.07710544764995575,
0.007277769967913628,
-0.28315919637680054,
0.088979884982109... |
https://github.com/huggingface/datasets/issues/6731 | Unexpected behavior when using load_dataset with streaming=True in a for loop | 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.
You should pass `fn_kwargs` that will be passed to your `lambda` instead of using the global variable:
```python
... | ### 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[... | 119 | Unexpected behavior when using load_dataset with streaming=True in a for loop
### 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,... | [
-0.07609681040048599,
-0.359355092048645,
-0.06182356923818588,
0.33564746379852295,
0.07727647572755814,
-0.04816568270325661,
0.3788203001022339,
0.02928072400391102,
0.21879591047763824,
0.02997703105211258,
0.19003428518772125,
0.39369815587997437,
-0.04790274798870087,
0.1531901955604... |
https://github.com/huggingface/datasets/issues/6729 | Support zipfiles that span multiple disks? | No. cc @albertvillanova @lhoestq @polinaeterna for an evaluation of what it would take to support this feature. | 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... | 17 | Support zipfiles that span multiple disks?
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: Tracebac... | [
-0.781411349773407,
-0.14386536180973053,
-0.07546406984329224,
0.2898322343826294,
0.1265450119972229,
0.0779995247721672,
0.3441186845302582,
0.2277972251176834,
-0.13403397798538208,
0.18954811990261078,
-0.22090083360671997,
0.5121448636054993,
-0.03472064808011055,
0.35409972071647644... |
https://github.com/huggingface/datasets/issues/6729 | Support zipfiles that span multiple disks? | The underlying issue issue is that the dataset repository has used split ZIP archive files: https://huggingface.co/datasets/PhilEO-community/PhilEO-downstream/tree/main/data
```
downstream_dataset_patches_npzip.z01
downstream_dataset_patches_npzip.z02
...
downstream_dataset_patches_npzip.zip
```
and these are no... | 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... | 34 | Support zipfiles that span multiple disks?
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: Tracebac... | [
-0.781411349773407,
-0.14386536180973053,
-0.07546406984329224,
0.2898322343826294,
0.1265450119972229,
0.0779995247721672,
0.3441186845302582,
0.2277972251176834,
-0.13403397798538208,
0.18954811990261078,
-0.22090083360671997,
0.5121448636054993,
-0.03472064808011055,
0.35409972071647644... |
https://github.com/huggingface/datasets/issues/6729 | Support zipfiles that span multiple disks? | It's a pretty bad way to share a dataset since one needs to download the full dataset to use it.
We likely won't support this format. | 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... | 26 | Support zipfiles that span multiple disks?
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: Tracebac... | [
-0.781411349773407,
-0.14386536180973053,
-0.07546406984329224,
0.2898322343826294,
0.1265450119972229,
0.0779995247721672,
0.3441186845302582,
0.2277972251176834,
-0.13403397798538208,
0.18954811990261078,
-0.22090083360671997,
0.5121448636054993,
-0.03472064808011055,
0.35409972071647644... |
https://github.com/huggingface/datasets/issues/6728 | Issue Downloading Certain Datasets After Setting Custom `HF_ENDPOINT` | 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 | ### 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... | 20 | Issue Downloading Certain Datasets After Setting Custom `HF_ENDPOINT`
### 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... | [
-0.1914752870798111,
-0.1797131896018982,
0.09339338541030884,
0.23099510371685028,
0.17678934335708618,
-0.1634978950023651,
0.216958150267601,
0.1139768660068512,
0.25537243485450745,
0.04573971778154373,
-0.5113677382469177,
0.26526182889938354,
0.07376639544963837,
0.14197935163974762,... |
https://github.com/huggingface/datasets/issues/6728 | Issue Downloading Certain Datasets After Setting Custom `HF_ENDPOINT` | Thanks for investigating and reporting the bug @padeoe! I've opened a PR in `huggingface_hub` with your suggested fix! :) https://github.com/huggingface/huggingface_hub/pull/2119 | ### 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... | 20 | Issue Downloading Certain Datasets After Setting Custom `HF_ENDPOINT`
### 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... | [
-0.1914752870798111,
-0.1797131896018982,
0.09339338541030884,
0.23099510371685028,
0.17678934335708618,
-0.1634978950023651,
0.216958150267601,
0.1139768660068512,
0.25537243485450745,
0.04573971778154373,
-0.5113677382469177,
0.26526182889938354,
0.07376639544963837,
0.14197935163974762,... |
https://github.com/huggingface/datasets/issues/6726 | Profiling for HF Filesystem shows there are easy performance gains to be made | 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. | ### 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... | 29 | Profiling for HF Filesystem shows there are easy performance gains to be made
### Describe the bug
# Let's make it faster
First, an evidence...

Figure 1: CProfile for loading 3 files from cerebras/SlimPajama-62... | [
-0.4390822649002075,
-0.129923015832901,
-0.01116255298256874,
0.30568891763687134,
0.03608936816453934,
-0.030317626893520355,
0.10912622511386871,
0.5356101989746094,
0.04119584336876869,
0.18496552109718323,
-0.4971758723258972,
0.29557475447654724,
0.10940773785114288,
0.12598523497581... |
https://github.com/huggingface/datasets/issues/6721 | Hi,do you know how to load the dataset from local file now? |
@Gera001
# Loading Dataset from Local Files Using 🤗Hugging Face.
To load a dataset from local files using the Hugging Face datasets library, you can use the `load_dataset` function.
```
from datasets import load_dataset
dataset = load_dataset('csv', data_files={'train': 'path/to/train.csv',
... | 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_
| 58 | Hi,do you know how to load the dataset from local file now?
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_
@Gera001
# Lo... | [
-0.19802147150039673,
-0.3678835928440094,
-0.02126273885369301,
0.10082454979419708,
0.2918880581855774,
0.06909789890050888,
0.2471809685230255,
0.2844804525375366,
0.4740714728832245,
0.29825717210769653,
-0.21148689091205597,
-0.03576800972223282,
0.05183638259768486,
0.464405149221420... |
https://github.com/huggingface/datasets/issues/6721 | Hi,do you know how to load the dataset from local file now? | @ge00009
> like this: from datasets import load_from_disk dataset = load_from_disk(data_path)
Loads a dataset that was previously saved using `save_to_disk()`.
Reference link:
https://huggingface.co/docs/datasets/en/package_reference/loading_methods#datasets.load_from_disk.example | 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_
| 23 | Hi,do you know how to load the dataset from local file now?
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_
@ge00009
> lik... | [
-0.2701813876628876,
-0.4022340774536133,
-0.026236072182655334,
0.2153710126876831,
0.2627391815185547,
0.07305721193552017,
0.1281583607196808,
0.17334644496440887,
0.3208651542663574,
0.2776947617530823,
-0.26834169030189514,
0.23004445433616638,
0.026228390634059906,
0.4014463722705841... |
https://github.com/huggingface/datasets/issues/6720 | TypeError: 'str' object is not callable | Hi ! I opened a PR to fix an issue in the Features defined in your code
Basically changing
```python
Sequence("float32")
```
to
```python
Sequence(Value("float32"))
```
https://huggingface.co/datasets/BramVanroy/hplt_mono_v1_2/discussions/1 | ### 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 ... | 27 | TypeError: 'str' object is not callable
### 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 ve... | [
-0.16167008876800537,
-0.2945093512535095,
0.1827983856201172,
0.301986426115036,
0.34105372428894043,
-0.004187747836112976,
0.2907615303993225,
0.019499151036143303,
0.11874857544898987,
0.13143810629844666,
0.027880044654011726,
0.1734614223241806,
-0.2581363916397095,
0.227437660098075... |
https://github.com/huggingface/datasets/issues/6720 | TypeError: 'str' object is not callable | D'oh! Was wondering why the `str() is not callable` was in there. Glad the error is my end though, and not related to zstandard (which I had not used in the past).
Thanks a lot! | ### 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 ... | 35 | TypeError: 'str' object is not callable
### 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 ve... | [
-0.16167008876800537,
-0.2945093512535095,
0.1827983856201172,
0.301986426115036,
0.34105372428894043,
-0.004187747836112976,
0.2907615303993225,
0.019499151036143303,
0.11874857544898987,
0.13143810629844666,
0.027880044654011726,
0.1734614223241806,
-0.2581363916397095,
0.227437660098075... |
https://github.com/huggingface/datasets/issues/6716 | Non-deterministic `Dataset.builder_name` value | When `rotten_tomatoes` is printed out, the following warning message is also printed out:
```
You can avoid this message in future by passing the argument `trust_remote_code=True`.
Passing `trust_remote_code=True` will be mandatory to load this dataset from the next major release of `datasets`.
``` | ### 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... | 43 | Non-deterministic `Dataset.builder_name` value
### 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",... | [
-0.22831767797470093,
0.1902737319469452,
-0.021880939602851868,
0.18115636706352234,
0.31367260217666626,
-0.1290479302406311,
0.42048895359039307,
0.13688793778419495,
-0.04137015342712402,
0.49882322549819946,
0.2722196877002716,
0.6589347124099731,
0.017034290358424187,
0.1021184697747... |
https://github.com/huggingface/datasets/issues/6716 | Non-deterministic `Dataset.builder_name` value | Hi ! This behavior happens because the dataset was originakky created using a dataset script [rotten_tomatoes.py](https://huggingface.co/datasets/rotten_tomatoes/blob/26f40d324d7b281d8b3fb1c47f30f8b9957f206b/rotten_tomatoes.py) and because we added features recently allowing to download the dataset directly from Parque... | ### 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... | 101 | Non-deterministic `Dataset.builder_name` value
### 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",... | [
-0.24925094842910767,
0.21260401606559753,
0.009089574217796326,
0.21066243946552277,
0.33882153034210205,
-0.12109746038913727,
0.4286492168903351,
0.11134427785873413,
-0.09090885519981384,
0.46540772914886475,
0.2518562972545624,
0.6261516213417053,
-0.015683650970458984,
0.113584913313... |
https://github.com/huggingface/datasets/issues/6716 | Non-deterministic `Dataset.builder_name` value | > we automatically export them in the refs/convert/parquet branch
When this operation is in progress, the parquet files become temporarily unavailable? | ### 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... | 21 | Non-deterministic `Dataset.builder_name` value
### 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",... | [
-0.1934543401002884,
0.1554976999759674,
-0.03498044237494469,
0.180550217628479,
0.3152754306793213,
-0.14966288208961487,
0.3927195370197296,
0.1072780042886734,
-0.09653156995773315,
0.5031201839447021,
0.3391696810722351,
0.6630303859710693,
-0.0015267273411154747,
0.13191020488739014,... |
https://github.com/huggingface/datasets/issues/6716 | Non-deterministic `Dataset.builder_name` value | > When this operation is in progress, the parquet files become temporarily unavailable?
Yes correct. I just merged the patch btw :) | ### 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... | 22 | Non-deterministic `Dataset.builder_name` value
### 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",... | [
-0.19868777692317963,
0.16390830278396606,
-0.011938736774027348,
0.1808697134256363,
0.3105783462524414,
-0.14799916744232178,
0.3661192059516907,
0.14003072679042816,
-0.10239653289318085,
0.48863351345062256,
0.31423723697662354,
0.6664788722991943,
-0.002230593003332615,
0.111513800919... |
https://github.com/huggingface/datasets/issues/6703 | Unable to load dataset that was saved with `save_to_disk` | `save_to_disk` uses a special serialization that can only be read using `load_from_disk`.
Contrary to `load_dataset`, `load_from_disk` directly loads Arrow files and uses the dataset directory as cache.
On the other hand `load_dataset` does a conversion step to get Arrow files from the raw data files (could be in... | ### 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... | 129 | Unable to load dataset that was saved with `save_to_disk`
### 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... | [
-0.3033212721347809,
-0.17909714579582214,
0.03819906339049339,
0.34951549768447876,
0.3152960538864136,
0.2354375422000885,
0.2196148782968521,
0.1704721301794052,
0.18181750178337097,
-0.010524258017539978,
-0.13490702211856842,
0.6075145602226257,
-0.1159549281001091,
0.2557533383369446... |
https://github.com/huggingface/datasets/issues/6703 | Unable to load dataset that was saved with `save_to_disk` | @lhoestq, so is it correctly understood that if I run `to_parquet()` and then `save_to_disk()`, I can load it with `load_dataset`? If yes, then it would resolve this issue (and should probably be documented somewhere 😄) | ### 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... | 35 | Unable to load dataset that was saved with `save_to_disk`
### 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... | [
-0.25731319189071655,
-0.24908488988876343,
0.02800280600786209,
0.3634191155433655,
0.23599158227443695,
0.15630871057510376,
0.15814074873924255,
0.09843534231185913,
0.2207668423652649,
0.03351379930973053,
-0.07418055832386017,
0.5258834958076477,
-0.018993154168128967,
0.3345685005187... |
https://github.com/huggingface/datasets/issues/6703 | Unable to load dataset that was saved with `save_to_disk` | Here is an example:
```python
ds.to_parquet("my/local/dir/data.parquet")
# later
ds = load_dataset("my/local/dir")
```
and for bigger datasets:
```python
num_shards = 1024 # set number of files to save (e.g. try to have files smaller than 5GB)
for shard_idx in num_shards:
shard = ds.shard(index=shard... | ### 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... | 59 | Unable to load dataset that was saved with `save_to_disk`
### 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... | [
-0.3520600199699402,
-0.2968636751174927,
0.043345507234334946,
0.32642173767089844,
0.24682968854904175,
0.14966607093811035,
0.18661275506019592,
0.18462838232517242,
0.1364244818687439,
0.08917498588562012,
-0.019404510036110878,
0.4688253700733185,
-0.13734515011310577,
0.3569578230381... |
https://github.com/huggingface/datasets/issues/6703 | Unable to load dataset that was saved with `save_to_disk` | Thanks for helping out! Does this approach work with `s3fs`? e.g. something like this:
```python
import s3fs
s3 = s3fs.S3FileSystem(anon=True)
with s3.open('mybucket/new-file.parquet', 'w') as f:
ds.to_parquet(f)
```
This is instead of `save_to_disk` to save to an S3 bucket.
Otherwise, I am not sure h... | ### 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... | 62 | Unable to load dataset that was saved with `save_to_disk`
### 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... | [
-0.2697997987270355,
-0.2308146208524704,
0.030646875500679016,
0.22574281692504883,
0.2770352363586426,
0.08060675114393234,
0.2174036204814911,
0.05919964984059334,
-0.023901401087641716,
-0.019737213850021362,
-0.1480441689491272,
0.5424078702926636,
-0.1469523012638092,
0.4429582953453... |
https://github.com/huggingface/datasets/issues/6703 | Unable to load dataset that was saved with `save_to_disk` | > `load_dataset` does't support S3 buckets unfortunately :/
I am aware but I have some code that downloads it to disk before using that method. The most important part is to store it in a format that load_dataset is compatible with. | ### 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... | 41 | Unable to load dataset that was saved with `save_to_disk`
### 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... | [
-0.29518213868141174,
-0.2976222634315491,
-0.004652578383684158,
0.31327882409095764,
0.3060505986213684,
0.10661236196756363,
0.22580881416797638,
0.07345271110534668,
0.1754525899887085,
0.047191865742206573,
-0.22156479954719543,
0.5398899912834167,
-0.1510135680437088,
0.3990465998649... |
https://github.com/huggingface/datasets/issues/6703 | Unable to load dataset that was saved with `save_to_disk` | I ended up with this. Not ideal to save to local disk, but it works and loads via `load_datasets` after downloading from S3 with another method.
```python
with tempfile.TemporaryDirectory() as dir:
dataset_nbytes = ds._estimate_nbytes()
max_shard_size_local = convert_file_size_to_int(max_shard_size)
... | ### 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... | 59 | Unable to load dataset that was saved with `save_to_disk`
### 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... | [
-0.23714160919189453,
-0.3796793222427368,
0.017580054700374603,
0.33242297172546387,
0.27241867780685425,
-0.024656180292367935,
0.23909592628479004,
0.10268627107143402,
0.056728262454271317,
0.10482403635978699,
-0.14215296506881714,
0.5375565886497498,
-0.16890425980091095,
0.456802546... |
https://github.com/huggingface/datasets/issues/6702 | Push samples to dataset on hub without having the dataset locally | 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.
Though maybe make sure to not upload one file per sample since that would... | ### 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... | 70 | Push samples to dataset on hub without having the dataset locally
### 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 =... | [
-0.3518064618110657,
-0.19830834865570068,
0.06301453709602356,
-0.21309734880924225,
-0.1465127319097519,
0.06928353756666183,
0.38657718896865845,
0.49863433837890625,
0.1978279948234558,
0.28934794664382935,
-0.029841044917702675,
0.2429806888103485,
-0.14795564115047455,
0.555989503860... |
https://github.com/huggingface/datasets/issues/6700 | remove_columns is not in-place but the doc shows it is in-place | @mariosasko Thanks!
Will the doc of `datasets` be updated?
I find some possible mistakes in doc about whether `remove_columns` is in-place.
1. [You can also remove a column using map() with remove_columns but the present method is in-place (doesn’t copy the data to a new dataset) and is thus faster.](https://hug... | ### 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... | 100 | remove_columns is not in-place but the doc shows it is in-place
### 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 classificatio... | [
0.26938238739967346,
-0.5244266986846924,
0.0878790020942688,
0.2873860001564026,
0.28727585077285767,
0.022733978927135468,
0.4463950991630554,
0.12398141622543335,
0.010601386427879333,
-0.00431475043296814,
-0.17171967029571533,
0.1472654938697815,
-0.007954447530210018,
-0.127914667129... |
https://github.com/huggingface/datasets/issues/6699 | `Dataset` unexpected changed dict data and may cause error | If `test.jsonl` contains more lines like:
```
{"id": 0, "indexs": {"-1": [0, 10]}}
{"id": 1, "indexs": {"-1": [0, 10]}}
{"id": 2, "indexs": {"-2": [0, 10]}}
...
{"id": n, "indexs": {"-9999": [0, 10]}}
```
`Dataset.from_json` will just raise an error:
```
An error occurred while generating the dataset
TypeE... | ### 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:
```... | 264 | `Dataset` unexpected changed dict data and may cause error
### 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.fro... | [
0.07308311760425568,
-0.1030542254447937,
-0.13767212629318237,
0.3706306219100952,
0.12007098644971848,
0.003958560526371002,
0.11278946697711945,
0.30390578508377075,
0.12194353342056274,
0.017168737947940826,
-0.03790024667978287,
0.7005323171615601,
0.006284598261117935,
0.128122135996... |
https://github.com/huggingface/datasets/issues/6699 | `Dataset` unexpected changed dict data and may cause error | Hi! Our JSON parser expects all examples/rows to share the same set of columns (applies to nested columns, too), hence the error.
To read the `index` column, we would have to manually cast the input to PyArrow's `pa.map_` type, but this requires a more thorough investigation, as `pa.map_` has limited support in PyA... | ### 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:
```... | 53 | `Dataset` unexpected changed dict data and may cause error
### 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.fro... | [
0.06325607001781464,
0.13403084874153137,
-0.07492756843566895,
0.33300745487213135,
0.1449947953224182,
0.0656629428267479,
0.26568281650543213,
0.39243343472480774,
-0.0318576879799366,
0.02035510540008545,
-0.1743757426738739,
0.7408967018127441,
0.06628523021936417,
0.07324205338954926... |
https://github.com/huggingface/datasets/issues/6697 | Unable to Load Dataset in Kaggle | FWIW, I run `load_dataset("llm-blender/mix-instruct")` and it ran successfully.
Can you clear your cache and try again?
### Environment Info
- `datasets` version: 2.17.0
- Platform: Linux-6.2.6-76060206-generic-x86_64-with-glibc2.35
- Python version: 3.9.13
- `huggingface_hub` version: 0.20.3
- PyArrow ver... | ### 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... | 46 | Unable to Load Dataset in Kaggle
### 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 ... | [
-0.4405532479286194,
-0.4754101037979126,
-0.08109492063522339,
0.3323727250099182,
0.3103630542755127,
0.005510874092578888,
0.38063845038414,
0.2692002058029175,
0.04515639320015907,
0.054114557802677155,
-0.21589186787605286,
0.7469200491905212,
-0.21449705958366394,
0.36645469069480896... |
https://github.com/huggingface/datasets/issues/6697 | Unable to Load Dataset in Kaggle | It is working on the Kaggle GPU instance but gives this same error when running on the CPU instance. Still to run it on Kaggle you require to install the latest versions of datasets and transformers. | ### 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... | 36 | Unable to Load Dataset in Kaggle
### 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 ... | [
-0.4405532479286194,
-0.4754101037979126,
-0.08109492063522339,
0.3323727250099182,
0.3103630542755127,
0.005510874092578888,
0.38063845038414,
0.2692002058029175,
0.04515639320015907,
0.054114557802677155,
-0.21589186787605286,
0.7469200491905212,
-0.21449705958366394,
0.36645469069480896... |
https://github.com/huggingface/datasets/issues/6697 | Unable to Load Dataset in Kaggle | This error means that `fsspec>=2023.12.0` is installed, which is incompatible with the current releases (the next `datasets` release will be the first to support it). In the meantime, downgrading `fsspec` (`pip install fsspec<=2023.12.0`) should fix the issue. | ### 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... | 37 | Unable to Load Dataset in Kaggle
### 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 ... | [
-0.4405532479286194,
-0.4754101037979126,
-0.08109492063522339,
0.3323727250099182,
0.3103630542755127,
0.005510874092578888,
0.38063845038414,
0.2692002058029175,
0.04515639320015907,
0.054114557802677155,
-0.21589186787605286,
0.7469200491905212,
-0.21449705958366394,
0.36645469069480896... |
https://github.com/huggingface/datasets/issues/6695 | Support JSON file with an array of strings | 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`, but not... | Support loading a dataset from a JSON file with an array of strings.
See: https://huggingface.co/datasets/CausalLM/Refined-Anime-Text/discussions/1 | 58 | Support JSON file with an array of strings
Support loading a dataset from a JSON file with an array of strings.
See: https://huggingface.co/datasets/CausalLM/Refined-Anime-Text/discussions/1
https://huggingface.co/datasets/CausalLM/Refined-Anime-Text/discussions/1 has been fixed, but how can we check if there ar... | [
-0.016330234706401825,
0.19395676255226135,
-0.15732192993164062,
0.5028485655784607,
-0.06712311506271362,
-0.03483910113573074,
0.05243315547704697,
0.40654894709587097,
0.29522019624710083,
0.1648133248090744,
0.2978244423866272,
0.0005004974082112312,
-0.2381720393896103,
-0.0227564312... |
https://github.com/huggingface/datasets/issues/6691 | load_dataset() does not support tsv | Hi @dipsivenkatesh,
Please 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.
See the list of CSV config parameters in our docs: https://huggingface.co/docs/datasets/package_reference/loadin... | ### 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... | 40 | load_dataset() does not support tsv
### 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... | [
-0.33400267362594604,
-0.506096601486206,
-0.051987357437610626,
0.237404927611351,
0.48021453619003296,
0.10255669802427292,
0.28380081057548523,
0.38109928369522095,
0.5411458015441895,
0.2551250457763672,
-0.32432228326797485,
0.27185848355293274,
-0.06290659308433533,
0.759575247764587... |
https://github.com/huggingface/datasets/issues/6689 | .load_dataset() method defaults to zstandard | 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
That's why it asks for zstandard to be installed.
Though I'm intrigued that you manage to load the dataset without zstandard installed. Maybe `pyarrow` ... | ### 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 ... | 57 | .load_dataset() method defaults to zstandard
### 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 whi... | [
-0.00927412137389183,
-0.238714337348938,
0.07676541805267334,
0.37975311279296875,
0.293429434299469,
0.010293431580066681,
0.13272809982299805,
0.09687069058418274,
0.36530211567878723,
0.055215366184711456,
-0.17164713144302368,
0.2841671407222748,
0.24697230756282806,
0.303983718156814... |
https://github.com/huggingface/datasets/issues/6689 | .load_dataset() method defaults to zstandard | > 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
>
> That's why it asks for zstandard to be installed.
>
> Though I'm intrigued that you manage to load the dataset without zstandard installed. Maybe ... | ### 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 ... | 204 | .load_dataset() method defaults to zstandard
### 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 whi... | [
-0.00927412137389183,
-0.238714337348938,
0.07676541805267334,
0.37975311279296875,
0.293429434299469,
0.010293431580066681,
0.13272809982299805,
0.09687069058418274,
0.36530211567878723,
0.055215366184711456,
-0.17164713144302368,
0.2841671407222748,
0.24697230756282806,
0.303983718156814... |
https://github.com/huggingface/datasets/issues/6689 | .load_dataset() method defaults to zstandard | The `ZstdExtractor` has been added 3 years ago and we haven't touched it since then. Same for the JSON loader.
`zstandard` is required as soon as you try to load a file with the `.zstd` extension or if a file starts with the Zstandard magic number `b"\x28\xb5\x2f\xfd"` (used to recognize Zstandard files).
Note th... | ### 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 ... | 84 | .load_dataset() method defaults to zstandard
### 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 whi... | [
-0.00927412137389183,
-0.238714337348938,
0.07676541805267334,
0.37975311279296875,
0.293429434299469,
0.010293431580066681,
0.13272809982299805,
0.09687069058418274,
0.36530211567878723,
0.055215366184711456,
-0.17164713144302368,
0.2841671407222748,
0.24697230756282806,
0.303983718156814... |
https://github.com/huggingface/datasets/issues/6689 | .load_dataset() method defaults to zstandard | Understood, thank you for clarifying that for me.
I'll look into how best to collate my stack of batches w/o creating duplicate arrow tables for each one. | ### 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 ... | 27 | .load_dataset() method defaults to zstandard
### 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 whi... | [
-0.00927412137389183,
-0.238714337348938,
0.07676541805267334,
0.37975311279296875,
0.293429434299469,
0.010293431580066681,
0.13272809982299805,
0.09687069058418274,
0.36530211567878723,
0.055215366184711456,
-0.17164713144302368,
0.2841671407222748,
0.24697230756282806,
0.303983718156814... |
https://github.com/huggingface/datasets/issues/6688 | Tensor type (e.g. from `return_tensors`) ignored in map | Hi, this is expected behavior since all the tensors are converted to Arrow data (the storage type behind a Dataset).
To get pytorch tensors back, you can set the dataset format to "torch":
```python
ds = ds.with_format("torch")
``` | ### 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... | 38 | Tensor type (e.g. from `return_tensors`) ignored in map
### 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_tensor... | [
0.07457982003688812,
-0.4844936728477478,
0.07097327709197998,
0.12269885092973709,
0.2573975920677185,
-0.08247978240251541,
0.5117505788803101,
0.2314727008342743,
0.14415009319782257,
0.09643102437257767,
0.14743316173553467,
0.7844662070274353,
-0.14292484521865845,
-0.2394830733537674... |
https://github.com/huggingface/datasets/issues/6688 | Tensor type (e.g. from `return_tensors`) ignored in map | Thanks. Just one additional question. During the pipeline `<framework> -> arrow -> <framework>`, does `.with_format` zero-copies the tensors or is it a deep copy? And is this behavior framework-dependent?
Thanks again. | ### 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... | 31 | Tensor type (e.g. from `return_tensors`) ignored in map
### 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_tensor... | [
0.07457982003688812,
-0.4844936728477478,
0.07097327709197998,
0.12269885092973709,
0.2573975920677185,
-0.08247978240251541,
0.5117505788803101,
0.2314727008342743,
0.14415009319782257,
0.09643102437257767,
0.14743316173553467,
0.7844662070274353,
-0.14292484521865845,
-0.2394830733537674... |
https://github.com/huggingface/datasets/issues/6688 | Tensor type (e.g. from `return_tensors`) ignored in map | We do zero-copy Arrow <-> NumPy <-> PyTorch when the output dtype matches the original dtype, but for other frameworks it depends. For example JAX doesn't allow zero-copy NumPy -> JAX at all IIRC.
Currently tokenized data are formatted using a copy though, since tokens are stored as int32 and returned as int64 torch... | ### 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... | 55 | Tensor type (e.g. from `return_tensors`) ignored in map
### 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_tensor... | [
0.07457982003688812,
-0.4844936728477478,
0.07097327709197998,
0.12269885092973709,
0.2573975920677185,
-0.08247978240251541,
0.5117505788803101,
0.2314727008342743,
0.14415009319782257,
0.09643102437257767,
0.14743316173553467,
0.7844662070274353,
-0.14292484521865845,
-0.2394830733537674... |
https://github.com/huggingface/datasets/issues/6686 | Question: Is there any way for uploading a large image dataset? | ```
import pandas as pd
from datasets import Dataset, Image
# Read the CSV file
data = pd.read_csv("XXXX.csv")
# Create a Hugging Face Dataset
dataset = Dataset.from_pandas(data)
dataset = dataset.cast_column("file_name", Image())
# Upload to Hugging Face Hub (make sure authentication is set up)
dataset.... | 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... | 55 | Question: Is there any way for uploading a large image dataset?
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())... | [
-0.30317816138267517,
-0.5200185775756836,
-0.09864859282970428,
0.12989917397499084,
0.41519278287887573,
0.2579435706138611,
0.026710357517004013,
0.2552163004875183,
0.15532389283180237,
0.16050533950328827,
0.0117910485714674,
-0.06465314328670502,
-0.13801905512809753,
0.3248668611049... |
https://github.com/huggingface/datasets/issues/6676 | Can't Read List of JSON Files Properly | 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? | ### 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... | 45 | Can't Read List of JSON Files Properly
### 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: Inva... | [
0.03813985362648964,
0.0007696673274040222,
-0.11846737563610077,
0.6230337619781494,
0.3841797113418579,
0.25135451555252075,
0.2977439761161804,
0.4410387873649597,
0.23848366737365723,
0.01624753326177597,
0.08085089176893234,
0.3879675567150116,
-0.1803799718618393,
-0.1933050304651260... |
https://github.com/huggingface/datasets/issues/6676 | Can't Read List of JSON Files Properly | I don't think we should filter for `*.json` as this might silently remove desired files for many users. And this could be a major breaking change for many organizations.
You could do the globbing yourself which would keep the code clean.
```python
from glob import glob
Dataset.from_json(glob('folder/*.json'))... | ### 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... | 48 | Can't Read List of JSON Files Properly
### 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: Inva... | [
0.01965172216296196,
0.05599711835384369,
-0.10177452862262726,
0.5831318497657776,
0.36756670475006104,
0.2667090892791748,
0.313699871301651,
0.3783991038799286,
0.2648657262325287,
-0.0022713690996170044,
0.024840855970978737,
0.45106393098831177,
-0.14374160766601562,
-0.18902204930782... |
https://github.com/huggingface/datasets/issues/6676 | Can't Read List of JSON Files Properly | I think it should still be fine to log a warning message in case the folder contains different files? I also don't get why would this be breaking as in the end using `from_FILE_TYPE` should be able to read a specific file type only. Maybe some other use case I am not aware of but since globbing or this case not mention... | ### 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... | 88 | Can't Read List of JSON Files Properly
### 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: Inva... | [
0.022134538739919662,
-0.03403032571077347,
-0.05151001363992691,
0.6589477062225342,
0.43004441261291504,
0.17779582738876343,
0.3971889317035675,
0.27819061279296875,
0.16484543681144714,
0.0011704862117767334,
0.08794983476400375,
0.3356815278530121,
-0.1461491733789444,
-0.135983869433... |
https://github.com/huggingface/datasets/issues/6675 | Allow image model (color conversion) to be specified as part of datasets Image() decode | It would be a great addition indeed :)
This 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`
EDIT: adding an example of how it can be used:
```python
ds = ds.cast_column("image", ... | ### 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... | 54 | Allow image model (color conversion) to be specified as part of datasets Image() decode
### 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.I... | [
-0.40563324093818665,
-0.05554240942001343,
-0.09809298813343048,
-0.035368792712688446,
0.34827274084091187,
0.03843323141336441,
0.33073753118515015,
0.2842899262905121,
-0.06608159840106964,
0.05909542366862297,
-0.21925726532936096,
0.6420990824699402,
-0.23286302387714386,
0.042928218... |
https://github.com/huggingface/datasets/issues/6670 | ValueError | Hi @prashanth19bolukonda,
You have to restart the notebook runtime session after the installation of `datasets`.
Duplicate of:
- #5923 | ### 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... | 19 | ValueError
### 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
1... | [
-0.3848663568496704,
-0.19277885556221008,
-0.11501643061637878,
0.1942903995513916,
0.17435768246650696,
-0.1505235731601715,
0.5283539891242981,
0.40181246399879456,
-0.15396252274513245,
0.3468736708164215,
-0.10271748155355453,
0.6133958101272583,
-0.087995246052742,
0.0860302448272705... |
https://github.com/huggingface/datasets/issues/6670 | ValueError | Thank you soo much
On Fri, Feb 16, 2024 at 8:14 PM Albert Villanova del Moral <
***@***.***> wrote:
> Closed #6670 <https://github.com/huggingface/datasets/issues/6670> as
> completed.
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/6670#event-118297... | ### 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... | 61 | ValueError
### 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
1... | [
-0.3848663568496704,
-0.19277885556221008,
-0.11501643061637878,
0.1942903995513916,
0.17435768246650696,
-0.1505235731601715,
0.5283539891242981,
0.40181246399879456,
-0.15396252274513245,
0.3468736708164215,
-0.10271748155355453,
0.6133958101272583,
-0.087995246052742,
0.0860302448272705... |
https://github.com/huggingface/datasets/issues/6669 | attribute error when writing trainer.train() | 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. | ### 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... | 25 | attribute error when writing trainer.train()
### 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.tr... | [
-0.2044898271560669,
-0.19255059957504272,
-0.10335686802864075,
0.2574501633644104,
0.34993070363998413,
-0.12036560475826263,
0.45764124393463135,
0.38584330677986145,
-0.28682941198349,
0.34465932846069336,
-0.02690308913588524,
0.2977946102619171,
-0.2215697169303894,
0.030496003106236... |
https://github.com/huggingface/datasets/issues/6669 | attribute error when writing trainer.train() | Thank you for your response
On Thu, Feb 29, 2024 at 10:55 PM Mario Šaško ***@***.***>
wrote:
> Closed #6669 <https://github.com/huggingface/datasets/issues/6669> as
> completed.
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/6669#event-11969246964>,... | ### 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... | 60 | attribute error when writing trainer.train()
### 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.tr... | [
-0.2044898271560669,
-0.19255059957504272,
-0.10335686802864075,
0.2574501633644104,
0.34993070363998413,
-0.12036560475826263,
0.45764124393463135,
0.38584330677986145,
-0.28682941198349,
0.34465932846069336,
-0.02690308913588524,
0.2977946102619171,
-0.2215697169303894,
0.030496003106236... |
https://github.com/huggingface/datasets/issues/6663 | `write_examples_on_file` and `write_batch` are broken in `ArrowWriter` | Thanks for reporting! I've left some comments on the PR on how to fix this recent change rather than reverting it. | ### 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... | 21 | `write_examples_on_file` and `write_batch` are broken in `ArrowWriter`
### 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 alig... | [
-0.19194243848323822,
-0.14115983247756958,
0.021778058260679245,
0.05745473876595497,
0.16321302950382233,
-0.17764797806739807,
0.47671452164649963,
0.05562272667884827,
0.11575300991535187,
-0.07085917890071869,
0.2996772527694702,
0.26358485221862793,
0.020313803106546402,
0.1676015406... |
https://github.com/huggingface/datasets/issues/6663 | `write_examples_on_file` and `write_batch` are broken in `ArrowWriter` | > Thanks for reporting! I've left some comments on the PR on how to fix this recent change rather than reverting it.
I feel that'd be good, but it'd be great to release a hotfix ASAP (a revert is a fast thing to do) so people can continue using this library and then focus on still applying the improvement. | ### 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... | 59 | `write_examples_on_file` and `write_batch` are broken in `ArrowWriter`
### 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 alig... | [
-0.20024427771568298,
-0.16803567111492157,
0.040487680584192276,
0.07392001152038574,
0.11709805577993393,
-0.1638069897890091,
0.40580639243125916,
0.07255637645721436,
0.09887109696865082,
-0.09786984324455261,
0.23623615503311157,
0.27673956751823425,
-0.013462056405842304,
0.206696167... |
https://github.com/huggingface/datasets/issues/6661 | Import error on Google Colab | 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 the `imp... | ### 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... | 65 | Import error on Google Colab
### 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 -... | [
-0.38111141324043274,
0.0420638769865036,
0.001217380166053772,
0.24291452765464783,
0.041686780750751495,
-0.22087806463241577,
0.31871384382247925,
0.08693042397499084,
-0.023115523159503937,
0.19101077318191528,
-0.2629665732383728,
0.40718820691108704,
-0.10318438708782196,
0.379488945... |
https://github.com/huggingface/datasets/issues/6661 | Import error on Google Colab | One possible cause might be the one pointed out by @mariosasko above, and you get the following warning on Colab:
```
WARNING: The following packages were previously imported in this runtime:
[pyarrow]
You must restart the runtime in order to use newly installed versions.
```
On the other hand, if the old ver... | ### 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... | 80 | Import error on Google Colab
### 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 -... | [
-0.35336968302726746,
0.0966772586107254,
-0.01228055078536272,
0.18350905179977417,
0.10514076054096222,
-0.2476670742034912,
0.37069839239120483,
0.121758833527565,
-0.03707277774810791,
0.18580856919288635,
-0.25596967339515686,
0.39653581380844116,
-0.08848261088132858,
0.3617172539234... |
https://github.com/huggingface/datasets/issues/6661 | Import error on Google Colab | Google Colab now pre-installs PyArrow 14.0.2, making this issue unlikely to happen. So, I'm unpinning it. | ### 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... | 16 | Import error on Google Colab
### 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 -... | [
-0.3349364399909973,
0.14176785945892334,
-0.019081836566329002,
0.2358921468257904,
0.06487749516963959,
-0.23882025480270386,
0.3130694329738617,
0.13885673880577087,
-0.17129455506801605,
0.16541755199432373,
-0.25119778513908386,
0.28138142824172974,
-0.1457708179950714,
0.416282594203... |
https://github.com/huggingface/datasets/issues/6657 | Release not pushed to conda channel | I can't fix this issue because I do not appear as a team member of the huggingface datasets project: https://anaconda.org/huggingface/datasets
@lhoestq could you please add `datasets` team members to the corresponding Anaconda project?
Once this done, I could recreate and update the Anaconda token, as mentioned a... | ### 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 ?
,
> TypeError: Couldn't cast array of type timestamp[us] to null
Yet when I split it into 1k lines, files, load_dataset works fine!
https://github.com/huggingface/course/issues/692
| ### Describe the bug
When trying to load big json files from a local directory, `load_dataset` throws the following error
```
Traceback (most recent call last):
File "/miniconda3/envs/conda-env/lib/python3.10/site-packages/datasets/builder.py", line 1989, in _prepare_split_single
writer.write_table(table)
... | 35 | Error when loading a big local json file
### Describe the bug
When trying to load big json files from a local directory, `load_dataset` throws the following error
```
Traceback (most recent call last):
File "/miniconda3/envs/conda-env/lib/python3.10/site-packages/datasets/builder.py", line 1989, in _prepare_s... | [
-0.36725160479545593,
0.2126547396183014,
0.029540881514549255,
0.5042908191680908,
0.17106693983078003,
-0.00926315039396286,
0.2477896809577942,
0.49651312828063965,
-0.20996254682540894,
0.18599705398082733,
0.1524522453546524,
0.30672019720077515,
0.06911347061395645,
-0.08753183484077... |
https://github.com/huggingface/datasets/issues/6655 | Cannot load the dataset go_emotions | Thanks for reporting, @arame.
I 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:
```shell
pip install -U transformers
```
On the other hand, I am wondering: does it make sen... | ### 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... | 90 | Cannot load the dataset go_emotions
### 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](vsc... | [
-0.4397527873516083,
-0.06399113684892654,
-0.07161179184913635,
0.5826753377914429,
0.6256293654441833,
0.07131221145391464,
0.06615027040243149,
0.13112905621528625,
0.05428558215498924,
0.03706338256597519,
-0.1652708351612091,
0.14455163478851318,
-0.08863478899002075,
0.18902641534805... |
https://github.com/huggingface/datasets/issues/6655 | Cannot load the dataset go_emotions | The linked code lazily registers a custom reducer for `transformers.PreTrainedTokenizerBase` only if `transformers` have already been imported (imports are expensive, so we check `sys.modules`).
However, the logic does not account for `transformers<3`, so we should add a version check to fix that. | ### 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... | 42 | Cannot load the dataset go_emotions
### 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](vsc... | [
-0.4397527873516083,
-0.06399113684892654,
-0.07161179184913635,
0.5826753377914429,
0.6256293654441833,
0.07131221145391464,
0.06615027040243149,
0.13112905621528625,
0.05428558215498924,
0.03706338256597519,
-0.1652708351612091,
0.14455163478851318,
-0.08863478899002075,
0.18902641534805... |
https://github.com/huggingface/datasets/issues/6655 | Cannot load the dataset go_emotions | > The linked code lazily registers a custom reducer for `transformers.PreTrainedTokenizerBase` only if `transformers` have already been imported (imports are expensive, so we check `sys.modules`).
>
> However, the logic does not account for `transformers<3`, so we should add a version check to fix that.
Thank you... | ### 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... | 80 | Cannot load the dataset go_emotions
### 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](vsc... | [
-0.4397527873516083,
-0.06399113684892654,
-0.07161179184913635,
0.5826753377914429,
0.6256293654441833,
0.07131221145391464,
0.06615027040243149,
0.13112905621528625,
0.05428558215498924,
0.03706338256597519,
-0.1652708351612091,
0.14455163478851318,
-0.08863478899002075,
0.18902641534805... |
https://github.com/huggingface/datasets/issues/6654 | Batched dataset map throws exception that cannot cast fixed length array to Sequence | Hi ! This issue has been fixed by https://github.com/huggingface/datasets/pull/6283
Can you try again with the new release 2.17.0 ?
```
pip install -U datasets
```
| ### Describe the bug
I encountered a TypeError when batch processing a dataset with Sequence features in datasets package version 2.16.1. The error arises from a mismatch in handling fixed-size list arrays during the map function execution. Debugging pinpoints the issue to an if-statement in datasets/table.py, line 20... | 25 | Batched dataset map throws exception that cannot cast fixed length array to Sequence
### Describe the bug
I encountered a TypeError when batch processing a dataset with Sequence features in datasets package version 2.16.1. The error arises from a mismatch in handling fixed-size list arrays during the map function ex... | [
-0.24830293655395508,
-0.1264929473400116,
-0.0885014683008194,
0.11196708679199219,
0.12530845403671265,
0.05444198101758957,
0.4358169734477997,
0.2685173451900482,
0.2574767470359802,
-0.1156468391418457,
0.4247094988822937,
0.35906529426574707,
-0.28999531269073486,
-0.0033259037882089... |
https://github.com/huggingface/datasets/issues/6650 | AttributeError: 'InMemoryTable' object has no attribute '_batches' | Hi! Does running the following code also return the same error on your machine?
```python
import copy
import pyarrow as pa
from datasets.table import InMemoryTable
copy.deepcopy(InMemoryTable(pa.table({"a": [1, 2, 3], "b": ["foo", "bar", "foobar"]})))
``` | ### Describe the bug
```
Traceback (most recent call last):
File "finetune.py", line 103, in <module>
main(args)
File "finetune.py", line 45, in main
data_tokenized = data.map(partial(funcs.tokenize_function, tokenizer,
File "/opt/conda/envs/ptca/lib/python3.8/site-packages/datasets/dataset_dict.... | 34 | AttributeError: 'InMemoryTable' object has no attribute '_batches'
### Describe the bug
```
Traceback (most recent call last):
File "finetune.py", line 103, in <module>
main(args)
File "finetune.py", line 45, in main
data_tokenized = data.map(partial(funcs.tokenize_function, tokenizer,
File "/o... | [
-0.29193076491355896,
-0.05730609595775604,
-0.14919856190681458,
0.2503703832626343,
0.3699331283569336,
0.0331215038895607,
0.23557183146476746,
0.3699260950088501,
-0.3387131690979004,
0.19476646184921265,
-0.18983161449432373,
0.37972354888916016,
-0.08334936201572418,
0.12550480663776... |
https://github.com/huggingface/datasets/issues/6650 | AttributeError: 'InMemoryTable' object has no attribute '_batches' | No, it doesn't, it runs fine. But what's really strange is that the error just went away after I reran the data prep script for conversion from csv to a datasets object. I realize that's not very helpful since the problem isn't reproducible. | ### Describe the bug
```
Traceback (most recent call last):
File "finetune.py", line 103, in <module>
main(args)
File "finetune.py", line 45, in main
data_tokenized = data.map(partial(funcs.tokenize_function, tokenizer,
File "/opt/conda/envs/ptca/lib/python3.8/site-packages/datasets/dataset_dict.... | 43 | AttributeError: 'InMemoryTable' object has no attribute '_batches'
### Describe the bug
```
Traceback (most recent call last):
File "finetune.py", line 103, in <module>
main(args)
File "finetune.py", line 45, in main
data_tokenized = data.map(partial(funcs.tokenize_function, tokenizer,
File "/o... | [
-0.29193076491355896,
-0.05730609595775604,
-0.14919856190681458,
0.2503703832626343,
0.3699331283569336,
0.0331215038895607,
0.23557183146476746,
0.3699260950088501,
-0.3387131690979004,
0.19476646184921265,
-0.18983161449432373,
0.37972354888916016,
-0.08334936201572418,
0.12550480663776... |
https://github.com/huggingface/datasets/issues/6644 | Support fsspec 2023.12 | The pinned fsspec version range dependency conflict has been affecting several of our users in https://github.com/iterative/dvc. I've opened an initial PR that I think should resolve the glob behavior changes with using datasets + the latest fsspec release.
Please let us know if there's any other fsspec related beha... | Support fsspec 2023.12 by handling previous and new glob behavior. | 84 | Support fsspec 2023.12
Support fsspec 2023.12 by handling previous and new glob behavior.
The pinned fsspec version range dependency conflict has been affecting several of our users in https://github.com/iterative/dvc. I've opened an initial PR that I think should resolve the glob behavior changes with using datase... | [
-0.460008442401886,
0.1365230679512024,
-0.1425005942583084,
-0.03896232694387436,
-0.06342202425003052,
-0.434259295463562,
0.09270447492599487,
0.2794745862483978,
-0.22806322574615479,
0.2362087070941925,
0.16282853484153748,
0.18400196731090546,
-0.131169393658638,
0.8971191048622131,
... |
https://github.com/huggingface/datasets/issues/6643 | Faiss GPU index cannot be serialised when passed to trainer | Hi Quentin, not sure how that solves the problem number 1. I am trying to pass on a dataset with a faiss gpu for training to the standard trainer but getting this serialisation error. What is a workaround this? I do not want to remove the faiss index, as I would want to use it to create batches of retrieved samples fro... | ### Describe the bug
I am working on a retrieval project and encountering I have encountered two issues in the hugging face faiss integration:
1. I am trying to pass in a dataset with a faiss index to the Huggingface trainer. The code works for a cpu faiss index, but doesn't for a gpu one, getting error:
```
... | 70 | Faiss GPU index cannot be serialised when passed to trainer
### Describe the bug
I am working on a retrieval project and encountering I have encountered two issues in the hugging face faiss integration:
1. I am trying to pass in a dataset with a faiss index to the Huggingface trainer. The code works for a cpu fa... | [
0.33449989557266235,
-0.47561341524124146,
0.08602184057235718,
0.46754151582717896,
0.31379324197769165,
0.012356095016002655,
0.38386812806129456,
0.265895813703537,
0.25768259167671204,
0.3435285985469818,
-0.10524050146341324,
0.07955443859100342,
0.24386811256408691,
0.242916926741600... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.