Add step to download dataset before running the preprocess_data_dist test - #81
Conversation
|
@stas00 , @thomasw21 , this adds a step to download the dataset before running the We decided to have that script bail out by default if the dataset is not already downloaded. It is assumed that one is using it to preprocess a large dataset and likely using a lot of compute nodes. Since a large dataset will take a long time to download, this would be inefficient use of those nodes, as they would all be sitting idle waiting for the dataset to be downloaded and extracted. One can override that default behavior by setting This PR adds an extra step to download the dataset using a simple program that just calls |
|
Also, I think that if one does have the dataset pre-downloaded, then Do others see the same? I don't know whether that's an intentional feature or whether it's a bug. It seems like it would collide if there happened to be a dataset named something like |
|
This looks good, but any reason to do it in a separate process? Isn't it going to be just fine to do it directly inside pytest? and please rebase it, as I pushed an earlier fix to this. Thank you! |
This does sound like it would be a potential bug. But it uses a long hash dir before or after the dataset name, so most likely that's how it creates a unique dataset. So it looks up e.g. see on my machine: Are you also saying it doesn't work if you pass |
|
Ok, rebased and updated to load the dataset directly. Let me know if that helps. |
It does work with the full name, and I've changed the test to use the full name. I was just surprised to find that it had been working without using the full name when you pointed it out. |
|
Yes, I have been bitten by this one too. Let's report this to |
|
I left this line in place: |
|
Filed a feature request huggingface/datasets#2842 |
|
Hoping we will have a live CI really soon now. |
No description provided.