html_url
stringlengths
48
51
title
stringlengths
5
280
comments
stringlengths
63
51.8k
body
stringlengths
0
36.2k
comment_length
int64
16
1.52k
text
stringlengths
159
54.1k
embeddings
listlengths
768
768
https://github.com/huggingface/datasets/issues/5083
Support numpy/torch/tf/jax formatting for IterableDataset
Hi @zutarich ! This issue was fixed by #5852 - sorry I forgot to close it Feel free to look for other issues and ping me or @mariosasko if you have questions :) Also let us know if we can help find an issue that can correspond to what you're looking for
Right now `IterableDataset` doesn't do any formatting. In particular this code should return a numpy array: ```python from datasets import load_dataset ds = load_dataset("imagenet-1k", split="train", streaming=True).with_format("np") print(next(iter(ds))["image"]) ``` Right now it returns a PIL.Image. S...
52
Support numpy/torch/tf/jax formatting for IterableDataset Right now `IterableDataset` doesn't do any formatting. In particular this code should return a numpy array: ```python from datasets import load_dataset ds = load_dataset("imagenet-1k", split="train", streaming=True).with_format("np") print(next(iter(d...
[ -0.2871096730232239, -0.28445765376091003, -0.0814630463719368, 0.03790094330906868, 0.3299255967140198, 0.054992325603961945, 0.5919589400291443, 0.4232988953590393, -0.13432030379772186, -0.030175939202308655, -0.13997267186641693, 0.3614840507507324, -0.1710081845521927, 0.0798297449946...
https://github.com/huggingface/datasets/issues/5081
Bug loading `sentence-transformers/parallel-sentences`
The dataset is sadly not really compatible to be loaded with `load_dataset`. So far it is better to git clone it and to use the files directly. A data loading script would be needed to be added to this dataset. But this was too much overhead / not really intuitive how to create it.
## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("sentence-transformers/parallel-sentences") ``` raises this: ``` /home/phmay/miniconda3/envs/paraphrase-mining/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py:697: FutureWarning: the '...
54
Bug loading `sentence-transformers/parallel-sentences` ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("sentence-transformers/parallel-sentences") ``` raises this: ``` /home/phmay/miniconda3/envs/paraphrase-mining/lib/python3.9/site-packages/datasets/downloa...
[ -0.0064447298645973206, -0.30189454555511475, -0.07506976276636124, 0.1588544398546219, 0.19041398167610168, 0.014945738017559052, 0.5312554240226746, 0.17734768986701965, -0.1279134452342987, 0.1705007553100586, -0.08514212816953659, 0.3792472183704376, 0.0759563222527504, -0.500623404979...
https://github.com/huggingface/datasets/issues/5081
Bug loading `sentence-transformers/parallel-sentences`
Since the dataset is a bunch of TSVs we should not need a dataset script I think. By default it tries to load all the TSVs at once, which fails here because they don't all have the same columns (pd.read_csv uses the first line as header by default). But those files have no header ! So, to properly load any TSV file ...
## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("sentence-transformers/parallel-sentences") ``` raises this: ``` /home/phmay/miniconda3/envs/paraphrase-mining/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py:697: FutureWarning: the '...
118
Bug loading `sentence-transformers/parallel-sentences` ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("sentence-transformers/parallel-sentences") ``` raises this: ``` /home/phmay/miniconda3/envs/paraphrase-mining/lib/python3.9/site-packages/datasets/downloa...
[ -0.0064447298645973206, -0.30189454555511475, -0.07506976276636124, 0.1588544398546219, 0.19041398167610168, 0.014945738017559052, 0.5312554240226746, 0.17734768986701965, -0.1279134452342987, 0.1705007553100586, -0.08514212816953659, 0.3792472183704376, 0.0759563222527504, -0.500623404979...
https://github.com/huggingface/datasets/issues/5081
Bug loading `sentence-transformers/parallel-sentences`
There are more issues in the dataset. To load OpenSubtitles I have to provide this (see `skiprows`): ```python df_os = pd.read_csv( "./parallel-sentences/OpenSubtitles/OpenSubtitles-en-de-train.tsv.gz", sep="\t", quoting=csv.QUOTE_NONE, header=None, names=["en", "de"], skiprows=[540...
## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("sentence-transformers/parallel-sentences") ``` raises this: ``` /home/phmay/miniconda3/envs/paraphrase-mining/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py:697: FutureWarning: the '...
39
Bug loading `sentence-transformers/parallel-sentences` ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("sentence-transformers/parallel-sentences") ``` raises this: ``` /home/phmay/miniconda3/envs/paraphrase-mining/lib/python3.9/site-packages/datasets/downloa...
[ -0.0064447298645973206, -0.30189454555511475, -0.07506976276636124, 0.1588544398546219, 0.19041398167610168, 0.014945738017559052, 0.5312554240226746, 0.17734768986701965, -0.1279134452342987, 0.1705007553100586, -0.08514212816953659, 0.3792472183704376, 0.0759563222527504, -0.500623404979...
https://github.com/huggingface/datasets/issues/5081
Bug loading `sentence-transformers/parallel-sentences`
What's wrong with those lines exactly ? Maybe passing `error_bad_lines=False` (and maybe `warn_bad_lines=True`) can be helpful
## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("sentence-transformers/parallel-sentences") ``` raises this: ``` /home/phmay/miniconda3/envs/paraphrase-mining/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py:697: FutureWarning: the '...
16
Bug loading `sentence-transformers/parallel-sentences` ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("sentence-transformers/parallel-sentences") ``` raises this: ``` /home/phmay/miniconda3/envs/paraphrase-mining/lib/python3.9/site-packages/datasets/downloa...
[ -0.0064447298645973206, -0.30189454555511475, -0.07506976276636124, 0.1588544398546219, 0.19041398167610168, 0.014945738017559052, 0.5312554240226746, 0.17734768986701965, -0.1279134452342987, 0.1705007553100586, -0.08514212816953659, 0.3792472183704376, 0.0759563222527504, -0.500623404979...
https://github.com/huggingface/datasets/issues/5081
Bug loading `sentence-transformers/parallel-sentences`
> What's wrong with those lines exactly ? Stuff like this: `ParserError: Error tokenizing data. C error: Expected 2 fields in line 540345, saw 3`
## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("sentence-transformers/parallel-sentences") ``` raises this: ``` /home/phmay/miniconda3/envs/paraphrase-mining/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py:697: FutureWarning: the '...
25
Bug loading `sentence-transformers/parallel-sentences` ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("sentence-transformers/parallel-sentences") ``` raises this: ``` /home/phmay/miniconda3/envs/paraphrase-mining/lib/python3.9/site-packages/datasets/downloa...
[ -0.0064447298645973206, -0.30189454555511475, -0.07506976276636124, 0.1588544398546219, 0.19041398167610168, 0.014945738017559052, 0.5312554240226746, 0.17734768986701965, -0.1279134452342987, 0.1705007553100586, -0.08514212816953659, 0.3792472183704376, 0.0759563222527504, -0.500623404979...
https://github.com/huggingface/datasets/issues/5081
Bug loading `sentence-transformers/parallel-sentences`
> Maybe passing error_bad_lines=False (and maybe warn_bad_lines=True) can be helpful Yes. That would hide the issue but not solve it.
## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("sentence-transformers/parallel-sentences") ``` raises this: ``` /home/phmay/miniconda3/envs/paraphrase-mining/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py:697: FutureWarning: the '...
20
Bug loading `sentence-transformers/parallel-sentences` ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("sentence-transformers/parallel-sentences") ``` raises this: ``` /home/phmay/miniconda3/envs/paraphrase-mining/lib/python3.9/site-packages/datasets/downloa...
[ -0.0064447298645973206, -0.30189454555511475, -0.07506976276636124, 0.1588544398546219, 0.19041398167610168, 0.014945738017559052, 0.5312554240226746, 0.17734768986701965, -0.1279134452342987, 0.1705007553100586, -0.08514212816953659, 0.3792472183704376, 0.0759563222527504, -0.500623404979...
https://github.com/huggingface/datasets/issues/5074
Replace AssertionErrors with more meaningful errors
Looks like the top-level `datasource` directory was removed when https://github.com/huggingface/datasets/pull/4974 was merged, so there are 3 source files to fix.
Replace the AssertionErrors with more meaningful errors such as ValueError, TypeError, etc. The files with AssertionErrors that need to be replaced: ``` src/datasets/arrow_reader.py src/datasets/builder.py src/datasets/utils/version.py ```
20
Replace AssertionErrors with more meaningful errors Replace the AssertionErrors with more meaningful errors such as ValueError, TypeError, etc. The files with AssertionErrors that need to be replaced: ``` src/datasets/arrow_reader.py src/datasets/builder.py src/datasets/utils/version.py ``` Looks like the t...
[ -0.2089221030473709, -0.052662283182144165, -0.11660823225975037, 0.2008512020111084, 0.28648054599761963, 0.05914171785116196, 0.11856641620397568, 0.3406085968017578, -0.029903745278716087, 0.22852090001106262, -0.024910518899559975, 0.23046879470348358, -0.028467722237110138, 0.05595512...
https://github.com/huggingface/datasets/issues/5070
Support default config name when no builder configs
Thank you for creating this feature request, Albert. For context this is the datatest where Albert has been helping me to switch to on-the-fly split config https://huggingface.co/datasets/HuggingFaceM4/cm4-synthetic-testing and the attempt to switch on-the-fly splits was here: https://huggingface.co/datasets/Hugg...
**Is your feature request related to a problem? Please describe.** As discussed with @stas00, we could support defining a default config name, even if no predefined allowed config names are set. That is, support `DEFAULT_CONFIG_NAME`, even when `BUILDER_CONFIGS` is not defined. **Additional context** In order to ...
51
Support default config name when no builder configs **Is your feature request related to a problem? Please describe.** As discussed with @stas00, we could support defining a default config name, even if no predefined allowed config names are set. That is, support `DEFAULT_CONFIG_NAME`, even when `BUILDER_CONFIGS` is...
[ -0.380891352891922, -0.5076113939285278, 0.1077537089586258, -0.23501767218112946, 0.14683619141578674, -0.03946516290307045, 0.2953703999519348, 0.22066837549209595, -0.009172571823000908, 0.6741185784339905, 0.3586374521255493, 0.0971921905875206, -0.2537311017513275, 0.5454229116439819,...
https://github.com/huggingface/datasets/issues/5061
`_pickle.PicklingError: logger cannot be pickled` in multiprocessing `map`
This is maybe related to python 3.10, do you think you could try on 3.8 ? In the meantime we'll keep improving the support for 3.10. Let me add a dedicated CI
## Describe the bug When I `map` with multiple processes, this error occurs. The `.name` of the `logger` that fails to pickle in the final line is `datasets.fingerprint`. ``` File "~/project/dataset.py", line 204, in <dictcomp> split: dataset.map( File ".../site-packages/datasets/arrow_dataset.py", line 24...
32
`_pickle.PicklingError: logger cannot be pickled` in multiprocessing `map` ## Describe the bug When I `map` with multiple processes, this error occurs. The `.name` of the `logger` that fails to pickle in the final line is `datasets.fingerprint`. ``` File "~/project/dataset.py", line 204, in <dictcomp> split...
[ -0.1704784780740738, -0.24004438519477844, -0.041077468544244766, 0.14504089951515198, -0.08370185643434525, 0.0011461451649665833, 0.33660608530044556, 0.16821591556072235, 0.6493862867355347, 0.165668785572052, -0.03523249924182892, 0.6121383905410767, -0.26885202527046204, 0.08796777576...
https://github.com/huggingface/datasets/issues/5061
`_pickle.PicklingError: logger cannot be pickled` in multiprocessing `map`
I did some binary search and seems like the root cause is either `multiprocess` or `dill`. python 3.10 is fine. Specifically: - `multiprocess==0.70.12.2, dill==0.3.4`: works - `multiprocess==0.70.12.2, dill==0.3.5.1`: doesn't work - `multiprocess==0.70.13, dill==0.3.5.1`: doesn't work - `multiprocess==0.70.13, dill...
## Describe the bug When I `map` with multiple processes, this error occurs. The `.name` of the `logger` that fails to pickle in the final line is `datasets.fingerprint`. ``` File "~/project/dataset.py", line 204, in <dictcomp> split: dataset.map( File ".../site-packages/datasets/arrow_dataset.py", line 24...
100
`_pickle.PicklingError: logger cannot be pickled` in multiprocessing `map` ## Describe the bug When I `map` with multiple processes, this error occurs. The `.name` of the `logger` that fails to pickle in the final line is `datasets.fingerprint`. ``` File "~/project/dataset.py", line 204, in <dictcomp> split...
[ -0.1704784780740738, -0.24004438519477844, -0.041077468544244766, 0.14504089951515198, -0.08370185643434525, 0.0011461451649665833, 0.33660608530044556, 0.16821591556072235, 0.6493862867355347, 0.165668785572052, -0.03523249924182892, 0.6121383905410767, -0.26885202527046204, 0.08796777576...
https://github.com/huggingface/datasets/issues/5061
`_pickle.PicklingError: logger cannot be pickled` in multiprocessing `map`
I'm not 100% sure how to figure it out -- the stack trace above doesn't clearly give me a place where I can print out who owns the logger, etc. I only found out its `.name` is `datasets.fingerprint` by printing right before ``` File ".../logging/__init__.py", line 1774, in __reduce__ raise pickle.PicklingError...
## Describe the bug When I `map` with multiple processes, this error occurs. The `.name` of the `logger` that fails to pickle in the final line is `datasets.fingerprint`. ``` File "~/project/dataset.py", line 204, in <dictcomp> split: dataset.map( File ".../site-packages/datasets/arrow_dataset.py", line 24...
70
`_pickle.PicklingError: logger cannot be pickled` in multiprocessing `map` ## Describe the bug When I `map` with multiple processes, this error occurs. The `.name` of the `logger` that fails to pickle in the final line is `datasets.fingerprint`. ``` File "~/project/dataset.py", line 204, in <dictcomp> split...
[ -0.1704784780740738, -0.24004438519477844, -0.041077468544244766, 0.14504089951515198, -0.08370185643434525, 0.0011461451649665833, 0.33660608530044556, 0.16821591556072235, 0.6493862867355347, 0.165668785572052, -0.03523249924182892, 0.6121383905410767, -0.26885202527046204, 0.08796777576...
https://github.com/huggingface/datasets/issues/5061
`_pickle.PicklingError: logger cannot be pickled` in multiprocessing `map`
Ok I see, not sure why it triggers this error though, in `logging.py` the code is https://github.com/python/cpython/blob/c9da063e32725a66495e4047b8a5ed13e72d9e8e/Lib/logging/__init__.py#L1769-L1775 and on my side it works on 3.10 with dill 0.3.5.1 and multiprocess 0.70.13 ```python >>> datasets.fingerprint.logg...
## Describe the bug When I `map` with multiple processes, this error occurs. The `.name` of the `logger` that fails to pickle in the final line is `datasets.fingerprint`. ``` File "~/project/dataset.py", line 204, in <dictcomp> split: dataset.map( File ".../site-packages/datasets/arrow_dataset.py", line 24...
71
`_pickle.PicklingError: logger cannot be pickled` in multiprocessing `map` ## Describe the bug When I `map` with multiple processes, this error occurs. The `.name` of the `logger` that fails to pickle in the final line is `datasets.fingerprint`. ``` File "~/project/dataset.py", line 204, in <dictcomp> split...
[ -0.1704784780740738, -0.24004438519477844, -0.041077468544244766, 0.14504089951515198, -0.08370185643434525, 0.0011461451649665833, 0.33660608530044556, 0.16821591556072235, 0.6493862867355347, 0.165668785572052, -0.03523249924182892, 0.6121383905410767, -0.26885202527046204, 0.08796777576...
https://github.com/huggingface/datasets/issues/5060
Unable to Use Custom Dataset Locally
Hi ! I opened a PR in your repo to fix this :) https://huggingface.co/datasets/zpn/pubchem_selfies/discussions/7 basically you need to use `open` for streaming to work properly
## Describe the bug I have uploaded a [dataset](https://huggingface.co/datasets/zpn/pubchem_selfies) and followed the instructions from the [dataset_loader](https://huggingface.co/docs/datasets/dataset_script#download-data-files-and-organize-splits) tutorial. In that tutorial, it says ``` If the data files live in ...
25
Unable to Use Custom Dataset Locally ## Describe the bug I have uploaded a [dataset](https://huggingface.co/datasets/zpn/pubchem_selfies) and followed the instructions from the [dataset_loader](https://huggingface.co/docs/datasets/dataset_script#download-data-files-and-organize-splits) tutorial. In that tutorial, it...
[ -0.14774192869663239, 0.22815263271331787, 0.11311464011669159, 0.2891523838043213, 0.1840389370918274, 0.03914976865053177, 0.32221031188964844, 0.1039482057094574, 0.1223006546497345, 0.01048971712589264, -0.20797914266586304, 0.34354206919670105, -0.08664333820343018, 0.0394046232104301...
https://github.com/huggingface/datasets/issues/5060
Unable to Use Custom Dataset Locally
Thank you so much for this! Naive question, is this a feature of `open` or have you all overloaded it to be able to read from a URL? Any links to code/documentation would be greatly appreciated, I'd love to learn more
## Describe the bug I have uploaded a [dataset](https://huggingface.co/datasets/zpn/pubchem_selfies) and followed the instructions from the [dataset_loader](https://huggingface.co/docs/datasets/dataset_script#download-data-files-and-organize-splits) tutorial. In that tutorial, it says ``` If the data files live in ...
41
Unable to Use Custom Dataset Locally ## Describe the bug I have uploaded a [dataset](https://huggingface.co/datasets/zpn/pubchem_selfies) and followed the instructions from the [dataset_loader](https://huggingface.co/docs/datasets/dataset_script#download-data-files-and-organize-splits) tutorial. In that tutorial, it...
[ -0.14774192869663239, 0.22815263271331787, 0.11311464011669159, 0.2891523838043213, 0.1840389370918274, 0.03914976865053177, 0.32221031188964844, 0.1039482057094574, 0.1223006546497345, 0.01048971712589264, -0.20797914266586304, 0.34354206919670105, -0.08664333820343018, 0.0394046232104301...
https://github.com/huggingface/datasets/issues/5060
Unable to Use Custom Dataset Locally
`datasets` extends `open` in dataset scripts to work with URLs. The builtin `open` from python only works with local files. You can find the extension here: https://github.com/huggingface/datasets/blob/6ad430ba0cdeeb601170f732d4bd977f5c04594d/src/datasets/download/streaming_download_manager.py#L435-L451 I think w...
## Describe the bug I have uploaded a [dataset](https://huggingface.co/datasets/zpn/pubchem_selfies) and followed the instructions from the [dataset_loader](https://huggingface.co/docs/datasets/dataset_script#download-data-files-and-organize-splits) tutorial. In that tutorial, it says ``` If the data files live in ...
43
Unable to Use Custom Dataset Locally ## Describe the bug I have uploaded a [dataset](https://huggingface.co/datasets/zpn/pubchem_selfies) and followed the instructions from the [dataset_loader](https://huggingface.co/docs/datasets/dataset_script#download-data-files-and-organize-splits) tutorial. In that tutorial, it...
[ -0.14774192869663239, 0.22815263271331787, 0.11311464011669159, 0.2891523838043213, 0.1840389370918274, 0.03914976865053177, 0.32221031188964844, 0.1039482057094574, 0.1223006546497345, 0.01048971712589264, -0.20797914266586304, 0.34354206919670105, -0.08664333820343018, 0.0394046232104301...
https://github.com/huggingface/datasets/issues/5053
Intermittent JSON parse error when streaming the Pile
Maybe #2838 can help. In this PR we allow to skip bad chunks of JSON data to not crash the training Did you have warning messages before the error ? something like this maybe ? ``` 03/24/2022 02:19:46 - WARNING - datasets.utils.streaming_download_manager - Got disconnected from remote data host. Retrying in 5se...
## Describe the bug I have an intermittent error when streaming the Pile, where I get a JSON parse error which causes my program to crash. This is intermittent - when I rerun the program with the same random seed it does not crash in the same way. The exact point this happens also varied - it happened to me 11B tok...
95
Intermittent JSON parse error when streaming the Pile ## Describe the bug I have an intermittent error when streaming the Pile, where I get a JSON parse error which causes my program to crash. This is intermittent - when I rerun the program with the same random seed it does not crash in the same way. The exact po...
[ -0.2561558187007904, 0.08614398539066315, 0.10274158418178558, 0.3511009216308594, 0.23096978664398193, -0.03777889907360077, 0.19184640049934387, 0.42057377099990845, -0.2875746488571167, 0.1298532783985138, 0.32849112153053284, 0.34214913845062256, 0.023091211915016174, -0.18281868100166...
https://github.com/huggingface/datasets/issues/5053
Intermittent JSON parse error when streaming the Pile
Ah, thanks! I did get errors like that. Sad that PR wasn't merged in! I'm currently just downloading 200GB of the Pile locally to avoid streaming (I have space and it's faster anyway), but that's really useful! I can probably apply the dumb patch of just commenting out the bits that raise the JSON Parse Error lol, ...
## Describe the bug I have an intermittent error when streaming the Pile, where I get a JSON parse error which causes my program to crash. This is intermittent - when I rerun the program with the same random seed it does not crash in the same way. The exact point this happens also varied - it happened to me 11B tok...
71
Intermittent JSON parse error when streaming the Pile ## Describe the bug I have an intermittent error when streaming the Pile, where I get a JSON parse error which causes my program to crash. This is intermittent - when I rerun the program with the same random seed it does not crash in the same way. The exact po...
[ -0.2561558187007904, 0.08614398539066315, 0.10274158418178558, 0.3511009216308594, 0.23096978664398193, -0.03777889907360077, 0.19184640049934387, 0.42057377099990845, -0.2875746488571167, 0.1298532783985138, 0.32849112153053284, 0.34214913845062256, 0.023091211915016174, -0.18281868100166...
https://github.com/huggingface/datasets/issues/5053
Intermittent JSON parse error when streaming the Pile
Yup you can get some inspiration from this PR. It simply ignores the bad chunks (a chunk is ~a few MBs of data). We'll try to merge this PR soon
## Describe the bug I have an intermittent error when streaming the Pile, where I get a JSON parse error which causes my program to crash. This is intermittent - when I rerun the program with the same random seed it does not crash in the same way. The exact point this happens also varied - it happened to me 11B tok...
30
Intermittent JSON parse error when streaming the Pile ## Describe the bug I have an intermittent error when streaming the Pile, where I get a JSON parse error which causes my program to crash. This is intermittent - when I rerun the program with the same random seed it does not crash in the same way. The exact po...
[ -0.2561558187007904, 0.08614398539066315, 0.10274158418178558, 0.3511009216308594, 0.23096978664398193, -0.03777889907360077, 0.19184640049934387, 0.42057377099990845, -0.2875746488571167, 0.1298532783985138, 0.32849112153053284, 0.34214913845062256, 0.023091211915016174, -0.18281868100166...
https://github.com/huggingface/datasets/issues/5046
Audiofolder creates empty Dataset if files same level as metadata
Hi! Unfortunately, I can't reproduce this behavior. Instead, I get `ValueError: audio at 2063_fe9936e7-62b2-4e62-a276-acbd344480ce_1.wav doesn't have metadata in /audio-data/metadata.csv`, which can be fixed by removing the `./` from the file name. (Link to a Colab that tries to reproduce this behavior: https://cola...
## Describe the bug When audio files are at the same level as the metadata (`metadata.csv` or `metadata.jsonl` ), the `load_dataset` returns a `DatasetDict` with no rows but the correct columns. https://github.com/huggingface/datasets/blob/1ea4d091b7a4b83a85b2eeb8df65115d39af3766/docs/source/audio_dataset.mdx?plain...
42
Audiofolder creates empty Dataset if files same level as metadata ## Describe the bug When audio files are at the same level as the metadata (`metadata.csv` or `metadata.jsonl` ), the `load_dataset` returns a `DatasetDict` with no rows but the correct columns. https://github.com/huggingface/datasets/blob/1ea4d091...
[ -0.04184511676430702, 0.18840721249580383, -0.0120816919952631, 0.5899380445480347, 0.19426529109477997, 0.05188984423875809, 0.3689001202583313, 0.2723320424556732, 0.009522948414087296, 0.28956693410873413, -0.08250927925109863, 0.33010607957839966, -0.4205990731716156, 0.118906401097774...
https://github.com/huggingface/datasets/issues/5046
Audiofolder creates empty Dataset if files same level as metadata
I think we can make the file name matching part more robust by replacing `file_name` with `os.path.normpath(file_name)`, to ignore "./" among other things, in these two places: * https://github.com/huggingface/datasets/blob/85cd129bde605cd9acacdff0d065fc02e39e09b1/src/datasets/packaged_modules/folder_based_builder/fol...
## Describe the bug When audio files are at the same level as the metadata (`metadata.csv` or `metadata.jsonl` ), the `load_dataset` returns a `DatasetDict` with no rows but the correct columns. https://github.com/huggingface/datasets/blob/1ea4d091b7a4b83a85b2eeb8df65115d39af3766/docs/source/audio_dataset.mdx?plain...
31
Audiofolder creates empty Dataset if files same level as metadata ## Describe the bug When audio files are at the same level as the metadata (`metadata.csv` or `metadata.jsonl` ), the `load_dataset` returns a `DatasetDict` with no rows but the correct columns. https://github.com/huggingface/datasets/blob/1ea4d091...
[ -0.04184511676430702, 0.18840721249580383, -0.0120816919952631, 0.5899380445480347, 0.19426529109477997, 0.05188984423875809, 0.3689001202583313, 0.2723320424556732, 0.009522948414087296, 0.28956693410873413, -0.08250927925109863, 0.33010607957839966, -0.4205990731716156, 0.118906401097774...
https://github.com/huggingface/datasets/issues/5046
Audiofolder creates empty Dataset if files same level as metadata
I realized what I was doing wrong. The documentation puts the files in a subfolder. Once I have done that, it worked. But l agree that this should be handled better if possible.
## Describe the bug When audio files are at the same level as the metadata (`metadata.csv` or `metadata.jsonl` ), the `load_dataset` returns a `DatasetDict` with no rows but the correct columns. https://github.com/huggingface/datasets/blob/1ea4d091b7a4b83a85b2eeb8df65115d39af3766/docs/source/audio_dataset.mdx?plain...
33
Audiofolder creates empty Dataset if files same level as metadata ## Describe the bug When audio files are at the same level as the metadata (`metadata.csv` or `metadata.jsonl` ), the `load_dataset` returns a `DatasetDict` with no rows but the correct columns. https://github.com/huggingface/datasets/blob/1ea4d091...
[ -0.04184511676430702, 0.18840721249580383, -0.0120816919952631, 0.5899380445480347, 0.19426529109477997, 0.05188984423875809, 0.3689001202583313, 0.2723320424556732, 0.009522948414087296, 0.28956693410873413, -0.08250927925109863, 0.33010607957839966, -0.4205990731716156, 0.118906401097774...
https://github.com/huggingface/datasets/issues/5045
Automatically revert to last successful commit to hub when a push_to_hub is interrupted
Could you share the error you got please ? Maybe the full stack trace if you have it ? Maybe `push_to_hub` be implemented as a single commit @Wauplin ? This way if it fails, the repo is still at the previous (valid) state instead of ending-up in an invalid/incimplete state.
**Is your feature request related to a problem? Please describe.** I pushed a modification of a large dataset (remove a column) to the hub. The push was interrupted after some files were committed to the repo. This left the dataset to raise an error on load_dataset() (ValueError couldn’t cast … because column names do...
50
Automatically revert to last successful commit to hub when a push_to_hub is interrupted **Is your feature request related to a problem? Please describe.** I pushed a modification of a large dataset (remove a column) to the hub. The push was interrupted after some files were committed to the repo. This left the datas...
[ -0.557437002658844, -0.14015455543994904, -0.025222836062312126, -0.32825714349746704, 0.12634941935539246, -0.21481463313102722, -0.028438713401556015, 0.3787873089313507, 0.024059370160102844, 0.37196671962738037, 0.3590063154697418, 0.22657276690006256, -0.010694938711822033, 0.23487956...
https://github.com/huggingface/datasets/issues/5045
Automatically revert to last successful commit to hub when a push_to_hub is interrupted
> Maybe push_to_hub be implemented as a single commit ? I think that would definitely be the way to go. Do you know the reasons why not implementing it like this in the first place ? I guess it is because of not been able to upload all at once with `huggingface_hub` but if there was another reason, please let me kn...
**Is your feature request related to a problem? Please describe.** I pushed a modification of a large dataset (remove a column) to the hub. The push was interrupted after some files were committed to the repo. This left the dataset to raise an error on load_dataset() (ValueError couldn’t cast … because column names do...
125
Automatically revert to last successful commit to hub when a push_to_hub is interrupted **Is your feature request related to a problem? Please describe.** I pushed a modification of a large dataset (remove a column) to the hub. The push was interrupted after some files were committed to the repo. This left the datas...
[ -0.3658261299133301, -0.4249005913734436, -0.0063218530267477036, -0.21672146022319794, 0.08757202327251434, -0.3276037275791168, 0.04989784210920334, 0.3058956563472748, 0.1087958812713623, 0.4126579165458679, 0.2971027195453644, 0.060209281742572784, -0.16505025327205658, 0.4147825837135...
https://github.com/huggingface/datasets/issues/5045
Automatically revert to last successful commit to hub when a push_to_hub is interrupted
> I think that would definitely be the way to go. Do you know the reasons why not implementing it like this in the first place ? I guess it is because of not been able to upload all at once with huggingface_hub but if there was another reason, please let me know. Ideally we would want to upload the files iteratively...
**Is your feature request related to a problem? Please describe.** I pushed a modification of a large dataset (remove a column) to the hub. The push was interrupted after some files were committed to the repo. This left the dataset to raise an error on load_dataset() (ValueError couldn’t cast … because column names do...
147
Automatically revert to last successful commit to hub when a push_to_hub is interrupted **Is your feature request related to a problem? Please describe.** I pushed a modification of a large dataset (remove a column) to the hub. The push was interrupted after some files were committed to the repo. This left the datas...
[ -0.5348613262176514, -0.31370609998703003, 0.038736533373594284, -0.25577032566070557, 0.015381718054413795, -0.3755161464214325, 0.08382456749677658, 0.31598690152168274, -0.018812939524650574, 0.42596060037612915, 0.34443020820617676, 0.11366371810436249, -0.08638172596693039, 0.38235279...
https://github.com/huggingface/datasets/issues/5045
Automatically revert to last successful commit to hub when a push_to_hub is interrupted
> Ideally we would want to upload the files iteratively - and then once everything is uploaded we proceed to commit. Oh I see. So maybe this has to be done in an implementation specific to `datasets/` as it is not a very common case (upload a bunch of files on the fly). You can maybe have a look at how `huggingf...
**Is your feature request related to a problem? Please describe.** I pushed a modification of a large dataset (remove a column) to the hub. The push was interrupted after some files were committed to the repo. This left the dataset to raise an error on load_dataset() (ValueError couldn’t cast … because column names do...
162
Automatically revert to last successful commit to hub when a push_to_hub is interrupted **Is your feature request related to a problem? Please describe.** I pushed a modification of a large dataset (remove a column) to the hub. The push was interrupted after some files were committed to the repo. This left the datas...
[ -0.5546017289161682, -0.16547493636608124, 0.006455536931753159, -0.1427696794271469, 0.022968517616391182, -0.258360356092453, 0.06754394620656967, 0.32462063431739807, 0.07754281163215637, 0.2990718483924866, 0.24885298311710358, 0.17172139883041382, -0.17607930302619934, 0.2414623349905...
https://github.com/huggingface/datasets/issues/5045
Automatically revert to last successful commit to hub when a push_to_hub is interrupted
> Could you share the error you got please ? Maybe the full stack trace if you have it ? Here’s part of the stack trace, that I can reproduce at the moment from a photo I took (potential typos from OCR): ``` ValueError Traceback (most recent call last) <ipython-input-4-274613b7d3f5> in <module> from datasets im...
**Is your feature request related to a problem? Please describe.** I pushed a modification of a large dataset (remove a column) to the hub. The push was interrupted after some files were committed to the repo. This left the dataset to raise an error on load_dataset() (ValueError couldn’t cast … because column names do...
155
Automatically revert to last successful commit to hub when a push_to_hub is interrupted **Is your feature request related to a problem? Please describe.** I pushed a modification of a large dataset (remove a column) to the hub. The push was interrupted after some files were committed to the repo. This left the datas...
[ -0.48917585611343384, -0.2021462619304657, 0.02700600028038025, -0.23982305824756622, 0.19127099215984344, -0.20218759775161743, 0.07046350836753845, 0.40349459648132324, 0.09972336888313293, 0.3640482723712921, 0.24140499532222748, 0.25706785917282104, -0.0666167214512825, 0.1271492540836...
https://github.com/huggingface/datasets/issues/5044
integrate `load_from_disk` into `load_dataset`
I agree the situation is not ideal and it would be awesome to use `load_dataset` to reload a dataset saved locally ! For context: - `load_dataset` works in three steps: download the dataset, then prepare it as an arrow dataset, and finally return a memory mapped arrow dataset. In particular it creates a cache dir...
**Is your feature request related to a problem? Please describe.** Is it possible to make `load_dataset` more universal similar to `from_pretrained` in `transformers` so that it can handle the hub, and the local path datasets of all supported types? Currently one has to choose a different loader depending on how ...
154
integrate `load_from_disk` into `load_dataset` **Is your feature request related to a problem? Please describe.** Is it possible to make `load_dataset` more universal similar to `from_pretrained` in `transformers` so that it can handle the hub, and the local path datasets of all supported types? Currently one ...
[ -0.44635680317878723, -0.2547794580459595, 0.010255537927150726, 0.2019416093826294, 0.2771260142326355, -0.06415087729692459, 0.34563735127449036, 0.05371537804603577, 0.18767482042312622, 0.0032595768570899963, -0.12003012001514435, 0.4315917193889618, -0.21891242265701294, 0.36595079302...
https://github.com/huggingface/datasets/issues/5044
integrate `load_from_disk` into `load_dataset`
Thank you for the detailed breakdown, @lhoestq > I'm curious, what would you expect to happen in this situation ? 1. the simplest solution is to add a flag to the dataset saved by `save_to_disk` and have `load_dataset` check that flag - if it's set simply switch control to `load_from_disk` behind the scenes. So ...
**Is your feature request related to a problem? Please describe.** Is it possible to make `load_dataset` more universal similar to `from_pretrained` in `transformers` so that it can handle the hub, and the local path datasets of all supported types? Currently one has to choose a different loader depending on how ...
257
integrate `load_from_disk` into `load_dataset` **Is your feature request related to a problem? Please describe.** Is it possible to make `load_dataset` more universal similar to `from_pretrained` in `transformers` so that it can handle the hub, and the local path datasets of all supported types? Currently one ...
[ -0.44635680317878723, -0.2547794580459595, 0.010255537927150726, 0.2019416093826294, 0.2771260142326355, -0.06415087729692459, 0.34563735127449036, 0.05371537804603577, 0.18767482042312622, 0.0032595768570899963, -0.12003012001514435, 0.4315917193889618, -0.21891242265701294, 0.36595079302...
https://github.com/huggingface/datasets/issues/5044
integrate `load_from_disk` into `load_dataset`
I think the simplest is to always memory map the local file without copy, but still have a cached directory in the cache at `~/.cache/huggingface` instead of saving `map` results next to the original data. In practice we can even use symlinks if it makes the implementation simpler
**Is your feature request related to a problem? Please describe.** Is it possible to make `load_dataset` more universal similar to `from_pretrained` in `transformers` so that it can handle the hub, and the local path datasets of all supported types? Currently one has to choose a different loader depending on how ...
48
integrate `load_from_disk` into `load_dataset` **Is your feature request related to a problem? Please describe.** Is it possible to make `load_dataset` more universal similar to `from_pretrained` in `transformers` so that it can handle the hub, and the local path datasets of all supported types? Currently one ...
[ -0.44635680317878723, -0.2547794580459595, 0.010255537927150726, 0.2019416093826294, 0.2771260142326355, -0.06415087729692459, 0.34563735127449036, 0.05371537804603577, 0.18767482042312622, 0.0032595768570899963, -0.12003012001514435, 0.4315917193889618, -0.21891242265701294, 0.36595079302...
https://github.com/huggingface/datasets/issues/5044
integrate `load_from_disk` into `load_dataset`
Yes, so that you always have the cached entry for any dataset, but the "payload" doesn't have to be physically in the cache if it's already on the local filesystem. As you said a symlink will do.
**Is your feature request related to a problem? Please describe.** Is it possible to make `load_dataset` more universal similar to `from_pretrained` in `transformers` so that it can handle the hub, and the local path datasets of all supported types? Currently one has to choose a different loader depending on how ...
37
integrate `load_from_disk` into `load_dataset` **Is your feature request related to a problem? Please describe.** Is it possible to make `load_dataset` more universal similar to `from_pretrained` in `transformers` so that it can handle the hub, and the local path datasets of all supported types? Currently one ...
[ -0.44635680317878723, -0.2547794580459595, 0.010255537927150726, 0.2019416093826294, 0.2771260142326355, -0.06415087729692459, 0.34563735127449036, 0.05371537804603577, 0.18767482042312622, 0.0032595768570899963, -0.12003012001514435, 0.4315917193889618, -0.21891242265701294, 0.36595079302...
https://github.com/huggingface/datasets/issues/5044
integrate `load_from_disk` into `load_dataset`
We haven't had the bandwidth to implement this so far. Let me know if you'd be interested in contributing this feature :)
**Is your feature request related to a problem? Please describe.** Is it possible to make `load_dataset` more universal similar to `from_pretrained` in `transformers` so that it can handle the hub, and the local path datasets of all supported types? Currently one has to choose a different loader depending on how ...
22
integrate `load_from_disk` into `load_dataset` **Is your feature request related to a problem? Please describe.** Is it possible to make `load_dataset` more universal similar to `from_pretrained` in `transformers` so that it can handle the hub, and the local path datasets of all supported types? Currently one ...
[ -0.44635680317878723, -0.2547794580459595, 0.010255537927150726, 0.2019416093826294, 0.2771260142326355, -0.06415087729692459, 0.34563735127449036, 0.05371537804603577, 0.18767482042312622, 0.0032595768570899963, -0.12003012001514435, 0.4315917193889618, -0.21891242265701294, 0.36595079302...
https://github.com/huggingface/datasets/issues/5044
integrate `load_from_disk` into `load_dataset`
@lhoestq I can jump into that. What I don't like is having functions with many parameters input. Even though they are optional, it's always harder to reason about and test such cases. If there are more features worth to work on, feel free to ping me. It's a lot of fun to help :smile:
**Is your feature request related to a problem? Please describe.** Is it possible to make `load_dataset` more universal similar to `from_pretrained` in `transformers` so that it can handle the hub, and the local path datasets of all supported types? Currently one has to choose a different loader depending on how ...
54
integrate `load_from_disk` into `load_dataset` **Is your feature request related to a problem? Please describe.** Is it possible to make `load_dataset` more universal similar to `from_pretrained` in `transformers` so that it can handle the hub, and the local path datasets of all supported types? Currently one ...
[ -0.44635680317878723, -0.2547794580459595, 0.010255537927150726, 0.2019416093826294, 0.2771260142326355, -0.06415087729692459, 0.34563735127449036, 0.05371537804603577, 0.18767482042312622, 0.0032595768570899963, -0.12003012001514435, 0.4315917193889618, -0.21891242265701294, 0.36595079302...
https://github.com/huggingface/datasets/issues/5044
integrate `load_from_disk` into `load_dataset`
Thanks a lot for your help @mariusz-jachimowicz-83 :) I think as a first step we could implement an Arrow dataset builder to be able to load and stream Arrow datasets locally or from Hugging Face. Maybe something similar to the Parquet builder at [src/datasets/packaged_modules/parquet/parquet.py](https://github.com/...
**Is your feature request related to a problem? Please describe.** Is it possible to make `load_dataset` more universal similar to `from_pretrained` in `transformers` so that it can handle the hub, and the local path datasets of all supported types? Currently one has to choose a different loader depending on how ...
70
integrate `load_from_disk` into `load_dataset` **Is your feature request related to a problem? Please describe.** Is it possible to make `load_dataset` more universal similar to `from_pretrained` in `transformers` so that it can handle the hub, and the local path datasets of all supported types? Currently one ...
[ -0.44635680317878723, -0.2547794580459595, 0.010255537927150726, 0.2019416093826294, 0.2771260142326355, -0.06415087729692459, 0.34563735127449036, 0.05371537804603577, 0.18767482042312622, 0.0032595768570899963, -0.12003012001514435, 0.4315917193889618, -0.21891242265701294, 0.36595079302...
https://github.com/huggingface/datasets/issues/5044
integrate `load_from_disk` into `load_dataset`
@lhoestq Let me know if you have further recommendations or anything that you would like to add but you don't have bandwith for.
**Is your feature request related to a problem? Please describe.** Is it possible to make `load_dataset` more universal similar to `from_pretrained` in `transformers` so that it can handle the hub, and the local path datasets of all supported types? Currently one has to choose a different loader depending on how ...
23
integrate `load_from_disk` into `load_dataset` **Is your feature request related to a problem? Please describe.** Is it possible to make `load_dataset` more universal similar to `from_pretrained` in `transformers` so that it can handle the hub, and the local path datasets of all supported types? Currently one ...
[ -0.44635680317878723, -0.2547794580459595, 0.010255537927150726, 0.2019416093826294, 0.2771260142326355, -0.06415087729692459, 0.34563735127449036, 0.05371537804603577, 0.18767482042312622, 0.0032595768570899963, -0.12003012001514435, 0.4315917193889618, -0.21891242265701294, 0.36595079302...
https://github.com/huggingface/datasets/issues/5044
integrate `load_from_disk` into `load_dataset`
Any update on this issue? It makes existing scripts and examples fall flat when provided with a customized/preprocessed dataset saved to disk.
**Is your feature request related to a problem? Please describe.** Is it possible to make `load_dataset` more universal similar to `from_pretrained` in `transformers` so that it can handle the hub, and the local path datasets of all supported types? Currently one has to choose a different loader depending on how ...
22
integrate `load_from_disk` into `load_dataset` **Is your feature request related to a problem? Please describe.** Is it possible to make `load_dataset` more universal similar to `from_pretrained` in `transformers` so that it can handle the hub, and the local path datasets of all supported types? Currently one ...
[ -0.44635680317878723, -0.2547794580459595, 0.010255537927150726, 0.2019416093826294, 0.2771260142326355, -0.06415087729692459, 0.34563735127449036, 0.05371537804603577, 0.18767482042312622, 0.0032595768570899963, -0.12003012001514435, 0.4315917193889618, -0.21891242265701294, 0.36595079302...
https://github.com/huggingface/datasets/issues/5038
`Dataset.unique` showing wrong output after filtering
Hi! It seems like `flatten_indices` (called in `unique`) doesn't know how to handle empty indices mappings. I'm working on the fix.
## Describe the bug After filtering a dataset, and if no samples remain, `Dataset.unique` will return the unique values of the unfiltered dataset. ## Steps to reproduce the bug ```python from datasets import Dataset dataset = Dataset.from_dict({'id': [0]}) dataset = dataset.filter(lambda _: False) print(data...
21
`Dataset.unique` showing wrong output after filtering ## Describe the bug After filtering a dataset, and if no samples remain, `Dataset.unique` will return the unique values of the unfiltered dataset. ## Steps to reproduce the bug ```python from datasets import Dataset dataset = Dataset.from_dict({'id': [0]}...
[ 0.12757061421871185, -0.3022191524505615, -0.04662945866584778, 0.1432720273733139, 0.10523290932178497, 0.12954023480415344, 0.3957524001598358, 0.08936876058578491, -0.03021814301609993, 0.13340350985527039, -0.03949206322431564, 0.5570560693740845, -0.03645673766732216, -0.0091443061828...
https://github.com/huggingface/datasets/issues/5032
new dataset type: single-label and multi-label video classification
Hi ! You can in the `features` folder how we implemented the audio and image feature types. We can have something similar to videos. What we need to decide: - the video loading library to use - the output format when a user accesses a video type object - what parameters a `Video()` feature type needs also cc @...
**Is your feature request related to a problem? Please describe.** In my research, I am dealing with multi-modal (audio+text+frame sequence) video classification. It would be great if the datasets library supported generating multi-modal batches from a video dataset. **Describe the solution you'd like** Assume I h...
71
new dataset type: single-label and multi-label video classification **Is your feature request related to a problem? Please describe.** In my research, I am dealing with multi-modal (audio+text+frame sequence) video classification. It would be great if the datasets library supported generating multi-modal batches fro...
[ -0.20656846463680267, -0.17477481067180634, -0.009809169918298721, -0.021113231778144836, 0.05933540314435959, -0.1979742795228958, 0.6924853324890137, 0.036978788673877716, -0.5309857130050659, -0.1518697291612625, -0.16085143387317657, 0.004332573153078556, -0.6190938949584961, 0.4993412...
https://github.com/huggingface/datasets/issues/5032
new dataset type: single-label and multi-label video classification
Hi ! I think we just missing which lib we're going to use to decode the videos + which parameters must go in the `Video` type
**Is your feature request related to a problem? Please describe.** In my research, I am dealing with multi-modal (audio+text+frame sequence) video classification. It would be great if the datasets library supported generating multi-modal batches from a video dataset. **Describe the solution you'd like** Assume I h...
26
new dataset type: single-label and multi-label video classification **Is your feature request related to a problem? Please describe.** In my research, I am dealing with multi-modal (audio+text+frame sequence) video classification. It would be great if the datasets library supported generating multi-modal batches fro...
[ -0.241469606757164, -0.13443975150585175, 0.002186466008424759, -0.002054169774055481, 0.04629543423652649, -0.21092137694358826, 0.6544625163078308, 0.040859200060367584, -0.5185300707817078, -0.10220308601856232, -0.1690843254327774, 0.07043944299221039, -0.6277961730957031, 0.4078499376...
https://github.com/huggingface/datasets/issues/5032
new dataset type: single-label and multi-label video classification
pytorchvideo uses [pyav](https://github.com/PyAV-Org/PyAV) as the default decoder: https://github.com/facebookresearch/pytorchvideo/blob/c8d23d8b7e597586a9e2d18f6ed31ad8aa379a7a/pytorchvideo/data/labeled_video_dataset.py#L37 Also it would be great if `optionally` audio can also be decoded from the video as in pytorc...
**Is your feature request related to a problem? Please describe.** In my research, I am dealing with multi-modal (audio+text+frame sequence) video classification. It would be great if the datasets library supported generating multi-modal batches from a video dataset. **Describe the solution you'd like** Assume I h...
36
new dataset type: single-label and multi-label video classification **Is your feature request related to a problem? Please describe.** In my research, I am dealing with multi-modal (audio+text+frame sequence) video classification. It would be great if the datasets library supported generating multi-modal batches fro...
[ -0.24553118646144867, -0.1273702085018158, 0.0012589897960424423, -0.029612600803375244, 0.10663260519504547, -0.21920770406723022, 0.6609010696411133, 0.02041279524564743, -0.5795267224311829, -0.08067630231380463, -0.18881264328956604, 0.14815093576908112, -0.5741210579872131, 0.28009662...
https://github.com/huggingface/datasets/issues/5032
new dataset type: single-label and multi-label video classification
@sayakpaul I did do quite a bit of work on [this PR](https://github.com/huggingface/datasets/pull/4532) a while back to add a video feature. It's outdated, but uses my `encoded_video` [package](https://github.com/nateraw/encoded-video) under the hood, which is basically a wrapper around PyAV stolen from [pytorchvideo](...
**Is your feature request related to a problem? Please describe.** In my research, I am dealing with multi-modal (audio+text+frame sequence) video classification. It would be great if the datasets library supported generating multi-modal batches from a video dataset. **Describe the solution you'd like** Assume I h...
67
new dataset type: single-label and multi-label video classification **Is your feature request related to a problem? Please describe.** In my research, I am dealing with multi-modal (audio+text+frame sequence) video classification. It would be great if the datasets library supported generating multi-modal batches fro...
[ -0.29071953892707825, -0.12987607717514038, 0.0008971914649009705, -0.0838012546300888, 0.032520733773708344, -0.15826797485351562, 0.7191748023033142, 0.06242666020989418, -0.5241206884384155, -0.1024882048368454, -0.08797046542167664, 0.08317109197378159, -0.6178998351097107, 0.378031104...
https://github.com/huggingface/datasets/issues/5028
passing parameters to the method passed to Dataset.from_generator()
Hi! Yes, you can either use the `gen_kwargs` param in `Dataset.from_generator` (`ds = Dataset.from_generator(gen, gen_kwargs={"param1": val})`) or wrap the generator function with `functools.partial` (`ds = Dataset.from_generator(functools.partial(gen, param1="val"))`) to pass custom parameters to it.
Big thanks for providing dataset creation via a generator. I want to ask whether there is any way that parameters can be passed to the method Dataset.from_generator() method, like as follows. ``` from datasets import Dataset def gen(param1): for idx in len(custom_dataset): yield custom_dataset[id...
33
passing parameters to the method passed to Dataset.from_generator() Big thanks for providing dataset creation via a generator. I want to ask whether there is any way that parameters can be passed to the method Dataset.from_generator() method, like as follows. ``` from datasets import Dataset def gen(param1):...
[ 0.03988085314631462, 0.19671323895454407, -0.03208833560347557, 0.20860078930854797, 0.3242540955543518, -0.18615511059761047, 0.1362990140914917, 0.20249298214912415, -0.3697400987148285, 0.039925575256347656, 0.2710016369819641, 0.5735809803009033, -0.18443849682807922, -0.18917337059974...
https://github.com/huggingface/datasets/issues/5025
Custom Json Dataset Throwing Error when batch is False
Hi! Our processors are meant to be used in `batched` mode, so if `batched` is `False`, you need to drop the batch dimension (the error message warns you that the array has an extra dimension meaning it's 4D instead of 3D) to avoid the error: ```python def prepare_examples(examples): #Some preporcessing for each ...
## Describe the bug A clear and concise description of what the bug is. I tried to create my custom dataset using below code ``` from datasets import Features, Sequence, ClassLabel, Value, Array2D, Array3D from torchvision import transforms from transformers import AutoProcessor # we'll use the Auto API here -...
93
Custom Json Dataset Throwing Error when batch is False ## Describe the bug A clear and concise description of what the bug is. I tried to create my custom dataset using below code ``` from datasets import Features, Sequence, ClassLabel, Value, Array2D, Array3D from torchvision import transforms from transform...
[ -0.20834654569625854, -0.19214779138565063, -0.07093651592731476, 0.3017364740371704, 0.1363687813282013, 0.010352909564971924, 0.46729496121406555, 0.29022735357284546, -0.006736405193805695, 0.08248203992843628, 0.2620529234409332, 0.2601095139980316, -0.3658747375011444, 0.1061264201998...
https://github.com/huggingface/datasets/issues/5025
Custom Json Dataset Throwing Error when batch is False
> Hi! Our processors are meant to be used in `batched` mode, so if `batched` is `False`, you need to drop the batch dimension (the error message warns you that the array has an extra dimension meaning it's 4D instead of 3D) to avoid the error: > > ```python > def prepare_examples(examples): > #Some preporcessi...
## Describe the bug A clear and concise description of what the bug is. I tried to create my custom dataset using below code ``` from datasets import Features, Sequence, ClassLabel, Value, Array2D, Array3D from torchvision import transforms from transformers import AutoProcessor # we'll use the Auto API here -...
118
Custom Json Dataset Throwing Error when batch is False ## Describe the bug A clear and concise description of what the bug is. I tried to create my custom dataset using below code ``` from datasets import Features, Sequence, ClassLabel, Value, Array2D, Array3D from torchvision import transforms from transform...
[ -0.20834654569625854, -0.19214779138565063, -0.07093651592731476, 0.3017364740371704, 0.1363687813282013, 0.010352909564971924, 0.46729496121406555, 0.29022735357284546, -0.006736405193805695, 0.08248203992843628, 0.2620529234409332, 0.2601095139980316, -0.3658747375011444, 0.1061264201998...
https://github.com/huggingface/datasets/issues/5021
Split is inferred from filename and overrides metadata.jsonl
Hi! What's the structure of your image folder? `datasets` by default tries to infer to what split each file belongs based on directory/file names. If it's OK to load all the images inside the `dataset` folder in the `train` split, you can do the following: ```python dataset = load_dataset("imagefolder", data_files="d...
## Describe the bug Including the strings "test" or "train" anywhere in a filename causes `datasets` to infer the split and silently ignore all other files. This behavior is documented for directory names but not filenames: https://huggingface.co/docs/datasets/image_dataset#imagefolder ## Steps to reproduce th...
51
Split is inferred from filename and overrides metadata.jsonl ## Describe the bug Including the strings "test" or "train" anywhere in a filename causes `datasets` to infer the split and silently ignore all other files. This behavior is documented for directory names but not filenames: https://huggingface.co/docs...
[ 0.05747763440012932, 0.021085694432258606, -0.06381215155124664, 0.5179053544998169, 0.11288314312696457, 0.1870461404323578, 0.3881393074989319, 0.3922385573387146, 0.016799572855234146, 0.21734026074409485, -0.12034709006547928, 0.39183947443962097, -0.20038187503814697, 0.04234264045953...
https://github.com/huggingface/datasets/issues/5021
Split is inferred from filename and overrides metadata.jsonl
Thanks! Specifying `data_files` worked for that case. I'm new to the library, so let me try rephrasing the issue. If there's no actual bug here, sorry for the trouble. I've uploaded an example [here](https://files.catbox.moe/nfj2pd.zip) with the following files: ``` . ├── bug.py └── imagefolder ├── tes...
## Describe the bug Including the strings "test" or "train" anywhere in a filename causes `datasets` to infer the split and silently ignore all other files. This behavior is documented for directory names but not filenames: https://huggingface.co/docs/datasets/image_dataset#imagefolder ## Steps to reproduce th...
150
Split is inferred from filename and overrides metadata.jsonl ## Describe the bug Including the strings "test" or "train" anywhere in a filename causes `datasets` to infer the split and silently ignore all other files. This behavior is documented for directory names but not filenames: https://huggingface.co/docs...
[ 0.04267481341958046, 0.006399407982826233, -0.03466195985674858, 0.49726682901382446, 0.09559257328510284, 0.18740200996398926, 0.3946736752986908, 0.39690443873405457, -0.014018054120242596, 0.17116570472717285, -0.17858774960041046, 0.39359697699546814, -0.19119973480701447, 0.0192316975...
https://github.com/huggingface/datasets/issues/5021
Split is inferred from filename and overrides metadata.jsonl
This looks like a duplicate of https://github.com/huggingface/datasets/issues/4895 (the problem is explained in this comment: https://github.com/huggingface/datasets/issues/4895#issuecomment-1248269550). In the meantime, you can do the following to fetch all the splits: ```python dataset = load_dataset("imagefolde...
## Describe the bug Including the strings "test" or "train" anywhere in a filename causes `datasets` to infer the split and silently ignore all other files. This behavior is documented for directory names but not filenames: https://huggingface.co/docs/datasets/image_dataset#imagefolder ## Steps to reproduce th...
37
Split is inferred from filename and overrides metadata.jsonl ## Describe the bug Including the strings "test" or "train" anywhere in a filename causes `datasets` to infer the split and silently ignore all other files. This behavior is documented for directory names but not filenames: https://huggingface.co/docs...
[ 0.10290111601352692, 0.024444878101348877, -0.06702554225921631, 0.4617421627044678, 0.08765880763530731, 0.21010467410087585, 0.3528493642807007, 0.3635416030883789, 0.004549942910671234, 0.1651323139667511, -0.1511828750371933, 0.4436893165111542, -0.20380224287509918, -0.027615865692496...
https://github.com/huggingface/datasets/issues/5014
I need to read the custom dataset in conll format
Hi! We don't currently have a builder for parsing custom `conll` datasets, but I guess we could add one as a packaged module (similarly to what [TFDS](https://github.com/tensorflow/datasets/blob/master/tensorflow_datasets/core/dataset_builders/conll/conll_dataset_builder.py) did). @lhoestq @albertvillanova WDYT? In ...
I need to read the custom dataset in conll format
137
I need to read the custom dataset in conll format I need to read the custom dataset in conll format Hi! We don't currently have a builder for parsing custom `conll` datasets, but I guess we could add one as a packaged module (similarly to what [TFDS](https://github.com/tensorflow/datasets/blob/master/tensorflow_d...
[ -0.4587492346763611, 0.011594131588935852, -0.18534238636493683, 0.2370755970478058, 0.13481323421001434, 0.2164463996887207, 0.3992217779159546, 0.343513160943985, -0.4873550832271576, 0.02529759705066681, -0.26638007164001465, 0.24309208989143372, -0.353158563375473, 0.4143036901950836, ...
https://github.com/huggingface/datasets/issues/5014
I need to read the custom dataset in conll format
I think we could add a dedicated builder if you think this format is general enough.
I need to read the custom dataset in conll format
16
I need to read the custom dataset in conll format I need to read the custom dataset in conll format I think we could add a dedicated builder if you think this format is general enough.
[ -0.46517640352249146, 0.17232361435890198, -0.22875508666038513, 0.04054702818393707, 0.11928945034742355, 0.12518629431724548, 0.37645193934440613, 0.2061583399772644, -0.45362427830696106, 0.28308090567588806, -0.2519296407699585, 0.11082787066698074, -0.2176361083984375, 0.4760890603065...
https://github.com/huggingface/datasets/issues/5014
I need to read the custom dataset in conll format
> I think we could add a dedicated builder if you think this format is general enough. I think its functions are incomplete. It should have to_ Conll and from_ There are two methods of conll.
I need to read the custom dataset in conll format
36
I need to read the custom dataset in conll format I need to read the custom dataset in conll format > I think we could add a dedicated builder if you think this format is general enough. I think its functions are incomplete. It should have to_ Conll and from_ There are two methods of conll.
[ -0.38365739583969116, 0.13543447852134705, -0.1454320102930069, 0.1218985766172409, 0.1794089525938034, -0.006354130804538727, 0.34691184759140015, 0.29411593079566956, -0.5567654967308044, 0.2632015347480774, -0.20346099138259888, 0.06095408648252487, -0.1663142293691635, 0.29960945248603...
https://github.com/huggingface/datasets/issues/5013
would huggingface like publish cpp binding for datasets package ?
Hi ! Can you share more information about your use case ? How could it help you to have cpp bindings versus using the python libraries ?
HI: I use cpp env libtorch, I like use hugggingface ,but huggingface not cpp binding, would you like publish cpp binding for it. thanks
27
would huggingface like publish cpp binding for datasets package ? HI: I use cpp env libtorch, I like use hugggingface ,but huggingface not cpp binding, would you like publish cpp binding for it. thanks Hi ! Can you share more information about your use case ? How could it help you to have cpp bindings versus usin...
[ -0.15040680766105652, -0.6395567655563354, -0.08259376883506775, 0.08187495172023773, 0.09981731325387955, -0.24678373336791992, 0.11569446325302124, 0.005057012662291527, -0.10657450556755066, 0.13536906242370605, -0.2619239091873169, 0.26693183183670044, -0.22225558757781982, 0.521974384...
https://github.com/huggingface/datasets/issues/5013
would huggingface like publish cpp binding for datasets package ?
> Hi ! Can you share more information about your use case ? How could it help you to have cpp bindings versus using the python libraries ? for example ,the huggingface load_model() and load_dataset() can execute in cpp env
HI: I use cpp env libtorch, I like use hugggingface ,but huggingface not cpp binding, would you like publish cpp binding for it. thanks
40
would huggingface like publish cpp binding for datasets package ? HI: I use cpp env libtorch, I like use hugggingface ,but huggingface not cpp binding, would you like publish cpp binding for it. thanks > Hi ! Can you share more information about your use case ? How could it help you to have cpp bindings versus us...
[ -0.11176742613315582, -0.7132203578948975, -0.0498846210539341, 0.10632003843784332, 0.14780597388744354, -0.19892370700836182, 0.10186192393302917, 0.0233752503991127, -0.04466817528009415, 0.11003843694925308, -0.30504894256591797, 0.2888956069946289, -0.20051023364067078, 0.589917540550...
https://github.com/huggingface/datasets/issues/5013
would huggingface like publish cpp binding for datasets package ?
If it's a viable option for you, you can check [tch-rs](https://github.com/LaurentMazare/tch-rs) to load models in Rust. Regarding datasets, you can first download them in python and then use Arrow C++ or Rust to load them
HI: I use cpp env libtorch, I like use hugggingface ,but huggingface not cpp binding, would you like publish cpp binding for it. thanks
35
would huggingface like publish cpp binding for datasets package ? HI: I use cpp env libtorch, I like use hugggingface ,but huggingface not cpp binding, would you like publish cpp binding for it. thanks If it's a viable option for you, you can check [tch-rs](https://github.com/LaurentMazare/tch-rs) to load models ...
[ -0.43060657382011414, -0.32234787940979004, 0.00538407638669014, 0.10048864036798477, 0.11539752781391144, -0.07726025581359863, -0.02929486706852913, 0.1796390861272812, 0.06182944402098656, 0.07767027616500854, -0.5464898347854614, 0.30839598178863525, -0.25403207540512085, 0.60314631462...
https://github.com/huggingface/datasets/issues/5013
would huggingface like publish cpp binding for datasets package ?
If you are more adventurous, another option is to embed python calls inside c++ e.g. with `pybind11`.
HI: I use cpp env libtorch, I like use hugggingface ,but huggingface not cpp binding, would you like publish cpp binding for it. thanks
17
would huggingface like publish cpp binding for datasets package ? HI: I use cpp env libtorch, I like use hugggingface ,but huggingface not cpp binding, would you like publish cpp binding for it. thanks If you are more adventurous, another option is to embed python calls inside c++ e.g. with `pybind11`.
[ -0.3280462920665741, -0.5319107174873352, -0.01091565378010273, -0.009758204221725464, 0.20415040850639343, -0.15778087079524994, 0.10446525365114212, 0.09144486486911774, -0.10828098654747009, 0.2027130126953125, -0.31489911675453186, 0.28619492053985596, -0.246366485953331, 0.68667656183...
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' ) ``` ...
[ 0.23562388122081757, -0.032607778906822205, 0.013763636350631714, -0.013254992663860321, 0.17930810153484344, -0.17578494548797607, 0.19756482541561127, 0.2532142102718353, 0.08307391405105591, 0.07370880991220474, -0.013869782909750938, 0.5979509353637695, -0.2102200984954834, 0.432772397...
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' ) ``` ...
[ 0.37514767050743103, -0.22132423520088196, 0.04070274904370308, 0.0384996123611927, 0.09746874868869781, -0.16973067820072174, 0.28897127509117126, 0.15318521857261658, 0.16126896440982819, 0.06703713536262512, -0.12092631310224533, 0.6312375068664551, -0.10404253751039505, 0.5032794475555...
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' ) ``` ...
[ 0.1723107546567917, 0.029758453369140625, 0.047462355345487595, 0.03164849057793617, 0.18879066407680511, -0.14227057993412018, 0.2048283964395523, 0.19066540896892548, 0.11577421426773071, 0.06750969588756561, -0.04631142318248749, 0.5999643206596375, -0.1597585529088974, 0.57800471782684...
https://github.com/huggingface/datasets/issues/5009
Error loading StonyBrookNLP/tellmewhy dataset from hub even though local copy loads correctly
I think this is because some columns are mostly empty lists. In particular the train and validation splits only have empty lists for `val_ann`. Therefore the type inference doesn't know which type is inside (or it would have to scan the other splits first before knowing). You can fix that by specifying the features ...
## Describe the bug I have added a new dataset with the identifier `StonyBrookNLP/tellmewhy` to the hub. When I load the individual files using my local copy using `dataset = datasets.load_dataset("json", data_files="data/train.jsonl")`, it loads the dataset correctly. However, when I try to load it from the hub, I ge...
145
Error loading StonyBrookNLP/tellmewhy dataset from hub even though local copy loads correctly ## Describe the bug I have added a new dataset with the identifier `StonyBrookNLP/tellmewhy` to the hub. When I load the individual files using my local copy using `dataset = datasets.load_dataset("json", data_files="data/t...
[ -0.19701562821865082, 0.2147456705570221, 0.1286277174949646, 0.5178280472755432, 0.08397334814071655, 0.11888126283884048, 0.35095784068107605, 0.46086180210113525, 0.27356967329978943, 0.021775774657726288, -0.05008245259523392, 0.3347477614879608, -0.06883789598941803, -0.16067574918270...
https://github.com/huggingface/datasets/issues/5009
Error loading StonyBrookNLP/tellmewhy dataset from hub even though local copy loads correctly
`gram_ann` and `val_ann` are annotations that only exist for part of the test set. I wanted to keep all the columns consistent across all files, so I added them to train and validation as well. I'll check if removing them from those files is still compliant with this repo. Otherwise, I will do as you suggested. Thanks ...
## Describe the bug I have added a new dataset with the identifier `StonyBrookNLP/tellmewhy` to the hub. When I load the individual files using my local copy using `dataset = datasets.load_dataset("json", data_files="data/train.jsonl")`, it loads the dataset correctly. However, when I try to load it from the hub, I ge...
59
Error loading StonyBrookNLP/tellmewhy dataset from hub even though local copy loads correctly ## Describe the bug I have added a new dataset with the identifier `StonyBrookNLP/tellmewhy` to the hub. When I load the individual files using my local copy using `dataset = datasets.load_dataset("json", data_files="data/t...
[ -0.19701562821865082, 0.2147456705570221, 0.1286277174949646, 0.5178280472755432, 0.08397334814071655, 0.11888126283884048, 0.35095784068107605, 0.46086180210113525, 0.27356967329978943, 0.021775774657726288, -0.05008245259523392, 0.3347477614879608, -0.06883789598941803, -0.16067574918270...
https://github.com/huggingface/datasets/issues/5009
Error loading StonyBrookNLP/tellmewhy dataset from hub even though local copy loads correctly
@lhoestq I followed the exact steps you described but it seems like I'm getting the same error unfortunately. Any other ideas? Thanks in advance
## Describe the bug I have added a new dataset with the identifier `StonyBrookNLP/tellmewhy` to the hub. When I load the individual files using my local copy using `dataset = datasets.load_dataset("json", data_files="data/train.jsonl")`, it loads the dataset correctly. However, when I try to load it from the hub, I ge...
24
Error loading StonyBrookNLP/tellmewhy dataset from hub even though local copy loads correctly ## Describe the bug I have added a new dataset with the identifier `StonyBrookNLP/tellmewhy` to the hub. When I load the individual files using my local copy using `dataset = datasets.load_dataset("json", data_files="data/t...
[ -0.19701562821865082, 0.2147456705570221, 0.1286277174949646, 0.5178280472755432, 0.08397334814071655, 0.11888126283884048, 0.35095784068107605, 0.46086180210113525, 0.27356967329978943, 0.021775774657726288, -0.05008245259523392, 0.3347477614879608, -0.06883789598941803, -0.16067574918270...
https://github.com/huggingface/datasets/issues/5009
Error loading StonyBrookNLP/tellmewhy dataset from hub even though local copy loads correctly
Hi ! If you move `dataset_infos.json` from `data/` to the root of your dataset repository if should work :)
## Describe the bug I have added a new dataset with the identifier `StonyBrookNLP/tellmewhy` to the hub. When I load the individual files using my local copy using `dataset = datasets.load_dataset("json", data_files="data/train.jsonl")`, it loads the dataset correctly. However, when I try to load it from the hub, I ge...
19
Error loading StonyBrookNLP/tellmewhy dataset from hub even though local copy loads correctly ## Describe the bug I have added a new dataset with the identifier `StonyBrookNLP/tellmewhy` to the hub. When I load the individual files using my local copy using `dataset = datasets.load_dataset("json", data_files="data/t...
[ -0.19701562821865082, 0.2147456705570221, 0.1286277174949646, 0.5178280472755432, 0.08397334814071655, 0.11888126283884048, 0.35095784068107605, 0.46086180210113525, 0.27356967329978943, 0.021775774657726288, -0.05008245259523392, 0.3347477614879608, -0.06883789598941803, -0.16067574918270...
https://github.com/huggingface/datasets/issues/5009
Error loading StonyBrookNLP/tellmewhy dataset from hub even though local copy loads correctly
I tried that and pushed to the [hub](https://huggingface.co/datasets/StonyBrookNLP/tellmewhy/tree/main). Now, there is a new error. ``` File "/home/yklal95/tellmewhy/src/prepare_data.py", line 67, in main dataset = load_dataset('StonyBrookNLP/tellmewhy') File "/home/yklal95/anaconda3/envs/tmw-generalization...
## Describe the bug I have added a new dataset with the identifier `StonyBrookNLP/tellmewhy` to the hub. When I load the individual files using my local copy using `dataset = datasets.load_dataset("json", data_files="data/train.jsonl")`, it loads the dataset correctly. However, when I try to load it from the hub, I ge...
87
Error loading StonyBrookNLP/tellmewhy dataset from hub even though local copy loads correctly ## Describe the bug I have added a new dataset with the identifier `StonyBrookNLP/tellmewhy` to the hub. When I load the individual files using my local copy using `dataset = datasets.load_dataset("json", data_files="data/t...
[ -0.19701562821865082, 0.2147456705570221, 0.1286277174949646, 0.5178280472755432, 0.08397334814071655, 0.11888126283884048, 0.35095784068107605, 0.46086180210113525, 0.27356967329978943, 0.021775774657726288, -0.05008245259523392, 0.3347477614879608, -0.06883789598941803, -0.16067574918270...
https://github.com/huggingface/datasets/issues/5009
Error loading StonyBrookNLP/tellmewhy dataset from hub even though local copy loads correctly
Oh I see - the code I gave you returns local paths instead of URLs to store metadata about files to download. I opened a PR in your repo here to remove this: https://huggingface.co/datasets/StonyBrookNLP/tellmewhy/discussions/1 sorry for the inconvenience !
## Describe the bug I have added a new dataset with the identifier `StonyBrookNLP/tellmewhy` to the hub. When I load the individual files using my local copy using `dataset = datasets.load_dataset("json", data_files="data/train.jsonl")`, it loads the dataset correctly. However, when I try to load it from the hub, I ge...
39
Error loading StonyBrookNLP/tellmewhy dataset from hub even though local copy loads correctly ## Describe the bug I have added a new dataset with the identifier `StonyBrookNLP/tellmewhy` to the hub. When I load the individual files using my local copy using `dataset = datasets.load_dataset("json", data_files="data/t...
[ -0.19701562821865082, 0.2147456705570221, 0.1286277174949646, 0.5178280472755432, 0.08397334814071655, 0.11888126283884048, 0.35095784068107605, 0.46086180210113525, 0.27356967329978943, 0.021775774657726288, -0.05008245259523392, 0.3347477614879608, -0.06883789598941803, -0.16067574918270...
https://github.com/huggingface/datasets/issues/5000
Dataset Viewer issue for asapp/slue
<img width="519" alt="Capture d’écran 2022-09-20 à 22 33 47" src="https://user-images.githubusercontent.com/1676121/191358952-1220cb7d-745a-4203-a66b-3c707b25038f.png"> ``` Not found. Error code: SplitsResponseNotFound ``` https://datasets-server.huggingface.co/splits?dataset=asapp/slue ```json {"err...
### Link https://huggingface.co/datasets/asapp/slue/viewer/ ### Description Hi, I wonder how to get the dataset viewer of our slue dataset to work. Best, Felix ### Owner Yes
22
Dataset Viewer issue for asapp/slue ### Link https://huggingface.co/datasets/asapp/slue/viewer/ ### Description Hi, I wonder how to get the dataset viewer of our slue dataset to work. Best, Felix ### Owner Yes <img width="519" alt="Capture d’écran 2022-09-20 à 22 33 47" src="https://user-images.github...
[ -0.418256551027298, -0.4197004437446594, 0.042974840849637985, 0.509233832359314, 0.2707154154777527, 0.08821801096200943, 0.11993806809186935, 0.24258728325366974, -0.05991286039352417, 0.10223323851823807, -0.20221774280071259, 0.18099993467330933, -0.008216076530516148, 0.22698254883289...
https://github.com/huggingface/datasets/issues/5000
Dataset Viewer issue for asapp/slue
I just launched a refresh. It's weird, I don't see any entry for this dataset in the cache, it's a bug on our side. In order to try to understand what happened, did you change the visibility status from private to public, by any chance?
### Link https://huggingface.co/datasets/asapp/slue/viewer/ ### Description Hi, I wonder how to get the dataset viewer of our slue dataset to work. Best, Felix ### Owner Yes
45
Dataset Viewer issue for asapp/slue ### Link https://huggingface.co/datasets/asapp/slue/viewer/ ### Description Hi, I wonder how to get the dataset viewer of our slue dataset to work. Best, Felix ### Owner Yes I just launched a refresh. It's weird, I don't see any entry for this dataset in the cache, it...
[ -0.38746219873428345, -0.3276960253715515, 0.0351436547935009, 0.45084524154663086, 0.38891154527664185, 0.00590737909078598, 0.23917630314826965, 0.004538895562291145, -0.04942909628152847, 0.13882531225681305, -0.2166341245174408, 0.2715500593185425, -0.08159657567739487, 0.0834599360823...
https://github.com/huggingface/datasets/issues/5000
Dataset Viewer issue for asapp/slue
The dataset is being refreshed, please retry later. <img width="802" alt="Capture d’écran 2022-09-20 à 22 39 46" src="https://user-images.githubusercontent.com/1676121/191360072-7cc86486-4e84-4b47-8f9a-4a69fe84a5ac.png">
### Link https://huggingface.co/datasets/asapp/slue/viewer/ ### Description Hi, I wonder how to get the dataset viewer of our slue dataset to work. Best, Felix ### Owner Yes
18
Dataset Viewer issue for asapp/slue ### Link https://huggingface.co/datasets/asapp/slue/viewer/ ### Description Hi, I wonder how to get the dataset viewer of our slue dataset to work. Best, Felix ### Owner Yes The dataset is being refreshed, please retry later. <img width="802" alt="Capture d’écran ...
[ -0.5955622792243958, -0.31857913732528687, 0.01972363144159317, 0.4023895263671875, 0.3010101914405823, 0.049223482608795166, 0.1579607129096985, 0.09199504554271698, -0.13056986033916473, 0.10692748427391052, -0.1325240582227707, 0.2549448013305664, -0.009176903404295444, 0.19474008679389...
https://github.com/huggingface/datasets/issues/5000
Dataset Viewer issue for asapp/slue
OK. We now have an issue because the dataset cannot be streamed, and the dataset viewer relies on it. Maybe @huggingface/datasets can help: ``` Error code: StreamingRowsError Exception: NotImplementedError Message: Extraction protocol for TAR archives like 'https://public-dataset-model-store.awsdev.a...
### Link https://huggingface.co/datasets/asapp/slue/viewer/ ### Description Hi, I wonder how to get the dataset viewer of our slue dataset to work. Best, Felix ### Owner Yes
180
Dataset Viewer issue for asapp/slue ### Link https://huggingface.co/datasets/asapp/slue/viewer/ ### Description Hi, I wonder how to get the dataset viewer of our slue dataset to work. Best, Felix ### Owner Yes OK. We now have an issue because the dataset cannot be streamed, and the dataset viewer relies...
[ -0.5810036659240723, -0.3571327030658722, 0.048230137676000595, 0.4917394518852234, 0.3302585482597351, 0.06502320617437363, -0.01746271178126335, 0.16445019841194153, -0.08153654634952545, 0.14145267009735107, -0.2883176803588867, 0.39679431915283203, -0.12663079798221588, 0.1775650680065...
https://github.com/huggingface/datasets/issues/5000
Dataset Viewer issue for asapp/slue
Thanks @severo, Do I have to modify the python script to support streaming so that it can be previewed? Is there a document somewhere that I can follow?
### Link https://huggingface.co/datasets/asapp/slue/viewer/ ### Description Hi, I wonder how to get the dataset viewer of our slue dataset to work. Best, Felix ### Owner Yes
28
Dataset Viewer issue for asapp/slue ### Link https://huggingface.co/datasets/asapp/slue/viewer/ ### Description Hi, I wonder how to get the dataset viewer of our slue dataset to work. Best, Felix ### Owner Yes Thanks @severo, Do I have to modify the python script to support streaming so that it can ...
[ -0.6203361749649048, -0.4098052382469177, -0.010135514661669731, 0.22220447659492493, 0.20668841898441315, 0.14364978671073914, 0.0723196268081665, 0.12204399704933167, -0.019982019439339638, 0.15276239812374115, -0.1623469740152359, 0.2940070927143097, -0.1585039496421814, 0.3667845427989...
https://github.com/huggingface/datasets/issues/5000
Dataset Viewer issue for asapp/slue
Hi @fwu-asapp thanks for reporting, and thanks @severo for the investigation. As explained by @severo, the preview requires that your dataset loading script supports streaming. There are several options here: - the easiest would be to replace the source files, archived using ZIP instead TAR: the TAR format does ...
### Link https://huggingface.co/datasets/asapp/slue/viewer/ ### Description Hi, I wonder how to get the dataset viewer of our slue dataset to work. Best, Felix ### Owner Yes
198
Dataset Viewer issue for asapp/slue ### Link https://huggingface.co/datasets/asapp/slue/viewer/ ### Description Hi, I wonder how to get the dataset viewer of our slue dataset to work. Best, Felix ### Owner Yes Hi @fwu-asapp thanks for reporting, and thanks @severo for the investigation. As explained ...
[ -0.47688615322113037, -0.4940895438194275, 0.09501074254512787, 0.3349086046218872, 0.40994375944137573, 0.018746912479400635, 0.01012340560555458, 0.09197352826595306, 0.009273864328861237, 0.21212856471538544, -0.4385012686252594, 0.17202800512313843, -0.13517701625823975, 0.316814333200...
https://github.com/huggingface/datasets/issues/5000
Dataset Viewer issue for asapp/slue
Thanks @albertvillanova for your clarification. I'll talk to my collaborators to see if we can replace those files. Let me just close this issue for now.
### Link https://huggingface.co/datasets/asapp/slue/viewer/ ### Description Hi, I wonder how to get the dataset viewer of our slue dataset to work. Best, Felix ### Owner Yes
26
Dataset Viewer issue for asapp/slue ### Link https://huggingface.co/datasets/asapp/slue/viewer/ ### Description Hi, I wonder how to get the dataset viewer of our slue dataset to work. Best, Felix ### Owner Yes Thanks @albertvillanova for your clarification. I'll talk to my collaborators to see if we can...
[ -0.48646342754364014, -0.28812575340270996, -0.024445073679089546, 0.3185844421386719, 0.3820769190788269, 0.09221500903367996, 0.1451212465763092, 0.1452311873435974, -0.07332322746515274, 0.20413056015968323, -0.22960598766803741, 0.2834063470363617, -0.13211236894130707, 0.2404141277074...
https://github.com/huggingface/datasets/issues/5000
Dataset Viewer issue for asapp/slue
FYI, after replacing the source files with the ZIP ones, the dataset viewer works well. Thanks again to @severo and @albertvillanova for your help!
### Link https://huggingface.co/datasets/asapp/slue/viewer/ ### Description Hi, I wonder how to get the dataset viewer of our slue dataset to work. Best, Felix ### Owner Yes
24
Dataset Viewer issue for asapp/slue ### Link https://huggingface.co/datasets/asapp/slue/viewer/ ### Description Hi, I wonder how to get the dataset viewer of our slue dataset to work. Best, Felix ### Owner Yes FYI, after replacing the source files with the ZIP ones, the dataset viewer works well. Thanks...
[ -0.5353673696517944, -0.33656489849090576, 0.026200179010629654, 0.4379200339317322, 0.40814703702926636, 0.05784042924642563, 0.11444582045078278, 0.14656047523021698, -0.1574377417564392, 0.2312421202659607, -0.18963195383548737, 0.3726181983947754, -0.09914959967136383, 0.26467323303222...
https://github.com/huggingface/datasets/issues/4996
Dataset Viewer issue for Jean-Baptiste/wikiner_fr
The script uses `Dataset.load_from_disk`, which as you can expect, doesn't work in streaming mode. It would probably be more practical to load the dataset locally using `Dataset.load_from_disk` first and then `push_to_hub` to upload it in Parquet on the Hub
### Link https://huggingface.co/datasets/Jean-Baptiste/wikiner_fr ### Description ``` Error code: StreamingRowsError Exception: FileNotFoundError Message: [Errno 2] No such file or directory: 'zip:/data/train::https:/huggingface.co/datasets/Jean-Baptiste/wikiner_fr/resolve/main/data.zip/state.json' Tra...
39
Dataset Viewer issue for Jean-Baptiste/wikiner_fr ### Link https://huggingface.co/datasets/Jean-Baptiste/wikiner_fr ### Description ``` Error code: StreamingRowsError Exception: FileNotFoundError Message: [Errno 2] No such file or directory: 'zip:/data/train::https:/huggingface.co/datasets/Jean-Baptis...
[ -0.43646442890167236, -0.03674481809139252, -0.06776560097932816, 0.37148499488830566, 0.1551411747932434, 0.058012597262859344, 0.05579458177089691, 0.6739018559455872, -0.3141521215438843, 0.12999120354652405, -0.1192692369222641, 0.25557050108909607, -0.1587839424610138, 0.1817166060209...
https://github.com/huggingface/datasets/issues/4990
"no-token" is passed to `huggingface_hub` when token is `None`
Hi @Wauplin, thanks for raising this potential issue. The choice of passing `"no-token"` instead of `None` was made in this PR: - #4536 According to the PR description, the reason why it is passed is to avoid that `HfApi.dataset_info` uses the local token when no token should be used.
## Describe the bug In the 2 lines listed below, a token is passed to `huggingface_hub` to get information from a dataset. If no token is provided, a "no-token" string is passed. What is the purpose of it ? If no real, I would prefer if the `None` value could be sent directly to be handle by `huggingface_hub`. I fee...
49
"no-token" is passed to `huggingface_hub` when token is `None` ## Describe the bug In the 2 lines listed below, a token is passed to `huggingface_hub` to get information from a dataset. If no token is provided, a "no-token" string is passed. What is the purpose of it ? If no real, I would prefer if the `None` valu...
[ 0.25282400846481323, -0.7009128332138062, 0.04250628128647804, 0.2312164455652237, 0.11068888008594513, -0.28031057119369507, 0.1762472540140152, 0.1530032902956009, -0.11803650856018066, 0.19846761226654053, 0.08779360353946686, 0.02876308001577854, 0.2687619924545288, 0.0580504834651947,...
https://github.com/huggingface/datasets/issues/4990
"no-token" is passed to `huggingface_hub` when token is `None`
Hi @albertvillanova , thanks for finding the original issue :+1: As of next release of `huggingface_hub`, the `token` argument will be deprecated in favor of the `use_auth_token` argument in `dataset_info` method. This change as been done by @SBrandeis in https://github.com/huggingface/huggingface_hub/pull/928. `us...
## Describe the bug In the 2 lines listed below, a token is passed to `huggingface_hub` to get information from a dataset. If no token is provided, a "no-token" string is passed. What is the purpose of it ? If no real, I would prefer if the `None` value could be sent directly to be handle by `huggingface_hub`. I fee...
147
"no-token" is passed to `huggingface_hub` when token is `None` ## Describe the bug In the 2 lines listed below, a token is passed to `huggingface_hub` to get information from a dataset. If no token is provided, a "no-token" string is passed. What is the purpose of it ? If no real, I would prefer if the `None` valu...
[ 0.2819623053073883, -0.6787631511688232, 0.039504390209913254, 0.2238372266292572, 0.13433870673179626, -0.2506917119026184, 0.2463054358959198, 0.19882100820541382, -0.12347112596035004, 0.12250350415706635, 0.04897645115852356, 0.1355794221162796, 0.06179715320467949, -0.1388444602489471...
https://github.com/huggingface/datasets/issues/4990
"no-token" is passed to `huggingface_hub` when token is `None`
What is current strategy in term of updating `huggingface_hub` version in `datasets` ? I don't want to break stuff in the next release so let's find a proper solution :)
## Describe the bug In the 2 lines listed below, a token is passed to `huggingface_hub` to get information from a dataset. If no token is provided, a "no-token" string is passed. What is the purpose of it ? If no real, I would prefer if the `None` value could be sent directly to be handle by `huggingface_hub`. I fee...
30
"no-token" is passed to `huggingface_hub` when token is `None` ## Describe the bug In the 2 lines listed below, a token is passed to `huggingface_hub` to get information from a dataset. If no token is provided, a "no-token" string is passed. What is the purpose of it ? If no real, I would prefer if the `None` valu...
[ 0.1979009062051773, -0.6772456169128418, -0.013981885276734829, 0.22226983308792114, -0.02464129775762558, -0.3031509220600128, 0.1233503669500351, 0.1820434033870697, -0.20400692522525787, 0.14178745448589325, 0.08585768193006516, 0.10670121014118195, 0.007463082671165466, 0.0384393036365...
https://github.com/huggingface/datasets/issues/4990
"no-token" is passed to `huggingface_hub` when token is `None`
As soon as `token` is deprecated and hfh has a new release, we'll update `datasets` to use the new argument instead. Does it sound good to you ?
## Describe the bug In the 2 lines listed below, a token is passed to `huggingface_hub` to get information from a dataset. If no token is provided, a "no-token" string is passed. What is the purpose of it ? If no real, I would prefer if the `None` value could be sent directly to be handle by `huggingface_hub`. I fee...
28
"no-token" is passed to `huggingface_hub` when token is `None` ## Describe the bug In the 2 lines listed below, a token is passed to `huggingface_hub` to get information from a dataset. If no token is provided, a "no-token" string is passed. What is the purpose of it ? If no real, I would prefer if the `None` valu...
[ 0.25896790623664856, -0.7293570637702942, 0.03134026378393173, 0.20067736506462097, -0.029089897871017456, -0.2577570080757141, 0.14840634167194366, 0.18894565105438232, -0.09243319928646088, 0.14462853968143463, 0.055855803191661835, 0.00015450059436261654, 0.06369059532880783, -0.0841468...
https://github.com/huggingface/datasets/issues/4990
"no-token" is passed to `huggingface_hub` when token is `None`
Hi @Wauplin, thanks for the warning about the deprecation of `token` in favor of `use_auth_token`. Indeed, in datasets we use internally `use_auth_token`, which in this case was transformed to `token` to call `HfApi.dataset_info`: https://github.com/huggingface/datasets/blob/1a9385d7cc8a3241b44015145ef56a230fdadc51...
## Describe the bug In the 2 lines listed below, a token is passed to `huggingface_hub` to get information from a dataset. If no token is provided, a "no-token" string is passed. What is the purpose of it ? If no real, I would prefer if the `None` value could be sent directly to be handle by `huggingface_hub`. I fee...
82
"no-token" is passed to `huggingface_hub` when token is `None` ## Describe the bug In the 2 lines listed below, a token is passed to `huggingface_hub` to get information from a dataset. If no token is provided, a "no-token" string is passed. What is the purpose of it ? If no real, I would prefer if the `None` valu...
[ 0.19348448514938354, -0.5523173809051514, 0.061112966388463974, 0.07486572116613388, 0.006892848759889603, -0.25592562556266785, 0.26371607184410095, 0.19955620169639587, -0.14704634249210358, 0.08689981698989868, 0.0014350827550515532, -0.0394718274474144, 0.2637208104133606, 0.0122631061...
https://github.com/huggingface/datasets/issues/4988
Add `IterableDataset.from_generator` to the API
Thanks @hamid-vakilzadeh ! Let us know if you have some questions or if we can help
We've just added `Dataset.from_generator` to the API. It would also be cool to add `IterableDataset.from_generator` to support creating an iterable dataset from a generator. cc @lhoestq
16
Add `IterableDataset.from_generator` to the API We've just added `Dataset.from_generator` to the API. It would also be cool to add `IterableDataset.from_generator` to support creating an iterable dataset from a generator. cc @lhoestq Thanks @hamid-vakilzadeh ! Let us know if you have some questions or if we can...
[ -0.48686352372169495, 0.034543976187705994, -0.20454098284244537, -0.032212033867836, 0.19012095034122467, -0.10316180437803268, 0.1862967610359192, 0.4522264897823334, -0.029613273218274117, 0.3787182569503784, 0.1656016707420349, 0.33202967047691345, -0.1770992875099182, 0.20673792064189...
https://github.com/huggingface/datasets/issues/4983
How to convert torch.utils.data.Dataset to huggingface dataset?
Hi! I think you can use the newly-added `from_generator` method for that: ```python from datasets import Dataset def gen(): for idx in len(torch_dataset): yield torch_dataset[idx] # this has to be a dictionary ## or if it's an IterableDataset # for ex in torch_dataset: # yield ex ...
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below: ```python from datasets import Dataset data = [[1, 2]...
50
How to convert torch.utils.data.Dataset to huggingface dataset? I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, l...
[ -0.04437154158949852, -0.5013186931610107, -0.010783793404698372, 0.30544978380203247, 0.3853740692138672, 0.2398015260696411, -0.07870303094387054, 0.11976763606071472, -0.03848221153020859, 0.09930354356765747, -0.13930770754814148, 0.15262138843536377, -0.36149993538856506, 0.1464695781...
https://github.com/huggingface/datasets/issues/4983
How to convert torch.utils.data.Dataset to huggingface dataset?
Maybe `Dataset.from_list` can work as well no ? ```python from datasets import Dataset dset = Dataset.from_list(torch_dataset) ```
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below: ```python from datasets import Dataset data = [[1, 2]...
17
How to convert torch.utils.data.Dataset to huggingface dataset? I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, l...
[ -0.04258471354842186, -0.520442545413971, -0.03426603972911835, 0.3045966327190399, 0.4214355945587158, 0.29871663451194763, -0.07740248739719391, 0.10588885843753815, 0.008069857954978943, 0.0816090852022171, -0.22678148746490479, 0.16717764735221863, -0.3443012237548828, 0.12920413911342...
https://github.com/huggingface/datasets/issues/4983
How to convert torch.utils.data.Dataset to huggingface dataset?
> ```python > from datasets import Dataset > > def gen(): > for idx in len(torch_dataset): > yield torch_dataset[idx] # this has to be a dictionary > ## or if it's an IterableDataset > # for ex in torch_dataset: > # yield ex > > dset = Dataset.from_generator(gen) > ``` I try...
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below: ```python from datasets import Dataset data = [[1, 2]...
104
How to convert torch.utils.data.Dataset to huggingface dataset? I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, l...
[ -0.1442515105009079, -0.43003615736961365, -0.004021890461444855, 0.3285945653915405, 0.379458487033844, 0.23986491560935974, -0.03017738088965416, 0.11686287820339203, -0.004440780729055405, 0.12482424825429916, -0.07780871540307999, 0.21056626737117767, -0.33906400203704834, 0.0439212024...
https://github.com/huggingface/datasets/issues/4983
How to convert torch.utils.data.Dataset to huggingface dataset?
> ```python > dset = Dataset.from_list(torch_dataset) > ``` It seems that Dataset also has no `from_list` method 😂 ```bash AttributeError: type object 'Dataset' has no attribute 'from_list' ```
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below: ```python from datasets import Dataset data = [[1, 2]...
28
How to convert torch.utils.data.Dataset to huggingface dataset? I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, l...
[ -0.06361742317676544, -0.4848392903804779, -0.03307074308395386, 0.3100292682647705, 0.4129195213317871, 0.30785056948661804, -0.05490834638476372, 0.10785019397735596, 0.0759207010269165, 0.10735887289047241, -0.1953287422657013, 0.21701788902282715, -0.3135426640510559, 0.068218529224395...
https://github.com/huggingface/datasets/issues/4983
How to convert torch.utils.data.Dataset to huggingface dataset?
> I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below: > > ```python > from datasets import Dataset > data =...
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below: ```python from datasets import Dataset data = [[1, 2]...
187
How to convert torch.utils.data.Dataset to huggingface dataset? I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, l...
[ -0.0057874806225299835, -0.5595138669013977, -0.04572176933288574, 0.2835305333137512, 0.46112966537475586, 0.2584274709224701, 0.005282778292894363, 0.09215536713600159, -0.014008020982146263, 0.12703493237495422, -0.1788550168275833, 0.20138202607631683, -0.32762661576271057, 0.040070176...
https://github.com/huggingface/datasets/issues/4983
How to convert torch.utils.data.Dataset to huggingface dataset?
We're releasing `from_generator` and `from_list` today :) In the meantime you can play with them by installing `datasets` from source
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below: ```python from datasets import Dataset data = [[1, 2]...
20
How to convert torch.utils.data.Dataset to huggingface dataset? I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, l...
[ -0.10639508068561554, -0.4694138765335083, -0.03152967616915703, 0.3338087797164917, 0.42934274673461914, 0.24172073602676392, -0.07922270894050598, 0.10991768538951874, -0.06694844365119934, 0.1251249760389328, -0.18707223236560822, 0.15286710858345032, -0.35572198033332825, 0.08285010606...
https://github.com/huggingface/datasets/issues/4983
How to convert torch.utils.data.Dataset to huggingface dataset?
> We're releasing `from_generator` and `from_list` today :) In the meantime you can play with them by installing `datasets` from source Thanks a lot for your work!
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below: ```python from datasets import Dataset data = [[1, 2]...
27
How to convert torch.utils.data.Dataset to huggingface dataset? I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, l...
[ -0.09902141988277435, -0.4878773093223572, -0.03271087259054184, 0.3409370183944702, 0.4273204803466797, 0.2405526041984558, -0.0781543105840683, 0.10982447862625122, -0.059794872999191284, 0.11361668258905411, -0.1899537593126297, 0.1660088300704956, -0.3545859754085541, 0.093716979026794...
https://github.com/huggingface/datasets/issues/4983
How to convert torch.utils.data.Dataset to huggingface dataset?
> > I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below: > > ```python > > from datasets import Dataset > > da...
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below: ```python from datasets import Dataset data = [[1, 2]...
294
How to convert torch.utils.data.Dataset to huggingface dataset? I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, l...
[ 0.009790714830160141, -0.5521003007888794, -0.05157579109072685, 0.26948249340057373, 0.46555590629577637, 0.2528730630874634, 0.003918204456567764, 0.11896823346614838, -0.013936078175902367, 0.13641729950904846, -0.1774415522813797, 0.2021636962890625, -0.3212900459766388, 0.043897613883...
https://github.com/huggingface/datasets/issues/4983
How to convert torch.utils.data.Dataset to huggingface dataset?
Hi ! Right now generator functions are expected to be picklable, so that `datasets` can hash it and use the hash to cache the resulting Dataset on disk. Maybe this can be improved. In the meantime, can you check that you're not using unpickable objects. In your case it looks like you're using a generator object that...
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below: ```python from datasets import Dataset data = [[1, 2]...
108
How to convert torch.utils.data.Dataset to huggingface dataset? I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, l...
[ -0.015316087752580643, -0.3764796555042267, 0.023010659962892532, 0.33072930574417114, 0.5059040784835815, 0.19528427720069885, -0.09379364550113678, 0.12583918869495392, 0.02332136407494545, 0.11674781888723373, -0.12190520018339157, 0.23164431750774384, -0.3326250910758972, 0.03051778487...
https://github.com/huggingface/datasets/issues/4983
How to convert torch.utils.data.Dataset to huggingface dataset?
> Hi ! Right now generator functions are expected to be picklable, so that `datasets` can hash it and use the hash to cache the resulting Dataset on disk. Maybe this can be improved. > > In the meantime, can you check that you're not using unpickable objects. In your case it looks like you're using a generator objec...
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below: ```python from datasets import Dataset data = [[1, 2]...
187
How to convert torch.utils.data.Dataset to huggingface dataset? I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, l...
[ -0.09438610821962357, -0.3931623697280884, 0.026491589844226837, 0.3118780851364136, 0.5127153396606445, 0.18641862273216248, -0.0444369800388813, 0.16245687007904053, -0.08811716735363007, 0.07791347801685333, -0.13433510065078735, 0.2247636914253235, -0.2620982229709625, -0.0229563880711...
https://github.com/huggingface/datasets/issues/4983
How to convert torch.utils.data.Dataset to huggingface dataset?
Iterable datasets are lazy: exactly like `with_transform` they apply processing on the fly when accessing the examples. Therefore you can use `my_iterable_dataset.map()` instead :)
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below: ```python from datasets import Dataset data = [[1, 2]...
24
How to convert torch.utils.data.Dataset to huggingface dataset? I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, l...
[ -0.11331331729888916, -0.479759156703949, -0.03749573975801468, 0.2601988911628723, 0.41514891386032104, 0.2749333679676056, -0.10213667154312134, 0.17766529321670532, -0.06663209199905396, 0.10247629135847092, -0.25149497389793396, 0.20491456985473633, -0.3743201196193695, 0.1102262809872...
https://github.com/huggingface/datasets/issues/4983
How to convert torch.utils.data.Dataset to huggingface dataset?
@lhoestq I am having a similar issue. Can you help me understand which kinds of generators are picklable? I previously thought that no generators are picklable so I'm intrigued to hear this.
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below: ```python from datasets import Dataset data = [[1, 2]...
32
How to convert torch.utils.data.Dataset to huggingface dataset? I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, l...
[ -0.029847342520952225, -0.441574364900589, 0.004151489585638046, 0.3768763542175293, 0.4642128348350525, 0.056484661996364594, -0.05373628810048103, 0.011406544595956802, 0.0760452151298523, 0.14993195235729218, -0.24295395612716675, 0.3158925175666809, -0.4018261432647705, 0.2343408912420...
https://github.com/huggingface/datasets/issues/4983
How to convert torch.utils.data.Dataset to huggingface dataset?
Generator functions are generally picklable. E.g. ```python import dill as pickle def generator_fn(): for i in range(10): yield i pickle.dumps(generator_fn) ``` however generators are not picklable ```python generator = generator_fn() pickle.dumps(generator) # TypeError: cannot pickle 'gen...
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below: ```python from datasets import Dataset data = [[1, 2]...
77
How to convert torch.utils.data.Dataset to huggingface dataset? I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, l...
[ -0.09451135993003845, -0.37787237763404846, 0.02815106138586998, 0.33519452810287476, 0.37709861993789673, 0.11020659655332565, -0.13368070125579834, 0.10178948938846588, 0.029146838933229446, 0.13128913938999176, -0.1832723170518875, 0.27258819341659546, -0.4256507456302643, 0.11319821327...
https://github.com/huggingface/datasets/issues/4983
How to convert torch.utils.data.Dataset to huggingface dataset?
I'm trying to create an IterableDataset from a generator but I get this error: `PicklingError: Can't pickle <built-in function input>: it's not the same object as builtins.input` What can I do?
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below: ```python from datasets import Dataset data = [[1, 2]...
31
How to convert torch.utils.data.Dataset to huggingface dataset? I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, l...
[ -0.11531290411949158, -0.520784854888916, -0.014464633539319038, 0.3105403482913971, 0.34615492820739746, 0.24259138107299805, -0.08286026120185852, 0.1370021402835846, -0.023693883791565895, 0.08231644332408905, -0.15151382982730865, 0.1798325479030609, -0.3926085829734802, 0.188731163740...
https://github.com/huggingface/datasets/issues/4982
Create dataset_infos.json with VALIDATION and TEST splits
Hi again! Can you please pass the directory name containing the dataset script instead of the script name to `datasets-cli test`?
The problem is described in that [issue](https://github.com/huggingface/datasets/issues/4895#issuecomment-1247975569). > When I try to create data_infos.json using datasets-cli test Peter.py --save_infos --all_configs I get an error: > ValueError: Unknown split "test". Should be one of ['train']. > > The data_i...
21
Create dataset_infos.json with VALIDATION and TEST splits The problem is described in that [issue](https://github.com/huggingface/datasets/issues/4895#issuecomment-1247975569). > When I try to create data_infos.json using datasets-cli test Peter.py --save_infos --all_configs I get an error: > ValueError: Unknown...
[ -0.002343636006116867, -0.2656538486480713, 0.04977372661232948, 0.44563084840774536, 0.19490164518356323, 0.14243808388710022, 0.29455429315567017, 0.4225432276725769, -0.07759221643209457, 0.0482630580663681, -0.1166512742638588, 0.09244988113641739, -0.11206098645925522, 0.2680185437202...
https://github.com/huggingface/datasets/issues/4981
Can't create a dataset with `float16` features
Hi @dconathan, thanks for reporting. We rely on Arrow as a backend, and as far as I know currently support for `float16` in Arrow is not fully implemented in Python (C++), hence the `ArrowNotImplementedError` you get. See, e.g.: https://arrow.apache.org/docs/status.html?highlight=float16#data-types
## Describe the bug I can't create a dataset with `float16` features. I understand from the traceback that this is a `pyarrow` error, but I don't see anywhere in the `datasets` documentation about how to successfully do this. Is it actually supported? I've tried older versions of `pyarrow` as well with the same e...
39
Can't create a dataset with `float16` features ## Describe the bug I can't create a dataset with `float16` features. I understand from the traceback that this is a `pyarrow` error, but I don't see anywhere in the `datasets` documentation about how to successfully do this. Is it actually supported? I've tried ol...
[ -0.2009882777929306, -0.10930380970239639, 0.016125444322824478, 0.021241173148155212, 0.38709986209869385, 0.15218710899353027, 0.45306962728500366, 0.033425502479076385, -0.2996401786804199, -0.06064164638519287, -0.10168614983558655, 0.39165961742401123, 0.08138644695281982, -0.27250283...
https://github.com/huggingface/datasets/issues/4981
Can't create a dataset with `float16` features
Thanks for the link…. didn’t realize arrow didn’t support it yet. Should it be removed from https://huggingface.co/docs/datasets/v2.4.0/en/package_reference/main_classes#datasets.Value until Arrow supports it?
## Describe the bug I can't create a dataset with `float16` features. I understand from the traceback that this is a `pyarrow` error, but I don't see anywhere in the `datasets` documentation about how to successfully do this. Is it actually supported? I've tried older versions of `pyarrow` as well with the same e...
21
Can't create a dataset with `float16` features ## Describe the bug I can't create a dataset with `float16` features. I understand from the traceback that this is a `pyarrow` error, but I don't see anywhere in the `datasets` documentation about how to successfully do this. Is it actually supported? I've tried ol...
[ -0.2009882777929306, -0.10930380970239639, 0.016125444322824478, 0.021241173148155212, 0.38709986209869385, 0.15218710899353027, 0.45306962728500366, 0.033425502479076385, -0.2996401786804199, -0.06064164638519287, -0.10168614983558655, 0.39165961742401123, 0.08138644695281982, -0.27250283...
https://github.com/huggingface/datasets/issues/4981
Can't create a dataset with `float16` features
Yes, you are right: maybe we should either remove it from our docs or add a comment explaining the issue. The thing is that in Arrow it is partially supported: you can create `float16` values, but you can't cast them from/to other types. And current implementation of `Value` always tries to perform a cast from `floa...
## Describe the bug I can't create a dataset with `float16` features. I understand from the traceback that this is a `pyarrow` error, but I don't see anywhere in the `datasets` documentation about how to successfully do this. Is it actually supported? I've tried older versions of `pyarrow` as well with the same e...
58
Can't create a dataset with `float16` features ## Describe the bug I can't create a dataset with `float16` features. I understand from the traceback that this is a `pyarrow` error, but I don't see anywhere in the `datasets` documentation about how to successfully do this. Is it actually supported? I've tried ol...
[ -0.2009882777929306, -0.10930380970239639, 0.016125444322824478, 0.021241173148155212, 0.38709986209869385, 0.15218710899353027, 0.45306962728500366, 0.033425502479076385, -0.2996401786804199, -0.06064164638519287, -0.10168614983558655, 0.39165961742401123, 0.08138644695281982, -0.27250283...
https://github.com/huggingface/datasets/issues/4981
Can't create a dataset with `float16` features
Would you accept a PR to fix this? @lhoestq Do you have an idea of how hard it would be to fix?
## Describe the bug I can't create a dataset with `float16` features. I understand from the traceback that this is a `pyarrow` error, but I don't see anywhere in the `datasets` documentation about how to successfully do this. Is it actually supported? I've tried older versions of `pyarrow` as well with the same e...
22
Can't create a dataset with `float16` features ## Describe the bug I can't create a dataset with `float16` features. I understand from the traceback that this is a `pyarrow` error, but I don't see anywhere in the `datasets` documentation about how to successfully do this. Is it actually supported? I've tried ol...
[ -0.2009882777929306, -0.10930380970239639, 0.016125444322824478, 0.021241173148155212, 0.38709986209869385, 0.15218710899353027, 0.45306962728500366, 0.033425502479076385, -0.2996401786804199, -0.06064164638519287, -0.10168614983558655, 0.39165961742401123, 0.08138644695281982, -0.27250283...
https://github.com/huggingface/datasets/issues/4981
Can't create a dataset with `float16` features
I think the issue comes mostly from pyarrow not supporting `float16` completely. For example you stil can't cast from/to `float16` ```python import numpy as np import pyarrow as pa pa.array(range(5)).cast(pa.float16()) # ArrowNotImplementedError: Unsupported cast from int64 to halffloat using function cast_ha...
## Describe the bug I can't create a dataset with `float16` features. I understand from the traceback that this is a `pyarrow` error, but I don't see anywhere in the `datasets` documentation about how to successfully do this. Is it actually supported? I've tried older versions of `pyarrow` as well with the same e...
75
Can't create a dataset with `float16` features ## Describe the bug I can't create a dataset with `float16` features. I understand from the traceback that this is a `pyarrow` error, but I don't see anywhere in the `datasets` documentation about how to successfully do this. Is it actually supported? I've tried ol...
[ -0.2009882777929306, -0.10930380970239639, 0.016125444322824478, 0.021241173148155212, 0.38709986209869385, 0.15218710899353027, 0.45306962728500366, 0.033425502479076385, -0.2996401786804199, -0.06064164638519287, -0.10168614983558655, 0.39165961742401123, 0.08138644695281982, -0.27250283...
https://github.com/huggingface/datasets/issues/4981
Can't create a dataset with `float16` features
Hmm it seems like we can either: 1. try to fix pyarrow upstream 2. half-support float16 with some workaround to make sure we don't ever do casting internally
## Describe the bug I can't create a dataset with `float16` features. I understand from the traceback that this is a `pyarrow` error, but I don't see anywhere in the `datasets` documentation about how to successfully do this. Is it actually supported? I've tried older versions of `pyarrow` as well with the same e...
28
Can't create a dataset with `float16` features ## Describe the bug I can't create a dataset with `float16` features. I understand from the traceback that this is a `pyarrow` error, but I don't see anywhere in the `datasets` documentation about how to successfully do this. Is it actually supported? I've tried ol...
[ -0.2009882777929306, -0.10930380970239639, 0.016125444322824478, 0.021241173148155212, 0.38709986209869385, 0.15218710899353027, 0.45306962728500366, 0.033425502479076385, -0.2996401786804199, -0.06064164638519287, -0.10168614983558655, 0.39165961742401123, 0.08138644695281982, -0.27250283...
https://github.com/huggingface/datasets/issues/4980
Make `pyarrow` optional
The whole datasets library is pretty much a wrapper to pyarrow (just take a look at some of the source for a Dataset) https://github.com/huggingface/datasets/blob/51aef08ad7053c0bfe8f9a961207b26df15850d3/src/datasets/arrow_dataset.py#L639 I think removing the pyarrow dependency would involve a complete rewrite / a ...
**Is your feature request related to a problem? Please describe.** Is `pyarrow` really needed for every dataset? **Describe the solution you'd like** It is made optional. **Describe alternatives you've considered** Likely, no.
44
Make `pyarrow` optional **Is your feature request related to a problem? Please describe.** Is `pyarrow` really needed for every dataset? **Describe the solution you'd like** It is made optional. **Describe alternatives you've considered** Likely, no. The whole datasets library is pretty much a wrapper to...
[ -0.15364816784858704, 0.3306680917739868, -0.0716269463300705, -0.20790855586528778, 0.12799778580665588, -0.13656021654605865, 0.29660892486572266, 0.2046220749616623, -0.3974742591381073, 0.2452406883239746, 0.15917767584323883, 0.5092920064926147, 0.06397420167922974, -0.018436308950185...