html_url stringlengths 51 51 | title stringlengths 9 280 | comments stringlengths 63 24.7k | body stringlengths 51 58.6k | comments length int64 16 1.45k | text stringlengths 186 59.1k | embeddings listlengths 768 768 |
|---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/7214 | Formatted map + with_format(None) changes array dtype for iterable datasets | possibly due to this logic:
```python
def _arrow_array_to_numpy(self, pa_array: pa.Array) -> np.ndarray:
if isinstance(pa_array, pa.ChunkedArray):
if isinstance(pa_array.type, _ArrayXDExtensionType):
# don't call to_pylist() to preserve dtype of the fixed-size array
... | ### Describe the bug
When applying with_format -> map -> with_format(None), array dtypes seem to change, even if features are passed
### Steps to reproduce the bug
```python
features=Features(**{"array0": Array3D((None, 10, 10), dtype="float32")})
dataset = Dataset.from_dict({f"array0": [np.zeros((100,10,10... | 109 | Formatted map + with_format(None) changes array dtype for iterable datasets
### Describe the bug
When applying with_format -> map -> with_format(None), array dtypes seem to change, even if features are passed
### Steps to reproduce the bug
```python
features=Features(**{"array0": Array3D((None, 10, 10), dtyp... | [
0.0981326475739479,
-0.4397047460079193,
-0.04067501425743103,
0.07035092264413834,
0.46244239807128906,
-0.06503685563802719,
0.5293607115745544,
0.31564098596572876,
-0.038491833955049515,
-0.021876713261008263,
-0.07091649621725082,
0.7443006634712219,
-0.062373194843530655,
0.084774173... |
https://github.com/huggingface/datasets/issues/5012 | Force JSON format regardless of file naming on S3 | Hi ! Support for URIs like `s3://...` is not implemented yet in `data_files=`. You can use the HTTP URL instead if your data is public in the meantime | I have a file on S3 created by Data Version Control, it looks like `s3://dvc/ac/badff5b134382a0f25248f1b45d7b2` but contains a json file. If I run
```python
dataset = load_dataset(
"json",
data_files='s3://dvc/ac/badff5b134382a0f25248f1b45d7b2'
)
```
It gives me
```
InvalidSchema: No connection adap... | 28 | Force JSON format regardless of file naming on S3
I have a file on S3 created by Data Version Control, it looks like `s3://dvc/ac/badff5b134382a0f25248f1b45d7b2` but contains a json file. If I run
```python
dataset = load_dataset(
"json",
data_files='s3://dvc/ac/badff5b134382a0f25248f1b45d7b2'
)
```
It... | [
0.2356240600347519,
-0.03260774910449982,
0.013763888739049435,
-0.013254550285637379,
0.17930810153484344,
-0.17578455805778503,
0.1975647509098053,
0.2532143294811249,
0.08307377994060516,
0.07370838522911072,
-0.01387035008519888,
0.5979510545730591,
-0.2102200835943222,
0.4327723383903... |
https://github.com/huggingface/datasets/issues/5012 | Force JSON format regardless of file naming on S3 | Hi,
I want to make sure I understand this response. I have a set of files on S3 that are private for security reasons. Because they are not public files I cannot read those files (many are parquet) into my hf notebooks in Kaggle? That can't be correct, can it? | I have a file on S3 created by Data Version Control, it looks like `s3://dvc/ac/badff5b134382a0f25248f1b45d7b2` but contains a json file. If I run
```python
dataset = load_dataset(
"json",
data_files='s3://dvc/ac/badff5b134382a0f25248f1b45d7b2'
)
```
It gives me
```
InvalidSchema: No connection adap... | 50 | Force JSON format regardless of file naming on S3
I have a file on S3 created by Data Version Control, it looks like `s3://dvc/ac/badff5b134382a0f25248f1b45d7b2` but contains a json file. If I run
```python
dataset = load_dataset(
"json",
data_files='s3://dvc/ac/badff5b134382a0f25248f1b45d7b2'
)
```
It... | [
0.37514787912368774,
-0.22132404148578644,
0.04070267453789711,
0.038499511778354645,
0.09746859967708588,
-0.1697310209274292,
0.2889716625213623,
0.15318523347377777,
0.16126878559589386,
0.06703722476959229,
-0.12092676758766174,
0.6312375664710999,
-0.10404203087091446,
0.5032793879508... |
https://github.com/huggingface/datasets/issues/5012 | Force JSON format regardless of file naming on S3 | Hi ! There is a discussion at https://github.com/huggingface/datasets/issues/5281
Using the latest `datasets` 2.11 you can try passing fsspec URLs to private buckets to `data_files` in `load_dataset()`. Though this is still experimental and undocumented, so feedback is welcome. You may not have the best experience t... | I have a file on S3 created by Data Version Control, it looks like `s3://dvc/ac/badff5b134382a0f25248f1b45d7b2` but contains a json file. If I run
```python
dataset = load_dataset(
"json",
data_files='s3://dvc/ac/badff5b134382a0f25248f1b45d7b2'
)
```
It gives me
```
InvalidSchema: No connection adap... | 57 | Force JSON format regardless of file naming on S3
I have a file on S3 created by Data Version Control, it looks like `s3://dvc/ac/badff5b134382a0f25248f1b45d7b2` but contains a json file. If I run
```python
dataset = load_dataset(
"json",
data_files='s3://dvc/ac/badff5b134382a0f25248f1b45d7b2'
)
```
It... | [
0.172310933470726,
0.02975805290043354,
0.04746237024664879,
0.03164856880903244,
0.1887907087802887,
-0.14227062463760376,
0.2048283815383911,
0.19066572189331055,
0.11577461659908295,
0.06750994920730591,
-0.046311378479003906,
0.5999645590782166,
-0.159758523106575,
0.5780045390129089,
... |
https://github.com/huggingface/datasets/issues/6824 | Winogrande does not seem to be compatible with datasets version of 1.18.0 | Hi ! Do you mean 2.18 ? Can you try to update `fsspec` and `huggingface_hub` ?
```
pip install -U fsspec huggingface_hub
``` | ### Describe the bug
I get the following error when simply running `load_dataset('winogrande','winogrande_xl')`.
I do not have such an issue in the 1.17.0 version.
```Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.10/dist-packages/datasets/load.py", line... | 23 | Winogrande does not seem to be compatible with datasets version of 1.18.0
### Describe the bug
I get the following error when simply running `load_dataset('winogrande','winogrande_xl')`.
I do not have such an issue in the 1.17.0 version.
```Traceback (most recent call last):
File "<stdin>", line 1, in <module... | [
-0.7672982811927795,
0.122221440076828,
0.05378489941358566,
0.08904314786195755,
0.1577230840921402,
0.1300620138645172,
0.45174574851989746,
0.3389912545681,
-0.04396594688296318,
0.04765084758400917,
0.1569659560918808,
0.504392147064209,
-0.08829980343580246,
0.14867417514324188,
-0.... |
https://github.com/huggingface/datasets/issues/5950 | Support for data with instance-wise dictionary as features | Hi ! We use the Arrow columnar format under the hood, which doesn't support such dictionaries: each field must have a fixed type and exist in each sample.
Instead you can restructure your data like
```
{
"index": 0,
"keys": ["2 * x + y >= 3"],
"values": [["2 * x + y >= 3", "4 * x + 2 * y >= 6"]],
... | ### Feature request
I notice that when loading data instances with feature type of python dictionary, the dictionary keys would be broadcast so that every instance has the same set of keys. Please see an example in the Motivation section.
It is possible to avoid this behavior, i.e., load dictionary features as it i... | 87 | Support for data with instance-wise dictionary as features
### Feature request
I notice that when loading data instances with feature type of python dictionary, the dictionary keys would be broadcast so that every instance has the same set of keys. Please see an example in the Motivation section.
It is possible to ... | [
0.19504183530807495,
-0.34095364809036255,
0.0024531828239560127,
0.2926228940486908,
0.2256862372159958,
-0.06849905848503113,
0.2951245605945587,
0.02916012331843376,
0.14267385005950928,
0.20322425663471222,
0.2179425060749054,
0.4819653034210205,
-0.38490477204322815,
0.755951702594757... |
https://github.com/huggingface/datasets/issues/5950 | Support for data with instance-wise dictionary as features | Maybe there could be some type of automated conversion from dicts to tuples. I am also trying to wrangle a json-based dataset into `datasets` and it's awful because of this issue. | ### Feature request
I notice that when loading data instances with feature type of python dictionary, the dictionary keys would be broadcast so that every instance has the same set of keys. Please see an example in the Motivation section.
It is possible to avoid this behavior, i.e., load dictionary features as it i... | 31 | Support for data with instance-wise dictionary as features
### Feature request
I notice that when loading data instances with feature type of python dictionary, the dictionary keys would be broadcast so that every instance has the same set of keys. Please see an example in the Motivation section.
It is possible to ... | [
0.19504183530807495,
-0.34095364809036255,
0.0024531828239560127,
0.2926228940486908,
0.2256862372159958,
-0.06849905848503113,
0.2951245605945587,
0.02916012331843376,
0.14267385005950928,
0.20322425663471222,
0.2179425060749054,
0.4819653034210205,
-0.38490477204322815,
0.755951702594757... |
https://github.com/huggingface/datasets/issues/5950 | Support for data with instance-wise dictionary as features | Alternatively we can maybe support the [Json extension type](https://arrow.apache.org/docs/python/generated/pyarrow.JsonType.html#pyarrow.JsonType) in `pyarrow` ?
btw `datasets` is open to contributions on this subject if you'd like to take a look | ### Feature request
I notice that when loading data instances with feature type of python dictionary, the dictionary keys would be broadcast so that every instance has the same set of keys. Please see an example in the Motivation section.
It is possible to avoid this behavior, i.e., load dictionary features as it i... | 28 | Support for data with instance-wise dictionary as features
### Feature request
I notice that when loading data instances with feature type of python dictionary, the dictionary keys would be broadcast so that every instance has the same set of keys. Please see an example in the Motivation section.
It is possible to ... | [
0.19504183530807495,
-0.34095364809036255,
0.0024531828239560127,
0.2926228940486908,
0.2256862372159958,
-0.06849905848503113,
0.2951245605945587,
0.02916012331843376,
0.14267385005950928,
0.20322425663471222,
0.2179425060749054,
0.4819653034210205,
-0.38490477204322815,
0.755951702594757... |
https://github.com/huggingface/datasets/issues/5950 | Support for data with instance-wise dictionary as features | Hmm, I'll think about this a bit.
https://arrow.apache.org/docs/python/json.html
> Nested JSON objects convert to a struct type, and inference proceeds recursively on the JSON objects’ values.
https://arrow.apache.org/docs/dev/python/generated/pyarrow.JsonType.html
Hmm... AFAICT from reading the docs, the `JsonType... | ### Feature request
I notice that when loading data instances with feature type of python dictionary, the dictionary keys would be broadcast so that every instance has the same set of keys. Please see an example in the Motivation section.
It is possible to avoid this behavior, i.e., load dictionary features as it i... | 171 | Support for data with instance-wise dictionary as features
### Feature request
I notice that when loading data instances with feature type of python dictionary, the dictionary keys would be broadcast so that every instance has the same set of keys. Please see an example in the Motivation section.
It is possible to ... | [
0.19504183530807495,
-0.34095364809036255,
0.0024531828239560127,
0.2926228940486908,
0.2256862372159958,
-0.06849905848503113,
0.2951245605945587,
0.02916012331843376,
0.14267385005950928,
0.20322425663471222,
0.2179425060749054,
0.4819653034210205,
-0.38490477204322815,
0.755951702594757... |
https://github.com/huggingface/datasets/issues/5950 | Support for data with instance-wise dictionary as features | The first option sounds good indeed, and more explicit / flexible.
> but also would remove the nested structure from the arrow schema. Does this matter?
Well I expect some `pyarrow.compute` functions for nested data to not work for JsonType, and maybe exporting to a pandas / polars dataframe can have a few issues. Bu... | ### Feature request
I notice that when loading data instances with feature type of python dictionary, the dictionary keys would be broadcast so that every instance has the same set of keys. Please see an example in the Motivation section.
It is possible to avoid this behavior, i.e., load dictionary features as it i... | 66 | Support for data with instance-wise dictionary as features
### Feature request
I notice that when loading data instances with feature type of python dictionary, the dictionary keys would be broadcast so that every instance has the same set of keys. Please see an example in the Motivation section.
It is possible to ... | [
0.19504183530807495,
-0.34095364809036255,
0.0024531828239560127,
0.2926228940486908,
0.2256862372159958,
-0.06849905848503113,
0.2951245605945587,
0.02916012331843376,
0.14267385005950928,
0.20322425663471222,
0.2179425060749054,
0.4819653034210205,
-0.38490477204322815,
0.755951702594757... |
https://github.com/huggingface/datasets/issues/5950 | Support for data with instance-wise dictionary as features | So this will be harder than I thought. I thought pyarrow would provide a separate type inference function, but it seems like it doesn't. Type inference is wrapped into the conversion/loading functions, which are, of course, failing. | ### Feature request
I notice that when loading data instances with feature type of python dictionary, the dictionary keys would be broadcast so that every instance has the same set of keys. Please see an example in the Motivation section.
It is possible to avoid this behavior, i.e., load dictionary features as it i... | 37 | Support for data with instance-wise dictionary as features
### Feature request
I notice that when loading data instances with feature type of python dictionary, the dictionary keys would be broadcast so that every instance has the same set of keys. Please see an example in the Motivation section.
It is possible to ... | [
0.19504183530807495,
-0.34095364809036255,
0.0024531828239560127,
0.2926228940486908,
0.2256862372159958,
-0.06849905848503113,
0.2951245605945587,
0.02916012331843376,
0.14267385005950928,
0.20322425663471222,
0.2179425060749054,
0.4819653034210205,
-0.38490477204322815,
0.755951702594757... |
https://github.com/huggingface/datasets/issues/5950 | Support for data with instance-wise dictionary as features | Since we use pandas to load the JSON before converting to arrow, maybe we can do some conversion there.
```
In [29]: df = pd.read_json("/tmp/wtf.json")
In [30]: df
Out[30]:
lol
0 [42, []]
In [31]: pa.Table.from_pandas(df)
---------------------------------------------------------------------------
ArrowInva... | ### Feature request
I notice that when loading data instances with feature type of python dictionary, the dictionary keys would be broadcast so that every instance has the same set of keys. Please see an example in the Motivation section.
It is possible to avoid this behavior, i.e., load dictionary features as it i... | 125 | Support for data with instance-wise dictionary as features
### Feature request
I notice that when loading data instances with feature type of python dictionary, the dictionary keys would be broadcast so that every instance has the same set of keys. Please see an example in the Motivation section.
It is possible to ... | [
0.19504183530807495,
-0.34095364809036255,
0.0024531828239560127,
0.2926228940486908,
0.2256862372159958,
-0.06849905848503113,
0.2951245605945587,
0.02916012331843376,
0.14267385005950928,
0.20322425663471222,
0.2179425060749054,
0.4819653034210205,
-0.38490477204322815,
0.755951702594757... |
https://github.com/huggingface/datasets/issues/5950 | Support for data with instance-wise dictionary as features | Makes sense, yes it's maybe the way to go to have it working short term.
Longer term `pyarrow` should handle it though IMO via its JSON reader, have you opened an issue there already by any chance ? | ### Feature request
I notice that when loading data instances with feature type of python dictionary, the dictionary keys would be broadcast so that every instance has the same set of keys. Please see an example in the Motivation section.
It is possible to avoid this behavior, i.e., load dictionary features as it i... | 38 | Support for data with instance-wise dictionary as features
### Feature request
I notice that when loading data instances with feature type of python dictionary, the dictionary keys would be broadcast so that every instance has the same set of keys. Please see an example in the Motivation section.
It is possible to ... | [
0.19504183530807495,
-0.34095364809036255,
0.0024531828239560127,
0.2926228940486908,
0.2256862372159958,
-0.06849905848503113,
0.2951245605945587,
0.02916012331843376,
0.14267385005950928,
0.20322425663471222,
0.2179425060749054,
0.4819653034210205,
-0.38490477204322815,
0.755951702594757... |
https://github.com/huggingface/datasets/issues/5950 | Support for data with instance-wise dictionary as features | > Longer term pyarrow should handle it though IMO via its JSON reader, have you opened an issue there already by any chance ?
I agree that `pyarrow` changes are a better solution long term. I haven't opened any issues yet. Were you thinking:
* To separate the inference function
* Open an issue with an incompatible... | ### Feature request
I notice that when loading data instances with feature type of python dictionary, the dictionary keys would be broadcast so that every instance has the same set of keys. Please see an example in the Motivation section.
It is possible to avoid this behavior, i.e., load dictionary features as it i... | 64 | Support for data with instance-wise dictionary as features
### Feature request
I notice that when loading data instances with feature type of python dictionary, the dictionary keys would be broadcast so that every instance has the same set of keys. Please see an example in the Motivation section.
It is possible to ... | [
0.19504183530807495,
-0.34095364809036255,
0.0024531828239560127,
0.2926228940486908,
0.2256862372159958,
-0.06849905848503113,
0.2951245605945587,
0.02916012331843376,
0.14267385005950928,
0.20322425663471222,
0.2179425060749054,
0.4819653034210205,
-0.38490477204322815,
0.755951702594757... |
https://github.com/huggingface/datasets/issues/5950 | Support for data with instance-wise dictionary as features | I was thinking of seeing what they suggest in case of incompatible JSON, it's also possible that other members of the community have asked for for help / requested such a feature already. But sharing about the inference function idea can be interesting as well | ### Feature request
I notice that when loading data instances with feature type of python dictionary, the dictionary keys would be broadcast so that every instance has the same set of keys. Please see an example in the Motivation section.
It is possible to avoid this behavior, i.e., load dictionary features as it i... | 45 | Support for data with instance-wise dictionary as features
### Feature request
I notice that when loading data instances with feature type of python dictionary, the dictionary keys would be broadcast so that every instance has the same set of keys. Please see an example in the Motivation section.
It is possible to ... | [
0.19504183530807495,
-0.34095364809036255,
0.0024531828239560127,
0.2926228940486908,
0.2256862372159958,
-0.06849905848503113,
0.2951245605945587,
0.02916012331843376,
0.14267385005950928,
0.20322425663471222,
0.2179425060749054,
0.4819653034210205,
-0.38490477204322815,
0.755951702594757... |
https://github.com/huggingface/datasets/issues/5950 | Support for data with instance-wise dictionary as features | Thanks, I will do this and see what they suggest.
On Mon, Apr 7, 2025, 9:18 AM Quentin Lhoest - ***@***.***
***@***.***> wrote:
> I was thinking of seeing what they suggest in case of incompatible JSON,
> it's also possible that other members of the community have asked for for
> help / requested such a featur... | ### Feature request
I notice that when loading data instances with feature type of python dictionary, the dictionary keys would be broadcast so that every instance has the same set of keys. Please see an example in the Motivation section.
It is possible to avoid this behavior, i.e., load dictionary features as it i... | 206 | Support for data with instance-wise dictionary as features
### Feature request
I notice that when loading data instances with feature type of python dictionary, the dictionary keys would be broadcast so that every instance has the same set of keys. Please see an example in the Motivation section.
It is possible to ... | [
0.19504183530807495,
-0.34095364809036255,
0.0024531828239560127,
0.2926228940486908,
0.2256862372159958,
-0.06849905848503113,
0.2951245605945587,
0.02916012331843376,
0.14267385005950928,
0.20322425663471222,
0.2179425060749054,
0.4819653034210205,
-0.38490477204322815,
0.755951702594757... |
https://github.com/huggingface/datasets/issues/4592 | Issue with jalFaizy/detect_chess_pieces when running datasets-cli test | Hi @faizankshaikh
Please note that we have recently launched the Community feature, specifically targeted to create Discussions (about issues/questions/asking-for-help) on each Dataset on the Hub:
- Blog post: https://huggingface.co/blog/community-update
- Docs: https://huggingface.co/docs/hub/repositories-pull-re... | ### Link
https://huggingface.co/datasets/jalFaizy/detect_chess_pieces
### Description
I am trying to write a appropriate data loader for [a custom dataset](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces) using [this script](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces/blob/main/detect_c... | 74 | Issue with jalFaizy/detect_chess_pieces when running datasets-cli test
### Link
https://huggingface.co/datasets/jalFaizy/detect_chess_pieces
### Description
I am trying to write a appropriate data loader for [a custom dataset](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces) using [this script](https://... | [
-0.3205195963382721,
0.07623706012964249,
0.0065306322649121284,
0.5506223440170288,
0.2486402839422226,
-0.14615850150585175,
0.5403975248336792,
0.46072009205818176,
0.3361925482749939,
0.08060044050216675,
0.06632066518068314,
0.053986556828022,
-0.29010093212127686,
0.1275649517774582,... |
https://github.com/huggingface/datasets/issues/4592 | Issue with jalFaizy/detect_chess_pieces when running datasets-cli test | Thank you @albertvillanova , I will keep that in mind.
Just a quick note - I posted the issue on Github because the dataset viewer suggested me to "open an issue for direct support". Maybe it can be updated with your suggestion
 using [this script](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces/blob/main/detect_c... | 43 | Issue with jalFaizy/detect_chess_pieces when running datasets-cli test
### Link
https://huggingface.co/datasets/jalFaizy/detect_chess_pieces
### Description
I am trying to write a appropriate data loader for [a custom dataset](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces) using [this script](https://... | [
-0.3205195963382721,
0.07623706012964249,
0.0065306322649121284,
0.5506223440170288,
0.2486402839422226,
-0.14615850150585175,
0.5403975248336792,
0.46072009205818176,
0.3361925482749939,
0.08060044050216675,
0.06632066518068314,
0.053986556828022,
-0.29010093212127686,
0.1275649517774582,... |
https://github.com/huggingface/datasets/issues/4592 | Issue with jalFaizy/detect_chess_pieces when running datasets-cli test | Thank you pointing this out: yes, definitely, we should fix the error message. We are working on this. | ### Link
https://huggingface.co/datasets/jalFaizy/detect_chess_pieces
### Description
I am trying to write a appropriate data loader for [a custom dataset](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces) using [this script](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces/blob/main/detect_c... | 18 | Issue with jalFaizy/detect_chess_pieces when running datasets-cli test
### Link
https://huggingface.co/datasets/jalFaizy/detect_chess_pieces
### Description
I am trying to write a appropriate data loader for [a custom dataset](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces) using [this script](https://... | [
-0.3205195963382721,
0.07623706012964249,
0.0065306322649121284,
0.5506223440170288,
0.2486402839422226,
-0.14615850150585175,
0.5403975248336792,
0.46072009205818176,
0.3361925482749939,
0.08060044050216675,
0.06632066518068314,
0.053986556828022,
-0.29010093212127686,
0.1275649517774582,... |
https://github.com/huggingface/datasets/issues/7679 | metric glue breaks with 4.0.0 | I released `evaluate` 0.4.5 yesterday to fix the issue - sorry for the inconvenience:
```
pip install -U evaluate
``` | ### Describe the bug
worked fine with 3.6.0, and with 4.0.0 `eval_metric = metric.compute()` in HF Accelerate breaks.
The code that fails is:
https://huggingface.co/spaces/evaluate-metric/glue/blob/v0.4.0/glue.py#L84
```
def simple_accuracy(preds, labels):
print(preds, labels)
print(f"{preds==labels}")
r... | 20 | metric glue breaks with 4.0.0
### Describe the bug
worked fine with 3.6.0, and with 4.0.0 `eval_metric = metric.compute()` in HF Accelerate breaks.
The code that fails is:
https://huggingface.co/spaces/evaluate-metric/glue/blob/v0.4.0/glue.py#L84
```
def simple_accuracy(preds, labels):
print(preds, labels)
p... | [
-0.5796239376068115,
0.0861511379480362,
0.00755702331662178,
0.21759818494319916,
0.009788637980818748,
-0.17786556482315063,
0.16768981516361237,
0.432840496301651,
0.4400462806224823,
0.17332787811756134,
-0.3146650493144989,
0.05312996357679367,
-0.19878482818603516,
0.1964929103851318... |
https://github.com/huggingface/datasets/issues/5719 | Array2D feature creates a list of list instead of a numpy array | Hi!
You need to set the format to `np` before indexing the dataset to get NumPy arrays:
```python
features = Features(dict(seq=Array2D((2,2), 'float32')))
ds = Dataset.from_dict(dict(seq=[np.random.rand(2,2)]), features=features)
ds.set_format("np")
a = ds[0]['seq']
```
> I think it should not be the ex... | ### Describe the bug
I'm not sure if this is expected behavior or not. When I create a 2D array using `Array2D`, the data has list type instead of numpy array. I think it should not be the expected behavior especially when I feed a numpy array as input to the data creation function. Why is it converting my array int... | 172 | Array2D feature creates a list of list instead of a numpy array
### Describe the bug
I'm not sure if this is expected behavior or not. When I create a 2D array using `Array2D`, the data has list type instead of numpy array. I think it should not be the expected behavior especially when I feed a numpy array as input ... | [
0.5075539350509644,
-0.26411333680152893,
-0.0844285786151886,
0.24246931076049805,
0.16535606980323792,
0.051813915371894836,
0.7122002243995667,
0.12073919922113419,
0.48243454098701477,
-0.08385065197944641,
-0.01496735867112875,
0.45922866463661194,
-0.2255978137254715,
0.1016410961747... |
https://github.com/huggingface/datasets/issues/5719 | Array2D feature creates a list of list instead of a numpy array | Current behavior when indexing the dataset:
- Using `Array((2,2))` returns a list of lists.
- Using `Array((None,2))` returns a numpy array.
Don't you think this is kind of unexpected behavior from end-user perspective?
As a user, I expect that when I use `Array2D`, the behavior needs to be consistent even if I ... | ### Describe the bug
I'm not sure if this is expected behavior or not. When I create a 2D array using `Array2D`, the data has list type instead of numpy array. I think it should not be the expected behavior especially when I feed a numpy array as input to the data creation function. Why is it converting my array int... | 152 | Array2D feature creates a list of list instead of a numpy array
### Describe the bug
I'm not sure if this is expected behavior or not. When I create a 2D array using `Array2D`, the data has list type instead of numpy array. I think it should not be the expected behavior especially when I feed a numpy array as input ... | [
0.5013778805732727,
-0.23896485567092896,
-0.07295352220535278,
0.2530473470687866,
0.14261554181575775,
0.06911545246839523,
0.7342234253883362,
0.1222209706902504,
0.5260217785835266,
-0.07499212771654129,
-0.03925862908363342,
0.4728245139122009,
-0.21279333531856537,
0.0733475387096405... |
https://github.com/huggingface/datasets/issues/6349 | Can't load ds = load_dataset("imdb") | I'm unable to reproduce this error. The server hosting the files may have been down temporarily, so try again. | ### Describe the bug
I did `from datasets import load_dataset, load_metric` and then `ds = load_dataset("imdb")` and it gave me the error:
ExpectedMoreDownloadedFiles: {'http://ai.stanford.edu/~amaas/data/sentiment/aclImdb_v1.tar.gz'}
I tried doing `ds = load_dataset("imdb",download_mode="force_redownload")` as we... | 19 | Can't load ds = load_dataset("imdb")
### Describe the bug
I did `from datasets import load_dataset, load_metric` and then `ds = load_dataset("imdb")` and it gave me the error:
ExpectedMoreDownloadedFiles: {'http://ai.stanford.edu/~amaas/data/sentiment/aclImdb_v1.tar.gz'}
I tried doing `ds = load_dataset("imdb",dow... | [
-0.37209346890449524,
0.03497915342450142,
-0.0593697614967823,
0.521346926689148,
0.4125428795814514,
0.1490502804517746,
0.3406362235546112,
0.128107488155365,
0.6659704446792603,
0.07853180915117264,
-0.12728211283683777,
0.14698465168476105,
-0.03618466854095459,
0.06833305954933167,
... |
https://github.com/huggingface/datasets/issues/6349 | Can't load ds = load_dataset("imdb") | I am getting the following error:
Env: Python3.10
datasets: 2.10.1
Linux: Amazon Linux2
`Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.10/site-packages/datasets/load.py", line 1759, in load_dataset
builder_instanc... | ### Describe the bug
I did `from datasets import load_dataset, load_metric` and then `ds = load_dataset("imdb")` and it gave me the error:
ExpectedMoreDownloadedFiles: {'http://ai.stanford.edu/~amaas/data/sentiment/aclImdb_v1.tar.gz'}
I tried doing `ds = load_dataset("imdb",download_mode="force_redownload")` as we... | 134 | Can't load ds = load_dataset("imdb")
### Describe the bug
I did `from datasets import load_dataset, load_metric` and then `ds = load_dataset("imdb")` and it gave me the error:
ExpectedMoreDownloadedFiles: {'http://ai.stanford.edu/~amaas/data/sentiment/aclImdb_v1.tar.gz'}
I tried doing `ds = load_dataset("imdb",dow... | [
-0.34003204107284546,
0.003720660461112857,
-0.08301929384469986,
0.5072862505912781,
0.3482731282711029,
0.13206598162651062,
0.31678277254104614,
0.05768474191427231,
0.5895352363586426,
0.023881925269961357,
0.017912903800606728,
0.19759374856948853,
-0.042220961302518845,
0.10946777462... |
https://github.com/huggingface/datasets/issues/7685 | Inconsistent range request behavior for parquet REST api | This is a weird bug, is it a range that is supposed to be satisfiable ? I mean, is it on the boundraries ?
Let me know if you'r e still having the issue, in case it was just a transient bug | ### Describe the bug
First off, I do apologize if this is not the correct repo for submitting this issue. Please direct me to another one if it's more appropriate elsewhere.
The datasets rest api is inconsistently giving `416 Range Not Satisfiable` when using a range request to get portions of the parquet files. Mor... | 42 | Inconsistent range request behavior for parquet REST api
### Describe the bug
First off, I do apologize if this is not the correct repo for submitting this issue. Please direct me to another one if it's more appropriate elsewhere.
The datasets rest api is inconsistently giving `416 Range Not Satisfiable` when using ... | [
0.07396688312292099,
-0.1677013635635376,
-0.049006182700395584,
0.40639594197273254,
-0.017800347879529,
-0.4870789051055908,
-0.16286522150039673,
0.09707619249820709,
-0.37302255630493164,
0.04000249132514,
0.1294442117214203,
0.12376859784126282,
0.3711107075214386,
-0.0474173240363597... |
https://github.com/huggingface/datasets/issues/7685 | Inconsistent range request behavior for parquet REST api | @lhoestq yes the ranges are supposed to be satisfiable, and _sometimes_ they are.
The head requests show that it does in fact accept a byte range.
```
> curl -IL "https://huggingface.co/api/datasets/HuggingFaceTB/smoltalk2/parquet/Mid/Llama_Nemotron_Post_Training_Dataset_reasoning_r1/0.parquet"
HTTP/2 200
con... | ### Describe the bug
First off, I do apologize if this is not the correct repo for submitting this issue. Please direct me to another one if it's more appropriate elsewhere.
The datasets rest api is inconsistently giving `416 Range Not Satisfiable` when using a range request to get portions of the parquet files. Mor... | 242 | Inconsistent range request behavior for parquet REST api
### Describe the bug
First off, I do apologize if this is not the correct repo for submitting this issue. Please direct me to another one if it's more appropriate elsewhere.
The datasets rest api is inconsistently giving `416 Range Not Satisfiable` when using ... | [
0.07396688312292099,
-0.1677013635635376,
-0.049006182700395584,
0.40639594197273254,
-0.017800347879529,
-0.4870789051055908,
-0.16286522150039673,
0.09707619249820709,
-0.37302255630493164,
0.04000249132514,
0.1294442117214203,
0.12376859784126282,
0.3711107075214386,
-0.0474173240363597... |
https://github.com/huggingface/datasets/issues/7685 | Inconsistent range request behavior for parquet REST api | As a workaround, adding a unique parameter to the url avoids the CDN caching and returns the correct result.
```
❯ curl -v -L -H "Range: bytes=217875070-218006142" -o output.parquet "https://huggingface.co/api/datasets/HuggingFaceTB/smoltalk2/parquet/Mid/Llama_Nemotron_Post_Training_Dataset_reasoning_r1/0.parquet?ca... | ### Describe the bug
First off, I do apologize if this is not the correct repo for submitting this issue. Please direct me to another one if it's more appropriate elsewhere.
The datasets rest api is inconsistently giving `416 Range Not Satisfiable` when using a range request to get portions of the parquet files. Mor... | 31 | Inconsistent range request behavior for parquet REST api
### Describe the bug
First off, I do apologize if this is not the correct repo for submitting this issue. Please direct me to another one if it's more appropriate elsewhere.
The datasets rest api is inconsistently giving `416 Range Not Satisfiable` when using ... | [
0.07396688312292099,
-0.1677013635635376,
-0.049006182700395584,
0.40639594197273254,
-0.017800347879529,
-0.4870789051055908,
-0.16286522150039673,
0.09707619249820709,
-0.37302255630493164,
0.04000249132514,
0.1294442117214203,
0.12376859784126282,
0.3711107075214386,
-0.0474173240363597... |
https://github.com/huggingface/datasets/issues/7685 | Inconsistent range request behavior for parquet REST api | @lhoestq Is there any update on this? We (daft) have been getting more reports of this when users are reading huggingface datasets. | ### Describe the bug
First off, I do apologize if this is not the correct repo for submitting this issue. Please direct me to another one if it's more appropriate elsewhere.
The datasets rest api is inconsistently giving `416 Range Not Satisfiable` when using a range request to get portions of the parquet files. Mor... | 22 | Inconsistent range request behavior for parquet REST api
### Describe the bug
First off, I do apologize if this is not the correct repo for submitting this issue. Please direct me to another one if it's more appropriate elsewhere.
The datasets rest api is inconsistently giving `416 Range Not Satisfiable` when using ... | [
0.07396688312292099,
-0.1677013635635376,
-0.049006182700395584,
0.40639594197273254,
-0.017800347879529,
-0.4870789051055908,
-0.16286522150039673,
0.09707619249820709,
-0.37302255630493164,
0.04000249132514,
0.1294442117214203,
0.12376859784126282,
0.3711107075214386,
-0.0474173240363597... |
https://github.com/huggingface/datasets/issues/7685 | Inconsistent range request behavior for parquet REST api | > [@lhoestq](https://github.com/lhoestq) Is there any update on this? We (daft) have been getting more reports of this when users are reading huggingface datasets.
Hello,
We have temporarily disabled the caching rule that could be the origin of this issue. Meanwhile, the problem is still being investigated by us | ### Describe the bug
First off, I do apologize if this is not the correct repo for submitting this issue. Please direct me to another one if it's more appropriate elsewhere.
The datasets rest api is inconsistently giving `416 Range Not Satisfiable` when using a range request to get portions of the parquet files. Mor... | 48 | Inconsistent range request behavior for parquet REST api
### Describe the bug
First off, I do apologize if this is not the correct repo for submitting this issue. Please direct me to another one if it's more appropriate elsewhere.
The datasets rest api is inconsistently giving `416 Range Not Satisfiable` when using ... | [
0.07396688312292099,
-0.1677013635635376,
-0.049006182700395584,
0.40639594197273254,
-0.017800347879529,
-0.4870789051055908,
-0.16286522150039673,
0.09707619249820709,
-0.37302255630493164,
0.04000249132514,
0.1294442117214203,
0.12376859784126282,
0.3711107075214386,
-0.0474173240363597... |
https://github.com/huggingface/datasets/issues/3968 | Cannot preview 'indonesian-nlp/eli5_id' dataset | Hi @cahya-wirawan, thanks for reporting.
Your dataset is working OK in streaming mode:
```python
In [1]: from datasets import load_dataset
...: ds = load_dataset("indonesian-nlp/eli5_id", split="train", streaming=True)
...: item = next(iter(ds))
...: item
Using custom data configuration indonesian-nlp... | ## Dataset viewer issue for '*indonesian-nlp/eli5_id*'
**Link:** https://huggingface.co/datasets/indonesian-nlp/eli5_id
I can not see the dataset preview.
```
Server Error
Status code: 400
Exception: Status400Error
Message: Not found. Maybe the cache is missing, or maybe the dataset does not exis... | 271 | Cannot preview 'indonesian-nlp/eli5_id' dataset
## Dataset viewer issue for '*indonesian-nlp/eli5_id*'
**Link:** https://huggingface.co/datasets/indonesian-nlp/eli5_id
I can not see the dataset preview.
```
Server Error
Status code: 400
Exception: Status400Error
Message: Not found. Maybe the cach... | [
-0.3884463608264923,
-0.14188800752162933,
-0.07354128360748291,
0.15386754274368286,
-0.024768982082605362,
0.231138676404953,
0.09294075518846512,
0.5587154626846313,
0.0132096316665411,
-0.0031360166613012552,
-0.2292773425579071,
0.1413203775882721,
-0.00899823009967804,
0.056063819676... |
https://github.com/huggingface/datasets/issues/3968 | Cannot preview 'indonesian-nlp/eli5_id' dataset | Thanks @albertvillanova for checking it. Btw, I have another dataset indonesian-nlp/lfqa_id which has the same issue. However, this dataset is still private, is it the reason why the preview doesn't work? | ## Dataset viewer issue for '*indonesian-nlp/eli5_id*'
**Link:** https://huggingface.co/datasets/indonesian-nlp/eli5_id
I can not see the dataset preview.
```
Server Error
Status code: 400
Exception: Status400Error
Message: Not found. Maybe the cache is missing, or maybe the dataset does not exis... | 31 | Cannot preview 'indonesian-nlp/eli5_id' dataset
## Dataset viewer issue for '*indonesian-nlp/eli5_id*'
**Link:** https://huggingface.co/datasets/indonesian-nlp/eli5_id
I can not see the dataset preview.
```
Server Error
Status code: 400
Exception: Status400Error
Message: Not found. Maybe the cach... | [
-0.33523210883140564,
-0.12393160909414291,
-0.02713633142411709,
0.2779887318611145,
-0.14991484582424164,
0.25251734256744385,
0.16896136105060577,
0.41718369722366333,
0.026222405955195427,
0.12788952887058258,
-0.20933155715465546,
0.02734271250665188,
0.07286375761032104,
-0.063336350... |
https://github.com/huggingface/datasets/issues/6188 | [Feature Request] Check the length of batch before writing so that empty batch is allowed | I think this error means you filter all examples within an (input) batch by deleting its columns. In that case, to avoid the error, you can set the column value to an empty list (`input_batch["col"] = []`) instead. | ### Use Case
I use `dataset.map(process_fn, batched=True)` to process the dataset, with data **augmentations or filtering**. However, when all examples within a batch is filtered out, i.e. **an empty batch is returned**, the following error will be thrown:
```
ValueError: Schema and number of arrays unequal
`... | 38 | [Feature Request] Check the length of batch before writing so that empty batch is allowed
### Use Case
I use `dataset.map(process_fn, batched=True)` to process the dataset, with data **augmentations or filtering**. However, when all examples within a batch is filtered out, i.e. **an empty batch is returned**, the foll... | [
-0.39054328203201294,
-0.11447698622941971,
-0.12671461701393127,
0.06956246495246887,
0.11723797023296356,
-0.039604540914297104,
0.34282705187797546,
0.17094147205352783,
0.3144308030605316,
0.34546902775764465,
0.27377742528915405,
0.03628632798790932,
-0.18616047501564026,
0.3792968690... |
https://github.com/huggingface/datasets/issues/4750 | Easily create loading script for benchmark comprising multiple huggingface datasets | Hi ! I think the simplest is to copy paste the `_split_generators` code from the other datasets and do a bunch of if-else, as in the glue dataset: https://huggingface.co/datasets/glue/blob/main/glue.py#L467 | Hi,
I would like to create a loading script for a benchmark comprising multiple huggingface datasets.
The function _split_generators needs to return the files for the respective dataset. However, the files are not always in the same location for each dataset. I want to just make a wrapper dataset that provides a si... | 29 | Easily create loading script for benchmark comprising multiple huggingface datasets
Hi,
I would like to create a loading script for a benchmark comprising multiple huggingface datasets.
The function _split_generators needs to return the files for the respective dataset. However, the files are not always in the same... | [
-0.282423198223114,
-0.36613139510154724,
-0.01212925836443901,
0.3533139228820801,
-0.12017567455768585,
-0.05881582945585251,
0.2566535174846649,
0.3862689137458801,
0.6584387421607971,
0.1503254473209381,
-0.1860688030719757,
-0.11190969496965408,
-0.12338124960660934,
0.550899624824523... |
https://github.com/huggingface/datasets/issues/4737 | Download error on scene_parse_150 | Hi! The server with the data seems to be down. I've reported this issue (https://github.com/CSAILVision/sceneparsing/issues/34) in the dataset repo. | ```
from datasets import load_dataset
dataset = load_dataset("scene_parse_150", "scene_parsing")
FileNotFoundError: Couldn't find file at http://data.csail.mit.edu/places/ADEchallenge/ADEChallengeData2016.zip
```
| 19 | Download error on scene_parse_150
```
from datasets import load_dataset
dataset = load_dataset("scene_parse_150", "scene_parsing")
FileNotFoundError: Couldn't find file at http://data.csail.mit.edu/places/ADEchallenge/ADEChallengeData2016.zip
```
Hi! The server with the data seems to be down. I've reported this... | [
-0.5512940287590027,
0.06893414258956909,
-0.1676473766565323,
0.20112116634845734,
0.2956453859806061,
0.04557683318853378,
0.0844017043709755,
0.3591872453689575,
0.26850736141204834,
0.09819356352090836,
0.13911455869674683,
0.07217815518379211,
-0.028820538893342018,
0.3277465701103210... |
https://github.com/huggingface/datasets/issues/6412 | User token is printed out! | Indeed, this is not a good practice. I've opened a PR that removes the token value from the (deprecation) warning. | This line prints user token on command line! Is it safe?
https://github.com/huggingface/datasets/blob/12ebe695b4748c5a26e08b44ed51955f74f5801d/src/datasets/load.py#L2091 | 20 | User token is printed out!
This line prints user token on command line! Is it safe?
https://github.com/huggingface/datasets/blob/12ebe695b4748c5a26e08b44ed51955f74f5801d/src/datasets/load.py#L2091
Indeed, this is not a good practice. I've opened a PR that removes the token value from the (deprecation) warning. | [
-0.0031756300013512373,
-0.15867802500724792,
-0.1245642676949501,
-0.017054788768291473,
0.22019371390342712,
0.023465527221560478,
0.4189121127128601,
-0.06820256263017654,
0.007502227555960417,
0.0757468119263649,
-0.003919164650142193,
0.02836456336081028,
-0.009011362679302692,
0.2457... |
https://github.com/huggingface/datasets/issues/4508 | cast_storage method from datasets.features | Hi! We've recently added a check to the `ClassLabel` type to ensure the values are in the valid label range `-1, 0, ..., num_classes-1` (-1 is used for missing values). The error in your case happens only if the `labels` column is of type `Sequence(ClassLabel(...))` before the `map` call and can be avoided by calling `... | ## Describe the bug
A bug occurs when mapping a function to a dataset object. I ran the same code with the same data yesterday and it worked just fine. It works when i run locally on an old version of datasets.
## Steps to reproduce the bug
Steps are:
- load whatever datset
- write a preprocessing function such ... | 86 | cast_storage method from datasets.features
## Describe the bug
A bug occurs when mapping a function to a dataset object. I ran the same code with the same data yesterday and it worked just fine. It works when i run locally on an old version of datasets.
## Steps to reproduce the bug
Steps are:
- load whatever dat... | [
-0.30897951126098633,
-0.13102878630161285,
0.11094874888658524,
0.05474095046520233,
0.5661738514900208,
-0.19851817190647125,
0.3588046729564667,
0.22773320972919464,
0.0282906424254179,
0.24875782430171967,
-0.12301091104745865,
0.4568908214569092,
-0.14625146985054016,
0.05717844516038... |
https://github.com/huggingface/datasets/issues/4374 | extremely slow processing when using a custom dataset | Hi !
My guess is that some examples in your dataset are bigger than your RAM, and therefore loading them in RAM to pass them to `remove_non_indic_sentences` takes forever because it might use SWAP memory.
Maybe several examples in your dataset are grouped together, can you check `len(lang_dataset["train"])` and `... | ## processing a custom dataset loaded as .txt file is extremely slow, compared to a dataset of similar volume from the hub
I have a large .txt file of 22 GB which i load into HF dataset
`lang_dataset = datasets.load_dataset("text", data_files="hi.txt")`
further i use a pre-processing function to clean the d... | 72 | extremely slow processing when using a custom dataset
## processing a custom dataset loaded as .txt file is extremely slow, compared to a dataset of similar volume from the hub
I have a large .txt file of 22 GB which i load into HF dataset
`lang_dataset = datasets.load_dataset("text", data_files="hi.txt")`
... | [
-0.12999418377876282,
-0.27353864908218384,
-0.02180635556578636,
0.2799508273601532,
-0.11924657225608826,
0.1571962535381317,
0.1195380836725235,
0.3305008113384247,
0.1999559998512268,
-0.06200356036424637,
-0.3777613043785095,
0.03384635969996452,
-0.04093664512038231,
0.23231591284275... |
https://github.com/huggingface/datasets/issues/6347 | Incorrect example code in 'Create a dataset' docs | This was fixed in https://github.com/huggingface/datasets/pull/6247. You can find the fix in the `main` version of the docs | ### Describe the bug
On [this](https://huggingface.co/docs/datasets/create_dataset) page, the example code for loading in images and audio is incorrect.
Currently, examples are:
``` python
from datasets import ImageFolder
dataset = load_dataset("imagefolder", data_dir="/path/to/pokemon")
```
and
``` python... | 17 | Incorrect example code in 'Create a dataset' docs
### Describe the bug
On [this](https://huggingface.co/docs/datasets/create_dataset) page, the example code for loading in images and audio is incorrect.
Currently, examples are:
``` python
from datasets import ImageFolder
dataset = load_dataset("imagefolder", d... | [
0.10519992560148239,
-0.3185539245605469,
-0.024814190343022346,
0.49401071667671204,
0.0975557491183281,
-0.024003632366657257,
0.34808462858200073,
-0.08572175353765488,
0.09643741697072983,
0.09243955463171005,
-0.14339381456375122,
0.17106780409812927,
-0.07363753020763397,
0.323020905... |
https://github.com/huggingface/datasets/issues/5226 | Q: Memory release when removing the column? | Hi ! Datasets are memory mapped from your disk, i.e. they're not loaded in RAM. This is possible thanks to the Arrow data format.
Therefore the column you remove is not in RAM, so removing it doesn't cause the RAM to decrease. | ### Describe the bug
How do I release memory when I use methods like `.remove_columns()` or `clear()` in notebooks?
```python
from datasets import load_dataset
common_voice = load_dataset("mozilla-foundation/common_voice_11_0", "ja", use_auth_token=True)
# check memory -> RAM Used (GB): 0.704 / Total (GB) 33.670... | 42 | Q: Memory release when removing the column?
### Describe the bug
How do I release memory when I use methods like `.remove_columns()` or `clear()` in notebooks?
```python
from datasets import load_dataset
common_voice = load_dataset("mozilla-foundation/common_voice_11_0", "ja", use_auth_token=True)
# check memory -... | [
0.22206728160381317,
-0.35332486033439636,
0.0628359466791153,
0.38902395963668823,
0.3682968318462372,
0.12002763897180557,
0.2951795160770416,
0.1106402724981308,
0.020786160603165627,
0.1979101449251175,
-0.1755080670118332,
0.2944676876068115,
0.01119558047503233,
-0.21467231214046478,... |
https://github.com/huggingface/datasets/issues/5226 | Q: Memory release when removing the column? | Thanks for the explanation! @lhoestq
I wonder since it is memory mapped, can we reduce or remove this memory map? | ### Describe the bug
How do I release memory when I use methods like `.remove_columns()` or `clear()` in notebooks?
```python
from datasets import load_dataset
common_voice = load_dataset("mozilla-foundation/common_voice_11_0", "ja", use_auth_token=True)
# check memory -> RAM Used (GB): 0.704 / Total (GB) 33.670... | 20 | Q: Memory release when removing the column?
### Describe the bug
How do I release memory when I use methods like `.remove_columns()` or `clear()` in notebooks?
```python
from datasets import load_dataset
common_voice = load_dataset("mozilla-foundation/common_voice_11_0", "ja", use_auth_token=True)
# check memory -... | [
0.2301345318555832,
-0.40673723816871643,
0.040279604494571686,
0.34168606996536255,
0.3324720561504364,
0.1444522738456726,
0.3205752372741699,
0.1489337533712387,
0.07395445555448532,
0.17533406615257263,
-0.18869872391223907,
0.29348334670066833,
0.010722590610384941,
-0.181494146585464... |
https://github.com/huggingface/datasets/issues/4062 | Loading mozilla-foundation/common_voice_7_0 dataset failed | Hi @aapot, thanks for reporting.
We are investigating the cause of this issue. We will keep you informed. | ## Describe the bug
I wanted to load `mozilla-foundation/common_voice_7_0` dataset with `fi` language and `test` split from datasets on Colab/Kaggle notebook, but I am getting an error `JSONDecodeError: [Errno Expecting value] Not Found: 0` while loading it. The bug seems to affect other languages and splits too than ... | 18 | Loading mozilla-foundation/common_voice_7_0 dataset failed
## Describe the bug
I wanted to load `mozilla-foundation/common_voice_7_0` dataset with `fi` language and `test` split from datasets on Colab/Kaggle notebook, but I am getting an error `JSONDecodeError: [Errno Expecting value] Not Found: 0` while loading it. T... | [
-0.1751967966556549,
-0.16184823215007782,
-0.01651008240878582,
0.4844573438167572,
0.1696992665529251,
-0.16959741711616516,
0.3660564720630646,
0.2703649401664734,
0.09576688706874847,
0.20071205496788025,
-0.2335401475429535,
0.7396365404129028,
0.13393276929855347,
-0.0338983982801437... |
https://github.com/huggingface/datasets/issues/4062 | Loading mozilla-foundation/common_voice_7_0 dataset failed | When making HTTP request from code line:
```
response = requests.get(f"{_API_URL}/bucket/dataset/{path}/{use_cdn}", timeout=10.0).json()
```
it cannot be decoded to JSON because it raises a 404 Not Found error.
The request is fixed if removing the `/{use_cdn}` from the URL.
Maybe there was a change in the Com... | ## Describe the bug
I wanted to load `mozilla-foundation/common_voice_7_0` dataset with `fi` language and `test` split from datasets on Colab/Kaggle notebook, but I am getting an error `JSONDecodeError: [Errno Expecting value] Not Found: 0` while loading it. The bug seems to affect other languages and splits too than ... | 52 | Loading mozilla-foundation/common_voice_7_0 dataset failed
## Describe the bug
I wanted to load `mozilla-foundation/common_voice_7_0` dataset with `fi` language and `test` split from datasets on Colab/Kaggle notebook, but I am getting an error `JSONDecodeError: [Errno Expecting value] Not Found: 0` while loading it. T... | [
-0.1751967966556549,
-0.16184823215007782,
-0.01651008240878582,
0.4844573438167572,
0.1696992665529251,
-0.16959741711616516,
0.3660564720630646,
0.2703649401664734,
0.09576688706874847,
0.20071205496788025,
-0.2335401475429535,
0.7396365404129028,
0.13393276929855347,
-0.0338983982801437... |
https://github.com/huggingface/datasets/issues/4062 | Loading mozilla-foundation/common_voice_7_0 dataset failed | I have also made the hotfix for all the rest of Common Voice script versions: 8.0, 6.1, 6.0,..., 1.0 | ## Describe the bug
I wanted to load `mozilla-foundation/common_voice_7_0` dataset with `fi` language and `test` split from datasets on Colab/Kaggle notebook, but I am getting an error `JSONDecodeError: [Errno Expecting value] Not Found: 0` while loading it. The bug seems to affect other languages and splits too than ... | 19 | Loading mozilla-foundation/common_voice_7_0 dataset failed
## Describe the bug
I wanted to load `mozilla-foundation/common_voice_7_0` dataset with `fi` language and `test` split from datasets on Colab/Kaggle notebook, but I am getting an error `JSONDecodeError: [Errno Expecting value] Not Found: 0` while loading it. T... | [
-0.1751967966556549,
-0.16184823215007782,
-0.01651008240878582,
0.4844573438167572,
0.1696992665529251,
-0.16959741711616516,
0.3660564720630646,
0.2703649401664734,
0.09576688706874847,
0.20071205496788025,
-0.2335401475429535,
0.7396365404129028,
0.13393276929855347,
-0.0338983982801437... |
https://github.com/huggingface/datasets/issues/4062 | Loading mozilla-foundation/common_voice_7_0 dataset failed | Hi @ngoquanghuy99! The dataset should load fine if you go through the following steps:
1. Go to https://huggingface.co/datasets/mozilla-foundation/common_voice_9_0 and click "Access repository" if you see a message about sharing your contact information with Mozilla Foundation at the top of the page. If you've alrea... | ## Describe the bug
I wanted to load `mozilla-foundation/common_voice_7_0` dataset with `fi` language and `test` split from datasets on Colab/Kaggle notebook, but I am getting an error `JSONDecodeError: [Errno Expecting value] Not Found: 0` while loading it. The bug seems to affect other languages and splits too than ... | 83 | Loading mozilla-foundation/common_voice_7_0 dataset failed
## Describe the bug
I wanted to load `mozilla-foundation/common_voice_7_0` dataset with `fi` language and `test` split from datasets on Colab/Kaggle notebook, but I am getting an error `JSONDecodeError: [Errno Expecting value] Not Found: 0` while loading it. T... | [
-0.1751967966556549,
-0.16184823215007782,
-0.01651008240878582,
0.4844573438167572,
0.1696992665529251,
-0.16959741711616516,
0.3660564720630646,
0.2703649401664734,
0.09576688706874847,
0.20071205496788025,
-0.2335401475429535,
0.7396365404129028,
0.13393276929855347,
-0.0338983982801437... |
https://github.com/huggingface/datasets/issues/4062 | Loading mozilla-foundation/common_voice_7_0 dataset failed | > Thanks @anton-l I could load the dataset now, but in another way. Thanks anyways!
Can you share the "another way" please? | ## Describe the bug
I wanted to load `mozilla-foundation/common_voice_7_0` dataset with `fi` language and `test` split from datasets on Colab/Kaggle notebook, but I am getting an error `JSONDecodeError: [Errno Expecting value] Not Found: 0` while loading it. The bug seems to affect other languages and splits too than ... | 22 | Loading mozilla-foundation/common_voice_7_0 dataset failed
## Describe the bug
I wanted to load `mozilla-foundation/common_voice_7_0` dataset with `fi` language and `test` split from datasets on Colab/Kaggle notebook, but I am getting an error `JSONDecodeError: [Errno Expecting value] Not Found: 0` while loading it. T... | [
-0.1751967966556549,
-0.16184823215007782,
-0.01651008240878582,
0.4844573438167572,
0.1696992665529251,
-0.16959741711616516,
0.3660564720630646,
0.2703649401664734,
0.09576688706874847,
0.20071205496788025,
-0.2335401475429535,
0.7396365404129028,
0.13393276929855347,
-0.0338983982801437... |
https://github.com/huggingface/datasets/issues/5458 | slice split while streaming | Hi! Yes, that's correct. When `streaming` is `True`, only split names can be specified as `split`, and for slicing, you have to use `.skip`/`.take` instead.
E.g.
`load_dataset("lhoestq/demo1",revision=None, streaming=True, split="train[:3]")`
rewritten with `.skip`/`.take`:
`load_dataset("lhoestq/demo1",revisi... | ### Describe the bug
When using the `load_dataset` function with streaming set to True, slicing splits is apparently not supported.
Did I miss this in the documentation?
### Steps to reproduce the bug
`load_dataset("lhoestq/demo1",revision=None, streaming=True, split="train[:3]")`
causes ValueError: Bad split:... | 35 | slice split while streaming
### Describe the bug
When using the `load_dataset` function with streaming set to True, slicing splits is apparently not supported.
Did I miss this in the documentation?
### Steps to reproduce the bug
`load_dataset("lhoestq/demo1",revision=None, streaming=True, split="train[:3]")`
c... | [
-0.5406310558319092,
0.2308039665222168,
-0.012679457664489746,
0.05592271685600281,
0.2187577784061432,
-0.009209753945469856,
0.4941081702709198,
0.2683311104774475,
-0.26596635580062866,
0.17080596089363098,
-0.1395312398672104,
0.3741287291049957,
-0.13417614996433258,
0.31187561154365... |
https://github.com/huggingface/datasets/issues/6483 | Iterable Dataset: rename column clashes with remove column | You can get the expected result by fixing typos in the snippet :)
```python
from datasets import load_dataset
# load LS in streaming mode
dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True)
# check original features
dataset_features = dataset.features.keys()
print("Original... | ### Describe the bug
Suppose I have a two iterable datasets, one with the features:
* `{"audio", "text", "column_a"}`
And the other with the features:
* `{"audio", "sentence", "column_b"}`
I want to combine both datasets using `interleave_datasets`, which requires me to unify the column names. I would typic... | 75 | Iterable Dataset: rename column clashes with remove column
### Describe the bug
Suppose I have a two iterable datasets, one with the features:
* `{"audio", "text", "column_a"}`
And the other with the features:
* `{"audio", "sentence", "column_b"}`
I want to combine both datasets using `interleave_datasets`,... | [
0.14759592711925507,
0.20639128983020782,
0.013281531631946564,
0.04070282727479935,
0.21933525800704956,
0.3409430980682373,
0.47970402240753174,
0.06645634770393372,
-0.091740682721138,
0.19398082792758942,
-0.1917891949415207,
0.30293503403663635,
0.1443752646446228,
-0.0305816661566495... |
https://github.com/huggingface/datasets/issues/6483 | Iterable Dataset: rename column clashes with remove column | Fixed code:
```python
from datasets import load_dataset
# load LS in streaming mode
dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True)
# check original features
dataset_features = dataset.features.keys()
print("Original features: ", dataset_features)
# rename "text" -... | ### Describe the bug
Suppose I have a two iterable datasets, one with the features:
* `{"audio", "text", "column_a"}`
And the other with the features:
* `{"audio", "sentence", "column_b"}`
I want to combine both datasets using `interleave_datasets`, which requires me to unify the column names. I would typic... | 67 | Iterable Dataset: rename column clashes with remove column
### Describe the bug
Suppose I have a two iterable datasets, one with the features:
* `{"audio", "text", "column_a"}`
And the other with the features:
* `{"audio", "sentence", "column_b"}`
I want to combine both datasets using `interleave_datasets`,... | [
0.14759592711925507,
0.20639128983020782,
0.013281531631946564,
0.04070282727479935,
0.21933525800704956,
0.3409430980682373,
0.47970402240753174,
0.06645634770393372,
-0.091740682721138,
0.19398082792758942,
-0.1917891949415207,
0.30293503403663635,
0.1443752646446228,
-0.0305816661566495... |
https://github.com/huggingface/datasets/issues/3329 | Map function: Type error on iter #999 | Hi, thanks for reporting.
It would be really helpful if you could provide the actual code of the `text_numbers_to_int` function so we can reproduce the error. | ## Describe the bug
Using the map function, it throws a type error on iter #999
Here is the code I am calling:
```
dataset = datasets.load_dataset('squad')
dataset['validation'].map(text_numbers_to_int, input_columns=['context'], fn_kwargs={'column': 'context'})
```
text_numbers_to_int returns the input text ... | 26 | Map function: Type error on iter #999
## Describe the bug
Using the map function, it throws a type error on iter #999
Here is the code I am calling:
```
dataset = datasets.load_dataset('squad')
dataset['validation'].map(text_numbers_to_int, input_columns=['context'], fn_kwargs={'column': 'context'})
```
text_... | [
-0.06956570595502853,
-0.2543759346008301,
-0.02940959855914116,
0.3593807518482208,
0.14766854047775269,
0.09722992032766342,
0.37812498211860657,
0.3375341594219208,
0.44256845116615295,
-0.09956655651330948,
0.10787243396043777,
0.653800368309021,
0.16161853075027466,
0.1190467923879623... |
https://github.com/huggingface/datasets/issues/3329 | Map function: Type error on iter #999 | ```
def text_numbers_to_int(text, column=""):
"""
Convert text numbers to int.
:param text: text numbers
:return: int
"""
try:
numbers = find_numbers(text)
if not numbers:
return text
result = ""
i, j = 0, 0
while i < len(text):
... | ## Describe the bug
Using the map function, it throws a type error on iter #999
Here is the code I am calling:
```
dataset = datasets.load_dataset('squad')
dataset['validation'].map(text_numbers_to_int, input_columns=['context'], fn_kwargs={'column': 'context'})
```
text_numbers_to_int returns the input text ... | 91 | Map function: Type error on iter #999
## Describe the bug
Using the map function, it throws a type error on iter #999
Here is the code I am calling:
```
dataset = datasets.load_dataset('squad')
dataset['validation'].map(text_numbers_to_int, input_columns=['context'], fn_kwargs={'column': 'context'})
```
text_... | [
-0.10126196593046188,
-0.2614859938621521,
-0.04291698709130287,
0.3601318895816803,
0.17289887368679047,
0.06265267729759216,
0.3584766387939453,
0.32565736770629883,
0.5001997351646423,
-0.052908919751644135,
0.053756147623062134,
0.6227616667747498,
0.13810046017169952,
0.06444239616394... |
https://github.com/huggingface/datasets/issues/3329 | Map function: Type error on iter #999 | Maybe this is because of the `return text` line ? I think it should return a dictionary rather than a string | ## Describe the bug
Using the map function, it throws a type error on iter #999
Here is the code I am calling:
```
dataset = datasets.load_dataset('squad')
dataset['validation'].map(text_numbers_to_int, input_columns=['context'], fn_kwargs={'column': 'context'})
```
text_numbers_to_int returns the input text ... | 21 | Map function: Type error on iter #999
## Describe the bug
Using the map function, it throws a type error on iter #999
Here is the code I am calling:
```
dataset = datasets.load_dataset('squad')
dataset['validation'].map(text_numbers_to_int, input_columns=['context'], fn_kwargs={'column': 'context'})
```
text_... | [
-0.06868954747915268,
-0.2696540355682373,
-0.04229548200964928,
0.36542603373527527,
0.17482927441596985,
0.054315995424985886,
0.3326846957206726,
0.3805121183395386,
0.47614502906799316,
-0.07883802056312561,
0.10804617404937744,
0.6700223088264465,
0.17240029573440552,
0.13023169338703... |
https://github.com/huggingface/datasets/issues/6330 | Latest fsspec==2023.10.0 issue with streaming datasets | I also encountered a similar error below.
Appreciate the team could shed some light on this issue.
```
---------------------------------------------------------------------------
NotImplementedError Traceback (most recent call last)
[/home/ubuntu/work/EveryDream2trainer/prepare_dataset.ipyn... | ### Describe the bug
Loading a streaming dataset with this version of fsspec fails with the following error:
`NotImplementedError: Loading a streaming dataset cached in a LocalFileSystem is not supported yet.`
I suspect the issue is with this PR
https://github.com/fsspec/filesystem_spec/pull/1381
### Steps ... | 588 | Latest fsspec==2023.10.0 issue with streaming datasets
### Describe the bug
Loading a streaming dataset with this version of fsspec fails with the following error:
`NotImplementedError: Loading a streaming dataset cached in a LocalFileSystem is not supported yet.`
I suspect the issue is with this PR
https://... | [
-0.3962836265563965,
-0.05229121446609497,
0.08950153738260269,
0.22059662640094757,
0.20769570767879486,
-0.055555056780576706,
0.11532939970493317,
0.16825363039970398,
-0.18154041469097137,
0.22665975987911224,
-0.04434136301279068,
0.20201551914215088,
-0.058889761567115784,
0.46524873... |
https://github.com/huggingface/datasets/issues/6330 | Latest fsspec==2023.10.0 issue with streaming datasets | Thanks for reporting and for the investigation, @ZachNagengast! :hugs:
We are investigating the root cause of the issue. In the meantime, we are going to pin fsspec < 2023.10.0. | ### Describe the bug
Loading a streaming dataset with this version of fsspec fails with the following error:
`NotImplementedError: Loading a streaming dataset cached in a LocalFileSystem is not supported yet.`
I suspect the issue is with this PR
https://github.com/fsspec/filesystem_spec/pull/1381
### Steps ... | 29 | Latest fsspec==2023.10.0 issue with streaming datasets
### Describe the bug
Loading a streaming dataset with this version of fsspec fails with the following error:
`NotImplementedError: Loading a streaming dataset cached in a LocalFileSystem is not supported yet.`
I suspect the issue is with this PR
https://... | [
-0.4481062889099121,
-0.09368088841438293,
0.0792476087808609,
0.2137063592672348,
0.21421082317829132,
-0.0835876390337944,
0.0789300724864006,
0.2109934538602829,
-0.11809460073709488,
0.23674745857715607,
-0.02385346218943596,
0.1587570309638977,
-0.07089632004499435,
0.4641267061233520... |
https://github.com/huggingface/datasets/issues/6330 | Latest fsspec==2023.10.0 issue with streaming datasets | You can also update `datasets`:
```
pip install -U datasets
```
It will also update `fsspec` to use the right version | ### Describe the bug
Loading a streaming dataset with this version of fsspec fails with the following error:
`NotImplementedError: Loading a streaming dataset cached in a LocalFileSystem is not supported yet.`
I suspect the issue is with this PR
https://github.com/fsspec/filesystem_spec/pull/1381
### Steps ... | 21 | Latest fsspec==2023.10.0 issue with streaming datasets
### Describe the bug
Loading a streaming dataset with this version of fsspec fails with the following error:
`NotImplementedError: Loading a streaming dataset cached in a LocalFileSystem is not supported yet.`
I suspect the issue is with this PR
https://... | [
-0.4843495786190033,
-0.0917605608701706,
0.060919955372810364,
0.20084725320339203,
0.200005903840065,
-0.06782551109790802,
0.05047376826405525,
0.21000085771083832,
-0.08579973131418228,
0.2135215401649475,
-0.01906474120914936,
0.21504443883895874,
-0.05602765828371048,
0.4682947993278... |
https://github.com/huggingface/datasets/issues/6330 | Latest fsspec==2023.10.0 issue with streaming datasets | Hi, just wished to follow up on this issue. I am recently using datasets==2.12.0 and fsspec==2023.9.2 and the same error: "NotImplementedError: Loading a streaming dataset cached in a LocalFileSystem is not supported yet." popped up. I tried doing upgrading datasets to the latest version with `pip install -U datasets` ... | ### Describe the bug
Loading a streaming dataset with this version of fsspec fails with the following error:
`NotImplementedError: Loading a streaming dataset cached in a LocalFileSystem is not supported yet.`
I suspect the issue is with this PR
https://github.com/fsspec/filesystem_spec/pull/1381
### Steps ... | 54 | Latest fsspec==2023.10.0 issue with streaming datasets
### Describe the bug
Loading a streaming dataset with this version of fsspec fails with the following error:
`NotImplementedError: Loading a streaming dataset cached in a LocalFileSystem is not supported yet.`
I suspect the issue is with this PR
https://... | [
-0.3859497904777527,
0.004943246953189373,
0.07555770128965378,
0.18755894899368286,
0.20452980697155,
-0.12135674804449081,
0.14536724984645844,
0.12748274207115173,
-0.22739116847515106,
0.2347695380449295,
-0.02386329509317875,
0.19033022224903107,
-0.027875825762748718,
0.4457697570323... |
https://github.com/huggingface/datasets/issues/3784 | Unable to Download CNN-Dailymail Dataset | Glad to help @albertvillanova! Just fine-tuning the PR, will comment once I am able to get it up and running 😀 | ## Describe the bug
I am unable to download the CNN-Dailymail dataset. Upon closer investigation, I realised why this was happening:
- The dataset sits in Google Drive, and both the CNN and DM datasets are large.
- Google is unable to scan the folder for viruses, **so the link which would originally download the dat... | 21 | Unable to Download CNN-Dailymail Dataset
## Describe the bug
I am unable to download the CNN-Dailymail dataset. Upon closer investigation, I realised why this was happening:
- The dataset sits in Google Drive, and both the CNN and DM datasets are large.
- Google is unable to scan the folder for viruses, **so the li... | [
-0.0904771089553833,
0.0638359859585762,
-0.06501302123069763,
0.37730079889297485,
0.2484724223613739,
0.25623518228530884,
0.3084614872932434,
0.13527406752109528,
-0.17734196782112122,
0.12619633972644806,
-0.07416242361068726,
-0.017222285270690918,
-0.29949989914894104,
0.071178913116... |
https://github.com/huggingface/datasets/issues/4578 | [Multi Configs] Use directories to differentiate between subsets/configurations | How to set new split names, instead of train/test/validation? For example, I have a local dataset, consists of several subsets, named "A", "B", and "C". How can I create a huggingface dataset, with splits A/B/C ?
The document in https://huggingface.co/docs/datasets/dataset_script only tells me how to create datasets... | Currently to define several subsets/configurations of your dataset, you need to use a dataset script.
However it would be nice to have a no-code way to to this.
For example we could specify different configurations of a dataset (for example, if a dataset contains different languages) with one directory per confi... | 64 | [Multi Configs] Use directories to differentiate between subsets/configurations
Currently to define several subsets/configurations of your dataset, you need to use a dataset script.
However it would be nice to have a no-code way to to this.
For example we could specify different configurations of a dataset (for ... | [
-0.23412689566612244,
-0.32476797699928284,
0.02036096155643463,
0.1079220101237297,
0.03106503188610077,
0.02685047872364521,
0.49183571338653564,
-0.024805359542369843,
0.018607929348945618,
0.28164681792259216,
-0.23296920955181122,
-0.11118771135807037,
-0.1860104203224182,
0.563831746... |
https://github.com/huggingface/datasets/issues/4578 | [Multi Configs] Use directories to differentiate between subsets/configurations | > The document in https://huggingface.co/docs/datasets/dataset_script only tells me how to create datasets with subsets that is hosted on another server. How to do it if my datasets are local?
It works the same - you just need to use local paths instead of URLs | Currently to define several subsets/configurations of your dataset, you need to use a dataset script.
However it would be nice to have a no-code way to to this.
For example we could specify different configurations of a dataset (for example, if a dataset contains different languages) with one directory per confi... | 44 | [Multi Configs] Use directories to differentiate between subsets/configurations
Currently to define several subsets/configurations of your dataset, you need to use a dataset script.
However it would be nice to have a no-code way to to this.
For example we could specify different configurations of a dataset (for ... | [
-0.3164812922477722,
-0.3242616355419159,
0.0012744417181238532,
0.04537606239318848,
0.015545934438705444,
-0.05239985138177872,
0.37209513783454895,
-0.055787093937397,
0.046070341020822525,
0.3564251661300659,
-0.12246976047754288,
0.015232346951961517,
-0.17003697156906128,
0.513030767... |
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.27704352140426636,
-0.0721030905842781,
0.019518418237566948,
0.3475951552391052,
0.2631922960281372,
0.11979949474334717,
0.2685104310512543,
0.3378802239894867,
0.01386746671050787,
0.2252744883298874,
0.010753749869763851,
0.09313687682151794,
-0.19975227117538452,
-0.011398579925298... |
https://github.com/huggingface/datasets/issues/6279 | Batched IterableDataset | This is exactly what I was looking for. It would also be very useful for me :-) | ### Feature request
Hi,
could you add an implementation of a batched `IterableDataset`. It already support an option to do batch iteration via `.iter(batch_size=...)` but this cannot be used in combination with a torch `DataLoader` since it just returns an iterator.
### Motivation
The current implementation load... | 17 | Batched IterableDataset
### Feature request
Hi,
could you add an implementation of a batched `IterableDataset`. It already support an option to do batch iteration via `.iter(batch_size=...)` but this cannot be used in combination with a torch `DataLoader` since it just returns an iterator.
### Motivation
The cur... | [
-0.5131291151046753,
-0.40810704231262207,
-0.14537014067173004,
-0.03233027830719948,
-0.21823574602603912,
0.07741659879684448,
0.5759499073028564,
0.1535801738500595,
0.10522585362195969,
0.22356835007667542,
-0.09468721598386765,
0.23621852695941925,
-0.4173107445240021,
0.102855823934... |
https://github.com/huggingface/datasets/issues/6279 | Batched IterableDataset | This issue is really smashing the selling point of HF datasets... The only workaround I've found so far is to create a customized IterableDataloader which improves the loading speed to some extent.
For example I've a HF dataset `dt_train` with `len(dt_train) == 1M`. Using plain DataLoader is extremely slow:
```
%%... | ### Feature request
Hi,
could you add an implementation of a batched `IterableDataset`. It already support an option to do batch iteration via `.iter(batch_size=...)` but this cannot be used in combination with a torch `DataLoader` since it just returns an iterator.
### Motivation
The current implementation load... | 240 | Batched IterableDataset
### Feature request
Hi,
could you add an implementation of a batched `IterableDataset`. It already support an option to do batch iteration via `.iter(batch_size=...)` but this cannot be used in combination with a torch `DataLoader` since it just returns an iterator.
### Motivation
The cur... | [
-0.5315183997154236,
-0.20455406606197357,
-0.08869325369596481,
-0.10651455074548721,
-0.18674613535404205,
0.12562218308448792,
0.5776188373565674,
0.3219338655471802,
0.1498526781797409,
0.10923447459936142,
-0.3930845558643341,
0.13741269707679749,
-0.24423228204250336,
-0.117168143391... |
https://github.com/huggingface/datasets/issues/6279 | Batched IterableDataset | I can confirm that @zhh210's solution works with `num_workers=0`. However, for my use case, this was still slower than tokenizing on the fly through a collator and leveraging multiple workers in the dataloder.
@lhoestq I think this is an important use case (e.g., streaming from a large dataset, online or stored on d... | ### Feature request
Hi,
could you add an implementation of a batched `IterableDataset`. It already support an option to do batch iteration via `.iter(batch_size=...)` but this cannot be used in combination with a torch `DataLoader` since it just returns an iterator.
### Motivation
The current implementation load... | 65 | Batched IterableDataset
### Feature request
Hi,
could you add an implementation of a batched `IterableDataset`. It already support an option to do batch iteration via `.iter(batch_size=...)` but this cannot be used in combination with a torch `DataLoader` since it just returns an iterator.
### Motivation
The cur... | [
-0.5507498383522034,
-0.18806034326553345,
-0.13860371708869934,
-0.16400624811649323,
-0.16954925656318665,
-0.11123450845479965,
0.7082949876785278,
0.14553052186965942,
0.0832798182964325,
0.20728571712970734,
-0.05956302583217621,
0.15164715051651,
-0.3822181522846222,
0.10908783227205... |
https://github.com/huggingface/datasets/issues/6279 | Batched IterableDataset | I guess it can be implemented using a batched`.map()` under the hood that returns a single item containing the input batch.
In the meantime you can use this:
```python
def batch(unbatched: dict[str, list]) -> dict[str, list]:
return {k: [v] for k, v in unbatched}
batched_dataset = dataset.map(batch, batc... | ### Feature request
Hi,
could you add an implementation of a batched `IterableDataset`. It already support an option to do batch iteration via `.iter(batch_size=...)` but this cannot be used in combination with a torch `DataLoader` since it just returns an iterator.
### Motivation
The current implementation load... | 73 | Batched IterableDataset
### Feature request
Hi,
could you add an implementation of a batched `IterableDataset`. It already support an option to do batch iteration via `.iter(batch_size=...)` but this cannot be used in combination with a torch `DataLoader` since it just returns an iterator.
### Motivation
The cur... | [
-0.49269744753837585,
-0.38986361026763916,
-0.17620553076267242,
-0.12793922424316406,
-0.10453727096319199,
0.1112000048160553,
0.4936588406562805,
0.19320796430110931,
0.1527087688446045,
0.1042439341545105,
-0.16156625747680664,
0.30795860290527344,
-0.42478516697883606,
0.161314040422... |
https://github.com/huggingface/datasets/issues/6279 | Batched IterableDataset | If no one else is planning to work on this, I can take it on. I'll wait until next week, and if no one has started a PR by then, I'll go ahead and open one. | ### Feature request
Hi,
could you add an implementation of a batched `IterableDataset`. It already support an option to do batch iteration via `.iter(batch_size=...)` but this cannot be used in combination with a torch `DataLoader` since it just returns an iterator.
### Motivation
The current implementation load... | 36 | Batched IterableDataset
### Feature request
Hi,
could you add an implementation of a batched `IterableDataset`. It already support an option to do batch iteration via `.iter(batch_size=...)` but this cannot be used in combination with a torch `DataLoader` since it just returns an iterator.
### Motivation
The cur... | [
-0.5193305015563965,
-0.36076316237449646,
-0.1643998771905899,
-0.029069211333990097,
-0.19876138865947723,
0.06552304327487946,
0.5762870907783508,
0.17435729503631592,
0.12108992785215378,
0.21001017093658447,
-0.11969876289367676,
0.23910489678382874,
-0.3752930760383606,
0.07635064423... |
https://github.com/huggingface/datasets/issues/6279 | Batched IterableDataset | It looks like the implementation of IterableDataset is still using a hardcoded batch size of 1. For example in line 2063 in [`/datsets/src/datasets/iterable_dataset.py`](https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/iterable_dataset.py#L2063). Iterating over IterableDataset with large batch sizes ther... | ### Feature request
Hi,
could you add an implementation of a batched `IterableDataset`. It already support an option to do batch iteration via `.iter(batch_size=...)` but this cannot be used in combination with a torch `DataLoader` since it just returns an iterator.
### Motivation
The current implementation load... | 879 | Batched IterableDataset
### Feature request
Hi,
could you add an implementation of a batched `IterableDataset`. It already support an option to do batch iteration via `.iter(batch_size=...)` but this cannot be used in combination with a torch `DataLoader` since it just returns an iterator.
### Motivation
The cur... | [
-0.45525407791137695,
-0.305831640958786,
-0.12015603482723236,
0.06854847073554993,
-0.019620539620518684,
0.11479348689317703,
0.49100223183631897,
0.2021874189376831,
0.06163033843040466,
0.10528244823217392,
-0.22452187538146973,
0.18241210281848907,
-0.40512359142303467,
-0.0612069517... |
https://github.com/huggingface/datasets/issues/6279 | Batched IterableDataset | Hi @taczin , thanks for reporting !
Indeed the `IterableDataset.batch()` implementation is quite naive is manipulates python objects:
https://github.com/huggingface/datasets/blob/d37ed46ebf45981131bd3678173dbb4b7e2b2f1a/src/datasets/iterable_dataset.py#L3026-L3029
However it can be much faster if it can be app... | ### Feature request
Hi,
could you add an implementation of a batched `IterableDataset`. It already support an option to do batch iteration via `.iter(batch_size=...)` but this cannot be used in combination with a torch `DataLoader` since it just returns an iterator.
### Motivation
The current implementation load... | 87 | Batched IterableDataset
### Feature request
Hi,
could you add an implementation of a batched `IterableDataset`. It already support an option to do batch iteration via `.iter(batch_size=...)` but this cannot be used in combination with a torch `DataLoader` since it just returns an iterator.
### Motivation
The cur... | [
-0.37612184882164,
-0.36956730484962463,
-0.153697669506073,
-0.036999162286520004,
-0.19946664571762085,
0.06344661116600037,
0.4906392991542816,
0.2562359571456909,
0.08371660858392715,
-0.0033177549485117197,
-0.16649776697158813,
0.43672996759414673,
-0.34306979179382324,
0.03762109205... |
https://github.com/huggingface/datasets/issues/6279 | Batched IterableDataset | Hi @lhoestq , thanks for your answer. I was wondering: is there a reason why the internal call to `ex_iterable = self._prepare_ex_iterable_for_iteration()` in the IterableDataset code does not pass the batch size even though it could? If not passed the default of 1 is used, leading to the observed slow loading. | ### Feature request
Hi,
could you add an implementation of a batched `IterableDataset`. It already support an option to do batch iteration via `.iter(batch_size=...)` but this cannot be used in combination with a torch `DataLoader` since it just returns an iterator.
### Motivation
The current implementation load... | 51 | Batched IterableDataset
### Feature request
Hi,
could you add an implementation of a batched `IterableDataset`. It already support an option to do batch iteration via `.iter(batch_size=...)` but this cannot be used in combination with a torch `DataLoader` since it just returns an iterator.
### Motivation
The cur... | [
-0.4229862093925476,
-0.5778283476829529,
-0.10675261914730072,
0.11778432130813599,
-0.0849713534116745,
0.10845310986042023,
0.6343512535095215,
0.12960714101791382,
0.11287631094455719,
0.27015212178230286,
-0.037300799041986465,
0.27726227045059204,
-0.1476750671863556,
-0.065385647118... |
https://github.com/huggingface/datasets/issues/6279 | Batched IterableDataset | After calling `.batch()`, `_prepare_ex_iterable_for_iteration` should use batch_size=1 since now each row in the dataset is actually a batch of the original dataset. | ### Feature request
Hi,
could you add an implementation of a batched `IterableDataset`. It already support an option to do batch iteration via `.iter(batch_size=...)` but this cannot be used in combination with a torch `DataLoader` since it just returns an iterator.
### Motivation
The current implementation load... | 22 | Batched IterableDataset
### Feature request
Hi,
could you add an implementation of a batched `IterableDataset`. It already support an option to do batch iteration via `.iter(batch_size=...)` but this cannot be used in combination with a torch `DataLoader` since it just returns an iterator.
### Motivation
The cur... | [
-0.5127038359642029,
-0.39690688252449036,
-0.15876972675323486,
0.02627532184123993,
-0.09576207399368286,
0.11190038919448853,
0.4962318539619446,
0.27777379751205444,
0.09255719184875488,
0.15066246688365936,
-0.20961695909500122,
0.34793832898139954,
-0.2695961594581604,
0.054747451096... |
https://github.com/huggingface/datasets/issues/6130 | default config name doesn't work when config kwargs are specified. | What should be the behavior in this case ? Should it override the default config with the added parameter ? | ### Describe the bug
https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522
If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to their customized `BuilderConfig`, the logic is ignored, and dataset ... | 20 | default config name doesn't work when config kwargs are specified.
### Describe the bug
https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522
If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to t... | [
-0.1007184237241745,
-0.2173304259777069,
0.09942484647035599,
0.13833840191364288,
0.07441219687461853,
0.030461672693490982,
0.3864668607711792,
-0.030250370502471924,
0.007245226297527552,
0.3657609522342682,
0.24759326875209808,
0.5385407209396362,
0.15046542882919312,
0.09754487872123... |
https://github.com/huggingface/datasets/issues/6130 | default config name doesn't work when config kwargs are specified. | I know why it should be treated as a new config if overriding parameters are passed. But in some case, I just pass in some common fields like `data_dir`.
For example, I want to extend the FolderBasedBuilder as a multi-config version, the `data_dir` or `data_files` are always passed by user and should not be consider... | ### Describe the bug
https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522
If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to their customized `BuilderConfig`, the logic is ignored, and dataset ... | 79 | default config name doesn't work when config kwargs are specified.
### Describe the bug
https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522
If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to t... | [
-0.1270899623632431,
-0.21234144270420074,
0.13215887546539307,
0.14795862138271332,
0.1218024492263794,
-0.052463289350271225,
0.44281336665153503,
-0.0014078973326832056,
-0.013150686398148537,
0.3561832904815674,
0.21070030331611633,
0.5361367464065552,
0.08675186336040497,
0.0556658953... |
https://github.com/huggingface/datasets/issues/6130 | default config name doesn't work when config kwargs are specified. | Thinking more about it I think the current behavior is the right one.
Provided parameters should be passed to instantiate a new BuilderConfig.
What's the error you're getting ? | ### Describe the bug
https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522
If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to their customized `BuilderConfig`, the logic is ignored, and dataset ... | 29 | default config name doesn't work when config kwargs are specified.
### Describe the bug
https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522
If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to t... | [
-0.17760072648525238,
-0.2220352590084076,
0.10286200046539307,
0.12729868292808533,
0.1638363152742386,
-0.0333738699555397,
0.43837058544158936,
0.018997620791196823,
0.01213484164327383,
0.43914106488227844,
0.14752238988876343,
0.49687397480010986,
0.14622285962104797,
0.13720071315765... |
https://github.com/huggingface/datasets/issues/6130 | default config name doesn't work when config kwargs are specified. | For example, this works to use default config with name '_all_':
```python
datasets.load_dataset("indonesian-nlp/librivox-indonesia", split="train")
```
while this failed to use default config
```python
datasets.load_dataset("indonesian-nlp/librivox-indonesia", split="train", data_dir='.')
```
After manually sp... | ### Describe the bug
https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522
If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to their customized `BuilderConfig`, the logic is ignored, and dataset ... | 40 | default config name doesn't work when config kwargs are specified.
### Describe the bug
https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522
If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to t... | [
-0.16069507598876953,
-0.18930844962596893,
0.12298166751861572,
0.16191747784614563,
0.23092785477638245,
0.006570433732122183,
0.4368201792240143,
0.056640155613422394,
0.008178174495697021,
0.43072620034217834,
0.11619611829519272,
0.4788164496421814,
0.1679784208536148,
0.1444644778966... |
https://github.com/huggingface/datasets/issues/6130 | default config name doesn't work when config kwargs are specified. | It should work if you explicitly ask for the config you want to override
```python
load_dataset('/dataset/with/multiple/config', 'name_of_the_default_config', some_field_in_config='some')
```
Alternatively you can have a BuilderConfig class that when instantiated returns a config with the right default values. ... | ### Describe the bug
https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522
If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to their customized `BuilderConfig`, the logic is ignored, and dataset ... | 60 | default config name doesn't work when config kwargs are specified.
### Describe the bug
https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522
If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to t... | [
-0.2387239634990692,
-0.25340208411216736,
0.09032662957906723,
0.07542895525693893,
0.2019164264202118,
-0.02673354744911194,
0.4187557101249695,
0.03140827640891075,
0.04826774075627327,
0.5022533535957336,
0.0789090171456337,
0.5601708292961121,
0.15124154090881348,
0.16646139323711395,... |
https://github.com/huggingface/datasets/issues/6130 | default config name doesn't work when config kwargs are specified. | @lhoestq Yes. But it doesn't work for me.
Here's my dataset for example.
```
lass MyDatasetConfig(datasets.BuilderConfig):
def __init__(self, name: str, version: str, **kwargs):
self.option1 = kwargs.pop("option1", False)
self.option2 = kwargs.pop("option2", 5)
super().__init__(
... | ### Describe the bug
https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522
If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to their customized `BuilderConfig`, the logic is ignored, and dataset ... | 124 | default config name doesn't work when config kwargs are specified.
### Describe the bug
https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522
If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to t... | [
-0.15546844899654388,
-0.19105136394500732,
0.12208306044340134,
0.12620553374290466,
0.13576889038085938,
0.009281422011554241,
0.39707741141319275,
-0.008440679870545864,
0.034890614449977875,
0.39020904898643494,
0.171553373336792,
0.49910882115364075,
0.17679980397224426,
0.03783934190... |
https://github.com/huggingface/datasets/issues/6130 | default config name doesn't work when config kwargs are specified. | @lhoestq The error is
```
def _info(self) -> DatasetInfo:
_ = self.option1 <-
....
AttributeError: 'BuilderConfig' object has no attribute 'option1'
```
which seems to find another unknown config.
You can try this line `datasets.load_dataset("indonesian-nlp/librivox-indonesia", split="train",... | ### Describe the bug
https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522
If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to their customized `BuilderConfig`, the logic is ignored, and dataset ... | 63 | default config name doesn't work when config kwargs are specified.
### Describe the bug
https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522
If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to t... | [
-0.145945206284523,
-0.2705956995487213,
0.13886933028697968,
0.16551464796066284,
0.19108039140701294,
0.022060802206397057,
0.4536028802394867,
0.06476034224033356,
0.020565234124660492,
0.4646132290363312,
0.06959912925958633,
0.4245506227016449,
0.17303089797496796,
0.15136978030204773... |
https://github.com/huggingface/datasets/issues/6130 | default config name doesn't work when config kwargs are specified. | I see, you just have to set this class attribute to your builder class :)
```python
BUILDER_CONFIG_CLASS = MyDatasetConfig
``` | ### Describe the bug
https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522
If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to their customized `BuilderConfig`, the logic is ignored, and dataset ... | 20 | default config name doesn't work when config kwargs are specified.
### Describe the bug
https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522
If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to t... | [
-0.23081210255622864,
-0.1871141791343689,
0.10418525338172913,
0.13735948503017426,
0.2660265266895294,
0.048790425062179565,
0.474429726600647,
0.07422896474599838,
0.0004664491571020335,
0.508760392665863,
0.10259044915437698,
0.485357403755188,
0.17570990324020386,
0.1579464077949524,
... |
https://github.com/huggingface/datasets/issues/6130 | default config name doesn't work when config kwargs are specified. | So what does this attribute do? In most cases it's not used and the [documents for multi-config dataset](https://huggingface.co/docs/datasets/main/en/image_dataset#multiple-configurations) never mentioned that. | ### Describe the bug
https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522
If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to their customized `BuilderConfig`, the logic is ignored, and dataset ... | 21 | default config name doesn't work when config kwargs are specified.
### Describe the bug
https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522
If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to t... | [
-0.10387656837701797,
-0.40731823444366455,
0.08251391351222992,
0.1635793149471283,
0.21165834367275238,
0.2138453722000122,
0.40020641684532166,
-0.199268639087677,
0.027068015187978745,
0.45096343755722046,
0.10380781441926956,
0.36296331882476807,
0.17622704803943634,
0.156501561403274... |
https://github.com/huggingface/datasets/issues/6130 | default config name doesn't work when config kwargs are specified. | It tells which builder config class to instantiate if additional config parameters are passed to load_dataset | ### Describe the bug
https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522
If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to their customized `BuilderConfig`, the logic is ignored, and dataset ... | 16 | default config name doesn't work when config kwargs are specified.
### Describe the bug
https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522
If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to t... | [
-0.19298991560935974,
-0.2264828234910965,
0.09661239385604858,
0.19210292398929596,
0.17225031554698944,
0.018309738487005234,
0.44974541664123535,
0.04452267289161682,
0.044503405690193176,
0.4569784998893738,
0.15882046520709991,
0.511428713798523,
0.17513538897037506,
0.135040819644927... |
https://github.com/huggingface/datasets/issues/6130 | default config name doesn't work when config kwargs are specified. | @lhoestq maybe we can enhance the document to say something about the common attributes of `DatasetBuilder` | ### Describe the bug
https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522
If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to their customized `BuilderConfig`, the logic is ignored, and dataset ... | 16 | default config name doesn't work when config kwargs are specified.
### Describe the bug
https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522
If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to t... | [
-0.19917640089988708,
-0.1872662752866745,
0.07228042185306549,
0.1166406124830246,
0.17154370248317719,
0.05313624441623688,
0.4100956916809082,
0.04448231682181358,
0.007123338524252176,
0.4756443500518799,
0.14925658702850342,
0.5220496654510498,
0.20773734152317047,
0.12885239720344543... |
https://github.com/huggingface/datasets/issues/3855 | Bad error message when loading private dataset | We raise the error “ FileNotFoundError: can’t find the dataset” mainly to follow best practice in security (otherwise users could be able to guess what private repositories users/orgs may have)
We can indeed reformulate this and add the "If this is a private repository,..." part ! | ## Describe the bug
A pretty common behavior of an interaction between the Hub and datasets is the following.
An organization adds a dataset in private mode and wants to load it afterward.
```python
from transformers import load_dataset
ds = load_dataset("NewT5/dummy_data", "dummy")
```
This command th... | 46 | Bad error message when loading private dataset
## Describe the bug
A pretty common behavior of an interaction between the Hub and datasets is the following.
An organization adds a dataset in private mode and wants to load it afterward.
```python
from transformers import load_dataset
ds = load_dataset("NewT... | [
-0.13395629823207855,
-0.02722819335758686,
0.0709061548113823,
0.5178710222244263,
0.14277474582195282,
0.016936177387833595,
0.549426257610321,
0.17654798924922943,
0.210043266415596,
0.1455814391374588,
-0.44577836990356445,
0.06750918179750443,
-0.030567990615963936,
-0.052761852741241... |
https://github.com/huggingface/datasets/issues/7092 | load_dataset with multiple jsonlines files interprets datastructure too early | Possible definitions of done for this issue:
1. A fix so you can load your dataset specifically
2. A general fix for datasets similar to this in the `datasets` library
Option 1 is trivial. I think option 2 requires significant changes to the library.
Since you outlined something akin to option 2 in `Expected ... | ### Describe the bug
likely related to #6460
using `datasets.load_dataset("json", data_dir= ... )` with multiple `.jsonl` files will error if one of the files (maybe the first file?) contains a full column of empty data.
### Steps to reproduce the bug
real world example:
data is available in this [PR-bra... | 291 | load_dataset with multiple jsonlines files interprets datastructure too early
### Describe the bug
likely related to #6460
using `datasets.load_dataset("json", data_dir= ... )` with multiple `.jsonl` files will error if one of the files (maybe the first file?) contains a full column of empty data.
### Steps ... | [
-0.2040468454360962,
0.2006859928369522,
0.027895020321011543,
0.6508151292800903,
0.21559792757034302,
-0.008810400031507015,
0.4858435094356537,
0.34629276394844055,
0.2040962427854538,
-0.04792912304401398,
0.30683600902557373,
0.1597404032945633,
-0.060814376920461655,
0.01756345853209... |
https://github.com/huggingface/datasets/issues/7092 | load_dataset with multiple jsonlines files interprets datastructure too early | As pointed out by @hvaara, you can define explicit features so that you avoid the `datasets` library having to infer them (from the first few samples).
Note that the feature inference is done from the first few samples of JSON-Lines on purpose, so that the entire data does not need to be parsed twice (it would be in... | ### Describe the bug
likely related to #6460
using `datasets.load_dataset("json", data_dir= ... )` with multiple `.jsonl` files will error if one of the files (maybe the first file?) contains a full column of empty data.
### Steps to reproduce the bug
real world example:
data is available in this [PR-bra... | 62 | load_dataset with multiple jsonlines files interprets datastructure too early
### Describe the bug
likely related to #6460
using `datasets.load_dataset("json", data_dir= ... )` with multiple `.jsonl` files will error if one of the files (maybe the first file?) contains a full column of empty data.
### Steps ... | [
-0.2040468454360962,
0.2006859928369522,
0.027895020321011543,
0.6508151292800903,
0.21559792757034302,
-0.008810400031507015,
0.4858435094356537,
0.34629276394844055,
0.2040962427854538,
-0.04792912304401398,
0.30683600902557373,
0.1597404032945633,
-0.060814376920461655,
0.01756345853209... |
https://github.com/huggingface/datasets/issues/7092 | load_dataset with multiple jsonlines files interprets datastructure too early | I understand this. But can there be a solution that doesn't require the end user to write this shema by hand(in my case there is some fields that contain a nested structure)?
Maybe offer an option to infer the shema automatically before loading the dataset. Or perhaps - trigger such a method when this error arises?... | ### Describe the bug
likely related to #6460
using `datasets.load_dataset("json", data_dir= ... )` with multiple `.jsonl` files will error if one of the files (maybe the first file?) contains a full column of empty data.
### Steps to reproduce the bug
real world example:
data is available in this [PR-bra... | 100 | load_dataset with multiple jsonlines files interprets datastructure too early
### Describe the bug
likely related to #6460
using `datasets.load_dataset("json", data_dir= ... )` with multiple `.jsonl` files will error if one of the files (maybe the first file?) contains a full column of empty data.
### Steps ... | [
-0.2040468454360962,
0.2006859928369522,
0.027895020321011543,
0.6508151292800903,
0.21559792757034302,
-0.008810400031507015,
0.4858435094356537,
0.34629276394844055,
0.2040962427854538,
-0.04792912304401398,
0.30683600902557373,
0.1597404032945633,
-0.060814376920461655,
0.01756345853209... |
https://github.com/huggingface/datasets/issues/7092 | load_dataset with multiple jsonlines files interprets datastructure too early | @Vipitis raised a good point on the HF Discord regarding the use of a [dataset script](https://huggingface.co/docs/datasets/en/dataset_script) to provide the schema during initialization. Using this approach requires setting `trust_remote_code=True`, which is not allowed in certain evaluation frameworks.
For cases w... | ### Describe the bug
likely related to #6460
using `datasets.load_dataset("json", data_dir= ... )` with multiple `.jsonl` files will error if one of the files (maybe the first file?) contains a full column of empty data.
### Steps to reproduce the bug
real world example:
data is available in this [PR-bra... | 109 | load_dataset with multiple jsonlines files interprets datastructure too early
### Describe the bug
likely related to #6460
using `datasets.load_dataset("json", data_dir= ... )` with multiple `.jsonl` files will error if one of the files (maybe the first file?) contains a full column of empty data.
### Steps ... | [
-0.2040468454360962,
0.2006859928369522,
0.027895020321011543,
0.6508151292800903,
0.21559792757034302,
-0.008810400031507015,
0.4858435094356537,
0.34629276394844055,
0.2040962427854538,
-0.04792912304401398,
0.30683600902557373,
0.1597404032945633,
-0.060814376920461655,
0.01756345853209... |
https://github.com/huggingface/datasets/issues/4906 | Can't import datasets AttributeError: partially initialized module 'datasets' has no attribute 'utils' (most likely due to a circular import) | Thanks for reporting, @OPterminator.
However, we are not able to reproduce this issue.
There might be 2 reasons why you get this exception:
- Either the name of your local Python file: if it is called `datasets.py` this could generate a circular import when trying to import the Hugging Face `datasets` library.
... | ## Describe the bug
A clear and concise description of what the bug is.
Not able to import datasets
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
import os
os.environ["WANDB_API_KEY"] = "0" ## to silence warning
import numpy as np
import random
import sklearn
import matplotlib.p... | 125 | Can't import datasets AttributeError: partially initialized module 'datasets' has no attribute 'utils' (most likely due to a circular import)
## Describe the bug
A clear and concise description of what the bug is.
Not able to import datasets
## Steps to reproduce the bug
```python
# Sample code to reproduce the b... | [
-0.27750056982040405,
-0.24207335710525513,
-0.04461364448070526,
0.17065107822418213,
0.2661901116371155,
0.05801872909069061,
0.20556171238422394,
0.17970336973667145,
-0.05913979932665825,
-0.04203525185585022,
-0.08086609840393066,
0.3524925112724304,
-0.311546266078949,
0.084792338311... |
https://github.com/huggingface/datasets/issues/4906 | Can't import datasets AttributeError: partially initialized module 'datasets' has no attribute 'utils' (most likely due to a circular import) | i am also facing this issue
```
----> 1 import datasets
3 dataset = datasets.load_dataset("ucberkeley-dlab/measuring-hate-speech", "binary")
4 df = dataset["train"].to_pandas()
File ~/.pyenv/versions/3.10.9/lib/python3.10/site-packages/datasets/__init__.py:52
50 from .fingerprint import dis... | ## Describe the bug
A clear and concise description of what the bug is.
Not able to import datasets
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
import os
os.environ["WANDB_API_KEY"] = "0" ## to silence warning
import numpy as np
import random
import sklearn
import matplotlib.p... | 95 | Can't import datasets AttributeError: partially initialized module 'datasets' has no attribute 'utils' (most likely due to a circular import)
## Describe the bug
A clear and concise description of what the bug is.
Not able to import datasets
## Steps to reproduce the bug
```python
# Sample code to reproduce the b... | [
-0.27750056982040405,
-0.24207335710525513,
-0.04461364448070526,
0.17065107822418213,
0.2661901116371155,
0.05801872909069061,
0.20556171238422394,
0.17970336973667145,
-0.05913979932665825,
-0.04203525185585022,
-0.08086609840393066,
0.3524925112724304,
-0.311546266078949,
0.084792338311... |
https://github.com/huggingface/datasets/issues/4906 | Can't import datasets AttributeError: partially initialized module 'datasets' has no attribute 'utils' (most likely due to a circular import) | I am facing the same question. And this happens when i installing `evaluate` package while `jupyter notebook` running. I'm not sure if the error occured because of trying to import the package installed when the notebook is running. Surpringly when i stop the notebook and rerun, the issue has been solved itself. Hope ... | ## Describe the bug
A clear and concise description of what the bug is.
Not able to import datasets
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
import os
os.environ["WANDB_API_KEY"] = "0" ## to silence warning
import numpy as np
import random
import sklearn
import matplotlib.p... | 59 | Can't import datasets AttributeError: partially initialized module 'datasets' has no attribute 'utils' (most likely due to a circular import)
## Describe the bug
A clear and concise description of what the bug is.
Not able to import datasets
## Steps to reproduce the bug
```python
# Sample code to reproduce the b... | [
-0.27750056982040405,
-0.24207335710525513,
-0.04461364448070526,
0.17065107822418213,
0.2661901116371155,
0.05801872909069061,
0.20556171238422394,
0.17970336973667145,
-0.05913979932665825,
-0.04203525185585022,
-0.08086609840393066,
0.3524925112724304,
-0.311546266078949,
0.084792338311... |
https://github.com/huggingface/datasets/issues/4906 | Can't import datasets AttributeError: partially initialized module 'datasets' has no attribute 'utils' (most likely due to a circular import) | I also got this error.
It helped me to find the python process and kill it, then restart the kernel and the error disappeared. | ## Describe the bug
A clear and concise description of what the bug is.
Not able to import datasets
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
import os
os.environ["WANDB_API_KEY"] = "0" ## to silence warning
import numpy as np
import random
import sklearn
import matplotlib.p... | 24 | Can't import datasets AttributeError: partially initialized module 'datasets' has no attribute 'utils' (most likely due to a circular import)
## Describe the bug
A clear and concise description of what the bug is.
Not able to import datasets
## Steps to reproduce the bug
```python
# Sample code to reproduce the b... | [
-0.27750056982040405,
-0.24207335710525513,
-0.04461364448070526,
0.17065107822418213,
0.2661901116371155,
0.05801872909069061,
0.20556171238422394,
0.17970336973667145,
-0.05913979932665825,
-0.04203525185585022,
-0.08086609840393066,
0.3524925112724304,
-0.311546266078949,
0.084792338311... |
https://github.com/huggingface/datasets/issues/4906 | Can't import datasets AttributeError: partially initialized module 'datasets' has no attribute 'utils' (most likely due to a circular import) | > I also got this error. It helped me to find the python process and kill it, then restart the kernel and the error disappeared.
Yes! | ## Describe the bug
A clear and concise description of what the bug is.
Not able to import datasets
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
import os
os.environ["WANDB_API_KEY"] = "0" ## to silence warning
import numpy as np
import random
import sklearn
import matplotlib.p... | 26 | Can't import datasets AttributeError: partially initialized module 'datasets' has no attribute 'utils' (most likely due to a circular import)
## Describe the bug
A clear and concise description of what the bug is.
Not able to import datasets
## Steps to reproduce the bug
```python
# Sample code to reproduce the b... | [
-0.27750056982040405,
-0.24207335710525513,
-0.04461364448070526,
0.17065107822418213,
0.2661901116371155,
0.05801872909069061,
0.20556171238422394,
0.17970336973667145,
-0.05913979932665825,
-0.04203525185585022,
-0.08086609840393066,
0.3524925112724304,
-0.311546266078949,
0.084792338311... |
https://github.com/huggingface/datasets/issues/4906 | Can't import datasets AttributeError: partially initialized module 'datasets' has no attribute 'utils' (most likely due to a circular import) | > I am facing the same question. And this happens when i installing `evaluate` package while `jupyter notebook` running. I'm not sure if the error occured because of trying to import the package installed when the notebook is running. Surpringly when i stop the notebook and rerun, the issue has been solved itself. Hope... | ## Describe the bug
A clear and concise description of what the bug is.
Not able to import datasets
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
import os
os.environ["WANDB_API_KEY"] = "0" ## to silence warning
import numpy as np
import random
import sklearn
import matplotlib.p... | 63 | Can't import datasets AttributeError: partially initialized module 'datasets' has no attribute 'utils' (most likely due to a circular import)
## Describe the bug
A clear and concise description of what the bug is.
Not able to import datasets
## Steps to reproduce the bug
```python
# Sample code to reproduce the b... | [
-0.27750056982040405,
-0.24207335710525513,
-0.04461364448070526,
0.17065107822418213,
0.2661901116371155,
0.05801872909069061,
0.20556171238422394,
0.17970336973667145,
-0.05913979932665825,
-0.04203525185585022,
-0.08086609840393066,
0.3524925112724304,
-0.311546266078949,
0.084792338311... |
https://github.com/huggingface/datasets/issues/4906 | Can't import datasets AttributeError: partially initialized module 'datasets' has no attribute 'utils' (most likely due to a circular import) | Yes, i met the same error when import pandas after restarting computers.
AttributeError: partially initialized module 'pandas' has no attribute '_pandas_parser_CAPI' (most likely due to a circular import)
some think pandas.py file need to be found and delete, i tried but it did not work.
however, restarted the kern... | ## Describe the bug
A clear and concise description of what the bug is.
Not able to import datasets
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
import os
os.environ["WANDB_API_KEY"] = "0" ## to silence warning
import numpy as np
import random
import sklearn
import matplotlib.p... | 55 | Can't import datasets AttributeError: partially initialized module 'datasets' has no attribute 'utils' (most likely due to a circular import)
## Describe the bug
A clear and concise description of what the bug is.
Not able to import datasets
## Steps to reproduce the bug
```python
# Sample code to reproduce the b... | [
-0.27750056982040405,
-0.24207335710525513,
-0.04461364448070526,
0.17065107822418213,
0.2661901116371155,
0.05801872909069061,
0.20556171238422394,
0.17970336973667145,
-0.05913979932665825,
-0.04203525185585022,
-0.08086609840393066,
0.3524925112724304,
-0.311546266078949,
0.084792338311... |
https://github.com/huggingface/datasets/issues/3960 | Load local dataset error | Hi! Instead of @nateraw's `image-folder`, I suggest using the newly released `imagefolder` dataset:
```python
>>> from datasets import load_dataset
>>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train/**'], 'validation': ['/ssd/datasets/imagenet/pytorch/val/**']}
>>> ds = load_dataset('imagefolder', data... | When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this:
```
>>> from datasets import load_dataset
>>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']}
>>> ds = load_dataset('nateraw/image-folder... | 40 | Load local dataset error
When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this:
```
>>> from datasets import load_dataset
>>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']}
>>> ds = load_data... | [
-0.3380226492881775,
-0.11414026468992233,
-0.021197566762566566,
0.2390868067741394,
0.42533329129219055,
-0.02254081517457962,
0.17710056900978088,
0.35765719413757324,
0.06696662306785583,
0.1895560473203659,
-0.13147737085819244,
0.15659350156784058,
-0.0968022570014,
0.120188139379024... |
https://github.com/huggingface/datasets/issues/3960 | Load local dataset error | > Hi! Instead of @nateraw's `image-folder`, I suggest using the newly released `imagefolder` dataset:
>
> ```python
> >>> from datasets import load_dataset
> >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train/**'], 'validation': ['/ssd/datasets/imagenet/pytorch/val/**']}
> >>> ds = load_dataset('imag... | When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this:
```
>>> from datasets import load_dataset
>>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']}
>>> ds = load_dataset('nateraw/image-folder... | 378 | Load local dataset error
When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this:
```
>>> from datasets import load_dataset
>>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']}
>>> ds = load_data... | [
-0.3380226492881775,
-0.11414026468992233,
-0.021197566762566566,
0.2390868067741394,
0.42533329129219055,
-0.02254081517457962,
0.17710056900978088,
0.35765719413757324,
0.06696662306785583,
0.1895560473203659,
-0.13147737085819244,
0.15659350156784058,
-0.0968022570014,
0.120188139379024... |
https://github.com/huggingface/datasets/issues/3960 | Load local dataset error | You can pass `ignore_verifications=True` in `load_dataset` to make it fast (to skip checksum verification). I'll add this tip to the docs. | When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this:
```
>>> from datasets import load_dataset
>>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']}
>>> ds = load_dataset('nateraw/image-folder... | 21 | Load local dataset error
When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this:
```
>>> from datasets import load_dataset
>>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']}
>>> ds = load_data... | [
-0.3380226492881775,
-0.11414026468992233,
-0.021197566762566566,
0.2390868067741394,
0.42533329129219055,
-0.02254081517457962,
0.17710056900978088,
0.35765719413757324,
0.06696662306785583,
0.1895560473203659,
-0.13147737085819244,
0.15659350156784058,
-0.0968022570014,
0.120188139379024... |
https://github.com/huggingface/datasets/issues/3960 | Load local dataset error | > You can pass `ignore_verifications=True` in `load_dataset` to make it fast (to skip checksum verification). I'll add this tip to the docs.
Thanks!It's worked well. | When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this:
```
>>> from datasets import load_dataset
>>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']}
>>> ds = load_dataset('nateraw/image-folder... | 25 | Load local dataset error
When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this:
```
>>> from datasets import load_dataset
>>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']}
>>> ds = load_data... | [
-0.3380226492881775,
-0.11414026468992233,
-0.021197566762566566,
0.2390868067741394,
0.42533329129219055,
-0.02254081517457962,
0.17710056900978088,
0.35765719413757324,
0.06696662306785583,
0.1895560473203659,
-0.13147737085819244,
0.15659350156784058,
-0.0968022570014,
0.120188139379024... |
https://github.com/huggingface/datasets/issues/3960 | Load local dataset error | > You can pass `ignore_verifications=True` in `load_dataset` to make it fast (to skip checksum verification). I'll add this tip to the docs.
I find current `load_dataset` loads ImageNet still slowly, even add `ignore_verifications=True`.
First loading, it costs about 20 min in my servers.
```
real 19m23.023s
use... | When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this:
```
>>> from datasets import load_dataset
>>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']}
>>> ds = load_dataset('nateraw/image-folder... | 83 | Load local dataset error
When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this:
```
>>> from datasets import load_dataset
>>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']}
>>> ds = load_data... | [
-0.3380226492881775,
-0.11414026468992233,
-0.021197566762566566,
0.2390868067741394,
0.42533329129219055,
-0.02254081517457962,
0.17710056900978088,
0.35765719413757324,
0.06696662306785583,
0.1895560473203659,
-0.13147737085819244,
0.15659350156784058,
-0.0968022570014,
0.120188139379024... |
https://github.com/huggingface/datasets/issues/3960 | Load local dataset error | And in transformers the [ViT example](https://github.com/huggingface/transformers/blob/main/examples/pytorch/image-classification/run_image_classification.py), could you make some changes ? Like the `collect_fn`
```python
def collate_fn(examples):
pixel_values = torch.stack([example["pixel_values"] for example i... | When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this:
```
>>> from datasets import load_dataset
>>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']}
>>> ds = load_dataset('nateraw/image-folder... | 45 | Load local dataset error
When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this:
```
>>> from datasets import load_dataset
>>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']}
>>> ds = load_data... | [
-0.3380226492881775,
-0.11414026468992233,
-0.021197566762566566,
0.2390868067741394,
0.42533329129219055,
-0.02254081517457962,
0.17710056900978088,
0.35765719413757324,
0.06696662306785583,
0.1895560473203659,
-0.13147737085819244,
0.15659350156784058,
-0.0968022570014,
0.120188139379024... |
https://github.com/huggingface/datasets/issues/3960 | Load local dataset error | Loading the image files slowly, is it because the multiple processes load files at the same time? | When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this:
```
>>> from datasets import load_dataset
>>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']}
>>> ds = load_dataset('nateraw/image-folder... | 17 | Load local dataset error
When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this:
```
>>> from datasets import load_dataset
>>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']}
>>> ds = load_data... | [
-0.3380226492881775,
-0.11414026468992233,
-0.021197566762566566,
0.2390868067741394,
0.42533329129219055,
-0.02254081517457962,
0.17710056900978088,
0.35765719413757324,
0.06696662306785583,
0.1895560473203659,
-0.13147737085819244,
0.15659350156784058,
-0.0968022570014,
0.120188139379024... |
https://github.com/huggingface/datasets/issues/3960 | Load local dataset error | Could you please share the output you get after the second loading? Also, feel free to interrupt (`KeyboardInterrupt`) the process while waiting for it to end and share a traceback to show us where the process hangs.
> And in transformers the [ViT example](https://github.com/huggingface/transformers/blob/main/exa... | When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this:
```
>>> from datasets import load_dataset
>>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']}
>>> ds = load_dataset('nateraw/image-folder... | 125 | Load local dataset error
When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this:
```
>>> from datasets import load_dataset
>>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']}
>>> ds = load_data... | [
-0.3380226492881775,
-0.11414026468992233,
-0.021197566762566566,
0.2390868067741394,
0.42533329129219055,
-0.02254081517457962,
0.17710056900978088,
0.35765719413757324,
0.06696662306785583,
0.1895560473203659,
-0.13147737085819244,
0.15659350156784058,
-0.0968022570014,
0.120188139379024... |
https://github.com/huggingface/datasets/issues/3960 | Load local dataset error | > Could you please share the output you get after the second loading? Also, feel free to interrupt (`KeyboardInterrupt`) the process while waiting for it to end and share a traceback to show us where the process hangs.
>
> > And in transformers the [ViT example](https://github.com/huggingface/transformers/blob/main/... | When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this:
```
>>> from datasets import load_dataset
>>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']}
>>> ds = load_dataset('nateraw/image-folder... | 269 | Load local dataset error
When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this:
```
>>> from datasets import load_dataset
>>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']}
>>> ds = load_data... | [
-0.3380226492881775,
-0.11414026468992233,
-0.021197566762566566,
0.2390868067741394,
0.42533329129219055,
-0.02254081517457962,
0.17710056900978088,
0.35765719413757324,
0.06696662306785583,
0.1895560473203659,
-0.13147737085819244,
0.15659350156784058,
-0.0968022570014,
0.120188139379024... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.