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/2615 | Jsonlines export error | Sorry, I was also talking to teven offline so I already had the PR ready before noticing x) | ## Describe the bug
When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default
## Steps to reproduce the bug
This wha... | 18 | Jsonlines export error
## Describe the bug
When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default
## Steps to re... | [
-0.3764408230781555,
0.062102749943733215,
-0.02492542751133442,
0.2861751616001129,
0.04461958631873131,
0.08094947785139084,
0.1558462679386139,
0.39717426896095276,
0.051059115678071976,
-0.047636836767196655,
0.3336995244026184,
0.004115537740290165,
0.08341750502586365,
0.158275604248... |
https://github.com/huggingface/datasets/issues/2615 | Jsonlines export error | I was also already working in my PR... Nevermind. Next time we should pay attention if there is somebody (self-)assigned to an issue and if he/she is still working on it before overtaking it... 😄 | ## Describe the bug
When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default
## Steps to reproduce the bug
This wha... | 35 | Jsonlines export error
## Describe the bug
When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default
## Steps to re... | [
-0.39618751406669617,
0.14125007390975952,
-0.04477708786725998,
0.26520538330078125,
0.05529017746448517,
0.06807694584131241,
0.15589198470115662,
0.3812042772769928,
-0.011088496074080467,
-0.03500513732433319,
0.3722907304763794,
0.011863772757351398,
0.08163980394601822,
0.17778894305... |
https://github.com/huggingface/datasets/issues/2607 | Streaming local gzip compressed JSON line files is not working | Hi @thomwolf, thanks for reporting.
It seems this might be due to the fact that the JSON Dataset builder uses `pyarrow.json` (`paj.read_json`) to read the data without using the Python standard `open(file,...` (which is the one patched with `xopen` to work in streaming mode).
This has to be fixed. | ## Describe the bug
Using streaming to iterate on local gzip compressed JSON files raise a file not exist error
## Steps to reproduce the bug
```python
from datasets import load_dataset
streamed_dataset = load_dataset('json', split='train', data_files=data_files, streaming=True)
next(iter(streamed_dataset))... | 49 | Streaming local gzip compressed JSON line files is not working
## Describe the bug
Using streaming to iterate on local gzip compressed JSON files raise a file not exist error
## Steps to reproduce the bug
```python
from datasets import load_dataset
streamed_dataset = load_dataset('json', split='train', data_... | [
-0.19924907386302948,
-0.13397781550884247,
-0.00914461724460125,
0.2391349971294403,
0.07776452600955963,
0.016880035400390625,
0.3976743817329407,
0.5178913474082947,
0.19702133536338806,
0.0789988785982132,
0.10300148278474808,
0.3306829631328583,
-0.08836679905653,
0.020873846486210823... |
https://github.com/huggingface/datasets/issues/2607 | Streaming local gzip compressed JSON line files is not working | Sorry for reopening this, but I'm having the same issue as @thomwolf when streaming a gzipped JSON Lines file from the hub. Or is that just not possible by definition?
I installed `datasets`in editable mode from source (so probably includes the fix from #2608 ?):
```
>>> datasets.__version__
'1.9.1.dev0'
```
`... | ## Describe the bug
Using streaming to iterate on local gzip compressed JSON files raise a file not exist error
## Steps to reproduce the bug
```python
from datasets import load_dataset
streamed_dataset = load_dataset('json', split='train', data_files=data_files, streaming=True)
next(iter(streamed_dataset))... | 167 | Streaming local gzip compressed JSON line files is not working
## Describe the bug
Using streaming to iterate on local gzip compressed JSON files raise a file not exist error
## Steps to reproduce the bug
```python
from datasets import load_dataset
streamed_dataset = load_dataset('json', split='train', data_... | [
-0.19924907386302948,
-0.13397781550884247,
-0.00914461724460125,
0.2391349971294403,
0.07776452600955963,
0.016880035400390625,
0.3976743817329407,
0.5178913474082947,
0.19702133536338806,
0.0789988785982132,
0.10300148278474808,
0.3306829631328583,
-0.08836679905653,
0.020873846486210823... |
https://github.com/huggingface/datasets/issues/2607 | Streaming local gzip compressed JSON line files is not working | Hi ! To make the streaming work, we extend `open` in the dataset builder to work with urls.
Therefore you just need to use `open` before using `gzip.open`:
```diff
- with gzip.open(file, "rt", encoding="utf-8") as f:
+ with gzip.open(open(file, "rb"), "rt", encoding="utf-8") as f:
```
You can see that it is t... | ## Describe the bug
Using streaming to iterate on local gzip compressed JSON files raise a file not exist error
## Steps to reproduce the bug
```python
from datasets import load_dataset
streamed_dataset = load_dataset('json', split='train', data_files=data_files, streaming=True)
next(iter(streamed_dataset))... | 61 | Streaming local gzip compressed JSON line files is not working
## Describe the bug
Using streaming to iterate on local gzip compressed JSON files raise a file not exist error
## Steps to reproduce the bug
```python
from datasets import load_dataset
streamed_dataset = load_dataset('json', split='train', data_... | [
-0.19924907386302948,
-0.13397781550884247,
-0.00914461724460125,
0.2391349971294403,
0.07776452600955963,
0.016880035400390625,
0.3976743817329407,
0.5178913474082947,
0.19702133536338806,
0.0789988785982132,
0.10300148278474808,
0.3306829631328583,
-0.08836679905653,
0.020873846486210823... |
https://github.com/huggingface/datasets/issues/2604 | Add option to delete temporary files (e.g. extracted files) when loading dataset | Hi !
If we want something more general, we could either
1. delete the extracted files after the arrow data generation automatically, or
2. delete each extracted file during the arrow generation right after it has been closed.
Solution 2 is better to save disk space during the arrow generation. Is it what you had... | I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Having a simple way to delete the extracted files after usage (or even better, to strea... | 129 | Add option to delete temporary files (e.g. extracted files) when loading dataset
I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Havi... | [
-0.04222416505217552,
-0.05207773298025131,
-0.13756482303142548,
0.24913644790649414,
-0.08902004361152649,
0.10409838706254959,
-0.11982795596122742,
0.18471945822238922,
0.23423129320144653,
0.24075882136821747,
0.15672846138477325,
0.5178805589675903,
-0.3404895067214966,
-0.0508521795... |
https://github.com/huggingface/datasets/issues/2604 | Add option to delete temporary files (e.g. extracted files) when loading dataset | Also, if I delete the extracted files they need to be re-extracted again instead of loading from the Arrow cache files | I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Having a simple way to delete the extracted files after usage (or even better, to strea... | 21 | Add option to delete temporary files (e.g. extracted files) when loading dataset
I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Havi... | [
-0.028062783181667328,
-0.12684541940689087,
-0.14626391232013702,
0.15173634886741638,
-0.1755872219800949,
0.19438326358795166,
-0.21975208818912506,
0.2515496015548706,
0.1799507588148117,
0.16384923458099365,
0.10564178228378296,
0.4813859760761261,
-0.24072246253490448,
-0.10407444089... |
https://github.com/huggingface/datasets/issues/2604 | Add option to delete temporary files (e.g. extracted files) when loading dataset | I think we already opened an issue about this topic (suggested by @stas00): duplicated of #2481?
This is in our TODO list... 😅 | I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Having a simple way to delete the extracted files after usage (or even better, to strea... | 23 | Add option to delete temporary files (e.g. extracted files) when loading dataset
I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Havi... | [
-0.019209979102015495,
-0.12697678804397583,
-0.1481829583644867,
0.07984685897827148,
-0.13216865062713623,
0.17651605606079102,
-0.19870226085186005,
0.24316349625587463,
0.21240119636058807,
0.20227840542793274,
0.1615416705608368,
0.4751732647418976,
-0.2215886265039444,
-0.07033388316... |
https://github.com/huggingface/datasets/issues/2604 | Add option to delete temporary files (e.g. extracted files) when loading dataset | I think the deletion of each extracted file could be implemented in our CacheManager and ExtractManager (once merged to master: #2295, #2277). 😉 | I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Having a simple way to delete the extracted files after usage (or even better, to strea... | 23 | Add option to delete temporary files (e.g. extracted files) when loading dataset
I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Havi... | [
-0.022601131349802017,
-0.11210323125123978,
-0.16414114832878113,
0.1639861762523651,
-0.140829935669899,
0.15682187676429749,
-0.19473426043987274,
0.2873067259788513,
0.23211440443992615,
0.1775878369808197,
0.09998245537281036,
0.4532555937767029,
-0.23331496119499207,
-0.1064827218651... |
https://github.com/huggingface/datasets/issues/2604 | Add option to delete temporary files (e.g. extracted files) when loading dataset | Nevermind @thomwolf, I just mentioned the other issue so that both appear linked in GitHub and we do not forget to close both once we make the corresponding Pull Request... That was the main reason! 😄 | I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Having a simple way to delete the extracted files after usage (or even better, to strea... | 36 | Add option to delete temporary files (e.g. extracted files) when loading dataset
I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Havi... | [
-0.08552661538124084,
-0.06718821078538895,
-0.1844741255044937,
0.10478685796260834,
-0.06817660480737686,
0.09409301728010178,
-0.20691655576229095,
0.357980340719223,
0.19299130141735077,
0.180329829454422,
0.12563703954219818,
0.5178521275520325,
-0.19906513392925262,
-0.05329181998968... |
https://github.com/huggingface/datasets/issues/2604 | Add option to delete temporary files (e.g. extracted files) when loading dataset | Ok yes. I think this is an important feature to be able to use large datasets which are pretty much always compressed files.
In particular now this requires to keep the extracted file on the drive if you want to avoid reprocessing the dataset so in my case, this require using always ~400GB of drive instead of just 2... | I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Having a simple way to delete the extracted files after usage (or even better, to strea... | 116 | Add option to delete temporary files (e.g. extracted files) when loading dataset
I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Havi... | [
-0.0659782737493515,
-0.06750455498695374,
-0.12144362926483154,
0.13619373738765717,
-0.18816885352134705,
0.23715630173683167,
-0.16012945771217346,
0.24732832610607147,
0.16247126460075378,
0.1584101915359497,
0.10431937128305435,
0.44837668538093567,
-0.3028530776500702,
-0.10580525547... |
https://github.com/huggingface/datasets/issues/2604 | Add option to delete temporary files (e.g. extracted files) when loading dataset | Note that I'm confirming that with the current master branch of dataset, deleting extracted files (without deleting the arrow cache file) lead to **re-extracting** these files when reloading the dataset instead of directly loading the arrow cache file. | I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Having a simple way to delete the extracted files after usage (or even better, to strea... | 38 | Add option to delete temporary files (e.g. extracted files) when loading dataset
I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Havi... | [
-0.16383466124534607,
0.03803069889545441,
-0.1447685956954956,
0.17809289693832397,
-0.15926878154277802,
0.23571428656578064,
-0.1746567189693451,
0.28733694553375244,
0.12659096717834473,
0.15852224826812744,
0.06744397431612015,
0.5160759687423706,
-0.22754135727882385,
-0.069087505340... |
https://github.com/huggingface/datasets/issues/2604 | Add option to delete temporary files (e.g. extracted files) when loading dataset | Hi ! That's weird, it doesn't do that on my side (tested on master on my laptop by deleting the `extracted` folder in the download cache directory). You tested with one of the files at https://huggingface.co/datasets/thomwolf/github-python that you have locally ? | I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Having a simple way to delete the extracted files after usage (or even better, to strea... | 41 | Add option to delete temporary files (e.g. extracted files) when loading dataset
I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Havi... | [
-0.03325652331113815,
-0.06173117086291313,
-0.15180520713329315,
0.23214004933834076,
-0.07944191992282867,
0.1899539828300476,
-0.1519191712141037,
0.3226892352104187,
0.2679447531700134,
0.18591129779815674,
-0.00866082776337862,
0.4785895347595215,
-0.2064817100763321,
0.01982120610773... |
https://github.com/huggingface/datasets/issues/2604 | Add option to delete temporary files (e.g. extracted files) when loading dataset | @thomwolf I'm sorry but I can't reproduce this problem. I'm also using:
```python
ds = load_dataset("json", split="train", data_files=data_files, cache_dir=cache_dir)
```
after having removed the extracted files:
```python
assert sorted((cache_dir / "downloads" / "extracted").iterdir()) == []
```
I get the l... | I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Having a simple way to delete the extracted files after usage (or even better, to strea... | 49 | Add option to delete temporary files (e.g. extracted files) when loading dataset
I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Havi... | [
0.038740020245313644,
0.0011511221528053284,
-0.07317270338535309,
0.28882551193237305,
-0.02259734645485878,
0.24423456192016602,
0.004371780902147293,
0.22520121932029724,
0.21111589670181274,
0.11122642457485199,
0.13000944256782532,
0.4447043836116791,
-0.31494587659835815,
-0.15223395... |
https://github.com/huggingface/datasets/issues/2604 | Add option to delete temporary files (e.g. extracted files) when loading dataset | >
>
> Do you confirm the extracted folder stays empty after reloading?
Yes, I have the above mentioned assertion on the emptiness of the extracted folder:
```python
assert sorted((cache_dir / "downloads" / "extracted").iterdir()) == []
```
| I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Having a simple way to delete the extracted files after usage (or even better, to strea... | 37 | Add option to delete temporary files (e.g. extracted files) when loading dataset
I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Havi... | [
0.041307542473077774,
-0.048537760972976685,
-0.14497224986553192,
0.22482948005199432,
-0.04660531133413315,
0.20178928971290588,
-0.16908562183380127,
0.3027113080024719,
0.2245083749294281,
0.1342935562133789,
0.010950014926493168,
0.48018598556518555,
-0.2686918377876282,
-0.1230430528... |
https://github.com/huggingface/datasets/issues/2598 | Unable to download omp dataset | Hi @erikadistefano , thanks for reporting the issue.
I have created a Pull Request that should fix it.
Once merged into master, feel free to update your installed `datasets` library (either by installing it from our GitHub master branch or waiting until our next release) to be able to load omp dataset. | ## Describe the bug
The omp dataset cannot be downloaded because of a DuplicatedKeysError
## Steps to reproduce the bug
from datasets import load_dataset
omp = load_dataset('omp', 'posts_labeled')
print(omp)
## Expected results
This code should download the omp dataset and print the dictionary
## Actual r... | 52 | Unable to download omp dataset
## Describe the bug
The omp dataset cannot be downloaded because of a DuplicatedKeysError
## Steps to reproduce the bug
from datasets import load_dataset
omp = load_dataset('omp', 'posts_labeled')
print(omp)
## Expected results
This code should download the omp dataset and pr... | [
-0.26337558031082153,
-0.11635962128639221,
-0.0825287401676178,
0.10050991922616959,
0.23119965195655823,
-0.021743137389421463,
0.20523132383823395,
0.2830137312412262,
0.04831305518746376,
0.20946449041366577,
-0.20779231190681458,
0.5524351596832275,
-0.20912529528141022,
0.23590202629... |
https://github.com/huggingface/datasets/issues/2596 | Transformer Class on dataset | Hi ! Do you have an example in mind that shows how this could be useful ? | Just wondering if you have intenttion to create
TransformerClass :
dataset --> dataset
and make determnistic transformation (ie not fit).
| 17 | Transformer Class on dataset
Just wondering if you have intenttion to create
TransformerClass :
dataset --> dataset
and make determnistic transformation (ie not fit).
Hi ! Do you have an example in mind that shows how this could be useful ? | [
-0.41881972551345825,
-0.11185480654239655,
-0.021109482273459435,
0.16497811675071716,
0.44314831495285034,
-0.07371622323989868,
0.5200483202934265,
0.025510700419545174,
-0.00009145401418209076,
-0.06128983199596405,
0.13835740089416504,
0.35540589690208435,
-0.36642831563949585,
0.1816... |
https://github.com/huggingface/datasets/issues/2596 | Transformer Class on dataset | Example:
Merge 2 datasets into one datasets
Label extraction from dataset
dataset(text, label)
—> dataset(text, newlabel)
TextCleaning.
For image dataset,
Transformation are easier (ie linear algebra).
> On Jul 6, 2021, at 17:39, Quentin Lhoest ***@***.***> wrote:
>
>
> Hi ! Do you have an example in... | Just wondering if you have intenttion to create
TransformerClass :
dataset --> dataset
and make determnistic transformation (ie not fit).
| 83 | Transformer Class on dataset
Just wondering if you have intenttion to create
TransformerClass :
dataset --> dataset
and make determnistic transformation (ie not fit).
Example:
Merge 2 datasets into one datasets
Label extraction from dataset
dataset(text, label)
—> dataset(text, newlabel... | [
-0.4854307472705841,
0.1529313325881958,
-0.08863990753889084,
0.18962793052196503,
0.4006465673446655,
0.10685030370950699,
0.5075282454490662,
0.1244744211435318,
-0.011683113873004913,
-0.0620449036359787,
0.05338241904973984,
0.3345322012901306,
-0.35074323415756226,
0.1875820308923721... |
https://github.com/huggingface/datasets/issues/2596 | Transformer Class on dataset | There are already a few transformations that you can apply on a dataset using methods like `dataset.map()`.
You can find examples in the documentation here:
https://huggingface.co/docs/datasets/processing.html
You can merge two datasets with `concatenate_datasets()` or do label extraction with `dataset.map()` for ... | Just wondering if you have intenttion to create
TransformerClass :
dataset --> dataset
and make determnistic transformation (ie not fit).
| 41 | Transformer Class on dataset
Just wondering if you have intenttion to create
TransformerClass :
dataset --> dataset
and make determnistic transformation (ie not fit).
There are already a few transformations that you can apply on a dataset using methods like `dataset.map()`.
You can find exam... | [
-0.46852436661720276,
-0.23068052530288696,
-0.05315759778022766,
0.141038715839386,
0.3790983557701111,
-0.19871509075164795,
0.33672046661376953,
0.1695585548877716,
0.10450266301631927,
0.19319117069244385,
-0.17467619478702545,
0.28939783573150635,
-0.23164255917072296,
0.5593624711036... |
https://github.com/huggingface/datasets/issues/2596 | Transformer Class on dataset | Ok, sure.
Thanks for pointing on functional part.
My question is more
“Philosophical”/Design perspective.
There are 2 perspetive:
Add transformation methods to
Dataset Class
OR Create a Transformer Class
which operates on Dataset Class.
T(Dataset) —> Dataset
datasetnew = MyTransform.transform(dataset)... | Just wondering if you have intenttion to create
TransformerClass :
dataset --> dataset
and make determnistic transformation (ie not fit).
| 142 | Transformer Class on dataset
Just wondering if you have intenttion to create
TransformerClass :
dataset --> dataset
and make determnistic transformation (ie not fit).
Ok, sure.
Thanks for pointing on functional part.
My question is more
“Philosophical”/Design perspective.
There are 2 perspe... | [
-0.10654188692569733,
-0.05383779853582382,
0.02605361118912697,
0.14303067326545715,
0.3365960121154785,
-0.1399591565132141,
0.5725407004356384,
-0.03391541913151741,
-0.05218617618083954,
0.16315840184688568,
0.11685657501220703,
0.24485857784748077,
-0.4620169699192047,
0.4327048361301... |
https://github.com/huggingface/datasets/issues/2596 | Transformer Class on dataset | I can imagine that this would be a useful API to implement processing pipelines as transforms. They could be used to perform higher level transforms compared to the atomic transforms allowed by methods like map, filter, etc.
I guess if you find any transform that could be useful for text dataset processing, image da... | Just wondering if you have intenttion to create
TransformerClass :
dataset --> dataset
and make determnistic transformation (ie not fit).
| 64 | Transformer Class on dataset
Just wondering if you have intenttion to create
TransformerClass :
dataset --> dataset
and make determnistic transformation (ie not fit).
I can imagine that this would be a useful API to implement processing pipelines as transforms. They could be used to perform h... | [
-0.4904251992702484,
0.08723048865795135,
-0.19068124890327454,
-0.08399544656276703,
0.3473586440086365,
-0.17532067000865936,
0.3381085991859436,
0.25743627548217773,
0.09037776291370392,
0.019790761172771454,
0.2580313980579376,
0.3618631660938263,
-0.385079950094223,
0.4767218828201294... |
https://github.com/huggingface/datasets/issues/2596 | Transformer Class on dataset | Thanks for reply.
What would be the constraints
to have
Dataset —> Dataset consistency ?
Main issue would be
larger than memory dataset and
serialization on disk.
Technically,
one still process at atomic level
and try to wrap the full results
into Dataset…. (!)
What would you think ?
> On Jul 7, 2021, at 16... | Just wondering if you have intenttion to create
TransformerClass :
dataset --> dataset
and make determnistic transformation (ie not fit).
| 155 | Transformer Class on dataset
Just wondering if you have intenttion to create
TransformerClass :
dataset --> dataset
and make determnistic transformation (ie not fit).
Thanks for reply.
What would be the constraints
to have
Dataset —> Dataset consistency ?
Main issue would be
larger than mem... | [
-0.42738884687423706,
0.2038235366344452,
-0.0892709344625473,
0.0677165538072586,
0.5223822593688965,
-0.13401183485984802,
0.3225385546684265,
0.19111181795597076,
0.013091199100017548,
0.06153781712055206,
0.22661861777305603,
0.35060423612594604,
-0.4103444218635559,
0.2984675765037536... |
https://github.com/huggingface/datasets/issues/2596 | Transformer Class on dataset | We can be pretty flexible and not impose any constraints for transforms.
Moreover, this library is designed to support datasets bigger than memory. The datasets are loaded from the disk via memory mapping, without filling up RAM. Even processing functions like `map` work in a batched fashion to not fill up your RAM.... | Just wondering if you have intenttion to create
TransformerClass :
dataset --> dataset
and make determnistic transformation (ie not fit).
| 59 | Transformer Class on dataset
Just wondering if you have intenttion to create
TransformerClass :
dataset --> dataset
and make determnistic transformation (ie not fit).
We can be pretty flexible and not impose any constraints for transforms.
Moreover, this library is designed to support data... | [
-0.5401793718338013,
-0.018992602825164795,
-0.14400796592235565,
0.1232815831899643,
0.43725013732910156,
-0.21700525283813477,
0.2453129142522812,
0.19366101920604706,
0.2192271202802658,
0.13049161434173584,
0.06151602417230606,
0.1877676397562027,
-0.2603257894515991,
0.072387367486953... |
https://github.com/huggingface/datasets/issues/2596 | Transformer Class on dataset | Ok thanks.
But, Dataset has various flavors.
In current design of Dataset,
how the serialization on disk is done (?)
The main issue is serialization
of newdataset= Transform(Dataset)
(ie thats why am referring to Out Of memory dataset…):
Should be part of Transform or part of dataset ?
Maybe, not, sin... | Just wondering if you have intenttion to create
TransformerClass :
dataset --> dataset
and make determnistic transformation (ie not fit).
| 162 | Transformer Class on dataset
Just wondering if you have intenttion to create
TransformerClass :
dataset --> dataset
and make determnistic transformation (ie not fit).
Ok thanks.
But, Dataset has various flavors.
In current design of Dataset,
how the serialization on disk is done (?)
The... | [
-0.30282866954803467,
-0.07524600625038147,
-0.05204998701810837,
0.25686153769493103,
0.49631983041763306,
0.033300869166851044,
0.3464812934398651,
0.13595685362815857,
0.10846911370754242,
-0.04890891909599304,
0.14332512021064758,
0.18079417943954468,
-0.2497086077928543,
0.09951996058... |
https://github.com/huggingface/datasets/issues/2596 | Transformer Class on dataset | I'm not sure I understand, could you elaborate a bit more please ?
Each dataset is a wrapper of a PyArrow Table that contains all the data. The table is loaded from an arrow file on the disk.
We have an ArrowWriter and ArrowReader class to write/read arrow tables on disk or in in-memory buffers. | Just wondering if you have intenttion to create
TransformerClass :
dataset --> dataset
and make determnistic transformation (ie not fit).
| 55 | Transformer Class on dataset
Just wondering if you have intenttion to create
TransformerClass :
dataset --> dataset
and make determnistic transformation (ie not fit).
I'm not sure I understand, could you elaborate a bit more please ?
Each dataset is a wrapper of a PyArrow Table that contai... | [
-0.36044833064079285,
-0.056124307215213776,
0.011653333902359009,
0.2704978585243225,
0.3946087956428528,
-0.09719608724117279,
0.3508627116680145,
0.04822291061282158,
-0.1000286191701889,
-0.1611098200082779,
0.1317933201789856,
0.3815634250640869,
-0.3155001401901245,
-0.08339130878448... |
https://github.com/huggingface/datasets/issues/2595 | ModuleNotFoundError: No module named 'datasets.tasks' while importing common voice datasets | Hi @profsatwinder.
It looks like you are using an old version of `datasets`. Please update it with `pip install -U datasets` and indicate if the problem persists. | Error traceback:
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-8-a7b592d3bca0> in <module>()
1 from datasets import load_dataset, load_metric
2
----> 3 common_voice_train = load_da... | 27 | ModuleNotFoundError: No module named 'datasets.tasks' while importing common voice datasets
Error traceback:
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-8-a7b592d3bca0> in <module>()
1 ... | [
-0.4680482745170593,
-0.2621822953224182,
-0.04225901514291763,
-0.12496843934059143,
0.20410260558128357,
0.14506244659423828,
0.4402434527873993,
0.2543094754219055,
0.22203567624092102,
0.13481761515140533,
-0.2110193818807602,
0.20888783037662506,
-0.27976685762405396,
-0.0780610293149... |
https://github.com/huggingface/datasets/issues/2595 | ModuleNotFoundError: No module named 'datasets.tasks' while importing common voice datasets | @albertvillanova Thanks for the information. I updated it to 1.9.0 and the issue is resolved. Thanks again. | Error traceback:
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-8-a7b592d3bca0> in <module>()
1 from datasets import load_dataset, load_metric
2
----> 3 common_voice_train = load_da... | 17 | ModuleNotFoundError: No module named 'datasets.tasks' while importing common voice datasets
Error traceback:
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-8-a7b592d3bca0> in <module>()
1 ... | [
-0.36360612511634827,
-0.38334131240844727,
-0.018118109554052353,
-0.13243889808654785,
0.15852542221546173,
0.17342981696128845,
0.40831315517425537,
0.2774198651313782,
0.19420088827610016,
0.09595750272274017,
-0.1962037980556488,
0.21372222900390625,
-0.28575193881988525,
-0.030767163... |
https://github.com/huggingface/datasets/issues/2591 | Cached dataset overflowing disk space | I'm using the datasets concatenate dataset to combine the datasets and then train.
train_dataset = concatenate_datasets([dataset1, dataset2, common_voice_train])
| I'm training a Swedish Wav2vec2 model on a Linux GPU and having issues that the huggingface cached dataset folder is completely filling up my disk space (I'm training on a dataset of around 500 gb).
The cache folder is 500gb (and now my disk space is full).
Is there a way to toggle caching or set the caching to b... | 18 | Cached dataset overflowing disk space
I'm training a Swedish Wav2vec2 model on a Linux GPU and having issues that the huggingface cached dataset folder is completely filling up my disk space (I'm training on a dataset of around 500 gb).
The cache folder is 500gb (and now my disk space is full).
Is there a way t... | [
0.037559811025857925,
-0.42221304774284363,
0.09859053790569305,
0.45147544145584106,
0.10117387026548386,
0.20505645871162415,
0.07448495924472809,
0.14190442860126495,
0.1445285528898239,
0.055636756122112274,
0.4010796844959259,
-0.2280431091785431,
-0.12429995089769363,
0.1127194538712... |
https://github.com/huggingface/datasets/issues/2591 | Cached dataset overflowing disk space | Hi @BirgerMoell.
You have several options:
- to set caching to be stored on a different path location, other than the default one (`~/.cache/huggingface/datasets`):
- either setting the environment variable `HF_DATASETS_CACHE` with the path to the new cache location
- or by passing it with the parameter `cach... | I'm training a Swedish Wav2vec2 model on a Linux GPU and having issues that the huggingface cached dataset folder is completely filling up my disk space (I'm training on a dataset of around 500 gb).
The cache folder is 500gb (and now my disk space is full).
Is there a way to toggle caching or set the caching to b... | 127 | Cached dataset overflowing disk space
I'm training a Swedish Wav2vec2 model on a Linux GPU and having issues that the huggingface cached dataset folder is completely filling up my disk space (I'm training on a dataset of around 500 gb).
The cache folder is 500gb (and now my disk space is full).
Is there a way t... | [
0.037559811025857925,
-0.42221304774284363,
0.09859053790569305,
0.45147544145584106,
0.10117387026548386,
0.20505645871162415,
0.07448495924472809,
0.14190442860126495,
0.1445285528898239,
0.055636756122112274,
0.4010796844959259,
-0.2280431091785431,
-0.12429995089769363,
0.1127194538712... |
https://github.com/huggingface/datasets/issues/2591 | Cached dataset overflowing disk space | Hi @BirgerMoell,
We are planning to add a new feature to datasets, which could be interesting in your case: Add the option to delete temporary files (decompressed files) from the cache directory (see: #2481, #2604).
We will ping you once this feature is implemented, so that the size of your cache directory will b... | I'm training a Swedish Wav2vec2 model on a Linux GPU and having issues that the huggingface cached dataset folder is completely filling up my disk space (I'm training on a dataset of around 500 gb).
The cache folder is 500gb (and now my disk space is full).
Is there a way to toggle caching or set the caching to b... | 56 | Cached dataset overflowing disk space
I'm training a Swedish Wav2vec2 model on a Linux GPU and having issues that the huggingface cached dataset folder is completely filling up my disk space (I'm training on a dataset of around 500 gb).
The cache folder is 500gb (and now my disk space is full).
Is there a way t... | [
0.037559811025857925,
-0.42221304774284363,
0.09859053790569305,
0.45147544145584106,
0.10117387026548386,
0.20505645871162415,
0.07448495924472809,
0.14190442860126495,
0.1445285528898239,
0.055636756122112274,
0.4010796844959259,
-0.2280431091785431,
-0.12429995089769363,
0.1127194538712... |
https://github.com/huggingface/datasets/issues/2585 | sqaud_v2 dataset contains misalignment between the answer text and the context value at the answer index | Hi @mmajurski, thanks for reporting this issue.
Indeed this misalignment arises because the source dataset context field contains leading blank spaces (and these are counted within the answer_start), while our datasets loading script removes these leading blank spaces.
I'm going to fix our script so that all lead... | ## Describe the bug
The built in huggingface squad_v2 dataset that you can access via datasets.load_dataset contains mis-alignment between the answers['text'] and the characters in the context at the location specified by answers['answer_start'].
For example:
id = '56d1f453e7d4791d009025bd'
answers = {'text': ['P... | 71 | sqaud_v2 dataset contains misalignment between the answer text and the context value at the answer index
## Describe the bug
The built in huggingface squad_v2 dataset that you can access via datasets.load_dataset contains mis-alignment between the answers['text'] and the characters in the context at the location spe... | [
-0.23303021490573883,
-0.3295382857322693,
-0.04410991072654724,
0.37493598461151123,
0.08782308548688889,
-0.07634179294109344,
0.10575704276561737,
0.2279033362865448,
-0.29274749755859375,
0.15778303146362305,
-0.0841631144285202,
0.045068420469760895,
0.32503601908683777,
0.06854517012... |
https://github.com/huggingface/datasets/issues/2585 | sqaud_v2 dataset contains misalignment between the answer text and the context value at the answer index | If you are going to be altering the data cleaning from the source Squad dataset, here is one thing to consider.
There are occasional double spaces separating words which it might be nice to get rid of.
Either way, thank you. | ## Describe the bug
The built in huggingface squad_v2 dataset that you can access via datasets.load_dataset contains mis-alignment between the answers['text'] and the characters in the context at the location specified by answers['answer_start'].
For example:
id = '56d1f453e7d4791d009025bd'
answers = {'text': ['P... | 41 | sqaud_v2 dataset contains misalignment between the answer text and the context value at the answer index
## Describe the bug
The built in huggingface squad_v2 dataset that you can access via datasets.load_dataset contains mis-alignment between the answers['text'] and the characters in the context at the location spe... | [
-0.23303021490573883,
-0.3295382857322693,
-0.04410991072654724,
0.37493598461151123,
0.08782308548688889,
-0.07634179294109344,
0.10575704276561737,
0.2279033362865448,
-0.29274749755859375,
0.15778303146362305,
-0.0841631144285202,
0.045068420469760895,
0.32503601908683777,
0.06854517012... |
https://github.com/huggingface/datasets/issues/2583 | Error iteration over IterableDataset using Torch DataLoader | Hi ! This is because you first need to format the dataset for pytorch:
```python
>>> import torch
>>> from datasets import load_dataset
>>> dataset = load_dataset('oscar', "unshuffled_deduplicated_en", split='train', streaming=True)
>>> torch_iterable_dataset = dataset.with_format("torch")
>>> assert isinstance... | ## Describe the bug
I have an IterableDataset (created using streaming=True) and I am trying to create batches using Torch DataLoader class by passing this IterableDataset to it. This throws error which is pasted below. I can do the same by using Torch IterableDataset. One thing I noticed is that in the former case wh... | 93 | Error iteration over IterableDataset using Torch DataLoader
## Describe the bug
I have an IterableDataset (created using streaming=True) and I am trying to create batches using Torch DataLoader class by passing this IterableDataset to it. This throws error which is pasted below. I can do the same by using Torch Iter... | [
-0.17598846554756165,
-0.3325822949409485,
-0.012140855193138123,
0.23658478260040283,
0.1552754044532776,
0.020412318408489227,
0.43117403984069824,
0.0018048062920570374,
-0.16896086931228638,
0.24600960314273834,
0.09634534269571304,
0.24420873820781708,
-0.33548152446746826,
-0.4065966... |
https://github.com/huggingface/datasets/issues/2583 | Error iteration over IterableDataset using Torch DataLoader | Thank you for that and the example!
What you said makes total sense; I just somehow missed that and assumed HF IterableDataset was a subclass of Torch IterableDataset. | ## Describe the bug
I have an IterableDataset (created using streaming=True) and I am trying to create batches using Torch DataLoader class by passing this IterableDataset to it. This throws error which is pasted below. I can do the same by using Torch IterableDataset. One thing I noticed is that in the former case wh... | 28 | Error iteration over IterableDataset using Torch DataLoader
## Describe the bug
I have an IterableDataset (created using streaming=True) and I am trying to create batches using Torch DataLoader class by passing this IterableDataset to it. This throws error which is pasted below. I can do the same by using Torch Iter... | [
-0.17598846554756165,
-0.3325822949409485,
-0.012140855193138123,
0.23658478260040283,
0.1552754044532776,
0.020412318408489227,
0.43117403984069824,
0.0018048062920570374,
-0.16896086931228638,
0.24600960314273834,
0.09634534269571304,
0.24420873820781708,
-0.33548152446746826,
-0.4065966... |
https://github.com/huggingface/datasets/issues/2573 | Finding right block-size with JSON loading difficult for user | This was actually a second error arising from a too small block-size in the json reader.
Finding the right block size is difficult for the layman user | As reported by @thomwolf, while loading a JSON Lines file with "json" loading script, he gets
> json.decoder.JSONDecodeError: Extra data: line 2 column 1 (char 383)
| 27 | Finding right block-size with JSON loading difficult for user
As reported by @thomwolf, while loading a JSON Lines file with "json" loading script, he gets
> json.decoder.JSONDecodeError: Extra data: line 2 column 1 (char 383)
This was actually a second error arising from a too small block-size in the json reade... | [
0.0956067144870758,
0.0020216554403305054,
-0.22474892437458038,
0.4068727493286133,
0.13413375616073608,
-0.08703847229480743,
0.35157832503318787,
0.39596956968307495,
0.5053708553314209,
0.4565081000328064,
0.2659343183040619,
-0.09846653044223785,
0.02246052958071232,
-0.06383895874023... |
https://github.com/huggingface/datasets/issues/2572 | Support Zstandard compressed files | I am trying to load a dataset using Hugging Face Datasets load_dataset method. I am getting the value error as show below. Can someone help with this? I am using Windows laptop and Google Colab notebook.
```
!pip install zstandard
from datasets import load_dataset
lds = load_dataset(
"json",
data_file... | Add support for Zstandard compressed files: https://facebook.github.io/zstd/ | 115 | Support Zstandard compressed files
Add support for Zstandard compressed files: https://facebook.github.io/zstd/
I am trying to load a dataset using Hugging Face Datasets load_dataset method. I am getting the value error as show below. Can someone help with this? I am using Windows laptop and Google Colab notebook.
... | [
-0.43376031517982483,
-0.4193226099014282,
-0.04824603721499443,
0.35144197940826416,
0.29220521450042725,
0.06123504787683487,
0.14015088975429535,
0.21787294745445251,
0.17336508631706238,
0.211317777633667,
-0.32797950506210327,
0.11098901927471161,
-0.1350102722644806,
0.31611540913581... |
https://github.com/huggingface/datasets/issues/2572 | Support Zstandard compressed files | I just tried on google colab and this works:
```python
!pip install zstandard
!pip install datasets
from datasets import load_dataset
lds = load_dataset(
"json",
data_files="https://the-eye.eu/public/AI/pile_preliminary_components/FreeLaw_Opinions.jsonl.zst",
split="train",
streaming=True,
)... | Add support for Zstandard compressed files: https://facebook.github.io/zstd/ | 42 | Support Zstandard compressed files
Add support for Zstandard compressed files: https://facebook.github.io/zstd/
I just tried on google colab and this works:
```python
!pip install zstandard
!pip install datasets
from datasets import load_dataset
lds = load_dataset(
"json",
data_files="https://the-e... | [
-0.3480064272880554,
-0.1493166834115982,
-0.07931508123874664,
0.010822590440511703,
0.15576115250587463,
-0.032591402530670166,
-0.008292410522699356,
0.5053691864013672,
0.06540808081626892,
0.15173807740211487,
-0.1540279984474182,
0.28775620460510254,
-0.10321161150932312,
0.313335031... |
https://github.com/huggingface/datasets/issues/2572 | Support Zstandard compressed files | > I just tried on google colab and this works:
>
> ```python
> !pip install zstandard
> !pip install datasets
> from datasets import load_dataset
>
> lds = load_dataset(
> "json",
> data_files="https://the-eye.eu/public/AI/pile_preliminary_components/FreeLaw_Opinions.jsonl.zst",
> split="train",... | Add support for Zstandard compressed files: https://facebook.github.io/zstd/ | 93 | Support Zstandard compressed files
Add support for Zstandard compressed files: https://facebook.github.io/zstd/
> I just tried on google colab and this works:
>
> ```python
> !pip install zstandard
> !pip install datasets
> from datasets import load_dataset
>
> lds = load_dataset(
> "json",
> dat... | [
-0.2836226522922516,
-0.2137247622013092,
-0.07408933341503143,
0.08305953443050385,
0.3093840479850769,
-0.08704519271850586,
0.15055853128433228,
0.48618459701538086,
0.007772982120513916,
0.28307396173477173,
-0.09433198720216751,
0.21766333281993866,
0.06526421755552292,
0.288214534521... |
https://github.com/huggingface/datasets/issues/2569 | Weights of model checkpoint not initialized for RobertaModel for Bertscore | Hi @suzyahyah, thanks for reporting.
The message you get is indeed not an error message, but a warning coming from Hugging Face `transformers`. The complete warning message is:
```
Some weights of the model checkpoint at roberta-large were not used when initializing RobertaModel: ['lm_head.decoder.weight', 'lm_hea... | When applying bertscore out of the box,
```Some weights of the model checkpoint at roberta-large were not used when initializing RobertaModel: ['lm_head.decoder.weight', 'lm_head.bias', 'lm_head.dense.bias', 'lm_head.layer_norm.bias', 'lm_head.dense.weight', 'lm_head.layer_norm.weight']```
Following the typical ... | 167 | Weights of model checkpoint not initialized for RobertaModel for Bertscore
When applying bertscore out of the box,
```Some weights of the model checkpoint at roberta-large were not used when initializing RobertaModel: ['lm_head.decoder.weight', 'lm_head.bias', 'lm_head.dense.bias', 'lm_head.layer_norm.bias', 'lm_... | [
-0.05955009534955025,
-0.36452993750572205,
0.09010979533195496,
0.12896977365016937,
0.42737650871276855,
0.07482706755399704,
0.27182042598724365,
0.12423485517501831,
0.12511010468006134,
0.13339757919311523,
-0.14913862943649292,
0.21721357107162476,
-0.14552895724773407,
-0.0643488317... |
https://github.com/huggingface/datasets/issues/2569 | Weights of model checkpoint not initialized for RobertaModel for Bertscore | Hi @suzyahyah, I have created a Pull Request to filter out that warning message in this specific case, since the behavior is as expected and the warning message can only cause confusion for users (as in your case). | When applying bertscore out of the box,
```Some weights of the model checkpoint at roberta-large were not used when initializing RobertaModel: ['lm_head.decoder.weight', 'lm_head.bias', 'lm_head.dense.bias', 'lm_head.layer_norm.bias', 'lm_head.dense.weight', 'lm_head.layer_norm.weight']```
Following the typical ... | 38 | Weights of model checkpoint not initialized for RobertaModel for Bertscore
When applying bertscore out of the box,
```Some weights of the model checkpoint at roberta-large were not used when initializing RobertaModel: ['lm_head.decoder.weight', 'lm_head.bias', 'lm_head.dense.bias', 'lm_head.layer_norm.bias', 'lm_... | [
-0.1506304144859314,
-0.2975347638130188,
0.07905328273773193,
0.051351793110370636,
0.4647553563117981,
0.04057660698890686,
0.19793552160263062,
0.19078654050827026,
0.13858544826507568,
0.2084493488073349,
-0.13037703931331635,
0.28699204325675964,
-0.12756797671318054,
-0.0866213217377... |
https://github.com/huggingface/datasets/issues/2564 | concatenate_datasets for iterable datasets | It is probably worth noting here that the [documentation](https://huggingface.co/docs/datasets/process#concatenate) is misleading (indicating that it does work for IterableDatasets):
> You can also mix several datasets together by taking alternating examples from each one to create a new dataset. This is known as in... | Currently `concatenate_datasets` only works for map-style `Dataset`.
It would be nice to have it work for `IterableDataset` objects as well.
It would simply chain the iterables of the iterable datasets. | 74 | concatenate_datasets for iterable datasets
Currently `concatenate_datasets` only works for map-style `Dataset`.
It would be nice to have it work for `IterableDataset` objects as well.
It would simply chain the iterables of the iterable datasets.
It is probably worth noting here that the [documentation](https:... | [
-0.42505478858947754,
-0.45875322818756104,
-0.0037403125315904617,
0.14795123040676117,
0.11199157685041428,
0.22480997443199158,
0.049238406121730804,
0.08958259224891663,
-0.25724759697914124,
0.09672267735004425,
-0.33242371678352356,
0.24816831946372986,
-0.0842214971780777,
0.3335711... |
https://github.com/huggingface/datasets/issues/2561 | Existing cache for local dataset builder file updates is ignored with `ignore_verifications=True` | Hi ! I just tried to reproduce what you said:
- create a local builder class
- use `load_dataset`
- update the builder class code
- use `load_dataset` again (with or without `ignore_verifications=True`)
And it creates a new cache, as expected.
What modifications did you do to your builder's code ? | ## Describe the bug
If i have local file defining a dataset builder class and I load it using `load_dataset` functionality, the existing cache is ignored whenever the file is update even with `ignore_verifications=True`. This slows down debugging and cache generator for very large datasets.
## Steps to reproduce th... | 51 | Existing cache for local dataset builder file updates is ignored with `ignore_verifications=True`
## Describe the bug
If i have local file defining a dataset builder class and I load it using `load_dataset` functionality, the existing cache is ignored whenever the file is update even with `ignore_verifications=True`... | [
-0.3804818391799927,
0.4886569380760193,
0.03263239935040474,
0.19356423616409302,
0.14466361701488495,
0.15072596073150635,
0.31927040219306946,
0.37488484382629395,
0.12904894351959229,
0.21833206713199615,
0.21496064960956573,
0.3630368411540985,
0.11989094316959381,
-0.2817022502422333... |
https://github.com/huggingface/datasets/issues/2561 | Existing cache for local dataset builder file updates is ignored with `ignore_verifications=True` | Hi @lhoestq. Thanks for your reply. I just did minor modifications for which it should not regenerate cache (for e.g. Adding a print statement). Overall, regardless of cache miss, there should be an explicit option to allow reuse of existing cache if author knows cache shouldn't be affected. | ## Describe the bug
If i have local file defining a dataset builder class and I load it using `load_dataset` functionality, the existing cache is ignored whenever the file is update even with `ignore_verifications=True`. This slows down debugging and cache generator for very large datasets.
## Steps to reproduce th... | 48 | Existing cache for local dataset builder file updates is ignored with `ignore_verifications=True`
## Describe the bug
If i have local file defining a dataset builder class and I load it using `load_dataset` functionality, the existing cache is ignored whenever the file is update even with `ignore_verifications=True`... | [
-0.2966098189353943,
0.48456043004989624,
0.049707550555467606,
0.18488600850105286,
0.08039255440235138,
0.21865513920783997,
0.28246134519577026,
0.37450718879699707,
0.19491265714168549,
0.1779462993144989,
0.2753894627094269,
0.3544701337814331,
0.08640959858894348,
-0.2514210939407348... |
https://github.com/huggingface/datasets/issues/2561 | Existing cache for local dataset builder file updates is ignored with `ignore_verifications=True` | The cache is based on the hash of the dataset builder's code, so changing the code makes it recompute the cache.
You could still rename the cache directory of your previous computation to the new expected cache directory if you want to avoid having to recompute it and if you're sure that it would generate the exact ... | ## Describe the bug
If i have local file defining a dataset builder class and I load it using `load_dataset` functionality, the existing cache is ignored whenever the file is update even with `ignore_verifications=True`. This slows down debugging and cache generator for very large datasets.
## Steps to reproduce th... | 82 | Existing cache for local dataset builder file updates is ignored with `ignore_verifications=True`
## Describe the bug
If i have local file defining a dataset builder class and I load it using `load_dataset` functionality, the existing cache is ignored whenever the file is update even with `ignore_verifications=True`... | [
-0.3809877634048462,
0.4386589527130127,
-0.003196176141500473,
0.1750701367855072,
0.09502054750919342,
0.15524199604988098,
0.23175176978111267,
0.4199694097042084,
0.15906153619289398,
0.3092048168182373,
0.16211552917957306,
0.28301170468330383,
0.11000063270330429,
-0.2082074880599975... |
https://github.com/huggingface/datasets/issues/2561 | Existing cache for local dataset builder file updates is ignored with `ignore_verifications=True` | Hi @apsdehal,
If you decide to follow @lhoestq's suggestion to rename the cache directory of your previous computation to the new expected cache directory, you can do the following to get the name of the new expected cache directory once #2500 is merged:
```python
from datasets import load_dataset_builder
dataset... | ## Describe the bug
If i have local file defining a dataset builder class and I load it using `load_dataset` functionality, the existing cache is ignored whenever the file is update even with `ignore_verifications=True`. This slows down debugging and cache generator for very large datasets.
## Steps to reproduce th... | 73 | Existing cache for local dataset builder file updates is ignored with `ignore_verifications=True`
## Describe the bug
If i have local file defining a dataset builder class and I load it using `load_dataset` functionality, the existing cache is ignored whenever the file is update even with `ignore_verifications=True`... | [
-0.4378628134727478,
0.47821420431137085,
-0.0076683927327394485,
0.11805301159620285,
0.15692728757858276,
0.1881316602230072,
0.29603198170661926,
0.4827199876308441,
0.17503753304481506,
0.3437817096710205,
0.22528554499149323,
0.3112470209598541,
0.06439542025327682,
-0.195167616009712... |
https://github.com/huggingface/datasets/issues/2559 | Memory usage consistently increases when processing a dataset with `.map` | Hi ! Can you share the function you pass to `map` ?
I know you mentioned it would be hard to share some code but this would really help to understand what happened | ## Describe the bug
I have a HF dataset with image paths stored in it and I am trying to load those image paths using `.map` with `num_proc=80`. I am noticing that the memory usage consistently keeps on increasing with time. I tried using `DEFAULT_WRITER_BATCH_SIZE=10` in the builder to decrease arrow writer's batch... | 33 | Memory usage consistently increases when processing a dataset with `.map`
## Describe the bug
I have a HF dataset with image paths stored in it and I am trying to load those image paths using `.map` with `num_proc=80`. I am noticing that the memory usage consistently keeps on increasing with time. I tried using `D... | [
-0.15703518688678741,
-0.12911401689052582,
0.007089350372552872,
0.4211387038230896,
0.1809350699186325,
-0.006408222019672394,
0.05896906927227974,
0.1185612678527832,
0.2151496857404709,
0.13143692910671234,
0.40360963344573975,
0.517960250377655,
-0.18737541139125824,
-0.03429922834038... |
https://github.com/huggingface/datasets/issues/2559 | Memory usage consistently increases when processing a dataset with `.map` | This is the same behavior as in #4883, so I'm closing this issue as a duplicate. | ## Describe the bug
I have a HF dataset with image paths stored in it and I am trying to load those image paths using `.map` with `num_proc=80`. I am noticing that the memory usage consistently keeps on increasing with time. I tried using `DEFAULT_WRITER_BATCH_SIZE=10` in the builder to decrease arrow writer's batch... | 16 | Memory usage consistently increases when processing a dataset with `.map`
## Describe the bug
I have a HF dataset with image paths stored in it and I am trying to load those image paths using `.map` with `num_proc=80`. I am noticing that the memory usage consistently keeps on increasing with time. I tried using `D... | [
-0.19101159274578094,
-0.0638248398900032,
0.03221680223941803,
0.39272981882095337,
0.16019807755947113,
0.016504555940628052,
0.08988499641418457,
0.13279522955417633,
0.1827591061592102,
0.11710865050554276,
0.4064229130744934,
0.47829845547676086,
-0.17476202547550201,
-0.0241026431322... |
https://github.com/huggingface/datasets/issues/2556 | Better DuplicateKeysError error to help the user debug the issue | excuse me, my `datasets` version is `2.2.2`, but I also just see the error info like
```
DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 0
Keys should be unique and deterministic in nature
``` | As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys.
The current one is
```python
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 48
Keys s... | 36 | Better DuplicateKeysError error to help the user debug the issue
As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys.
The current one is
```python
datasets.keyhash.DuplicatedKeysEr... | [
-0.04579811170697212,
-0.18270662426948547,
0.026427648961544037,
0.26547330617904663,
0.11763186752796173,
0.1879231333732605,
0.21435485780239105,
0.2438584417104721,
-0.11862130463123322,
0.14037710428237915,
0.30744996666908264,
0.17654573917388916,
-0.16614890098571777,
0.302502453327... |
https://github.com/huggingface/datasets/issues/2556 | Better DuplicateKeysError error to help the user debug the issue | Hi ! for which dataset do you have this error ?
Also note that this issue is just about improving the error message, which is not very friendly x) | As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys.
The current one is
```python
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 48
Keys s... | 29 | Better DuplicateKeysError error to help the user debug the issue
As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys.
The current one is
```python
datasets.keyhash.DuplicatedKeysEr... | [
-0.04011964797973633,
-0.2837756872177124,
0.01658409833908081,
0.2825002372264862,
0.16967187821865082,
0.17682069540023804,
0.18356375396251678,
0.24649418890476227,
-0.05150405317544937,
0.1738487333059311,
0.31363314390182495,
0.1790681779384613,
-0.13977749645709991,
0.340994536876678... |
https://github.com/huggingface/datasets/issues/2556 | Better DuplicateKeysError error to help the user debug the issue | @lhoestq I would like to take a hit at improving the error message. Will open a draft PR and will reach out to you for review
| As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys.
The current one is
```python
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 48
Keys s... | 26 | Better DuplicateKeysError error to help the user debug the issue
As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys.
The current one is
```python
datasets.keyhash.DuplicatedKeysEr... | [
0.0004938952624797821,
-0.248665913939476,
0.02145395427942276,
0.2456120401620865,
0.17437797784805298,
0.17658928036689758,
0.20674574375152588,
0.2276933193206787,
-0.07359085977077484,
0.1310092955827713,
0.29601696133613586,
0.1726599633693695,
-0.12909337878227234,
0.3379442989826202... |
https://github.com/huggingface/datasets/issues/2556 | Better DuplicateKeysError error to help the user debug the issue | > DuplicateKeysError: both 42th and 1337th examples have the same keys `48`.
@lhoestq when you mention 42th and 1337th in the above case , are these values the examples' "id" or are they the examples' index ? | As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys.
The current one is
```python
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 48
Keys s... | 37 | Better DuplicateKeysError error to help the user debug the issue
As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys.
The current one is
```python
datasets.keyhash.DuplicatedKeysEr... | [
-0.02034047804772854,
-0.2239266037940979,
0.025477774441242218,
0.3514035940170288,
0.10506153851747513,
0.21221894025802612,
0.24172315001487732,
0.2712758183479309,
-0.016108280047774315,
0.1710687279701233,
0.25376299023628235,
0.1604771912097931,
-0.08901943266391754,
0.28411871194839... |
https://github.com/huggingface/datasets/issues/2556 | Better DuplicateKeysError error to help the user debug the issue | Hi ! Thanks @VijayKalmath :)
In the general case, examples don't have an "id" field, so I think it should correspond to the index | As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys.
The current one is
```python
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 48
Keys s... | 24 | Better DuplicateKeysError error to help the user debug the issue
As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys.
The current one is
```python
datasets.keyhash.DuplicatedKeysEr... | [
-0.04555780813097954,
-0.19828003644943237,
0.02066761627793312,
0.31138989329338074,
0.11798311024904251,
0.19987532496452332,
0.23079444468021393,
0.2535218298435211,
-0.02563805691897869,
0.19732722640037537,
0.3366694450378418,
0.17300119996070862,
-0.12255821377038956,
0.3556112647056... |
https://github.com/huggingface/datasets/issues/2556 | Better DuplicateKeysError error to help the user debug the issue | @lhoestq , I have opened a draft PR for this Issue.
I wanted to check with you if there is a way to get `<path/to/the/dataset/script>` currently or do I need to add extra code to find that.
If I need to find the script , I can assume that the generator function will always be in `datasets/{dataset_name}/{datas... | As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys.
The current one is
```python
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 48
Keys s... | 57 | Better DuplicateKeysError error to help the user debug the issue
As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys.
The current one is
```python
datasets.keyhash.DuplicatedKeysEr... | [
-0.0673377588391304,
-0.17039503157138824,
0.05833863094449043,
0.2929465174674988,
0.2067863941192627,
0.12031847983598709,
0.20834530889987946,
0.24666540324687958,
-0.06788782775402069,
0.17661136388778687,
0.40773388743400574,
0.23443588614463806,
-0.1626642942428589,
0.328441321849823... |
https://github.com/huggingface/datasets/issues/2556 | Better DuplicateKeysError error to help the user debug the issue | Thanks !
> I wanted to check with you if there is a way to get <path/to/the/dataset/script> currently or do I need to add extra code to find that.
You don't have access to this info inside the ArrowWriter unfortunately. This info is available in builder.py in the DatasetBuilder code that uses the ArrowWriter thou... | As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys.
The current one is
```python
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 48
Keys s... | 63 | Better DuplicateKeysError error to help the user debug the issue
As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys.
The current one is
```python
datasets.keyhash.DuplicatedKeysEr... | [
-0.11280734837055206,
-0.10157608985900879,
0.06124358996748924,
0.34673500061035156,
0.1354447901248932,
0.13531023263931274,
0.22799929976463318,
0.2160508930683136,
-0.11058896780014038,
0.11117379367351532,
0.39882007241249084,
0.3010410964488983,
-0.13962486386299133,
0.21024593710899... |
https://github.com/huggingface/datasets/issues/2554 | Multilabel metrics not supported | Hi @GuillemGSubies, thanks for reporting.
I have made a PR to fix this issue and allow metrics to be computed also for multilabel classification problems. | When I try to use a metric like F1 macro I get the following error:
```
TypeError: int() argument must be a string, a bytes-like object or a number, not 'list'
```
There is an explicit casting here:
https://github.com/huggingface/datasets/blob/fc79f61cbbcfa0e8c68b28c0a8257f17e768a075/src/datasets/features.py#L... | 25 | Multilabel metrics not supported
When I try to use a metric like F1 macro I get the following error:
```
TypeError: int() argument must be a string, a bytes-like object or a number, not 'list'
```
There is an explicit casting here:
https://github.com/huggingface/datasets/blob/fc79f61cbbcfa0e8c68b28c0a8257f17... | [
-0.22126498818397522,
-0.17884759604930878,
0.0044772811233997345,
0.30089908838272095,
0.6725276708602905,
-0.13599063456058502,
0.4806855618953705,
-0.10233516991138458,
0.22830796241760254,
0.3166796565055847,
-0.12407443672418594,
0.29819273948669434,
-0.28085029125213623,
0.4046336710... |
https://github.com/huggingface/datasets/issues/2554 | Multilabel metrics not supported | Sorry for reopening but I just noticed that the `_compute` method for the F1 metric is still not good enough for multilabel problems:
https://github.com/huggingface/datasets/blob/92a3ee549705aa0a107c9fa5caf463b3b3da2616/metrics/f1/f1.py#L115
Somehow we should be able to change the parameter `average` at least | When I try to use a metric like F1 macro I get the following error:
```
TypeError: int() argument must be a string, a bytes-like object or a number, not 'list'
```
There is an explicit casting here:
https://github.com/huggingface/datasets/blob/fc79f61cbbcfa0e8c68b28c0a8257f17e768a075/src/datasets/features.py#L... | 36 | Multilabel metrics not supported
When I try to use a metric like F1 macro I get the following error:
```
TypeError: int() argument must be a string, a bytes-like object or a number, not 'list'
```
There is an explicit casting here:
https://github.com/huggingface/datasets/blob/fc79f61cbbcfa0e8c68b28c0a8257f17... | [
-0.3035677373409271,
-0.139424130320549,
-0.011591678485274315,
0.2726672887802124,
0.5279554724693298,
-0.1952754110097885,
0.5079543590545654,
-0.06288637220859528,
0.20763683319091797,
0.38869696855545044,
-0.04871102422475815,
0.2973475456237793,
-0.22173528373241425,
0.434104353189468... |
https://github.com/huggingface/datasets/issues/2553 | load_dataset("web_nlg") NonMatchingChecksumError | Hi ! Thanks for reporting. This is due to the WebNLG repository that got updated today.
I just pushed a fix at #2558 - this shouldn't happen anymore in the future. | Hi! It seems the WebNLG dataset gives a NonMatchingChecksumError.
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset('web_nlg', name="release_v3.0_en", split="dev")
```
Gives
```
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['h... | 31 | load_dataset("web_nlg") NonMatchingChecksumError
Hi! It seems the WebNLG dataset gives a NonMatchingChecksumError.
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset('web_nlg', name="release_v3.0_en", split="dev")
```
Gives
```
NonMatchingChecksumError: Ch... | [
-0.19279488921165466,
0.12983962893486023,
-0.13637618720531464,
0.04064231365919113,
0.26515719294548035,
0.008678719401359558,
0.13199776411056519,
0.4511449337005615,
0.29637283086776733,
0.08619610965251923,
-0.06551375240087509,
0.2723959684371948,
0.02208835259079933,
-0.025522081181... |
https://github.com/huggingface/datasets/issues/2552 | Keys should be unique error on code_search_net | Two questions:
- with `datasets-cli env` we don't have any information on the dataset script version used. Should we give access to this somehow? Either as a note in the Error message or as an argument with the name of the dataset to `datasets-cli env`?
- I don't really understand why the id is duplicated in the code... | ## Describe the bug
Loading `code_search_net` seems not possible at the moment.
## Steps to reproduce the bug
```python
>>> load_dataset('code_search_net')
Downloading: 8.50kB [00:00, 3.09MB/s] ... | 66 | Keys should be unique error on code_search_net
## Describe the bug
Loading `code_search_net` seems not possible at the moment.
## Steps to reproduce the bug
```python
>>> load_dataset('code_search_net')
Downloading: 8.50kB [00:00, 3.09MB/s] ... | [
-0.009492114186286926,
0.004908770322799683,
-0.10378046333789825,
0.3735044598579407,
0.046931058168411255,
-0.05958117917180061,
0.2355329394340515,
0.23767659068107605,
0.05807117745280266,
0.042098745703697205,
-0.08941300958395004,
0.4072089195251465,
-0.1577007919549942,
0.1043389067... |
https://github.com/huggingface/datasets/issues/2552 | Keys should be unique error on code_search_net | Thanks for reporting. There was indeed an issue with the keys. The key was the addition of the file id and row id, which resulted in collisions. I just opened a PR to fix this at https://github.com/huggingface/datasets/pull/2555
To help users debug this kind of errors we could try to show a message like this
```pyt... | ## Describe the bug
Loading `code_search_net` seems not possible at the moment.
## Steps to reproduce the bug
```python
>>> load_dataset('code_search_net')
Downloading: 8.50kB [00:00, 3.09MB/s] ... | 97 | Keys should be unique error on code_search_net
## Describe the bug
Loading `code_search_net` seems not possible at the moment.
## Steps to reproduce the bug
```python
>>> load_dataset('code_search_net')
Downloading: 8.50kB [00:00, 3.09MB/s] ... | [
-0.039389438927173615,
-0.014791809022426605,
-0.09282343089580536,
0.33669793605804443,
0.08732002228498459,
-0.01393970474600792,
0.2003903090953827,
0.27122047543525696,
0.08827376365661621,
0.06673939526081085,
-0.08619938790798187,
0.3934497535228729,
-0.16239216923713684,
0.132939040... |
https://github.com/huggingface/datasets/issues/2552 | Keys should be unique error on code_search_net | and are we sure there are not a lot of datasets which are now broken with this change? | ## Describe the bug
Loading `code_search_net` seems not possible at the moment.
## Steps to reproduce the bug
```python
>>> load_dataset('code_search_net')
Downloading: 8.50kB [00:00, 3.09MB/s] ... | 18 | Keys should be unique error on code_search_net
## Describe the bug
Loading `code_search_net` seems not possible at the moment.
## Steps to reproduce the bug
```python
>>> load_dataset('code_search_net')
Downloading: 8.50kB [00:00, 3.09MB/s] ... | [
-0.046908412128686905,
-0.027153022587299347,
-0.1106116771697998,
0.3490990400314331,
0.08127715438604355,
-0.01561938226222992,
0.18118071556091309,
0.27708396315574646,
0.08159121870994568,
0.05441858619451523,
-0.05990682542324066,
0.391693115234375,
-0.18466106057167053,
0.11661613732... |
https://github.com/huggingface/datasets/issues/2552 | Keys should be unique error on code_search_net | Thanks to the dummy data, we know for sure that most of them work as expected.
`code_search_net` wasn't caught because the dummy data only have one dummy data file while the dataset script can actually load several of them using `os.listdir`. Let me take a look at all the other datasets that use `os.listdir` to see if... | ## Describe the bug
Loading `code_search_net` seems not possible at the moment.
## Steps to reproduce the bug
```python
>>> load_dataset('code_search_net')
Downloading: 8.50kB [00:00, 3.09MB/s] ... | 61 | Keys should be unique error on code_search_net
## Describe the bug
Loading `code_search_net` seems not possible at the moment.
## Steps to reproduce the bug
```python
>>> load_dataset('code_search_net')
Downloading: 8.50kB [00:00, 3.09MB/s] ... | [
-0.03642664849758148,
-0.020195260643959045,
-0.09643828868865967,
0.3276668190956116,
0.07617687433958054,
-0.013212360441684723,
0.208099827170372,
0.29120177030563354,
0.09849964082241058,
0.07118474692106247,
-0.0670371726155281,
0.38355904817581177,
-0.17116574943065643,
0.13640013337... |
https://github.com/huggingface/datasets/issues/2552 | Keys should be unique error on code_search_net | I found one issue on `fever` (PR here: https://github.com/huggingface/datasets/pull/2557)
All the other ones seem fine :) | ## Describe the bug
Loading `code_search_net` seems not possible at the moment.
## Steps to reproduce the bug
```python
>>> load_dataset('code_search_net')
Downloading: 8.50kB [00:00, 3.09MB/s] ... | 16 | Keys should be unique error on code_search_net
## Describe the bug
Loading `code_search_net` seems not possible at the moment.
## Steps to reproduce the bug
```python
>>> load_dataset('code_search_net')
Downloading: 8.50kB [00:00, 3.09MB/s] ... | [
-0.020208342000842094,
0.0007684975862503052,
-0.09075641632080078,
0.3496328592300415,
0.08513709902763367,
-0.024871956557035446,
0.19917990267276764,
0.25810664892196655,
0.09322987496852875,
0.07367491722106934,
-0.09278638660907745,
0.38461223244667053,
-0.1742849498987198,
0.11450885... |
https://github.com/huggingface/datasets/issues/2552 | Keys should be unique error on code_search_net | Hi! Got same error when loading other dataset:
```python3
load_dataset('wikicorpus', 'raw_en')
```
tb:
```pytb
---------------------------------------------------------------------------
DuplicatedKeysError Traceback (most recent call last)
/opt/conda/lib/python3.8/site-packages/datasets... | ## Describe the bug
Loading `code_search_net` seems not possible at the moment.
## Steps to reproduce the bug
```python
>>> load_dataset('code_search_net')
Downloading: 8.50kB [00:00, 3.09MB/s] ... | 91 | Keys should be unique error on code_search_net
## Describe the bug
Loading `code_search_net` seems not possible at the moment.
## Steps to reproduce the bug
```python
>>> load_dataset('code_search_net')
Downloading: 8.50kB [00:00, 3.09MB/s] ... | [
-0.0506565235555172,
-0.02653065323829651,
-0.0967085063457489,
0.33766692876815796,
0.09382720291614532,
-0.005184784531593323,
0.20963692665100098,
0.27232253551483154,
0.097866952419281,
0.0846780389547348,
-0.0767664834856987,
0.37975847721099854,
-0.18557727336883545,
0.13125024735927... |
https://github.com/huggingface/datasets/issues/2552 | Keys should be unique error on code_search_net | The wikicorpus issue has been fixed by https://github.com/huggingface/datasets/pull/2844
We'll do a new release of `datasets` soon :) | ## Describe the bug
Loading `code_search_net` seems not possible at the moment.
## Steps to reproduce the bug
```python
>>> load_dataset('code_search_net')
Downloading: 8.50kB [00:00, 3.09MB/s] ... | 17 | Keys should be unique error on code_search_net
## Describe the bug
Loading `code_search_net` seems not possible at the moment.
## Steps to reproduce the bug
```python
>>> load_dataset('code_search_net')
Downloading: 8.50kB [00:00, 3.09MB/s] ... | [
-0.07428081333637238,
-0.035179831087589264,
-0.08668236434459686,
0.35816043615341187,
0.06232611462473869,
-0.03549334779381752,
0.16847482323646545,
0.26390165090560913,
0.09276586771011353,
0.12361413985490799,
-0.04451386630535126,
0.3784416913986206,
-0.1519160121679306,
0.1347227245... |
https://github.com/huggingface/datasets/issues/2549 | Handling unlabeled datasets | Hi @nelson-liu,
You can pass the parameter `features` to `load_dataset`: https://huggingface.co/docs/datasets/_modules/datasets/load.html#load_dataset
If you look at the code of the MNLI script you referred in your question (https://github.com/huggingface/datasets/blob/master/datasets/multi_nli/multi_nli.py#L62-L... | Hi!
Is there a way for datasets to produce unlabeled instances (e.g., the `ClassLabel` can be nullable).
For example, I want to use the MNLI dataset reader ( https://github.com/huggingface/datasets/blob/master/datasets/multi_nli/multi_nli.py ) on a file that doesn't have the `gold_label` field. I tried setting `"... | 55 | Handling unlabeled datasets
Hi!
Is there a way for datasets to produce unlabeled instances (e.g., the `ClassLabel` can be nullable).
For example, I want to use the MNLI dataset reader ( https://github.com/huggingface/datasets/blob/master/datasets/multi_nli/multi_nli.py ) on a file that doesn't have the `gold_la... | [
0.05881325528025627,
0.07810066640377045,
0.13162532448768616,
0.3273364305496216,
0.25035160779953003,
0.1380118429660797,
0.7898838520050049,
-0.15122926235198975,
0.0572315938770771,
0.1499079018831253,
-0.2000780701637268,
0.5356728434562683,
-0.267747163772583,
0.244021937251091,
-0... |
https://github.com/huggingface/datasets/issues/2548 | Field order issue in loading json | Hi @luyug, thanks for reporting.
The good news is that we fixed this issue only 9 days ago: #2507.
The patch is already in the master branch of our repository and it will be included in our next `datasets` release version 1.9.0.
Feel free to reopen the issue if the problem persists. | ## Describe the bug
The `load_dataset` function expects columns in alphabetical order when loading json files.
Similar bug was previously reported for csv in #623 and fixed in #684.
## Steps to reproduce the bug
For a json file `j.json`,
```
{"c":321, "a": 1, "b": 2}
```
Running the following,
```
f= data... | 52 | Field order issue in loading json
## Describe the bug
The `load_dataset` function expects columns in alphabetical order when loading json files.
Similar bug was previously reported for csv in #623 and fixed in #684.
## Steps to reproduce the bug
For a json file `j.json`,
```
{"c":321, "a": 1, "b": 2}
```
... | [
0.1825093775987625,
0.23169416189193726,
-0.015927564352750778,
0.21059909462928772,
0.3290204405784607,
-0.06300397217273712,
0.22351804375648499,
0.42885324358940125,
0.009034667164087296,
0.02266862243413925,
0.07545392960309982,
0.6574707627296448,
0.3253481686115265,
-0.01246659457683... |
https://github.com/huggingface/datasets/issues/2547 | Dataset load_from_disk is too slow | Hi ! It looks like an issue with the virtual disk you are using.
We load datasets using memory mapping. In general it makes it possible to load very big files instantaneously since it doesn't have to read the file (it just assigns virtual memory to the file on disk).
However there happens to be issues with virtual ... | @lhoestq
## Describe the bug
It's not normal that I have to wait 7-8 hours for a dataset to be loaded from disk, as there are no preprocessing steps, it's only loading it with load_from_disk. I have 96 cpus, however only 1 is used for this, which is inefficient. Moreover, its usage is at 1%... This is happening in t... | 121 | Dataset load_from_disk is too slow
@lhoestq
## Describe the bug
It's not normal that I have to wait 7-8 hours for a dataset to be loaded from disk, as there are no preprocessing steps, it's only loading it with load_from_disk. I have 96 cpus, however only 1 is used for this, which is inefficient. Moreover, its usa... | [
-0.4744632840156555,
-0.36521172523498535,
-0.09103214740753174,
0.5078070759773254,
0.2949649691581726,
0.07778070122003555,
0.08729526400566101,
0.2941163182258606,
0.5636071562767029,
0.11371589452028275,
0.1030266284942627,
0.3100511431694031,
-0.03649458289146423,
-0.1310184746980667,... |
https://github.com/huggingface/datasets/issues/2547 | Dataset load_from_disk is too slow | Okay, that's exactly my case, with spot instances... Therefore this isn't something we can change in any way to be able to load the dataset faster? I mean, what do you do internally at huggingface for being able to use spot instances with datasets efficiently? | @lhoestq
## Describe the bug
It's not normal that I have to wait 7-8 hours for a dataset to be loaded from disk, as there are no preprocessing steps, it's only loading it with load_from_disk. I have 96 cpus, however only 1 is used for this, which is inefficient. Moreover, its usage is at 1%... This is happening in t... | 45 | Dataset load_from_disk is too slow
@lhoestq
## Describe the bug
It's not normal that I have to wait 7-8 hours for a dataset to be loaded from disk, as there are no preprocessing steps, it's only loading it with load_from_disk. I have 96 cpus, however only 1 is used for this, which is inefficient. Moreover, its usa... | [
-0.31963691115379333,
-0.5587561130523682,
-0.062026508152484894,
0.5160355567932129,
0.23286035656929016,
0.020378723740577698,
0.12462976574897766,
0.13793520629405975,
0.5566673278808594,
0.11270595341920853,
-0.06148034334182739,
0.3583334982395172,
-0.015343175269663334,
0.21133051812... |
https://github.com/huggingface/datasets/issues/2547 | Dataset load_from_disk is too slow | There are no solutions yet unfortunately.
We're still trying to figure out a way to make the loading instantaneous on such disks, I'll keep you posted | @lhoestq
## Describe the bug
It's not normal that I have to wait 7-8 hours for a dataset to be loaded from disk, as there are no preprocessing steps, it's only loading it with load_from_disk. I have 96 cpus, however only 1 is used for this, which is inefficient. Moreover, its usage is at 1%... This is happening in t... | 26 | Dataset load_from_disk is too slow
@lhoestq
## Describe the bug
It's not normal that I have to wait 7-8 hours for a dataset to be loaded from disk, as there are no preprocessing steps, it's only loading it with load_from_disk. I have 96 cpus, however only 1 is used for this, which is inefficient. Moreover, its usa... | [
-0.4694783091545105,
-0.24230194091796875,
-0.11789417266845703,
0.394115686416626,
0.24218159914016724,
0.05294816941022873,
0.1993054747581482,
0.26577067375183105,
0.4733242690563202,
0.10509952157735825,
0.053388603031635284,
0.44948893785476685,
-0.02447601780295372,
0.013596678152680... |
https://github.com/huggingface/datasets/issues/2543 | switching some low-level log.info's to log.debug? | Hi @stas00, thanks for pointing out this issue with logging.
I agree that `datasets` can sometimes be too verbose... I can create a PR and we could discuss there the choice of the log levels for different parts of the code. | In https://github.com/huggingface/transformers/pull/12276 we are now changing the examples to have `datasets` on the same log level as `transformers`, so that one setting can do a consistent logging across all involved components.
The trouble is that now we get a ton of these:
```
06/23/2021 12:15:31 - INFO - da... | 41 | switching some low-level log.info's to log.debug?
In https://github.com/huggingface/transformers/pull/12276 we are now changing the examples to have `datasets` on the same log level as `transformers`, so that one setting can do a consistent logging across all involved components.
The trouble is that now we get a t... | [
0.17252321541309357,
-0.3411971926689148,
0.08715629577636719,
0.20244190096855164,
0.256084680557251,
0.11248704046010971,
0.5520285964012146,
0.31011223793029785,
-0.07186182588338852,
-0.301871657371521,
-0.04163724184036255,
0.17572879791259766,
-0.21787169575691223,
0.2808295488357544... |
https://github.com/huggingface/datasets/issues/2542 | `datasets.keyhash.DuplicatedKeysError` for `drop` and `adversarial_qa/adversarialQA` | Hi @VictorSanh, thank you for reporting this issue with duplicated keys.
- The issue with "adversarial_qa" was fixed 23 days ago: #2433. Current version of `datasets` (1.8.0) includes the patch.
- I am investigating the issue with `drop`. I'll ping you to keep you informed. | ## Describe the bug
Failure to generate the datasets (`drop` and subset `adversarialQA` from `adversarial_qa`) because of duplicate keys.
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset("drop")
load_dataset("adversarial_qa", "adversarialQA")
```
## Expected results
Th... | 45 | `datasets.keyhash.DuplicatedKeysError` for `drop` and `adversarial_qa/adversarialQA`
## Describe the bug
Failure to generate the datasets (`drop` and subset `adversarialQA` from `adversarial_qa`) because of duplicate keys.
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset("... | [
-0.09050896763801575,
-0.11600708961486816,
0.009455163031816483,
0.470907986164093,
0.08408747613430023,
0.028658390045166016,
0.302809476852417,
0.2397654801607132,
0.1277972161769867,
0.1814354658126831,
-0.14392128586769104,
0.5057471990585327,
-0.04829563945531845,
0.11989326030015945... |
https://github.com/huggingface/datasets/issues/2542 | `datasets.keyhash.DuplicatedKeysError` for `drop` and `adversarial_qa/adversarialQA` | Hi @VictorSanh, the issue is already fixed and merged into master branch and will be included in our next release version 1.9.0. | ## Describe the bug
Failure to generate the datasets (`drop` and subset `adversarialQA` from `adversarial_qa`) because of duplicate keys.
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset("drop")
load_dataset("adversarial_qa", "adversarialQA")
```
## Expected results
Th... | 22 | `datasets.keyhash.DuplicatedKeysError` for `drop` and `adversarial_qa/adversarialQA`
## Describe the bug
Failure to generate the datasets (`drop` and subset `adversarialQA` from `adversarial_qa`) because of duplicate keys.
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset("... | [
-0.09050896763801575,
-0.11600708961486816,
0.009455163031816483,
0.470907986164093,
0.08408747613430023,
0.028658390045166016,
0.302809476852417,
0.2397654801607132,
0.1277972161769867,
0.1814354658126831,
-0.14392128586769104,
0.5057471990585327,
-0.04829563945531845,
0.11989326030015945... |
https://github.com/huggingface/datasets/issues/2538 | Loading partial dataset when debugging | Hi ! `load_dataset` downloads the full dataset once and caches it, so that subsequent calls to `load_dataset` just reloads the dataset from your disk.
Then when you specify a `split` in `load_dataset`, it will just load the requested split from the disk. If your specified split is a sliced split (e.g. `"train[:10]"`),... | I am using PyTorch Lightning along with datasets (thanks for so many datasets already prepared and the great splits).
Every time I execute load_dataset for the imdb dataset it takes some time even if I specify a split involving very few samples. I guess this due to hashing as per the other issues.
Is there a wa... | 98 | Loading partial dataset when debugging
I am using PyTorch Lightning along with datasets (thanks for so many datasets already prepared and the great splits).
Every time I execute load_dataset for the imdb dataset it takes some time even if I specify a split involving very few samples. I guess this due to hashing ... | [
-0.36718907952308655,
-0.1431683450937271,
-0.021608324721455574,
0.36220425367355347,
-0.06753060966730118,
0.27566981315612793,
0.574037492275238,
0.4168045222759247,
0.2612755298614502,
-0.08351022005081177,
-0.08284468203783035,
0.14032098650932312,
-0.17392060160636902,
0.182089045643... |
https://github.com/huggingface/datasets/issues/2538 | Loading partial dataset when debugging | Hi @reachtarunhere.
Besides the above insights provided by @lhoestq and @thomwolf, there is also a Dataset feature in progress (I plan to finish it this week): #2249, which will allow you, when calling `load_dataset`, to pass the option to download/preprocess/cache only some specific split(s), which will definitely ... | I am using PyTorch Lightning along with datasets (thanks for so many datasets already prepared and the great splits).
Every time I execute load_dataset for the imdb dataset it takes some time even if I specify a split involving very few samples. I guess this due to hashing as per the other issues.
Is there a wa... | 71 | Loading partial dataset when debugging
I am using PyTorch Lightning along with datasets (thanks for so many datasets already prepared and the great splits).
Every time I execute load_dataset for the imdb dataset it takes some time even if I specify a split involving very few samples. I guess this due to hashing ... | [
-0.42554771900177,
-0.10989340394735336,
-0.034852929413318634,
0.30327892303466797,
-0.07041165977716446,
0.2823927104473114,
0.5759145021438599,
0.4311380386352539,
0.30114322900772095,
-0.08975932002067566,
-0.09464330971240997,
0.17002813518047333,
-0.16752201318740845,
0.2383287101984... |
https://github.com/huggingface/datasets/issues/2538 | Loading partial dataset when debugging | Thanks all for responding.
Hey @albertvillanova
Thanks. Yes, I would be interested.
@lhoestq I think even if a small split is specified it loads up the full dataset from the disk (please correct me if this is not the case). Because it does seem to be slow to me even on subsequent calls. There is no repeated d... | I am using PyTorch Lightning along with datasets (thanks for so many datasets already prepared and the great splits).
Every time I execute load_dataset for the imdb dataset it takes some time even if I specify a split involving very few samples. I guess this due to hashing as per the other issues.
Is there a wa... | 85 | Loading partial dataset when debugging
I am using PyTorch Lightning along with datasets (thanks for so many datasets already prepared and the great splits).
Every time I execute load_dataset for the imdb dataset it takes some time even if I specify a split involving very few samples. I guess this due to hashing ... | [
-0.4159129858016968,
-0.14814646542072296,
-0.012522883713245392,
0.3571512699127197,
-0.09925103187561035,
0.2774941623210907,
0.5004060864448547,
0.4125295579433441,
0.3049241006374359,
-0.1691022664308548,
-0.09666922688484192,
0.12072668224573135,
-0.11352979391813278,
0.25188669562339... |
https://github.com/huggingface/datasets/issues/2538 | Loading partial dataset when debugging | If I want to create a dataset, containing only the 10 elements of a given dataset (slice it), how do I do that? | I am using PyTorch Lightning along with datasets (thanks for so many datasets already prepared and the great splits).
Every time I execute load_dataset for the imdb dataset it takes some time even if I specify a split involving very few samples. I guess this due to hashing as per the other issues.
Is there a wa... | 23 | Loading partial dataset when debugging
I am using PyTorch Lightning along with datasets (thanks for so many datasets already prepared and the great splits).
Every time I execute load_dataset for the imdb dataset it takes some time even if I specify a split involving very few samples. I guess this due to hashing ... | [
-0.3977651596069336,
-0.09477072954177856,
-0.03719766065478325,
0.28004884719848633,
-0.05208875983953476,
0.26435837149620056,
0.5830538272857666,
0.3652512729167938,
0.2672199308872223,
-0.045075371861457825,
-0.11924239248037338,
0.20403510332107544,
-0.24334515631198883,
0.33019906282... |
https://github.com/huggingface/datasets/issues/2538 | Loading partial dataset when debugging |
> ```python
> small_ds = ds.select(range(10))
> ```
Thanks, but this doesn't help me to save time during initial loading, right? | I am using PyTorch Lightning along with datasets (thanks for so many datasets already prepared and the great splits).
Every time I execute load_dataset for the imdb dataset it takes some time even if I specify a split involving very few samples. I guess this due to hashing as per the other issues.
Is there a wa... | 21 | Loading partial dataset when debugging
I am using PyTorch Lightning along with datasets (thanks for so many datasets already prepared and the great splits).
Every time I execute load_dataset for the imdb dataset it takes some time even if I specify a split involving very few samples. I guess this due to hashing ... | [
-0.38979572057724,
-0.13344939053058624,
-0.04307626187801361,
0.2874336838722229,
-0.06734951585531235,
0.3263414800167084,
0.5881050229072571,
0.413409948348999,
0.32278189063072205,
-0.10512976348400116,
-0.1278591752052307,
0.14691932499408722,
-0.2003728300333023,
0.29541730880737305,... |
https://github.com/huggingface/datasets/issues/2538 | Loading partial dataset when debugging | Indeed by default load_dataset would download and prepare everything as Arrow files. And passing `split=train[:10]` memory maps only the beginning of the full dataset that has been prepared on disk.
If you don't want to download everything, you can use streaming :
```python
ids = load_dataset(..., streaming=True... | I am using PyTorch Lightning along with datasets (thanks for so many datasets already prepared and the great splits).
Every time I execute load_dataset for the imdb dataset it takes some time even if I specify a split involving very few samples. I guess this due to hashing as per the other issues.
Is there a wa... | 67 | Loading partial dataset when debugging
I am using PyTorch Lightning along with datasets (thanks for so many datasets already prepared and the great splits).
Every time I execute load_dataset for the imdb dataset it takes some time even if I specify a split involving very few samples. I guess this due to hashing ... | [
-0.4390907287597656,
-0.1243741512298584,
-0.00954718329012394,
0.3589228391647339,
-0.059830598533153534,
0.35498034954071045,
0.5410905480384827,
0.4510706961154938,
0.31206050515174866,
-0.08555996417999268,
-0.0919952392578125,
0.14091995358467102,
-0.20304206013679504,
0.1749744713306... |
https://github.com/huggingface/datasets/issues/2538 | Loading partial dataset when debugging | Thanks @lhoestq, but I don't think it is 100% accurate, as it doesn't keep the dataset structure exactly the same.
To load the full dataset, I do:
```
data = load_dataset("json", data_files="a.json")
train_data = data["train"].shuffle()
```
But when I am changing it as per your instructions:
```
ids = load_d... | I am using PyTorch Lightning along with datasets (thanks for so many datasets already prepared and the great splits).
Every time I execute load_dataset for the imdb dataset it takes some time even if I specify a split involving very few samples. I guess this due to hashing as per the other issues.
Is there a wa... | 82 | Loading partial dataset when debugging
I am using PyTorch Lightning along with datasets (thanks for so many datasets already prepared and the great splits).
Every time I execute load_dataset for the imdb dataset it takes some time even if I specify a split involving very few samples. I guess this due to hashing ... | [
-0.32418379187583923,
-0.06388330459594727,
-0.007942242547869682,
0.4085162281990051,
0.016670741140842438,
0.3319087326526642,
0.5023546814918518,
0.3716799020767212,
0.15747979283332825,
0.013587534427642822,
-0.14452987909317017,
0.2664686441421509,
-0.20985522866249084,
0.246435597538... |
https://github.com/huggingface/datasets/issues/2538 | Loading partial dataset when debugging | Whoops I fixed my code sorry
```diff
- ds = Dataset.from_generator(ids["train"].take(10).__iter__)
+ ds = Dataset.from_generator(ids.take(10).__iter__)
```
in your case that means running
```python
train_data = data.shuffle()
```
without `["train"]` | I am using PyTorch Lightning along with datasets (thanks for so many datasets already prepared and the great splits).
Every time I execute load_dataset for the imdb dataset it takes some time even if I specify a split involving very few samples. I guess this due to hashing as per the other issues.
Is there a wa... | 29 | Loading partial dataset when debugging
I am using PyTorch Lightning along with datasets (thanks for so many datasets already prepared and the great splits).
Every time I execute load_dataset for the imdb dataset it takes some time even if I specify a split involving very few samples. I guess this due to hashing ... | [
-0.3739752471446991,
-0.10816188901662827,
-0.0235910601913929,
0.3584914803504944,
-0.0022209547460079193,
0.34946414828300476,
0.5607232451438904,
0.39705130457878113,
0.25718191266059875,
-0.07330752909183502,
-0.08933363109827042,
0.151454895734787,
-0.23152844607830048,
0.208918720483... |
https://github.com/huggingface/datasets/issues/2532 | Tokenizer's normalization preprocessor cause misalignment in return_offsets_mapping for tokenizer classification task | Hi @jerryIsHere, thanks for reporting the issue. But are you sure this is a bug in HuggingFace **Datasets**? | [This colab notebook](https://colab.research.google.com/drive/151gKyo0YIwnlznrOHst23oYH_a3mAe3Z?usp=sharing) implements a token classification input pipeline extending the logic from [this hugging example](https://huggingface.co/transformers/custom_datasets.html#tok-ner).
The pipeline works fine with most instance i... | 18 | Tokenizer's normalization preprocessor cause misalignment in return_offsets_mapping for tokenizer classification task
[This colab notebook](https://colab.research.google.com/drive/151gKyo0YIwnlznrOHst23oYH_a3mAe3Z?usp=sharing) implements a token classification input pipeline extending the logic from [this hugging exa... | [
-0.15369628369808197,
0.07901284098625183,
0.07378193736076355,
-0.03823215514421463,
0.09215759485960007,
-0.3246820569038391,
-0.08998163044452667,
0.10603216290473938,
-0.46176084876060486,
0.19867368042469025,
-0.20853739976882935,
0.3074204921722412,
0.2766767740249634,
0.030885035172... |
https://github.com/huggingface/datasets/issues/2532 | Tokenizer's normalization preprocessor cause misalignment in return_offsets_mapping for tokenizer classification task | > Hi @jerryIsHere, thanks for reporting the issue. But are you sure this is a bug in HuggingFace **Datasets**?
Oh, I am sorry
I would reopen the post on huggingface/transformers | [This colab notebook](https://colab.research.google.com/drive/151gKyo0YIwnlznrOHst23oYH_a3mAe3Z?usp=sharing) implements a token classification input pipeline extending the logic from [this hugging example](https://huggingface.co/transformers/custom_datasets.html#tok-ner).
The pipeline works fine with most instance i... | 30 | Tokenizer's normalization preprocessor cause misalignment in return_offsets_mapping for tokenizer classification task
[This colab notebook](https://colab.research.google.com/drive/151gKyo0YIwnlznrOHst23oYH_a3mAe3Z?usp=sharing) implements a token classification input pipeline extending the logic from [this hugging exa... | [
-0.15369628369808197,
0.07901284098625183,
0.07378193736076355,
-0.03823215514421463,
0.09215759485960007,
-0.3246820569038391,
-0.08998163044452667,
0.10603216290473938,
-0.46176084876060486,
0.19867368042469025,
-0.20853739976882935,
0.3074204921722412,
0.2766767740249634,
0.030885035172... |
https://github.com/huggingface/datasets/issues/2526 | Add COCO datasets | I'm currently adding it, the entire dataset is quite big around 30 GB so I add splits separately. You can take a look here https://huggingface.co/datasets/merve/coco | ## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets... | 25 | Add COCO datasets
## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in ... | [
-0.21530325710773468,
-0.49169018864631653,
-0.13700984418392181,
0.211781844496727,
0.1525026261806488,
0.03624939173460007,
0.12675942480564117,
0.11922024190425873,
-0.1120569109916687,
0.2191455364227295,
-0.5324269533157349,
0.14771413803100586,
-0.2628600597381592,
0.4540183842182159... |
https://github.com/huggingface/datasets/issues/2526 | Add COCO datasets | I talked to @lhoestq and it's best if I download this dataset through TensorFlow datasets instead, so I'll be implementing that one really soon.
@NielsRogge | ## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets... | 25 | Add COCO datasets
## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in ... | [
-0.22789953649044037,
-0.5181814432144165,
-0.15937601029872894,
0.12037906050682068,
0.1785203218460083,
0.004588104784488678,
0.19410768151283264,
0.15879057347774506,
-0.062192317098379135,
0.258683443069458,
-0.4073512852191925,
0.14291571080684662,
-0.2488182932138443,
0.3926752209663... |
https://github.com/huggingface/datasets/issues/2526 | Add COCO datasets | I started adding COCO, will be done tomorrow EOD
my work so far https://github.com/merveenoyan/datasets (my fork) | ## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets... | 16 | Add COCO datasets
## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in ... | [
-0.1830970197916031,
-0.495496928691864,
-0.1293638050556183,
0.19580595195293427,
0.203109011054039,
0.05224261432886124,
0.06116644665598869,
0.107828289270401,
-0.1408272087574005,
0.2152937352657318,
-0.5061154961585999,
0.16042359173297882,
-0.22876732051372528,
0.41294434666633606,
... |
https://github.com/huggingface/datasets/issues/2526 | Add COCO datasets | Hi Merve @merveenoyan , thank you so much for your great contribution! May I ask about the current progress of your implementation? Cuz I see the pull request is still in progess here. Or can I just run the COCO scripts in your fork repo? | ## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets... | 45 | Add COCO datasets
## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in ... | [
-0.1481829732656479,
-0.6077483892440796,
-0.11354786157608032,
0.14933550357818604,
0.13040322065353394,
-0.0674014613032341,
0.06796036660671234,
0.0632961168885231,
-0.15467895567417145,
0.1748444139957428,
-0.40827566385269165,
0.13419590890407562,
-0.3136060833930969,
0.43000903725624... |
https://github.com/huggingface/datasets/issues/2526 | Add COCO datasets | Hello @yixuanren I had another prioritized project about to be merged, but I'll start continuing today will finish up soon. | ## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets... | 20 | Add COCO datasets
## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in ... | [
-0.20727187395095825,
-0.5107595920562744,
-0.1322675496339798,
0.19203658401966095,
0.2045862376689911,
0.05097080022096634,
0.12114402651786804,
0.11549226939678192,
-0.09616479277610779,
0.22603678703308105,
-0.4832248389720917,
0.1559068262577057,
-0.25631484389305115,
0.46454951167106... |
https://github.com/huggingface/datasets/issues/2526 | Add COCO datasets | > Hello @yixuanren I had another prioritized project about to be merged, but I'll start continuing today will finish up soon.
It's really nice of you!! I see you've commited another version just now | ## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets... | 34 | Add COCO datasets
## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in ... | [
-0.19347015023231506,
-0.530968189239502,
-0.1402343064546585,
0.17947667837142944,
0.20484614372253418,
0.025511935353279114,
0.11512261629104614,
0.1192389726638794,
-0.11042332649230957,
0.2151785045862198,
-0.46300509572029114,
0.16055293381214142,
-0.23001541197299957,
0.4517649412155... |
https://github.com/huggingface/datasets/issues/2526 | Add COCO datasets | Hi @NielsRogge and @merveenoyan, did you find a way to load a dataset with COCO annotations to HF's hub?
I have a panoptic segmentation dataset in COCO format and would like to share it with the community.
Thanks in advance :) | ## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets... | 41 | Add COCO datasets
## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in ... | [
-0.11135806888341904,
-0.5989514589309692,
-0.019046586006879807,
0.16975989937782288,
0.16823284327983856,
0.1434836983680725,
0.07303406298160553,
0.030360227450728416,
-0.028083480894565582,
0.15712100267410278,
-0.8349181413650513,
0.13507361710071564,
-0.1977086067199707,
0.3826331198... |
https://github.com/huggingface/datasets/issues/2526 | Add COCO datasets | The COCO format is not supported out of the box in the HF's hub - you'd need to reformat it to an [ImageFolder](https://huggingface.co/docs/datasets/image_dataset#imagefolder) with metadata format, or write a [loading script](https://huggingface.co/docs/datasets/image_dataset#loading-script) | ## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets... | 31 | Add COCO datasets
## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in ... | [
-0.27545300126075745,
-0.5610966682434082,
-0.06040312722325325,
0.11809239536523819,
0.09837132692337036,
0.11320091038942337,
0.1017959713935852,
0.20642104744911194,
-0.022832246497273445,
0.2153579592704773,
-0.6720101833343506,
-0.008999455720186234,
-0.22723381221294403,
0.3864443004... |
https://github.com/huggingface/datasets/issues/2526 | Add COCO datasets | > The COCO format is not supported out of the box in the HF's hub - you'd need to reformat it to an [ImageFolder](https://huggingface.co/docs/datasets/image_dataset#imagefolder) with metadata format, or write a [loading script](https://huggingface.co/docs/datasets/image_dataset#loading-script)
Hi @lhoestq , thank yo... | ## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets... | 163 | Add COCO datasets
## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in ... | [
0.0031581632792949677,
-0.4333896338939667,
-0.008030371740460396,
0.34826141595840454,
0.14292457699775696,
0.09797336906194687,
-0.1824265867471695,
-0.12278904020786285,
-0.23890957236289978,
-0.0353531688451767,
-0.6616321802139282,
0.2710564136505127,
-0.2954808175563812,
0.1525562405... |
https://github.com/huggingface/datasets/issues/2526 | Add COCO datasets | Both were uploaded using `ds.push_to_hub()` :)
You can get a Dataset from a python dictionary using `ds = Dataset.from_dict(...)` and casts the paths to images to the `Image()` type using `ds = ds.cast_column("image", Image())`.
```python
from datasets import Dataset, Image
ds = Dataset.from_dict(...)
ds = d... | ## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets... | 53 | Add COCO datasets
## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in ... | [
-0.1620960831642151,
-0.518302857875824,
-0.10980427265167236,
0.23431392014026642,
0.15737956762313843,
0.043194204568862915,
0.1724742352962494,
0.12560538947582245,
-0.057067882269620895,
0.2161729633808136,
-0.5137792825698853,
0.23424389958381653,
-0.28834518790245056,
0.3748851120471... |
https://github.com/huggingface/datasets/issues/2526 | Add COCO datasets | > Both were uploaded using `ds.push_to_hub()` :)
>
> You can get a Dataset from a python dictionary using `ds = Dataset.from_dict(...)` and casts the paths to images to the `Image()` type using `ds = ds.cast_column("image", Image())`.
>
> ```python
> from datasets import Dataset, Image
>
> ds = Dataset.from_d... | ## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets... | 456 | Add COCO datasets
## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in ... | [
-0.059197358787059784,
-0.4270423948764801,
-0.025775941088795662,
0.23544441163539886,
0.15921373665332794,
0.02247687429189682,
0.154083713889122,
0.19789525866508484,
-0.2500925660133362,
0.16166022419929504,
-0.5740940570831299,
0.024560999125242233,
-0.10765650868415833,
0.29522466659... |
https://github.com/huggingface/datasets/issues/2526 | Add COCO datasets | You can pass this data in .from_dict() - no need to cast anything for this column
```python
ds = Dataset.from_dict({
"image": [...],
"label": [...],
"segments_info": [...],
)}
```
where `segments_info` is the list of the segment_infos of all the examples in the dataset, and therefore is a list o... | ## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets... | 52 | Add COCO datasets
## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in ... | [
-0.19400650262832642,
-0.565739631652832,
-0.12166839838027954,
0.2264271378517151,
0.16179430484771729,
0.06717992573976517,
0.19251851737499237,
0.16661721467971802,
-0.0238896943628788,
0.175217866897583,
-0.5087725520133972,
0.23102004826068878,
-0.2850368618965149,
0.36854836344718933... |
https://github.com/huggingface/datasets/issues/2526 | Add COCO datasets | > You can pass this data in .from_dict() - no need to cast anything for this column
>
> ```python
> ds = Dataset.from_dict({
> "image": [...],
> "label": [...],
> "segments_info": [...],
> )}
> ```
>
> where `segments_info` is the list of the segment_infos of all the examples in the dataset, and... | ## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets... | 89 | Add COCO datasets
## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in ... | [
-0.02137122116982937,
-0.597906768321991,
-0.1236754059791565,
0.3704047203063965,
0.23139213025569916,
0.11230539530515671,
0.05855175480246544,
0.08938165009021759,
-0.04344428330659866,
0.07443316280841827,
-0.5112686157226562,
0.4255460798740387,
-0.2483222931623459,
0.2931901514530182... |
https://github.com/huggingface/datasets/issues/2526 | Add COCO datasets | You read the JSON file and transform the data yourself. I don't think there's an automatic converter somewhere | ## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets... | 18 | Add COCO datasets
## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in ... | [
-0.12995485961437225,
-0.3851436674594879,
-0.118608757853508,
0.19418677687644958,
0.20388327538967133,
0.025883346796035767,
0.0030266158282756805,
0.18126006424427032,
-0.0772169977426529,
0.2092563360929489,
-0.44672808051109314,
0.27129504084587097,
-0.27274632453918457,
0.46612936258... |
https://github.com/huggingface/datasets/issues/2526 | Add COCO datasets | > You read the JSON file and transform the data yourself. I don't think there's an automatic converter somewhere
Perfect, I've done it and succesfully uploaded a new dataset [here](https://huggingface.co/datasets/lombardata/panoptic_2023_06_22), but I've (I hope) a last problem.
The dataset has currently 302 images... | ## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets... | 141 | Add COCO datasets
## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in ... | [
0.0614640899002552,
-0.4755616784095764,
-0.0335194393992424,
0.49291157722473145,
0.1936180591583252,
0.18587139248847961,
-0.010941479355096817,
0.27351799607276917,
-0.16582906246185303,
0.24338769912719727,
-0.2654048204421997,
-0.02650720439851284,
-0.05747360736131668,
0.306972473859... |
https://github.com/huggingface/datasets/issues/2526 | Add COCO datasets | Awesome ! Your dataset looks all good 🤗
The `null` in the viewer is a bug on our side, let me investigate | ## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets... | 22 | Add COCO datasets
## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in ... | [
-0.2788696587085724,
-0.42960721254348755,
-0.05939576402306557,
0.44491541385650635,
0.19208556413650513,
0.03030070662498474,
0.22380408644676208,
0.19492392241954803,
-0.09795401990413666,
0.22592617571353912,
-0.3472764492034912,
0.14553692936897278,
-0.28121092915534973,
0.29619932174... |
https://github.com/huggingface/datasets/issues/2522 | Documentation Mistakes in Dataset: emotion | Hi,
this issue has been already reported in the dataset repo (https://github.com/dair-ai/emotion_dataset/issues/2), so this is a bug on their side. | As per documentation,
Dataset: emotion
Homepage: https://github.com/dair-ai/emotion_dataset
Dataset: https://github.com/huggingface/datasets/blob/master/datasets/emotion/emotion.py
Permalink: https://huggingface.co/datasets/viewer/?dataset=emotion
Emotion is a dataset of English Twitter messages with eight b... | 20 | Documentation Mistakes in Dataset: emotion
As per documentation,
Dataset: emotion
Homepage: https://github.com/dair-ai/emotion_dataset
Dataset: https://github.com/huggingface/datasets/blob/master/datasets/emotion/emotion.py
Permalink: https://huggingface.co/datasets/viewer/?dataset=emotion
Emotion is a dat... | [
0.22127096354961395,
-0.34920668601989746,
-0.10875432193279266,
0.5762395262718201,
0.26779085397720337,
0.17377585172653198,
0.29420900344848633,
0.11103928089141846,
-0.12832540273666382,
0.20382341742515564,
-0.1274425983428955,
0.04295261949300766,
-0.20233315229415894,
-0.11315064877... |
https://github.com/huggingface/datasets/issues/2522 | Documentation Mistakes in Dataset: emotion | The documentation has another bug in the dataset card [here](https://huggingface.co/datasets/emotion).
In the dataset summary **six** emotions are mentioned: *"six basic emotions: anger, fear, joy, love, sadness, and surprise"*, however, in the datafields section we have only **five**:
```
label: a classification... | As per documentation,
Dataset: emotion
Homepage: https://github.com/dair-ai/emotion_dataset
Dataset: https://github.com/huggingface/datasets/blob/master/datasets/emotion/emotion.py
Permalink: https://huggingface.co/datasets/viewer/?dataset=emotion
Emotion is a dataset of English Twitter messages with eight b... | 57 | Documentation Mistakes in Dataset: emotion
As per documentation,
Dataset: emotion
Homepage: https://github.com/dair-ai/emotion_dataset
Dataset: https://github.com/huggingface/datasets/blob/master/datasets/emotion/emotion.py
Permalink: https://huggingface.co/datasets/viewer/?dataset=emotion
Emotion is a dat... | [
0.22789005935192108,
-0.3761098086833954,
-0.06796954572200775,
0.5594584941864014,
0.20203661918640137,
0.22613400220870972,
0.19695599377155304,
0.022524140775203705,
0.0012616515159606934,
0.1313014179468155,
-0.069181427359581,
0.011118495836853981,
-0.22286458313465118,
-0.05026264488... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.